/*
 * Инфразона — оформление сайта (стиль: Контрастный корпоратив).
 * Тёмный hero, жёлтый акцент, скруглённые квадраты 12px.
 */

:root {
	--iz-ink: #1F1F23;
	--iz-muted: #5E5E66;
	--iz-accent: #FFD700;
	--iz-accent-dark: #E6C200;
	--iz-bg: #FFFFFF;
	--iz-card: #FFFFFF;
	--iz-line: #ECECEE;
	--iz-dark: #1F1F23;
	--iz-dark-muted: #C7C7CC;
	--iz-radius: 12px;
	--iz-container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--iz-ink);
	background: var(--iz-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}

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

a { color: var(--iz-accent-dark); }

.iz-container {
	max-width: var(--iz-container);
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px; left: 8px;
	z-index: 100;
	width: auto; height: auto;
	margin: 0; padding: 10px 16px;
	clip: auto;
	background: #fff;
	border: 2px solid var(--iz-accent);
	border-radius: 8px;
}

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

.iz-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--iz-line);
}

.iz-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 68px;
}

.iz-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--iz-ink);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.01em;
}

.iz-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 10px;
	background: var(--iz-accent);
	color: var(--iz-ink);
	font-size: 16px;
	font-weight: 800;
}

.iz-nav { margin-left: auto; }

.iz-nav__list {
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.iz-nav__list a {
	color: var(--iz-ink);
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
}

.iz-nav__list a:hover,
.iz-nav__list .current-menu-item a,
.iz-nav__list .current_page_item a {
	color: var(--iz-accent-dark);
	border-bottom-color: var(--iz-accent);
}

/* fallback wp_page_menu */
.iz-nav .page_item { display: inline-block; margin-left: 18px; }
.iz-nav ul { list-style: none; margin: 0; padding: 0; }

/* Выпадающее подменю услуг */
.iz-nav__list > li { position: relative; }

.iz-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--iz-line);
	border-radius: var(--iz-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	z-index: 30;
}

.iz-nav__list li:hover > .sub-menu,
.iz-nav__list li:focus-within > .sub-menu { display: block; }

.iz-nav__list .sub-menu a {
	display: block;
	padding: 9px 16px;
	border-bottom: none;
	font-weight: 500;
	white-space: normal;
}

.iz-nav__list .sub-menu a:hover {
	background: #FFFBEB;
	color: var(--iz-ink);
}

/* ---------- Кнопки ---------- */

.iz-btn,
.wp-element-button {
	display: inline-block;
	padding: 13px 26px;
	border: none;
	border-radius: var(--iz-radius);
	background: var(--iz-accent);
	color: var(--iz-ink);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	letter-spacing: 0.01em;
	transition: transform 0.15s, background 0.15s;
}

.iz-btn:hover,
.wp-element-button:hover {
	background: var(--iz-accent-dark);
	color: var(--iz-ink);
	transform: translateY(-1px);
}

.iz-btn--ghost {
	background: transparent;
	color: var(--iz-ink);
	border: 1.5px solid var(--iz-line);
}

.iz-btn--ghost:hover {
	background: var(--iz-accent);
	border-color: var(--iz-accent);
	transform: none;
}

.iz-btn--small {
	padding: 9px 18px;
	font-size: 14px;
}

/* ---------- Герой (тёмный) ---------- */

.iz-hero {
	padding: 72px 0 64px;
	background: var(--iz-dark);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.iz-hero::before {
	content: "";
	position: absolute;
	right: -100px;
	top: -100px;
	width: 400px;
	height: 400px;
	background: var(--iz-accent);
	opacity: 0.08;
	border-radius: 50%;
	pointer-events: none;
}

.iz-hero--page { padding: 56px 0 40px; }

.iz-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 48px;
	align-items: center;
}

.iz-hero h1 {
	margin: 0 0 20px;
	font-size: clamp(36px, 5vw, 58px);
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #fff;
}

.iz-hero--page h1 {
	margin-bottom: 0;
	grid-column: 1 / -1;
}

.iz-hero__badge {
	display: inline-block;
	padding: 5px 12px;
	background: rgba(255, 215, 0, 0.15);
	color: var(--iz-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 6px;
	margin-bottom: 20px;
	border: 1px solid rgba(255, 215, 0, 0.3);
}

.iz-hero__slogan {
	margin: 0 0 32px;
	max-width: 520px;
	color: var(--iz-dark-muted);
	font-size: 17px;
	line-height: 1.55;
}

.iz-hero__actions {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.iz-hero__stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	border-left: 2px solid var(--iz-accent);
	padding-left: 28px;
}

.iz-hero__stat {
	display: flex;
	flex-direction: column;
}

.iz-hero__stat-num {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--iz-accent);
}

/* Текстовый показатель (без цифры), например «Квалифицированная» */
.iz-hero__stat-num--text {
	font-size: 26px;
	line-height: 1.25;
}

.iz-hero__stat-lbl {
	font-size: 13px;
	color: var(--iz-dark-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ---------- Контент и секции ---------- */

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

.iz-content {
	padding: 24px 20px 56px;
}

.iz-content h2 {
	margin: 48px 0 16px;
	font-size: 36px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.iz-content h3 {
	font-size: 21px;
	font-weight: 700;
}

.iz-content p { margin: 0 0 14px; }

.iz-section { padding: 72px 0; }

.iz-section--dark {
	background: var(--iz-dark);
	color: #fff;
}

/* Карточки услуг */
.iz-cards { margin-top: 8px; }

.iz-card {
	background: var(--iz-card);
	border: 1px solid var(--iz-line);
	border-radius: 14px;
	padding: 28px;
	border-top: 4px solid var(--iz-dark);
	transition: transform 0.2s, box-shadow 0.2s;
}

.iz-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.iz-card--accent {
	border-top-color: var(--iz-accent);
	background: linear-gradient(180deg, #FFFBEB 0%, #fff 100%);
}

.iz-card__num {
	font-size: 13px;
	font-weight: 700;
	color: var(--iz-muted);
	letter-spacing: 0.08em;
	margin-bottom: 14px;
}

.iz-card h3 {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
}

.iz-card p {
	color: var(--iz-muted);
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 16px;
}

.iz-card__more {
	font-size: 14px;
	font-weight: 600;
	color: var(--iz-ink);
	text-decoration: none;
}

.iz-card__more:hover {
	color: var(--iz-accent-dark);
}

/* ---------- Форма заявки ---------- */

.iz-section--cta {
	background: var(--iz-dark);
	color: #fff;
	padding: 72px 0;
}

/* Двухколоночная сетка на всю ширину контейнера: текст слева, форма справа */
.iz-cta__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 56px;
	align-items: start;
}

.iz-cta__text h2 {
	margin: 0 0 14px;
	font-size: 40px;
	line-height: 1.15;
	color: #fff;
}

.iz-cta__text p {
	color: var(--iz-dark-muted);
	margin: 0 0 20px;
	font-size: 17px;
	line-height: 1.6;
}

.iz-cta__phone a {
	color: var(--iz-accent);
	font-size: 26px;
	font-weight: 800;
	text-decoration: none;
	letter-spacing: -0.01em;
}

.iz-cta__phone a:hover { text-decoration: underline; }

.iz-cta__form { width: 100%; }

.iz-form { text-align: left; }

.iz-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.iz-form__field {
	display: block;
	margin-bottom: 16px;
}

.iz-form__field span {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--iz-dark-muted);
}

.iz-form__field input,
.iz-form__field textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--iz-radius);
	background: rgba(255, 255, 255, 0.05);
	font: inherit;
	color: #fff;
}

.iz-form__field input:focus,
.iz-form__field textarea:focus {
	outline: 2px solid var(--iz-accent);
	outline-offset: 1px;
	background: rgba(255, 255, 255, 0.1);
}

.iz-form__field input::placeholder,
.iz-form__field textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.iz-form__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 4px 0 20px;
	font-size: 14px;
	color: var(--iz-dark-muted);
}

.iz-form__consent input { margin-top: 3px; }

.iz-form .iz-btn { width: 100%; }

/* Ловушка для ботов: скрыта визуально */
.iz-hp {
	position: absolute;
	left: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
}

.iz-alert {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: var(--iz-radius);
	text-align: left;
	font-size: 15px;
}

.iz-alert--ok {
	background: rgba(255, 215, 0, 0.15);
	border: 1px solid rgba(255, 215, 0, 0.3);
	color: var(--iz-accent);
}

.iz-alert--err {
	background: rgba(255, 80, 80, 0.15);
	border: 1px solid rgba(255, 80, 80, 0.3);
	color: #FF9999;
}

.iz-alert ul { margin: 0; padding-left: 18px; }

/* ---------- Контакты ---------- */

.iz-contacts__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 40px;
	align-items: start;
}

.iz-contacts h2 {
	margin: 0 0 16px;
	font-size: 36px;
}

.iz-contacts__address { color: var(--iz-muted); }

.iz-contacts__line {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
}

.iz-contacts__line a {
	color: var(--iz-ink);
	text-decoration: none;
}

.iz-contacts__line a:hover { color: var(--iz-accent-dark); }

.iz-contacts__hours { color: var(--iz-muted); }

.iz-contacts__socials { display: flex; gap: 10px; }

.iz-contacts__map iframe {
	width: 100%;
	border: 1px solid var(--iz-line);
	border-radius: var(--iz-radius);
	background: #fff;
}

/* ---------- Подвал ---------- */

.iz-footer {
	background: var(--iz-dark);
	color: var(--iz-dark-muted);
	padding: 40px 0;
	font-size: 15px;
}

.iz-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 48px;
	align-items: flex-start;
	justify-content: space-between;
}

.iz-footer__brand { display: flex; flex-direction: column; gap: 4px; }

.iz-footer__brand strong { color: #fff; font-size: 18px; }

.iz-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.iz-footer__nav a { color: var(--iz-dark-muted); text-decoration: none; }

.iz-footer__nav a:hover { color: #fff; }

.iz-footer__meta { color: #8A8A92; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
	.iz-header__inner { flex-wrap: wrap; padding: 10px 0; }
	.iz-nav { order: 3; width: 100%; margin-left: 0; }
	.iz-nav__list { flex-wrap: wrap; gap: 12px 18px; }
	.iz-header__cta { margin-left: auto; }
	.iz-contacts__grid { grid-template-columns: 1fr; }
	.iz-hero__inner { grid-template-columns: 1fr; }
	.iz-hero__stats {
		flex-direction: row;
		gap: 24px;
		border-left: none;
		border-top: 2px solid var(--iz-accent);
		padding-left: 0;
		padding-top: 20px;
	}
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.iz-hero { padding: 56px 0 44px; }
	.iz-form__row { grid-template-columns: 1fr; gap: 0; }
	.iz-contacts__line { font-size: 19px; }
	.iz-footer__inner { flex-direction: column; }
	.iz-cta__grid { grid-template-columns: 1fr; gap: 32px; }
	.iz-cta__text h2 { font-size: 30px; }
}
