/* МФО GFM — стили сайта по прототипу v2.6.
   Цвета заданы переменными: режим доступности (html[data-a11y="on"]) переопределяет их ниже.
   Размеры текста — в rem, чтобы настройка «Размер шрифта» масштабировала весь сайт. */

:root {
	--green: #123d36;
	--deep: #092b27;
	--gold: #c5a46b;
	--ink: #1d302e;
	--muted: #687a75;
	--line: #dee6e1;
	--bg: #f6f8f6;
	--surface: #fff;
	--surface-soft: #edf3ef;
	--surface-tint: #e9f0eb;
	--brand: #123d36;
	--brand-ink: #fff;
	--link: #0d6851;
	--kicker: #8a703c;
	--nav-ink: #34564e;
	--nav-active-bg: #e8f0ec;
	--nav-active-ink: #0b3e31;
	--note-bg: #fff8ea;
	--note-ink: #6a5633;
	--pill-bg: #f8f0db;
	--pill-ink: #746032;
	--warning: #9d411e;
	--hero-bg: linear-gradient(110deg, #0c342e 0%, #1b5447 100%);
	--hero-ink: #fff;
	--hero-lead: #dce9e3;
	--hero-eyebrow: #dfc89a;
	--foot-bg: #092b27;
	--foot-ink: #d7e4dd;
	--foot-title: #fff;
	--focus: #c5a46b;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	background: var(--bg);
	color: var(--ink);
}
button, a, input, select, textarea { font: inherit; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}
main:focus { outline: none; }

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 10;
	background: var(--brand);
	color: var(--brand-ink);
	padding: .6rem 1rem;
	border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1 { font-size: clamp(2.2rem, 5vw, 3.875rem); line-height: 1.1; letter-spacing: -.035em; margin: 15px 0 20px; }
h2, .page-title { font-size: clamp(1.7rem, 3vw, 2.375rem); letter-spacing: -.025em; line-height: 1.2; margin: 0 0 14px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; line-height: 1.3; }
h4 { font-size: 1rem; margin: 1.4em 0 .4em; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
	display: inline-block;
	border: 0;
	border-radius: 9px;
	padding: .8rem 1.2rem;
	font-weight: 750;
	line-height: 1.3;
	text-align: center;
}
.btn-gold { background: var(--gold); color: #17372d; }
.btn-gold:hover { background: #b8955b; }
.btn-outline { background: transparent; border: 1px solid #a8c1b6; color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.btn-soft { background: var(--surface-tint); color: var(--green); }
.btn[disabled] { opacity: .65; cursor: progress; }
.text-link {
	background: none;
	border: 0;
	padding: 0;
	color: var(--link);
	font-weight: 750;
	text-align: left;
}
.text-link:hover { text-decoration: underline; }
.panel :is(p, li, dd, td) a:not(.btn):not(.text-link), .banner p a, .ombud-card a {
	color: var(--link);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Шапка ---------- */
.header {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 5;
}
.head-inner {
	max-width: 1320px;
	margin: auto;
	padding: 17px 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.mark {
	background: var(--green);
	color: var(--gold);
	font-weight: 850;
	letter-spacing: .01em;
	font-size: .875rem;
	line-height: 1.2;
	padding: 12px 10px;
	border-radius: 8px;
	white-space: nowrap;
}
.brand strong { max-width: 280px; white-space: normal; display: inline-block; line-height: 1.2; font-size: .875rem; }
.site-nav { margin-left: auto; display: flex; gap: 3px; align-items: center; }
.site-nav a {
	padding: 12px 10px;
	color: var(--nav-ink);
	border-radius: 8px;
	white-space: nowrap;
	font-size: .875rem;
}
.site-nav a[aria-current="page"], .site-nav a:hover { background: var(--nav-active-bg); color: var(--nav-active-ink); font-weight: 700; }
.site-nav .nav-cabinet { display: none; }
.side { display: flex; align-items: center; gap: 10px; }
.menu {
	display: none;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	border-radius: 8px;
	padding: 9px;
}
.language-switch {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid #cbd9d0;
	border-radius: 10px;
	background: #f5f8f5;
	white-space: nowrap;
}
.language-switch a {
	border-radius: 7px;
	font-size: .8125rem;
	font-weight: 700;
	color: #526f63;
	padding: 7px 9px;
}
.language-switch a[aria-current="true"] { background: var(--green); color: #fff; }
.access-btn {
	border: 1px solid #356451;
	border-radius: 8px;
	background: var(--surface);
	color: #133d31;
	padding: 9px;
	font-size: .75rem;
	white-space: nowrap;
}
.access-btn[aria-pressed="true"] { background: #101b17; color: #fff; }
.cabinet {
	border-radius: 8px;
	background: var(--green);
	color: #fff;
	padding: 10px 15px;
	font-weight: 650;
	white-space: nowrap;
}
.cabinet:hover { background: var(--deep); }

/* Панель настроек доступности */
.a11y-panel { border-top: 1px solid var(--line); background: var(--surface); padding: 14px 0; }
.a11y-grid { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.a11y-grid fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.a11y-grid legend { font-size: .8125rem; font-weight: 700; padding: 0 0 6px; color: var(--ink); }
.a11y-grid button {
	border: 2px solid var(--ink);
	background: var(--surface);
	color: var(--ink);
	border-radius: 8px;
	padding: 6px 12px;
	font-size: .9375rem;
}
.a11y-grid button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.a11y-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* ---------- Главная ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: 78px 0 70px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.eyebrow { letter-spacing: .16em; font-size: .75rem; font-weight: 750; color: var(--hero-eyebrow); text-transform: uppercase; }
.lead { font-size: 1.125rem; color: var(--hero-lead); max-width: 580px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.abstract {
	height: 310px;
	position: relative;
	border: 1px solid #5c8b7b;
	border-radius: 28px;
	background: radial-gradient(circle at 30% 20%, #5e927b 0%, transparent 50%), linear-gradient(140deg, #245d50, #092c27);
	overflow: hidden;
}
.abstract::before, .abstract::after {
	content: "";
	position: absolute;
	border: 1px solid #c7a765;
	border-radius: 50%;
	width: 250px;
	height: 250px;
	right: -40px;
	top: 20px;
}
.abstract::after { width: 190px; height: 190px; top: 50px; right: -10px; }
.abstract b { position: absolute; bottom: 28px; left: 27px; right: 27px; font-size: 1.125rem; letter-spacing: .08em; }

.section { padding: 55px 0; }
.kicker { color: var(--kicker); text-transform: uppercase; font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 26px;
	min-height: 180px;
}
.card p { color: var(--muted); font-size: .875rem; flex: 1; }
.card .ico { color: #a58d62; font-size: 1.5625rem; margin-bottom: 17px; line-height: 1; }
.banner { padding: 25px; border-radius: 14px; background: #e7eee9; border: 1px solid #cbdcd2; margin: 30px 0 0; }
.banner p { margin: 6px 0 10px; }

/* ---------- Страница раздела ---------- */
.subhero { padding: 57px 0 33px; background: var(--surface-tint); border-bottom: 1px solid #d2dfd8; }
.subhero p { max-width: 700px; color: #567066; margin: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; scroll-margin-top: 110px; }
.tabs button {
	padding: 11px 16px;
	border-radius: 9px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: #31564b;
	text-align: left;
}
.tabs button:hover { border-color: #9fb9ad; }
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 32px;
	min-height: 300px;
	scroll-margin-top: 110px;
}
.panel + .panel { margin-top: 18px; }
.panel p { color: var(--muted); max-width: 790px; }
.panel ul, .panel ol { padding-left: 21px; max-width: 820px; }
.panel li { padding: 4px 0; }
.panel h3 + p { margin-top: 0; }
.pill { display: inline-block; background: var(--pill-bg); color: var(--pill-ink); font-size: .75rem; border-radius: 50px; padding: 5px 11px; margin-bottom: 12px; }
.muted { color: var(--muted); font-size: .8125rem; }
.note { border-left: 4px solid var(--gold); padding: 12px 18px; background: var(--note-bg); color: var(--note-ink); margin-top: 20px; }
.panel .note p { color: inherit; margin: 0; }

/* Продукты */
.product-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.product-facts > div { background: var(--surface-soft); border: 1px solid #d7e4dc; border-radius: 12px; padding: 18px; }
.product-facts small { display: block; color: #526e63; }
.product-facts strong { display: block; color: var(--green); font-size: 1.6875rem; margin-top: 7px; }
.product-intro h4 { margin-bottom: 4px; }
.business-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 22px; }
.business-terms > div { padding: 14px; border: 1px solid #dae6dd; border-radius: 10px; background: #f7faf8; }
.business-terms span { display: block; font-size: .75rem; color: #657a70; margin-bottom: 7px; }
.business-terms strong { font-size: .9375rem; color: #173d34; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }

/* Раскрывающиеся блоки */
.approval-details {
	margin: 18px 0;
	border-top: 1px solid #e1e8e3;
	border-bottom: 1px solid #e1e8e3;
	padding: 10px 0;
	color: #4f6860;
}
.approval-details + .approval-details { margin-top: -19px; border-top: 0; }
.approval-details summary {
	cursor: pointer;
	font-size: .9375rem;
	font-weight: 650;
	color: #34564e;
	list-style: none;
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	padding: 4px 0;
}
.approval-details summary::-webkit-details-marker { display: none; }
.approval-details summary::after { content: "⌄"; font-size: 1.2rem; font-weight: 400; color: #81928a; line-height: 1; flex: 0 0 auto; }
.approval-details[open] summary::after { transform: rotate(180deg); }
.approval-details.compact summary { font-size: .8125rem; font-weight: 550; color: #667a70; }
.approval-details dl {
	margin: 12px 0 5px;
	padding: 12px 14px;
	background: #f7f9f7;
	border-radius: 8px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 13px;
}
.approval-details dt { font-size: .75rem; color: #6d8076; }
.approval-details dd { margin: 3px 0 0; font-size: .8125rem; font-weight: 500; color: #395349; overflow-wrap: anywhere; }

/* Документы */
.doc-list { display: grid; gap: 10px; margin-top: 22px; }
.doc-item {
	border: 1px solid var(--line);
	border-radius: 11px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 15px;
	background: #fbfcfb;
	color: var(--ink);
}
a.doc-item:hover { border-color: #9fb9ad; background: #f3f8f5; }
.doc-item > div { flex: 1; }
.doc-item strong { display: block; font-size: .875rem; }
.doc-item small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.file-icon {
	flex: 0 0 auto;
	display: inline-flex;
	background: #e7efe9;
	color: #205648;
	border-radius: 7px;
	font-size: .6875rem;
	font-weight: 800;
	padding: 9px;
}
.doc-open { font-size: .8125rem; color: var(--link); font-weight: 700; white-space: nowrap; }
.report-years { display: grid; gap: 14px; margin: 22px 0; }
.report-year { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.report-header { display: flex; justify-content: space-between; align-items: center; background: #f0f5f1; padding: 14px 18px; gap: 8px; }
.report-header h4 { margin: 0; }
.report-links > a { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink); }
.report-links > a:hover { background: #f6faf7; }
.report-links > a > span:nth-child(2) { flex: 1; }
.older-reports { border: 1px solid var(--line); border-radius: 12px; color: #40675a; }
.older-reports > summary { cursor: pointer; padding: 13px 18px; font-weight: 650; }
.older-reports .report-years { margin: 0; padding: 0 14px 14px; }

/* Инструкции, реквизиты, история */
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { position: relative; padding: 6px 0 6px 2.6rem !important; }
.steps > li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: 0;
	top: 4px;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: var(--surface-soft);
	color: var(--green);
	font-weight: 800;
	font-size: .875rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.method { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 16px 0; }
.method h4 { margin-top: 0; }
.requisites { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 14px 0; font-size: .9375rem; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; overflow-wrap: anywhere; }
.bank-accounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.bank-accounts > div { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #f7faf8; font-size: .875rem; }
.bank-accounts strong { display: block; margin-bottom: 6px; }
.timeline { list-style: none; padding: 0 !important; margin: 20px 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 24px !important; }
.timeline li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--gold);
}
.timeline strong { display: block; color: var(--green); }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.fact-grid > div { background: var(--surface-soft); border-radius: 12px; padding: 18px; }
.fact-grid strong { display: block; font-size: 1.375rem; color: var(--green); }
.fact-grid span { font-size: .875rem; color: var(--muted); }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.contact-list > div { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.contact-list p { margin: 4px 0; }
.contact-list h4 { margin-top: 0; }

/* Калькулятор */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.calc label { display: block; font-size: .875rem; font-weight: 650; }
.calc select, .calc input {
	display: block;
	width: 100%;
	padding: 12px;
	margin: 6px 0 18px;
	border: 1px solid #b8cbc1;
	border-radius: 7px;
	background: var(--surface);
	color: var(--ink);
	font-weight: 400;
}
.calcresult { background: var(--surface-soft); padding: 25px; border-radius: 12px; align-self: start; }
.calcresult > strong { font-size: 1.875rem; display: block; color: var(--green); }
.calcresult .metric-label { font-size: .875rem; color: #4f6e61; }
.calc-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.calc-mini div { padding: 12px; background: var(--surface); border-radius: 9px; }
.calc-mini span { font-size: .75rem; color: var(--muted); display: block; }
.calc-mini b { font-size: 1rem; }
.panel .calc-warning { color: var(--warning); font-weight: 650; font-size: .875rem; }
.calc-extra { padding: 12px; background: #f3f7f4; border-radius: 9px; margin-bottom: 14px; }
.calc-extra summary { cursor: pointer; font-weight: 600; }

/* Формы */
.gfm-message-form { max-width: 820px; margin-top: 18px; }
.gfm-message-form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 16px; color: #183d33; }
.appeal-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.gfm-message-form input:not([type="checkbox"]), .gfm-message-form textarea {
	display: block;
	width: 100%;
	padding: 13px 14px;
	margin-top: 7px;
	border: 1px solid #becdc5;
	border-radius: 8px;
	background: var(--surface);
	color: #173d34;
	font-weight: 400;
}
.gfm-message-form textarea { resize: vertical; min-height: 140px; }
.gfm-message-form .appeal-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .8125rem; line-height: 1.5; font-weight: 400; }
.appeal-consent input { margin-top: 4px; accent-color: var(--green); flex: 0 0 auto; }
.appeal-feedback { font-size: .875rem; margin-top: 12px; min-height: 1.4em; }
.appeal-feedback.is-error { color: var(--warning); }
.appeal-feedback.is-success { color: var(--link); font-weight: 650; }
.form-quick-access { border: 1px solid #bfd3c7; background: var(--surface-soft); border-radius: 14px; padding: 22px; margin: 20px 0 26px; }
.form-quick-access p { margin: 7px 0 15px; }
.ombud-card { margin-top: 20px; padding: 22px; border-radius: 12px; border: 1px solid var(--line); background: #f1f6f2; }
.ombud-card p { margin: 6px 0; }

/* Диалог бланка */
.restructure-dialog {
	border: 0;
	border-radius: 16px;
	padding: 0;
	width: min(940px, 96vw);
	height: min(90vh, 940px);
	max-width: none;
	max-height: none;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .33);
}
.restructure-dialog::backdrop { background: rgba(6, 38, 31, .78); }
.restructure-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #dbe5dc; background: #fff; }
.restructure-dialog-head strong { color: #183c31; }
.restructure-dialog-head button { border: 1px solid #abbcb0; border-radius: 8px; background: #fff; padding: 9px 12px; }
.restructure-dialog iframe { width: 100%; height: calc(100% - 65px); border: 0; background: #fff; }

/* ---------- Личный кабинет ----------
   Классы Bootstrap 4 (modal, tab-pane, alert, form-control), которые использует скрипт кабинета,
   оформлены здесь — bootstrap.css не подключается. */
.cabinet-page h2 { font-size: 1.5rem; }
.cab-auth { max-width: 520px; margin: 0 auto; }
.cab-auth > h2 { text-align: center; }
.content_auth { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.cab-label { display: block; font-size: .875rem; font-weight: 650; margin-bottom: 6px; }
.form-control {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #becdc5;
	border-radius: 8px;
	background: var(--surface);
	color: var(--ink);
	font-size: 1rem;
}
.form-control:focus { outline: 2px solid #658d7b; outline-offset: 1px; }
.cab-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .875rem; }
.cab-check input { margin-top: 4px; accent-color: var(--green); flex: 0 0 auto; }
.cab-check a { color: var(--link); text-decoration: underline; }
.cab-checks-row { display: flex; gap: 24px; flex-wrap: wrap; }
#iinResult, #smsResult, #result_send_appeal { margin-top: 14px; }
.send_btn { width: 100%; margin-top: 18px; }
#sms_form h3, .cab-center { text-align: center; }
#resendSmsBox { margin: 10px 0 0; font-size: .875rem; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: 10px; border: 1px solid transparent; font-size: .9375rem; margin: 0; }
.alert-danger { background: #fdf0ec; border-color: #f1c7b8; color: #8a2f12; }
.alert-success { background: #edf6f0; border-color: #bfdcca; color: #1d5a3c; }
.cab-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cab-head h2 { margin: 0; }
.exit_btn { border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; background: var(--surface); color: var(--ink); font-weight: 650; }
.exit_btn:hover { border-color: #9fb9ad; }
.cab-person { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.info_zaemchik { background: var(--surface-soft); border-radius: 12px; padding: 18px; }
.info_zaemchik p { margin: 0; font-size: .8125rem; color: var(--muted); }
.info_zaemchik h3 { margin: 4px 0 0; font-size: 1.125rem; overflow-wrap: anywhere; }
.cabinet-page .note { margin: 18px 0 24px; }
.nav-tabs { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 18px; }
.nav-tabs .nav-link { display: block; padding: 11px 16px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: #31564b; }
.nav-tabs .nav-link.active { background: var(--green); color: #fff; border-color: var(--green); }
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }
.fade { transition: opacity .15s linear; }
.fade:not(.show) { opacity: 0; }
.cab-actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.cab-list { list-style: none; margin: 0; padding: 0; }
.cab-list > li { margin-bottom: 12px; }
.notify_el, .appeal_el { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; overflow: hidden; }
.notify_el h4 { margin: 0; }
.notify_text, .appeal_text { color: var(--ink); margin-top: 10px; }
.appeal_text { max-height: 200px; overflow: auto; }
.dog_title_text { color: var(--muted); font-weight: 500; }
.dog_title_status { display: inline-block; padding: 3px 10px; font-size: .75rem; border-radius: 50px; line-height: 20px; }
.appeal_status_reg { background: var(--pill-bg); color: var(--pill-ink); }
.appeal_status_done { background: var(--green); color: #fff; }
.notify_document, .notify_document_mobile, .appeal_document, .appeal_document_mobile {
	background: var(--green);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 7px 12px;
	font-size: .8125rem;
	font-weight: 700;
	margin: 6px 0 10px;
}
.notify_document_mobile, .appeal_document_mobile { display: none; }
.cab-preloader { display: flex; flex-direction: column; align-items: center; padding: 160px 0; }
.cab-preloader img { height: 30px; }
.cab-pdf { width: 100%; overflow: auto; }
.cab-pdf canvas { max-width: 100%; height: auto !important; display: block; margin: 0 auto 10px; }
/* Модальные окна Bootstrap 4 */
.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1050; display: none; overflow-x: hidden; overflow-y: auto; outline: 0; }
.modal-dialog { position: relative; width: auto; max-width: 560px; margin: 1.75rem auto; padding: 0 12px; pointer-events: none; }
.modal-lg { max-width: 900px; }
.modal.fade .modal-dialog { transition: transform .2s ease-out; transform: translateY(-30px); }
.modal.show .modal-dialog { transform: none; }
.modal-content { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; pointer-events: auto; box-shadow: 0 24px 80px rgba(0, 0, 0, .33); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-title { margin: 0; font-size: 1.125rem; }
.modal-body { padding: 20px; }
.modal-body label { display: block; font-weight: 650; font-size: .875rem; margin-bottom: 6px; }
.modal-footer { display: flex; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); }
.modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: #06261f; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: .78; }
.close { background: transparent; border: 0; font-size: 1.6rem; line-height: 1; color: var(--ink); padding: 4px 8px; }
.modal-corner-close { position: absolute; right: 10px; top: 8px; z-index: 2; background: var(--surface); border-radius: 50%; width: 36px; height: 36px; border: 1px solid var(--line); }
.send_btn_appeal { margin-top: 14px; }
@media (max-width: 767px) {
	.notify_document, .appeal_document { display: none; }
	.notify_document_mobile, .appeal_document_mobile { display: inline-block; }
	.cab-person { grid-template-columns: 1fr; }
	.content_auth { padding: 22px; }
}

/* ---------- Подвал ---------- */
.foot { background: var(--foot-bg); color: var(--foot-ink); padding: 40px 0; font-size: .875rem; }
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 28px; }
.foot .foot-title { color: var(--foot-title); font-size: 1.125rem; letter-spacing: 0; margin: 0 0 10px; }
.foot a { text-decoration: underline; text-underline-offset: 2px; }
.foot p { overflow-wrap: anywhere; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { padding: 2px 0; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1339px) {
	.head-inner { flex-wrap: wrap; gap: 12px; }
	.menu { display: block; margin-left: auto; }
	.site-nav { display: none; width: 100%; order: 4; flex-direction: column; align-items: stretch; margin-left: 0; }
	.site-nav.open { display: flex; }
	/* Без JS кнопка «Меню» не работает — показываем меню и переключатели сразу */
	html:not(.js) .menu { display: none; }
	html:not(.js) .site-nav, html:not(.js) .side { display: flex; }
	.site-nav a { text-align: left; }
	.side { margin-left: 0; }
	.hero-inner { grid-template-columns: 1fr; }
	.abstract { display: none; }
	.footgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
	.business-terms, .bank-accounts, .fact-grid, .contact-list { grid-template-columns: 1fr; }
	.appeal-form-grid { grid-template-columns: 1fr; }
	.a11y-actions { margin-left: 0; }
}
@media (max-width: 650px) {
	.grid, .calc, .footgrid, .calc-mini, .product-facts, .approval-details dl { grid-template-columns: 1fr; }
	/* На телефоне в шапке только логотип и «Меню»; язык и доступная версия — в раскрытом меню */
	.side { display: none; width: 100%; order: 5; justify-content: space-between; padding-top: 4px; }
	.header.menu-open .side { display: flex; }
	.cabinet { display: none; }
	.site-nav .nav-cabinet { display: block; background: var(--green); color: #fff; font-weight: 650; margin-top: 6px; }
	.hero { padding: 55px 0; }
	h1 { font-size: 2.25rem; }
	.section { padding: 35px 0; }
	.subhero { padding: 40px 0 26px; }
	.panel { padding: 22px; }
	.doc-item { align-items: flex-start; flex-wrap: wrap; }
	.doc-item .doc-open { flex-basis: 100%; padding-left: 52px; }
	.report-links > a { flex-wrap: wrap; }
	.requisites { grid-template-columns: 1fr; gap: 2px; }
	.requisites dd { margin-bottom: 8px; }
	.tabs button { flex: 1 1 auto; }
}
@media (max-width: 420px) {
	.container, .head-inner { padding-left: 16px; padding-right: 16px; }
	.head-inner { padding-top: 12px; padding-bottom: 12px; }
	.mark { padding: 10px 8px; }
	.brand { gap: 8px; flex: 1 1 0; min-width: 0; }
	.brand strong { max-width: 150px; font-size: .8125rem; }
	.language-switch a { padding: 7px 6px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Режим доступности ---------- */
html[data-a11y="on"] { font-size: 19px; }
html[data-a11y="on"][data-font-size="large"] { font-size: 22px; }
html[data-a11y="on"][data-font-size="xlarge"] { font-size: 26px; }
html[data-a11y="on"] body { line-height: 1.7; }
/* Крупный шрифт + панель настроек: шапка не прилипает, чтобы не занимать экран */
html[data-a11y="on"] .header { position: static; }
html[data-a11y="on"][data-spacing="wide"] body { line-height: 1.95; letter-spacing: .04em; word-spacing: .1em; }
html[data-a11y="on"][data-font-family="serif"] body { font-family: Georgia, "Times New Roman", serif; }
html[data-a11y="on"][data-images="off"] img,
html[data-a11y="on"][data-images="off"] .abstract { display: none !important; }

/* Цветовые схемы: все поверхности одного цвета, рамки — цвета текста, без градиентов */
html[data-a11y="on"] {
	--bg: #fff; --surface: #fff; --surface-soft: #fff; --surface-tint: #fff;
	--ink: #000; --muted: #000; --line: #000; --link: #00337a; --kicker: #000;
	--green: #000; --deep: #000; --gold: #000; --brand: #000; --brand-ink: #fff;
	--nav-ink: #000; --nav-active-bg: #000; --nav-active-ink: #fff;
	--note-bg: #fff; --note-ink: #000; --pill-bg: #fff; --pill-ink: #000; --warning: #8a0000;
	--hero-bg: #fff; --hero-ink: #000; --hero-lead: #000; --hero-eyebrow: #000;
	--foot-bg: #fff; --foot-ink: #000; --foot-title: #000; --focus: #d40000;
}
html[data-a11y="on"][data-theme="black"] {
	--bg: #000; --surface: #000; --surface-soft: #000; --surface-tint: #000;
	--ink: #fff; --muted: #fff; --line: #fff; --link: #ffff66; --kicker: #fff;
	--green: #fff; --deep: #fff; --gold: #fff; --brand: #fff; --brand-ink: #000;
	--nav-ink: #fff; --nav-active-bg: #fff; --nav-active-ink: #000;
	--note-bg: #000; --note-ink: #fff; --pill-bg: #000; --pill-ink: #fff; --warning: #ffb3b3;
	--hero-bg: #000; --hero-ink: #fff; --hero-lead: #fff; --hero-eyebrow: #fff;
	--foot-bg: #000; --foot-ink: #fff; --foot-title: #fff; --focus: #ffff66;
}
html[data-a11y="on"][data-theme="blue"] {
	--bg: #eaf6ff; --surface: #eaf6ff; --surface-soft: #d8ecff; --surface-tint: #d8ecff;
	--ink: #061b3a; --muted: #061b3a; --line: #061b3a; --link: #003f8f; --kicker: #061b3a;
	--green: #061b3a; --deep: #061b3a; --gold: #061b3a; --brand: #061b3a; --brand-ink: #eaf6ff;
	--nav-ink: #061b3a; --nav-active-bg: #061b3a; --nav-active-ink: #eaf6ff;
	--note-bg: #d8ecff; --note-ink: #061b3a; --pill-bg: #d8ecff; --pill-ink: #061b3a; --warning: #8a0000;
	--hero-bg: #d8ecff; --hero-ink: #061b3a; --hero-lead: #061b3a; --hero-eyebrow: #061b3a;
	--foot-bg: #d8ecff; --foot-ink: #061b3a; --foot-title: #061b3a; --focus: #c00000;
}
/* Элементы с фиксированными цветами макета приводим к цветам схемы */
html[data-a11y="on"] .header, html[data-a11y="on"] .panel, html[data-a11y="on"] .card,
html[data-a11y="on"] .banner, html[data-a11y="on"] .subhero, html[data-a11y="on"] .doc-item,
html[data-a11y="on"] .report-header, html[data-a11y="on"] .business-terms > div, html[data-a11y="on"] .product-facts > div,
html[data-a11y="on"] .bank-accounts > div, html[data-a11y="on"] .fact-grid > div, html[data-a11y="on"] .calc-extra,
html[data-a11y="on"] .calc-mini div, html[data-a11y="on"] .ombud-card, html[data-a11y="on"] .form-quick-access,
html[data-a11y="on"] .approval-details dl, html[data-a11y="on"] .language-switch, html[data-a11y="on"] .file-icon,
html[data-a11y="on"] .a11y-panel, html[data-a11y="on"] .tabs button, html[data-a11y="on"] .menu, html[data-a11y="on"] .access-btn,
html[data-a11y="on"] .calc input, html[data-a11y="on"] .calc select, html[data-a11y="on"] .gfm-message-form input, html[data-a11y="on"] .gfm-message-form textarea {
	background: var(--surface) !important;
	color: var(--ink) !important;
	border-color: var(--line) !important;
}
html[data-a11y="on"] .hero, html[data-a11y="on"] .foot { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
html[data-a11y="on"] .panel, html[data-a11y="on"] .card, html[data-a11y="on"] .doc-item, html[data-a11y="on"] .tabs button { border-width: 2px; }
html[data-a11y="on"] .panel p, html[data-a11y="on"] .card p, html[data-a11y="on"] .subhero p, html[data-a11y="on"] .lead,
html[data-a11y="on"] .business-terms span, html[data-a11y="on"] .business-terms strong, html[data-a11y="on"] .product-facts small,
html[data-a11y="on"] .approval-details, html[data-a11y="on"] .approval-details summary, html[data-a11y="on"] .approval-details dt,
html[data-a11y="on"] .approval-details dd, html[data-a11y="on"] .doc-item small, html[data-a11y="on"] .card .ico,
html[data-a11y="on"] .language-switch a, html[data-a11y="on"] .older-reports,
html[data-a11y="on"] .gfm-message-form label, html[data-a11y="on"] .calcresult .metric-label { color: var(--ink) !important; }
html[data-a11y="on"] .btn-gold, html[data-a11y="on"] .cabinet, html[data-a11y="on"] .language-switch a[aria-current="true"],
html[data-a11y="on"] .site-nav .nav-cabinet, html[data-a11y="on"] .access-btn[aria-pressed="true"] {
	background: var(--ink) !important;
	color: var(--surface) !important;
}
html[data-a11y="on"] .btn-outline { border-color: var(--ink); color: var(--ink); }
html[data-a11y="on"] a:not(.btn):not(.cabinet):not(.nav-cabinet):not([aria-current]) { text-decoration: underline; }
html[data-a11y="on"] .mark { background: var(--ink); color: var(--surface); }
/* Декоративный блок главной в режиме доступности не нужен */
html[data-a11y="on"] .abstract { display: none !important; }
html[data-a11y="on"] .hero-inner { grid-template-columns: 1fr; }
/* Шрифт крупнее — меню всегда отдельной строкой под логотипом (на телефоне — по-прежнему за кнопкой «Меню») */
html[data-a11y="on"] .head-inner { flex-wrap: wrap; }
html[data-a11y="on"] .side { margin-left: auto; flex-wrap: wrap; }
html[data-a11y="on"] .site-nav { order: 4; width: 100%; margin-left: 0; flex-wrap: wrap; }
/* Вкладки разворачиваются: весь раздел читается подряд */
html[data-a11y="on"] .tabs { display: none !important; }
html[data-a11y="on"] .panel[data-panel] { display: block !important; min-height: 0; }

/* ---------- Печать ---------- */
@media print {
	.header, .foot, .tabs, .skip-link, .actions, .product-actions { display: none !important; }
	.panel[data-panel] { display: block !important; border: 0; padding: 0; min-height: 0; }
	body { background: #fff; }
}
