/*
 * Вёрстка «Навигатора студента».
 *
 * Портировано из макета Figma Make (src/App.tsx): там было 263 инлайновых
 * объекта стилей и 18 пар onMouseEnter/onMouseLeave. Здесь ховеры — обычный
 * :hover, поэтому они заодно работают с клавиатуры через :focus-visible.
 */

/* ─────────────────────────────────────────────── База */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--fg);
	font-size: 15px;
	line-height: 1.5;
	transition: background-color 0.2s, color 0.2s;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
	outline: 2px solid var(--a2);
	outline-offset: 3px;
	border-radius: 4px;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.mono { font-family: var(--font-mono); }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 10px 16px;
	background: var(--card);
	border: 1px solid var(--border-2);
	font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

.visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ─────────────────────────────────────────────── Общие элементы */

.kicker {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	margin: 0 0 16px;
}

.block-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.block-head h2 {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.6px;
	margin: 0 0 4px;
}

.block-head p {
	font-size: 13px;
	color: var(--muted);
	margin: 0;
	max-width: 540px;
	line-height: 1.6;
}

.section { margin-top: var(--section-gap); }

.btn-ghost {
	font-size: 13px;
	font-weight: 600;
	color: var(--at, var(--at2));
	background: transparent;
	border: 1px solid var(--ad, var(--ad2));
	border-radius: 6px;
	padding: 6px 12px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-sans);
	transition: opacity 0.15s;
}
.btn-ghost:hover { opacity: 0.7; }

.btn-solid {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border: none;
	border-radius: 7px;
	background: var(--a, var(--a2));
	color: #fff;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s;
}
.btn-solid:hover { opacity: 0.85; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--at2);
	text-decoration: none;
	transition: opacity 0.15s;
}
.link-arrow:hover { opacity: 0.7; }

/* ─────────────────────────────────────────────── Шапка */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	/* Запасной вариант для браузеров без color-mix (Chrome до 111,
	   а на старых Android он встречается до сих пор): без него шапка
	   стала бы прозрачной и текст под ней — нечитаемым. */
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border-2);
}

.header-row {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 54px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex-shrink: 0;
}

.brand__name { display: none; }

.brand__title {
	font-size: 11px;
	font-weight: 800;
	color: var(--brand);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.1;
}

.brand__sub {
	font-family: var(--font-mono);
	font-size: 9px;
	font-weight: 600;
	color: var(--muted);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.2;
}

.header-spacer { flex: 1; }

.lang-switch {
	display: flex;
	gap: 1px;
	padding: 2px;
	border-radius: 8px;
	background: var(--surface);
}

.lang-switch a {
	padding: 5px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
	line-height: 20px;
	transition: background-color 0.15s, color 0.15s;
}

.lang-switch a[aria-current='true'] {
	background: var(--border-2);
	color: var(--fg);
}

.icon-btn {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border: 1px solid var(--border-2);
	border-radius: 7px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--fg); }

/* Иконка солнца видна в тёмной теме, луны — в светлой */
.icon-sun { display: none; }
:root[data-theme='dark'] .icon-sun { display: block; }
:root[data-theme='dark'] .icon-moon { display: none; }

.login-btn {
	display: flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--border-2);
	border-radius: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fg);
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color 0.15s, border-color 0.15s;
}
.login-btn:hover { color: var(--a2); border-color: var(--a2); }

.search-form {
	display: flex;
	gap: 8px;
	padding-bottom: 12px;
}

.search-field {
	position: relative;
	flex: 1;
}

.search-field svg {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	pointer-events: none;
}

.search-field input {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 42px;
	border: 1px solid var(--border-2);
	border-radius: 8px;
	background: var(--input);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.1px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field input:focus {
	border-color: var(--a2);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--a2) 20%, transparent);
}

.search-submit {
	height: 46px;
	padding: 0 20px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--a2), var(--a4));
	color: #fff;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
	cursor: pointer;
	transition: opacity 0.15s;
}
.search-submit:hover { opacity: 0.85; }

/* ─────────────────────────────────────────────── Приветствие */

.hero { padding: 36px 0 12px; }

.hero__kicker {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 4px;
}

.hero h1 {
	font-size: clamp(28px, 5vw, 46px);
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1.1;
	margin: 0;
}

/* ─────────────────────────────────────────────── Блог ректора */

.rector { margin-top: 24px; }

.rector__summary {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: var(--ab2);
	border: 1px solid var(--ad2);
	cursor: pointer;
	list-style: none;
	transition: background-color 0.2s;
}
.rector__summary::-webkit-details-marker { display: none; }

.rector__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--brand);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	font-size: 18px;
}
.rector__avatar img { width: 100%; height: 100%; object-fit: cover; }

.rector__label {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--brand);
	margin-bottom: 2px;
}

.rector__name { font-size: 14px; font-weight: 700; }
.rector__post { font-size: 12px; color: var(--muted); }

.rector__body {
	border: 1px solid var(--ad2);
	border-top: none;
	background: var(--card);
	display: grid;
	grid-template-columns: 1fr 260px;
}

.rector__text { padding: 28px; }
.rector__text p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0 0 10px; }
.rector__text p:first-child { font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 12px; }

.rector__sign {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}
.rector__sign-name { font-size: 13px; font-weight: 700; }
.rector__sign-post { font-size: 12px; font-weight: 600; color: var(--brand); }
.rector__sign-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }

.rector__photo {
	position: relative;
	overflow: hidden;
	min-height: 280px;
	background: var(--ab2);
}
.rector__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* ─────────────────────────────────────────────── Сетка разделов */

.sec-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--hair);
	padding-top: 20px;
}

.sec-card {
	position: relative;
	overflow: hidden;
	padding: 22px 22px 20px;
	background: var(--card);
	border: 1px solid var(--border);
	transition: background-color 0.2s, border-color 0.2s;
}
.sec-card:hover { background: var(--ab); border-color: var(--ad); }

.sec-card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: linear-gradient(90deg, var(--a), color-mix(in srgb, var(--a) 33%, transparent));
}

.sec-card__top {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.sec-card__num {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	color: var(--a);
	letter-spacing: 0.04em;
}

.sec-card__title {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.3px;
	line-height: 1.1;
	margin: 0;
}
.sec-card__title a { text-decoration: none; }
.sec-card__title a:hover { color: var(--at); }

.sec-card__desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }

.sec-card__list { list-style: none; margin: 0; padding: 0; }
.sec-card__list li { border-top: 1px solid var(--border); }
.sec-card__list a {
	display: block;
	padding: 7px 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.15s;
}
.sec-card__list a:hover { color: var(--at); }

.sec-card__count {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--faint);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 14px 0 0;
}

/* ─────────────────────────────────────────────── Чек-лист первокурсника */

.checklist { margin-top: 3px; }

.checklist__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 20px 22px;
	background: var(--ab1);
	border: 1px solid var(--ad1);
	background-image: radial-gradient(circle, var(--dots) 1px, transparent 1px);
	background-size: 28px 28px;
	cursor: pointer;
	list-style: none;
}
.checklist__head::-webkit-details-marker { display: none; }

.checklist__badge {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	color: var(--a1);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.checklist__title {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.4px;
	margin: 4px 0 0;
}

.checklist__note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.checklist__count { color: var(--a1); font-weight: 700; }

.checklist__toggle {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border: 1px solid var(--ad1);
	border-radius: 7px;
	background: transparent;
	color: var(--at1);
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.checklist__body {
	border: 1px solid var(--ad1);
	border-top: none;
	background: var(--card);
}

.checklist__progress { height: 3px; background: var(--border); }
.checklist__bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--a1), var(--a5));
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.checklist__list { list-style: none; margin: 0; padding: 0 22px; }
.checklist__list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.checklist__list li:last-child { border-bottom: none; }

.checklist__box {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 2px;
	border: 1.5px solid var(--border-2);
	border-radius: 5px;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background-color 0.15s, border-color 0.15s;
}
.checklist__box svg { opacity: 0; }
.checklist__box[aria-checked='true'] { background: var(--a1); border-color: var(--a1); }
.checklist__box[aria-checked='true'] svg { opacity: 1; animation: check-pop 0.2s ease both; }

@keyframes check-pop {
	0% { transform: scale(0.6); }
	60% { transform: scale(1.15); }
	100% { transform: scale(1); }
}

.checklist__row { flex: 1; min-width: 0; }
.checklist__row-top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: baseline;
}
.checklist__label { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; }
.checklist__box[aria-checked='true'] ~ .checklist__row .checklist__label {
	color: var(--muted);
	text-decoration: line-through;
}
.checklist__due {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	color: var(--a1);
	white-space: nowrap;
	flex-shrink: 0;
}
.checklist__desc { font-size: 13px; color: var(--muted); margin: 3px 0 0; line-height: 1.5; }

/* ─────────────────────────────────────────────── Дедлайны */

.dl-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--hair);
}

.dl-card {
	position: relative;
	overflow: hidden;
	padding: 22px 22px 20px;
	background: var(--card);
	border: 1px solid var(--border);
}

.dl-card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: linear-gradient(90deg, var(--a), color-mix(in srgb, var(--a) 33%, transparent));
}

.dl-card__label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }

.dl-clock { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }

.dl-seg { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dl-seg__digits { display: flex; gap: 2px; }

.dl-seg__digit {
	width: 34px;
	height: 48px;
	border-radius: 6px;
	background: var(--surface);
	border: 1px solid var(--border-2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: var(--seg, var(--a));
	box-shadow: 0 0 12px color-mix(in srgb, var(--seg, var(--a)) 15%, transparent);
}

.dl-seg__label {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.dl-colon {
	font-family: var(--font-mono);
	font-size: 26px;
	font-weight: 700;
	line-height: 48px;
	color: var(--faint);
}

.dl-card__date {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--faint);
	margin-top: 12px;
}

.dl-card--past .dl-clock { opacity: 0.35; }

/* ─────────────────────────────────────────────── Ситуации */

.sit-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--hair);
}

.sit-card {
	position: relative;
	overflow: hidden;
	display: block;
	padding: 18px;
	background: var(--card);
	border: 1px solid var(--border);
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s;
}
.sit-card:hover { background: var(--ab); border-color: var(--ad); }

.sit-card::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: var(--a);
}

.sit-card h3 {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.2px;
	margin: 0 0 5px;
	padding-left: 12px;
}

.sit-card p {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.5;
	margin: 0;
	padding-left: 12px;
}

.sit-card[hidden] { display: none; }

/* ─────────────────────────────────────────────── Таблица контактов */

.table-wrap {
	border: 1px solid var(--border);
	background: var(--card);
	overflow-x: auto;
}

.contact-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
}

.contact-table th {
	text-align: left;
	padding: 10px 14px;
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	white-space: nowrap;
	background: var(--surface);
	border-bottom: 1px solid var(--border-2);
}

.contact-table td {
	padding: 12px 14px;
	font-size: 13px;
	color: var(--muted);
	line-height: 1.4;
	letter-spacing: -0.1px;
	border-bottom: 1px solid var(--border);
}
.contact-table tr:last-child td { border-bottom: none; }
.contact-table tr:hover td { background: var(--surface); }

.contact-table td:first-child { color: var(--fg); font-weight: 600; }
.contact-table td.is-where { color: var(--at2); }
.contact-table td.is-mono { font-family: var(--font-mono); font-size: 12px; }

/* ─────────────────────────────────────────────── Цифровые сервисы */

.ds-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--hair);
}

.ds-card {
	background: var(--card);
	border: 1px solid var(--border);
	overflow: hidden;
	transition: border-color 0.2s;
}
.ds-card[open] { border-color: var(--ad); }

.ds-card__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 18px;
	cursor: pointer;
	list-style: none;
}
.ds-card__head::-webkit-details-marker { display: none; }

.ds-card__icon { font-size: 24px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.ds-card__main { flex: 1; min-width: 0; }
.ds-card__title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.ds-card__name { font-size: 15px; font-weight: 700; }

.ds-card__tag {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--a);
	background: var(--ab);
	padding: 2px 6px;
	border-radius: 4px;
}

.ds-card__desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

.ds-card__steps {
	border-top: 1px solid var(--ad);
	padding: 14px 18px 18px;
	background: var(--ab);
	margin: 0;
}
.ds-card__steps ol { margin: 0; padding-left: 18px; }
.ds-card__steps li { font-size: 13px; font-weight: 600; margin-bottom: 6px; line-height: 1.55; }

/* ─────────────────────────────────────────────── Кампус */

.camp-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--hair);
	margin-top: 12px;
}

.camp-map {
	position: relative;
	min-height: 320px;
	background: var(--card);
	border: 1px solid var(--border);
	overflow: hidden;
}
.camp-map iframe {
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: none;
	display: block;
	filter: var(--map-filter);
}

.camp-map__pin {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 6px 10px;
	border-radius: 6px;
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 90%, transparent);
	border: 1px solid var(--border-2);
	backdrop-filter: blur(8px);
	font-size: 12px;
	font-weight: 600;
}

.camp-side { display: flex; flex-direction: column; gap: var(--hair); }

.camp-panel {
	background: var(--card);
	border: 1px solid var(--border);
	padding: 16px 18px;
}
.camp-panel--grow { flex: 1; }

.camp-panel h3 {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin: 0 0 12px;
}

.camp-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding-bottom: 10px;
}
.camp-row + .camp-row { border-top: 1px solid var(--border); padding-top: 10px; }

.camp-badge {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 800;
	color: var(--a);
	background: color-mix(in srgb, var(--a) 13%, transparent);
	border: 1px solid color-mix(in srgb, var(--a) 31%, transparent);
}

.camp-row__title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.camp-row__desc { font-size: 12px; color: var(--muted); }
.camp-row__freq { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--a6); }

/* ─────────────────────────────────────────────── Секции */

.sp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--hair);
	margin: 12px 0 var(--hair);
}

.sp-card {
	background: var(--card);
	border: 1px solid var(--border);
	padding: 16px 18px;
	transition: background-color 0.2s, border-color 0.2s;
}
.sp-card:hover { background: var(--ab1); border-color: var(--ad1); }

.sp-card__icon { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.sp-card__name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.sp-card__time { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--at1); margin-bottom: 3px; }
.sp-card__meta { font-size: 12px; color: var(--muted); }

.sp-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 18px;
	background: var(--ab1);
	border: 1px solid var(--ad1);
}
.sp-foot p { font-size: 13px; color: var(--muted); margin: 0; }

/* ─────────────────────────────────────────────── Словарь и новости */

.gn-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 48px;
}

.gloss-list { margin: 0; }
.gloss-item {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 0 16px;
	align-items: start;
	padding: 11px 0;
	border-top: 1px solid var(--border);
}
.gloss-item dt { font-size: 13px; font-weight: 700; padding-top: 1px; }
.gloss-item dd { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
.gloss-item[hidden] { display: none; }

.news-list { display: flex; flex-direction: column; gap: var(--hair); }

.news-card {
	display: grid;
	grid-template-columns: 108px 1fr;
	background: var(--card);
	border: 1px solid var(--border);
	text-decoration: none;
	overflow: hidden;
	transition: border-color 0.15s;
}
.news-card:hover { border-color: var(--border-2); }

.news-card__media { position: relative; min-height: 80px; background: var(--surface); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-card__tag {
	position: absolute;
	bottom: 6px;
	left: 6px;
	font-family: var(--font-mono);
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: var(--a2);
	color: #fff;
	padding: 2px 5px;
	border-radius: 3px;
}

.news-card__body { padding: 12px 14px; }
.news-card__date {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin-bottom: 5px;
}
.news-card__title { font-size: 13px; font-weight: 600; line-height: 1.45; }

.news-all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	background: var(--card);
	border: 1px solid var(--border);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--at2);
}
.news-all:hover { border-color: var(--border-2); }

/* ─────────────────────────────────────────────── Анонимное обращение */

.report__head {
	position: relative;
	overflow: hidden;
	padding: 22px 28px 20px;
	background: var(--danger-bg);
	border: 1.5px solid var(--danger-border);
	border-bottom: none;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.report__shield {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 10px;
	background: color-mix(in srgb, var(--danger) 15%, transparent);
	border: 1.5px solid color-mix(in srgb, var(--danger) 40%, transparent);
	color: var(--danger);
	display: flex;
	align-items: center;
	justify-content: center;
}

.report__head h2 {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.3px;
	color: var(--danger);
	margin: 0 0 3px;
}
.report__head p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.report__head strong { color: var(--fg); font-weight: 500; }

.report__body {
	border: 1.5px solid var(--danger-border);
	border-top: 1px solid color-mix(in srgb, var(--danger) 15%, transparent);
	background: var(--card);
	padding: 24px 28px;
}

.report__form { display: grid; gap: 14px; }

.report__label {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin-bottom: 6px;
}

.report__cats { display: flex; gap: 6px; flex-wrap: wrap; }
.report__cat {
	padding: 6px 12px;
	border: 1px solid var(--border-2);
	border-radius: 6px;
	background: transparent;
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
}
.report__cat[aria-pressed='true'] {
	border-color: color-mix(in srgb, var(--danger) 60%, transparent);
	background: color-mix(in srgb, var(--danger) 10%, transparent);
	color: var(--danger);
}

.report__field {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border-2);
	border-radius: 8px;
	background: var(--input);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.6;
	outline: none;
	resize: vertical;
	transition: border-color 0.2s;
}
.report__field:focus { border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
input.report__field { height: 44px; padding: 0 14px; }

.report__submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 4px; }

.report__submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	background: var(--danger);
	color: #fff;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.1px;
	cursor: pointer;
	box-shadow: 0 4px 16px color-mix(in srgb, var(--danger) 30%, transparent);
	transition: box-shadow 0.15s, transform 0.15s;
}
.report__submit:hover { box-shadow: 0 6px 24px color-mix(in srgb, var(--danger) 45%, transparent); }
.report__submit[disabled] { opacity: 0.6; cursor: default; }

.report__note { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

.report__done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px 0;
	text-align: center;
}
.report__done-title { font-size: 16px; font-weight: 700; color: var(--ok); }
.report__done p { font-size: 13px; color: var(--muted); max-width: 400px; margin: 0; }

/* Медовая ловушка для ботов: человек этого поля не видит */
.report__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ─────────────────────────────────────────────── Футер */

.site-footer {
	background: var(--surface);
	border-top: 1px solid var(--border-2);
	padding: 36px 0 28px;
	margin-top: 80px;
}

.ft-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0 36px;
	margin-bottom: 28px;
}

.ft-grid h3 {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	margin: 0 0 12px;
}

.ft-grid p { font-size: 13px; color: var(--muted); margin: 0 0 3px; }
.ft-grid p:first-of-type { color: var(--fg); font-weight: 600; }

.ft-social { display: flex; flex-direction: column; gap: 8px; }
.ft-social a { display: flex; align-items: center; gap: 8px; text-decoration: none; transition: opacity 0.15s; }
.ft-social a:hover { opacity: 0.7; }
.ft-social__name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.ft-social__sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.ft-links a { font-size: 13px; color: var(--at2); text-decoration: none; }
.ft-links a:hover { opacity: 0.6; }
.ft-links span { color: var(--faint); margin: 0 5px; }

.ft-bottom {
	border-top: 1px solid var(--border);
	padding-top: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.ft-bottom p {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--faint);
	margin: 0;
	line-height: 1.6;
	max-width: 640px;
}

.ft-status { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ft-status i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ok);
	box-shadow: 0 0 6px var(--ok);
}
.ft-status span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ─────────────────────────────────────────────── Плавающая кнопка */

.float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.float__list { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.float__list[hidden] { display: none; }

.float__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--card);
	border: 1px solid var(--border-2);
	text-decoration: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: transform 0.15s;
	animation: fade-in 0.22s ease both;
}
.float__item:hover { transform: scale(1.04); }

.float__toggle {
	width: 52px;
	height: 52px;
	border: none;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
	transition: transform 0.2s, box-shadow 0.2s;
}
.float__toggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55); }
.float__toggle .icon-close { display: none; }
.float__toggle[aria-expanded='true'] .icon-close { display: block; }
.float__toggle[aria-expanded='true'] .icon-wa { display: none; }

@keyframes fade-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────── Внутренняя страница */

.crumbs {
	font-size: 12px;
	color: var(--muted);
	padding: 24px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.crumbs a { color: var(--at2); text-decoration: none; }
.crumbs a:hover { opacity: 0.7; }

.guide { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 16px 0 40px; }

.guide__title {
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 800;
	letter-spacing: -0.8px;
	line-height: 1.15;
	margin: 8px 0 12px;
}

.guide__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin-bottom: 24px;
}
.guide__meta i { width: 24px; height: 2px; background: var(--a); display: block; }
.guide__meta .is-overdue { color: var(--danger); }

.guide__short {
	background: var(--ab);
	border-left: 3px solid var(--a);
	padding: 16px 20px;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 32px;
}

.guide h2 {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.4px;
	margin: 32px 0 4px;
}

.guide__hint { font-size: 12px; color: var(--muted); margin: 0 0 16px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
	counter-increment: step;
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.steps li::before {
	content: counter(step);
	font-family: var(--font-mono);
	font-size: 18px;
	font-weight: 700;
	color: var(--a);
	line-height: 1.3;
}
.steps__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.steps__text { font-size: 13px; color: var(--muted); line-height: 1.6; }

.important { list-style: none; margin: 0; padding: 0; }
.important li {
	position: relative;
	padding: 0 0 12px 18px;
	font-size: 13px;
	color: var(--muted);
	line-height: 1.6;
}
.important li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 7px;
	width: 6px;
	height: 6px;
	background: var(--a);
	border-radius: 1px;
}

.guide__source {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	font-size: 12px;
	color: var(--muted);
}
.guide__source a { color: var(--at2); }

/* Боковая колонка */

.aside__block { margin-bottom: 28px; }

.aside__title {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border-2);
	margin: 0 0 12px;
}

.person__name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.person__post { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.person__row { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.person__row a { color: var(--at2); }
.person + .person { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

.duration__row { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.duration__value { font-family: var(--font-mono); font-weight: 700; color: var(--fg); }

.related { list-style: none; margin: 0; padding: 0; }
.related li { margin-bottom: 8px; }
.related a { font-size: 13px; color: var(--at2); text-decoration: underline; text-underline-offset: 3px; }

/* Полоса обратной связи */

.feedback {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 2px solid var(--fg);
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.feedback__q { font-size: 14px; font-weight: 600; }
.feedback__btn {
	padding: 8px 16px;
	border: 1px solid var(--border-2);
	border-radius: 6px;
	background: transparent;
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}
.feedback__btn:hover { border-color: var(--a2); color: var(--at2); }
.feedback__thanks { font-size: 13px; color: var(--ok); font-weight: 600; }
.feedback__comment { display: grid; gap: 8px; width: 100%; max-width: 520px; margin-top: 8px; }

/* ─────────────────────────────────────────────── Поиск и списки */

.search-summary { font-size: 13px; color: var(--muted); margin: 0 0 20px; }

.result {
	display: block;
	padding: 16px 18px;
	background: var(--card);
	border: 1px solid var(--border);
	text-decoration: none;
	margin-bottom: var(--hair);
	transition: border-color 0.15s, background-color 0.15s;
}
.result:hover { background: var(--ab2); border-color: var(--ad2); }
.result__type {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}
.result__title { font-size: 16px; font-weight: 700; margin: 4px 0; }
.result__excerpt { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

.empty {
	padding: 32px;
	background: var(--card);
	border: 1px solid var(--border);
	text-align: center;
}
.empty p { color: var(--muted); font-size: 14px; }

/* ─────────────────────────────────────────────── Адаптив */

@media (min-width: 680px) {
	.brand__name { display: block; }
}

@media (max-width: 1060px) {
	.sec-grid,
	.sit-grid,
	.sp-grid { grid-template-columns: repeat(2, 1fr); }
	.guide { grid-template-columns: 1fr 260px; gap: 32px; }
}

@media (max-width: 860px) {
	.sec-grid,
	.dl-grid,
	.ds-grid,
	.camp-grid { grid-template-columns: 1fr; }
	.gn-grid { grid-template-columns: 1fr; gap: 36px; }
	.ft-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
	.guide { grid-template-columns: 1fr; gap: 32px; }
	.rector__body { grid-template-columns: 1fr; }
	.rector__photo { min-height: 200px; order: -1; }
}

@media (max-width: 560px) {
	.sit-grid,
	.sp-grid,
	.ft-grid { grid-template-columns: 1fr; }
	.gloss-item { grid-template-columns: 1fr; gap: 4px; }
	.news-card { grid-template-columns: 84px 1fr; }
	.report__head,
	.report__body { padding-left: 18px; padding-right: 18px; }
	.float { right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
	.login-btn { display: none; }
	.hero { padding-top: 24px; }
	.dl-seg__digit { width: 30px; height: 42px; font-size: 22px; }
}

/* ─────────────────────────────────────────────── Печать */

@media print {
	.site-header, .site-footer, .float, .feedback, .search-form { display: none; }
	.guide { grid-template-columns: 1fr; }
	body { background: #fff; color: #000; }
}
