/* =====================================================================
   Factum Security — основной стиль темы.
   Строгий корпоративный стиль: светлый контент, тёмные акцентные секции,
   фирменный «золотой» акцент (--accent задаётся из Настройщика).
   Структура: 1) токены 2) сброс 3) типографика 4) утилиты
   5) кнопки 6) шапка 7) подвал 8) формы/модалка 9) секции главной
   10) карточки 11) внутренние страницы 12) адаптив.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Токены                                                          */
/* ------------------------------------------------------------------ */
:root {
	--accent: #f2b500;            /* фирменный золотой логотипа; перекрывается из enqueue.php */
	--accent-rgb: 242, 181, 0;
	--accent-ink: #241d00;        /* текст на акцентной кнопке */

	--ink: #161b26;               /* основной текст */
	--ink-2: #38415a;             /* вторичный текст */
	--muted: #6b7280;             /* приглушённый */
	--line: #e6e8ec;              /* границы */
	--bg: #ffffff;
	--bg-soft: #f4f6f9;           /* фон секций */

	--dark: #0f1420;              /* тёмные секции */
	--dark-2: #161d2e;
	--dark-3: #1e2740;
	--on-dark: #e8ebf2;           /* текст на тёмном */
	--on-dark-muted: #9aa3b8;
	--dark-line: rgba(255, 255, 255, .1);

	--radius: 10px;
	--radius-lg: 16px;
	--radius-sm: 6px;
	--shadow: 0 6px 24px rgba(15, 20, 32, .08);
	--shadow-lg: 0 24px 64px rgba(15, 20, 32, .22);

	--container: 1180px;
	--gap: 24px;

	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--header-h: 72px;

	--ease: cubic-bezier(.2, .7, .3, 1);
}

/* ------------------------------------------------------------------ */
/* 2. Сброс                                                           */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* 3. Типографика / служебное                                         */
/* ------------------------------------------------------------------ */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------------------------------------------ */
/* 4. Утилиты-сетки                                                   */
/* ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 56px 0; }

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head .eyebrow {
	display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section--dark .section-head p { color: var(--on-dark-muted); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Списки с галочками */
.factum-ticks { list-style: none; margin: 0; padding: 0; }
.factum-ticks li { position: relative; padding: 6px 0 6px 30px; }
.factum-ticks li::before {
	content: ""; position: absolute; left: 0; top: 11px;
	width: 18px; height: 18px; border-radius: 50%;
	background: rgba(var(--accent-rgb), .15);
}
.factum-ticks li::after {
	content: ""; position: absolute; left: 6px; top: 14px;
	width: 6px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ------------------------------------------------------------------ */
/* 5. Кнопки                                                          */
/* ------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 24px; border: 2px solid transparent; border-radius: var(--radius);
	font-weight: 700; font-size: 15px; line-height: 1; text-align: center;
	transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ffc524; color: var(--accent-ink); }

.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-3); color: #fff; }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.section--dark .btn--ghost, .cta-band .btn--ghost, .hero .btn--ghost { border-color: var(--dark-line); color: #fff; }
.section--dark .btn--ghost:hover, .cta-band .btn--ghost:hover, .hero .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ------------------------------------------------------------------ */
/* 6. Шапка                                                           */
/* ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); }

.topbar { background: var(--dark); color: var(--on-dark-muted); font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__info .dashicons { color: var(--accent); font-size: 16px; width: 16px; height: 16px; }
.topbar__email { color: var(--on-dark); font-weight: 600; }
.topbar__email:hover { color: var(--accent); }

.navbar { border-bottom: 1px solid var(--line); }
.navbar__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.navbar__brand { flex: none; display: flex; align-items: center; }

.brand-text { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
	width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
	background: var(--dark); color: var(--accent); flex: none;
}
.brand-mark .dashicons { font-size: 24px; width: 24px; height: 24px; }
.brand-name { font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.custom-logo-link { display: inline-block; }
.custom-logo { max-height: 48px; width: auto; }
.brand-logo-mark { height: 40px; width: auto; display: block; flex: none; }
.brand-text--footer .brand-logo-mark { filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .4)); }
.brand-logo-link { display: block; line-height: 0; flex: none; }
.brand-logo-full { height: 54px; width: auto; max-width: none; display: block; }
.brand-logo-link--footer .brand-logo-full { height: 52px; }

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav__list a {
	display: block; padding: 10px 14px; font-weight: 600; font-size: 15px; color: var(--ink-2);
	border-radius: var(--radius-sm); white-space: nowrap;
}
.main-nav__list a:hover, .main-nav__list .current-menu-item > a { color: var(--accent); }
.main-nav__list .current-menu-item > a { background: rgba(var(--accent-rgb), .1); }

/* выпадающие подменю */
.main-nav__list li { position: relative; }
.main-nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff;
	box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 8px; list-style: none; margin: 8px 0 0; opacity: 0; visibility: hidden;
	transform: translateY(6px); transition: all .18s var(--ease); z-index: 50;
}
.main-nav__list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav__list .sub-menu a { padding: 9px 12px; font-size: 14.5px; }

.navbar__actions { display: flex; align-items: center; gap: 14px; }
.navbar__phone { font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; }
.navbar__phone:hover { color: var(--accent); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: .2s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Мобильное меню */
.mobile-menu { display: none; position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: #fff; z-index: 200; box-shadow: var(--shadow-lg); padding: 56px 20px 28px; overflow-y: auto; }
.mobile-menu.is-open { display: block; }
/* Отступ под админ-бар WordPress (виден только залогиненным). */
.admin-bar .mobile-menu { top: 46px; }
@media screen and (min-width: 783px) { .admin-bar .mobile-menu { top: 32px; } }
.mobile-menu__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: none; background: var(--bg-soft); border-radius: 50%; font-size: 26px; line-height: 1; color: var(--ink-2); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.mobile-menu__close:hover { background: var(--accent); color: var(--accent-ink); }
.mobile-menu__list { list-style: none; margin: 0 0 24px; padding: 0; }
.mobile-menu__list a { display: block; padding: 13px 8px; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-menu__list .sub-menu { list-style: none; padding-left: 16px; margin: 0; }
.mobile-menu__actions { display: grid; gap: 12px; }
body.menu-open { overflow: hidden; }
.menu-backdrop { position: fixed; inset: 0; background: rgba(15, 20, 32, .5); z-index: 150; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), visibility .2s var(--ease); }
.menu-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

/* ------------------------------------------------------------------ */
/* 7. Хлебные крошки + шапка страницы                                 */
/* ------------------------------------------------------------------ */
.breadcrumbs { background: var(--bg-soft); font-size: 14px; border-bottom: 1px solid var(--line); }
.breadcrumbs .container { padding-top: 14px; padding-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.crumb-sep { margin: 0 8px; color: var(--line); }
.breadcrumbs .current { color: var(--ink-2); }

.page-hero { background: var(--dark); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .18), transparent 70%); }
.page-hero__title { font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; color: #fff; position: relative; }
.page-hero__subtitle { color: var(--on-dark-muted); font-size: 18px; max-width: 720px; margin: 0; position: relative; }

/* ------------------------------------------------------------------ */
/* 8. Главная — герой                                                 */
/* ------------------------------------------------------------------ */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
	radial-gradient(900px 500px at 80% -10%, rgba(var(--accent-rgb), .14), transparent 60%),
	linear-gradient(180deg, var(--dark-2), var(--dark)); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 84px 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); color: #fff; margin: 0 0 18px; }
.hero__lead { font-size: 19px; color: var(--on-dark-muted); max-width: 560px; margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero__trust { display: flex; gap: 32px; flex-wrap: wrap; }
.hero__trust b { display: block; font-size: 28px; color: #fff; line-height: 1; }
.hero__trust span { font-size: 14px; color: var(--on-dark-muted); }
.hero__card { background: rgba(255, 255, 255, .04); border: 1px solid var(--dark-line); border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(6px); }
.hero__card h3 { color: #fff; font-size: 20px; }
/* Заголовок карточки заявки — не heading (чтобы не ломать порядок H1→H2→H3), но выглядит так же */
.hero__card-title { color: #fff; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }

/* Лента-полоса доверия (лицензии и т.п.) */
.trust-strip { background: var(--dark-2); border-top: 1px solid var(--dark-line); }
.trust-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.trust-strip__item { display: flex; align-items: center; gap: 12px; color: var(--on-dark-muted); font-size: 14.5px; }
.trust-strip__item .dashicons { color: var(--accent); font-size: 26px; width: 26px; height: 26px; }
.trust-strip__item b { display: block; color: #fff; font-size: 15.5px; }

/* ------------------------------------------------------------------ */
/* 9. Карточки услуг / кейсов / преимуществ                           */
/* ------------------------------------------------------------------ */
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 28px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
	height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.service-card__icon, .feature__icon {
	width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
	background: rgba(var(--accent-rgb), .12); color: var(--accent); margin-bottom: 18px; flex: none;
}
.service-card__icon .dashicons, .feature__icon .dashicons { font-size: 30px; width: 30px; height: 30px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card h3 a { color: var(--ink); }
.service-card h3 a:hover { color: var(--accent); }
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.service-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.service-card__price { font-weight: 800; color: var(--ink); }
.service-card__price span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.service-card__more {
	font: 700 14px/1 var(--font); color: var(--accent-ink); background: var(--accent);
	border: 0; border-radius: 999px; padding: 11px 22px; cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background .2s var(--ease), transform .15s var(--ease);
}
.service-card__more:hover { background: #ffc524; transform: translateY(-1px); }
.service-card__more .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* Преимущества «Почему мы» */
.feature { padding: 4px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
.section--dark .feature__icon { background: rgba(var(--accent-rgb), .16); }
.section--dark .feature p { color: var(--on-dark-muted); }

/* Наши клиенты (страница «О компании») */
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.client-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
	padding: 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	transition: border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.client-card:hover { border-color: rgba(var(--accent-rgb), .5); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.client-card__logo { height: 56px; display: grid; place-items: center; }
.client-card__logo img { max-height: 56px; max-width: 160px; width: auto; object-fit: contain; }
.client-card__logo .dashicons { color: var(--accent); font-size: 34px; width: 34px; height: 34px; }
.client-card__body b { display: block; font-size: 15px; line-height: 1.35; color: var(--ink); }
.client-card__body span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
@media (max-width: 860px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .clients-grid { grid-template-columns: 1fr; } }

/* Шаги «как мы работаем» */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
	counter-increment: step; content: counter(step, decimal-leading-zero);
	position: absolute; left: 0; top: -4px; font-size: 30px; font-weight: 800; color: var(--accent);
	font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.section--dark .step p { color: var(--on-dark-muted); }

/* Кейсы */
.case-card { overflow: hidden; padding: 0; }
.case-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.case-card:hover .case-card__media img { transform: scale(1.05); }
.case-card__body { padding: 22px 24px 26px; }
.case-card__tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.case-card h3 { font-size: 19px; margin-bottom: 8px; }
.case-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Отзывы */
.review-card { position: relative; }
.review-card::before { content: "\201C"; position: absolute; top: 8px; right: 22px; font-size: 80px; line-height: 1; color: rgba(var(--accent-rgb), .18); font-family: Georgia, serif; }
.review-card__text { font-size: 16px; color: var(--ink-2); font-style: italic; }
.review-card__author { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.review-card__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-card__author b { display: block; }
.review-card__author span { font-size: 14px; color: var(--muted); }

/* Вакансии */
.vacancy-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 28px; }
.vacancy-card__main h3 { font-size: 20px; margin-bottom: 6px; }
.vacancy-card__meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14.5px; justify-content: center; }
.vacancy-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.vacancy-card__meta .dashicons { color: var(--accent); font-size: 18px; width: 18px; height: 18px; }
.vacancy-card__salary { font-size: 20px; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* 10. CTA-полоса перед подвалом                                      */
/* ------------------------------------------------------------------ */
.cta-band { background: linear-gradient(120deg, var(--dark-2), var(--dark)); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; left: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .2), transparent 70%); }
.cta-band__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-band__text h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }
.cta-band__text p { color: var(--on-dark-muted); margin: 0 auto; max-width: 560px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------------ */
/* 11. Подвал                                                         */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--dark); color: var(--on-dark-muted); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr 1.4fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-req-line { font-size: 13.5px; color: var(--on-dark-muted); margin: 0 0 12px; }
.footer-col h3.footer-title { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-about { font-size: 14.5px; margin: 16px 0; }
.footer-license, .footer-req li { font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.footer-license .dashicons { color: var(--accent); }
.brand-text--footer .brand-name { color: #fff; }

.footer-menu, .footer-contacts, .footer-req { list-style: none; margin: 0; padding: 0; }
.footer-menu li, .footer-contacts li { margin-bottom: 11px; }
.footer-menu a { color: var(--on-dark-muted); font-size: 14.5px; }
.footer-menu a:hover { color: var(--accent); }
.footer-contacts li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.footer-contacts .dashicons { color: var(--accent); flex: none; margin-top: 2px; }
.footer-contacts a { color: var(--on-dark); }
.footer-contacts a:hover { color: var(--accent); }
.footer-phone { font-weight: 700; }
.footer-req li { margin-bottom: 8px; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.soc { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; font-weight: 700; font-size: 13px; }
.soc:hover { background: var(--accent); color: var(--accent-ink); }
.soc .dashicons { font-size: 20px; width: 20px; height: 20px; }
/* Кредит разработчика (ITSocket) под соцсетями */
.footer-dev { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 26px; }
.footer-dev__label { font-size: 12px; color: var(--on-dark-muted); letter-spacing: .02em; }
.footer-dev img { height: 32px; width: auto; display: block; }

.footer-bottom { border-top: 1px solid var(--dark-line); }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.copyright { margin: 0; font-size: 13.5px; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.legal-menu a { color: var(--on-dark-muted); font-size: 13.5px; }
.legal-menu a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ */
/* 12. Плавающие кнопки                                               */
/* ------------------------------------------------------------------ */
.floats { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: none; box-shadow: var(--shadow-lg); transition: transform .15s var(--ease); }
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-btn .dashicons { font-size: 26px; width: 26px; height: 26px; }
.float-btn--call { background: var(--accent); color: var(--accent-ink); }
.float-btn--wa { background: #25d366; }
.float-btn--tg { background: #2aabee; }
.float-btn--top { background: var(--dark-3); }

/* ------------------------------------------------------------------ */
/* 13. Формы и модалка                                                */
/* ------------------------------------------------------------------ */
.lead-form { display: grid; gap: 16px; }
.lead-form__title { font-size: 20px; margin: 0; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field__label i { color: #d33; font-style: normal; }
.field input, .field textarea, .field select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
	font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.field textarea { resize: vertical; min-height: 96px; }
.field--file input { padding: 9px; background: var(--bg-soft); }
.field--consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.field--consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.field--consent a { color: var(--accent); text-decoration: underline; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-form__submit { margin-top: 4px; }
.lead-form__note { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }

/* Формы на тёмном фоне (карточка героя, тёмные секции): светлые подписи. */
.hero__card .field__label,
.section--dark .field__label,
.aside-box--accent .field__label { color: var(--on-dark); }
.hero__card .field--consent,
.section--dark .field--consent,
.aside-box--accent .field--consent,
.hero__card .lead-form__note,
.section--dark .lead-form__note,
.aside-box--accent .lead-form__note { color: var(--on-dark-muted); }
.lead-form__result { font-size: 14.5px; padding: 0; border-radius: var(--radius); }
.lead-form__result.is-success { background: rgba(38, 166, 91, .12); color: #1c7c44; padding: 14px 16px; border: 1px solid rgba(38, 166, 91, .3); }
.lead-form__result.is-error { background: rgba(211, 51, 51, .1); color: #b32626; padding: 14px 16px; border: 1px solid rgba(211, 51, 51, .3); }
.lead-form.is-loading .lead-form__submit { opacity: .6; pointer-events: none; }
.field.has-error input, .field.has-error textarea { border-color: #d33; }

/* Модалка */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 20, 32, .62); backdrop-filter: blur(3px); }
.modal__dialog { position: relative; width: 100%; max-width: 540px; background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; animation: modal-in .25s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.modal__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: none; background: var(--bg-soft); border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink-2); }
.modal__close:hover { background: var(--accent); color: var(--accent-ink); }
.modal__title { font-size: 24px; margin: 0 0 6px; }
.modal__subtitle { color: var(--muted); margin: 0 0 22px; }

/* ------------------------------------------------------------------ */
/* 14. Контент статей / страниц                                       */
/* ------------------------------------------------------------------ */
.entry { padding: 64px 0; }
.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.entry-content { font-size: 16.5px; color: var(--ink-2); }
.entry-content h2 { font-size: 28px; margin: 1.4em 0 .5em; color: var(--ink); }
.entry-content h3 { font-size: 22px; margin: 1.2em 0 .4em; color: var(--ink); }
.entry-content img { border-radius: var(--radius); margin: 1em 0; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote { margin: 1.2em 0; padding: 16px 22px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--bg-soft); }

.aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }
.aside-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.aside-box h3 { font-size: 18px; }
.aside-box--accent { background: var(--dark); color: var(--on-dark); }
.aside-box--accent h3 { color: #fff; }
.aside-box--accent p { color: var(--on-dark-muted); }

/* мета-таблица услуги/кейса/вакансии */
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-list li:last-child { border-bottom: none; }
.aside-box--accent .spec-list li { border-bottom-color: var(--dark-line); }
.spec-list dt, .spec-list .spec-k { color: var(--muted); }
.spec-list .spec-v { font-weight: 600; text-align: right; }

/* блог-карточки */
.post-card { overflow: hidden; padding: 0; }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 22px 24px 26px; }
.post-card__date { font-size: 13px; color: var(--muted); }
.post-card h3 { font-size: 19px; margin: 8px 0; }
.post-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* пагинация */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; color: var(--ink-2); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contacts-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.contacts-list li { display: flex; gap: 14px; align-items: flex-start; }
.contacts-list .dashicons { color: var(--accent); font-size: 24px; width: 24px; height: 24px; flex: none; }
.contacts-list b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; min-height: 360px; border: 0; display: block; }
/* Карта по клику: заглушка не грузит Яндекс (и его cookie) до нажатия */
.map-embed__load {
	width: 100%; min-height: 358px; border: 0; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	background: #eef1f5; color: var(--ink); font: 700 16px/1.3 var(--font);
	transition: background .2s var(--ease);
}
.map-embed__load .dashicons { font-size: 42px; width: 42px; height: 42px; color: var(--accent); margin-bottom: 6px; }
.map-embed__load small { font-weight: 500; font-size: 12px; color: var(--muted); }
.map-embed__load:hover { background: #e4e8ee; }

/* 404 / пустое */
.empty-state { text-align: center; padding: 96px 20px; }
.empty-state .code { font-size: 96px; font-weight: 800; color: rgba(var(--accent-rgb), .25); line-height: 1; }
.empty-state h1 { font-size: 28px; margin: 8px 0 12px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* ------------------------------------------------------------------ */
/* 15. Адаптив                                                        */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
	.hero__card { max-width: 520px; }
	.entry-layout { grid-template-columns: 1fr; }
	.aside { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.main-nav, .navbar__phone { display: none; }
	.navbar__actions { margin-left: auto; }
	.nav-toggle { display: block; }
	.topbar { display: none; }
	.section { padding: 56px 0; }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.contacts-grid { grid-template-columns: 1fr; }
	.cta-band__inner { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
	body { font-size: 15.5px; }
	.lead-form__row { grid-template-columns: 1fr; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; text-align: center; }
	.footer-col--brand .brand-logo-link--footer { display: inline-block; }
	.footer-license, .footer-social, .legal-menu { justify-content: center; }
	.footer-dev { align-items: center; }
	/* Контакты в футере: иконка в потоке текста, весь блок по центру (чтобы не «уезжала» при переносе строк) */
	.footer-contacts li { display: block; text-align: center; }
	.footer-contacts li .dashicons { display: inline-block; vertical-align: middle; margin: 0 6px 3px 0; }
	.footer-bottom__inner { flex-direction: column; align-items: center; }
	.modal__dialog { padding: 28px 20px; }
	.vacancy-card { align-items: center; }
	.hero__trust { gap: 20px; }
	.floats { right: 14px; bottom: 14px; }
	.float-btn { width: 50px; height: 50px; }
	.section-head { margin-bottom: 32px; }
	/* Блок «Почему мы» — по центру на телефоне */
	.feature { text-align: center; }
	.feature__icon { margin-left: auto; margin-right: auto; }
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
