/* =====================================================================
   44GOV.RU — DESIGN TOKENS (глобально, enqueued в <head>)
   Канон: design/design-system.html. Палитра locked в tz-design.md.
   ===================================================================== */
:root {
	/* --- ПАЛИТРА (locked) --- */
	--bg:        #FAF8F4;   /* off-white, тёплая бумага */
	--card:      #FFFFFF;
	--ink:       #1A1A1A;   /* графит, не чёрный */
	--muted:     #6B6760;
	--muted-2:   #8C887F;
	--line:      #E8E4DC;   /* hairline-границы */
	--line-soft: #F0EDE7;
	--accent:    #B5533C;   /* терракот — primary CTA */
	--accent-d:  #9E4531;   /* hover */
	--accent-soft:#F3E4DE;
	--olive:     #5C6B3A;   /* успех/галочки */
	--olive-soft:#E8EDD9;
	--err:       #C0392B;

	/* --- ГЕОМЕТРИЯ --- */
	--maxw:     1180px;
	--r-card:   14px;
	--r-pill:   100px;
	--sec-pad:  88px;
	--ease:     cubic-bezier(.22, 1, .36, 1);

	/* --- ТИПОГРАФИКА (одна гарнитура Manrope) --- */
	--font:     'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--h1:       50px;
	--h2:       34px;
	--h3:       22px;
	--body:     17px;
	--small:    14px;
	--caption:  12.5px;

	/* --- ТЕНИ (нейтральная elevation, НЕ цветной glow) --- */
	--shadow-card:        0 12px 32px rgba(26, 26, 26, .06);
	--shadow-hover:       0 8px 24px rgba(26, 26, 26, .14);
	--shadow-chat:        0 8px 24px rgba(26, 26, 26, .18);
	--shadow-chat-hover:  0 14px 36px rgba(26, 26, 26, .24);
}

/* --- БАЗОВЫЙ РЕСЕТ (тема накладывает поверх GP) --- */
* { box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }

/* Focus-indicator для keyboard-nav (WCAG AA) */
:focus-visible {
	outline: 2.5px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* --- УНИВЕРСАЛЬНЫЕ КНОПКИ (используются и на главной, и в GP-страницах) --- */
.gov44-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 600;
	font-size: 15px;
	padding: 13px 26px;
	min-height: 44px;
	border-radius: var(--r-pill);
	cursor: pointer;
	border: none;
	white-space: nowrap;
	transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.gov44-btn--primary { background: var(--accent); color: #fff; }
.gov44-btn--primary:hover { background: var(--accent-d); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.gov44-btn--primary:active { transform: translateY(0) scale(.98); }
.gov44-btn--ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.gov44-btn--ghost:hover { background: var(--ink); color: #fff; }
.gov44-btn--ghost:active { transform: scale(.98); }
.gov44-btn[disabled] { background: #C9C2B6; color: #fff; cursor: not-allowed; box-shadow: none; transform: none; }
.gov44-btn--sm { font-size: 14px; padding: 12px 22px; min-height: 44px; }

/* --- ОБЩАЯ ОБЁРТКА (ширина + центр) — глобально, иначе внутренние страницы едут --- */
.gov44-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* --- HEADER (глобально, для главной и внутренних) --- */
.gov44-hdr {
	position: sticky; top: 0;
	background: rgba(250, 248, 244, .82);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
	height: 68px; display: flex; align-items: center; z-index: 50;
	transition: box-shadow .3s var(--ease);
}
.gov44-hdr.gov44-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
.gov44-head { display: flex; align-items: center; gap: 36px; width: 100%; }
.gov44-logo { font-weight: 700; font-size: 21px; letter-spacing: -.5px; display: flex; align-items: center; gap: 7px; color: var(--ink); }
.gov44-logo .d { color: var(--accent); font-size: 18px; }
.gov44-nav { display: flex; gap: 28px; margin-left: 12px; }
.gov44-nav a { font-size: 14.5px; font-weight:500; color: var(--ink); padding: 14px 2px; position: relative; transition: color .2s; }
.gov44-nav a::after { content: ""; position: absolute; left: 0; bottom: 8px; height: 1.5px; background: var(--accent); width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.gov44-nav a:hover, .gov44-nav a:focus-visible { color: var(--accent); }
.gov44-nav a:hover::after, .gov44-nav a:focus-visible::after { transform: scaleX(1); }
.gov44-head-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.gov44-phone { font-size: 14.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.gov44-phone a { color: inherit; }

/* Бургер (мобильное меню) — скрыт на десктопе */
.gov44-burger {
	display: none;
	width: 44px; height: 44px;
	flex: none;
	background: none; border: 1px solid var(--line); border-radius: 10px;
	padding: 10px;
	cursor: pointer;
	flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.gov44-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.gov44-burger:hover { border-color: var(--accent); }
.gov44-burger:hover span { background: var(--accent); }
.gov44-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gov44-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gov44-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню (выпадает под шапкой) */
.gov44-mobile-menu {
	display: none;
	position: fixed; top: 68px; left: 0; right: 0;
	z-index: 49;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 18px 30px -18px rgba(26, 26, 26, .25);
	max-height: calc(100vh - 68px); overflow-y: auto;
}
.gov44-mobile-menu-inner { display: flex; flex-direction: column; padding: 18px 28px 26px; }
.gov44-mobile-menu a { font-size: 17px; font-weight: 600; color: var(--ink); padding: 13px 0; border-bottom: 1px solid var(--line); }
.gov44-mobile-menu a:active { color: var(--accent); }
.gov44-mobile-menu-foot { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.gov44-mobile-menu-foot .gov44-phone { font-size: 16px; font-weight: 600; color: var(--ink); }

/* Открытое состояние */
.gov44-mobile-menu.gov44-open { display: block; }
body.gov44-menu-locked { overflow: hidden; }
body.gov44-menu-locked::after {
	content: "";
	position: fixed; inset: 0;
	background: rgba(26, 26, 26, .38);
	z-index: 48;
	animation: gov44heroIn .25s var(--ease);
}

/* link-arrow (глобально: hero + внутренние) */
.gov44-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--ink); transition: color .2s; min-height: 44px; }
.gov44-link svg { transition: transform .25s var(--ease); }
.gov44-link:hover { color: var(--accent); }
.gov44-link:hover svg { transform: translateX(4px); }

/* === СЕКЦИИ + ЗАГОЛОВКИ + ОБЩИЕ КОМПОНЕНТЫ (глобально, и на главной и внутри) === */
.gov44-sec { padding: var(--sec-pad) 0; position: relative; }
.gov44-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--caption); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.gov44-eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--accent); }
.gov44-h1 { font-size: var(--h1); line-height: 1.08; font-weight: 800; letter-spacing: -1.4px; }
.gov44-h2 { font-size: var(--h2); font-weight: 700; letter-spacing: -.6px; line-height: 1.15; }
.gov44-sec-head { margin-bottom: 48px; max-width: 680px; }
.gov44-sec-eyebrow { font-size: var(--caption); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.gov44-sec-lead { color: var(--muted); font-size: 18px; max-width: 620px; }
.gov44-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.gov44-stats { display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 24px; }
.gov44-stats div { padding: 0 22px; border-right: 1px solid var(--line); font-size: 13px; color: var(--muted-2); line-height: 1.4; }
.gov44-stats div:first-child { padding-left: 0; }
.gov44-stats div:last-child { border-right: none; padding-right: 0; }
.gov44-stats b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 700; margin-bottom: 2px; font-variant-numeric: tabular-nums; }

/* Карточки общего назначения */
.gov44-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gov44-cards--3 { grid-template-columns: repeat(3, 1fr); }
.gov44-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.gov44-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.gov44-card .ic { width: 26px; height: 26px; color: var(--accent); margin-bottom: 16px; }
.gov44-card h4 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.2px; }
.gov44-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.gov44-cards .gov44-link { margin-top: 14px; font-size: 14px; }

/* Тарифы */
.gov44-tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.gov44-tariff { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.gov44-tariff:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.gov44-tariff--featured { border: 1.5px solid var(--accent); position: relative; background: linear-gradient(180deg, #fff 0%, #FDF7F4 100%); }
.gov44-badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: .06em; }
.gov44-tariff .name { font-size: 13px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.gov44-tariff .price { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -1.2px; line-height: 1; }
.gov44-tariff .per { font-size: 15px; color: var(--muted); font-weight: 500; }
.gov44-tariff ul { list-style: none; margin: 22px 0 26px; }
.gov44-tariff li { font-size: 14.5px; color: var(--ink); padding: 7px 0 7px 26px; position: relative; line-height: 1.5; }
.gov44-tariff li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 8px; border-left: 2px solid var(--olive); border-bottom: 2px solid var(--olive); transform: rotate(-45deg); }
.gov44-tariff li.no { color: var(--muted-2); padding-left: 0; }
.gov44-tariff li.no::before { display: none; }
.gov44-tariff .choice { font-size: 12.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin: 2px 0 8px; }
.gov44-footnote { margin-top: 28px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.gov44-footnote b { color: var(--ink); font-weight: 700; }

/* Финальная CTA */
.gov44-cta-final { text-align: center; padding: 88px 0; }
.gov44-cta-final h2 { font-size: var(--h2); font-weight: 800; letter-spacing: -.6px; margin-bottom: 16px; }
.gov44-cta-final p { color: var(--muted); max-width: 540px; margin: 0 auto 32px; }
.gov44-cta-final .gov44-ctas { justify-content: center; }

/* Эксперт + гарантия */
.gov44-guarantee { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 48px; text-align: center; max-width: 760px; margin: 0 auto; }
.gov44-guarantee .ic { width: 40px; height: 40px; color: var(--olive); margin-bottom: 18px; }
.gov44-guarantee h3 { font-size: var(--h3); font-weight: 700; margin-bottom: 10px; }
.gov44-guarantee p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.gov44-expert { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.gov44-expert-photo { width: 240px; height: 240px; border-radius: var(--r-card); object-fit: cover; background: var(--line-soft); }
.gov44-expert h3 { font-size: var(--h2); font-weight: 700; letter-spacing: -.6px; margin-bottom: 12px; }
.gov44-expert .role { font-size: 15px; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.gov44-expert p { color: var(--muted); max-width: 540px; margin-bottom: 20px; }

/* --- ЧАТ-ВИДЖЕТ (глобально: главная + внутренние; S4 — заглушка) --- */
.gov44-chat-btn { position: fixed; right: 24px; bottom: 24px; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 60; box-shadow: var(--shadow-chat); border: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.gov44-chat-btn:hover { transform: scale(1.06) translateY(-2px); box-shadow: var(--shadow-chat-hover); }
.gov44-chat-btn svg { width: 26px; height: 26px; }
.gov44-chat-panel { position: fixed; right: 24px; bottom: 96px; width: 360px; max-width: calc(100vw - 48px); height: 480px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-chat-hover); z-index: 61; display: none; flex-direction: column; overflow: hidden; }
.gov44-chat-panel.gov44-open { display: flex; }
.gov44-chat-head { background: var(--accent); color: #fff; padding: 16px 20px; }
.gov44-chat-head .name { font-weight: 700; font-size: 15px; }
.gov44-chat-head .status { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.gov44-chat-head .status::before { content: ""; width: 7px; height: 7px; background: #7CDE8A; border-radius: 50%; }
.gov44-chat-body { flex: 1; padding: 20px; overflow-y: auto; font-size: 14px; color: var(--muted); }
.gov44-chat-msg { background: var(--line-soft); padding: 12px 16px; border-radius: 14px; margin-bottom: 12px; }

/* --- ФУТЕР (глобально: главная + внутренние) --- */
.gov44-footer { background: var(--ink); color: var(--line); padding: 56px 0 36px; margin-top: 80px; }
.gov44-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.gov44-footer .brand { font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 10px; }
.gov44-footer .brand .d { color: var(--accent); }
.gov44-footer .desc { font-size: 13px; color: #8f8a7e; max-width: 240px; line-height: 1.5; }
.gov44-footer h5 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.gov44-footer a { display: block; font-size: 13.5px; color: #bfbbb2; padding: 5px 0; transition: color .2s; }
.gov44-footer a:hover { color: #fff; }
.gov44-footer-bottom { border-top: 1px solid #2e2e2e; margin-top: 40px; padding-top: 22px; font-size: 12px; color: #8f8a7e; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.gov44-footer-req { border-top: 1px solid #2e2e2e; margin-top: 36px; padding-top: 18px; font-size: 12px; color: #8f8a7e; line-height: 1.8; }
.gov44-footer-req span { display: block; }

/* --- SCROLL REVEAL (глобально) --- */
.gov44-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.gov44-reveal.gov44-in { opacity: 1; transform: none; }

/* --- МОБИЛЬНЫЕ ПРАВИЛА ОБЩИХ КОМПОНЕНТОВ (внутренние страницы) --- */
@media (max-width: 960px) {
	.gov44-footer-grid { grid-template-columns: 1fr 1fr; }
	.gov44-chat-panel { right: 0; bottom: 0; width: 100vw; height: 100vh; max-width: none; border-radius: 0; }
	.gov44-nav { display: none; }
	.gov44-phone { display: none; }
	.gov44-burger { display: flex; }
	.gov44-tariffs, .gov44-posts { grid-template-columns: 1fr; max-width: 100%; }
	.gov44-cards, .gov44-cards--3 { grid-template-columns: 1fr; }
	.gov44-expert { grid-template-columns: 1fr; gap: 24px; }
	.gov44-expert-photo { width: 160px; height: 160px; margin: 0 auto; }
}
