/* ============================================================
   АГМК — стили страниц: главная, вход/регистрация, панель управления
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-image: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.hero__badge {
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(1.85rem, 1.15rem + 2.3vw, 2.9rem);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero__title span {
  color: var(--brand-600);
}

.hero__lead {
  max-width: 52ch;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block: 1.6rem 1.9rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.hero__fact strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-700);
  line-height: 1.1;
}

.hero__fact span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Иллюстрация */
.hero__art {
  position: relative;
}

.art-card {
  position: relative;
  padding: clamp(0.9rem, 2.4vw, 1.6rem);
  border-radius: var(--radius-xl);
  background: var(--gradient-brand);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.art-card::before,
.art-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.art-card::before {
  width: 62%;
  aspect-ratio: 1;
  right: -22%;
  top: -28%;
}

.art-card::after {
  width: 44%;
  aspect-ratio: 1;
  left: -16%;
  bottom: -22%;
  background: rgba(255, 255, 255, 0.1);
}

.art-card svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.art-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.art-chip svg {
  width: 16px;
  height: 16px;
  color: var(--brand-600);
  flex: 0 0 auto;
}

.art-chip--1 {
  left: -1.25rem;
  bottom: 12%;
}

.art-chip--2 {
  right: -1rem;
  top: 9%;
}

/* ---------- Быстрые ссылки ---------- */
.quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
}

.quick__card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.quick__card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.quick__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--brand-600);
}

.quick__icon svg {
  width: 20px;
  height: 20px;
}

.quick__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.quick__text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- О колледже ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about__text p + p {
  margin-top: 0.85rem;
}

.about__text p {
  color: var(--text-muted);
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.stat {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat strong {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-700);
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Специальности ---------- */
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.spec:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.spec__code {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-600);
}

.spec__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.spec__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ---------- Новости ---------- */
.news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.post:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.post__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--gradient-brand);
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.post__media svg {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

.post__date {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.92);
  color: #0b3b36;
  font-size: 0.72rem;
  font-weight: 700;
}

.post__body {
  display: grid;
  gap: 0.5rem;
  padding: 1.05rem;
}

.post__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.post__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post__more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-600);
}

/* ---------- Баннер приёмной кампании ---------- */
.admission {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--gradient-brand);
  color: #fff;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 1.5rem;
  align-items: center;
}

.admission::after {
  content: '';
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  right: -8%;
  bottom: -55%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.admission h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  margin-bottom: 0.6rem;
}

.admission p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  font-size: 0.95rem;
}

.admission__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
}

.admission .btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admission .btn--outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}

.admission .btn--primary {
  background: #fff;
  color: #0b3b36;
  box-shadow: none;
}

/* ---------- Партнёры ---------- */
.partners {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.partner {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-align: center;
}

/* ============================================================
   Авторизация / регистрация / восстановление пароля
   ============================================================ */
.auth-form {
  display: grid;
  gap: 0.75rem;
}

/* Между соседними полями — на 4 px больше базового отступа */
.auth-form .field + .field {
  margin-top: 4px;
}

.auth-form__hint {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-dim);
}

/* ============================================================
   Экран входа: центрированный блок с вкладками
   ============================================================ */
.auth-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(0.75rem, 4vw, 2rem);
  overflow: hidden;
  background: var(--bg);
}

/* Фон экрана входа: медленно вращающаяся «аврора» + дрейфующая сетка из точек */
.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.auth-page::before {
  z-index: 0;
  inset: -45% -25%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(23, 182, 168, 0.34),
    rgba(92, 225, 210, 0.05) 22%,
    rgba(23, 182, 168, 0.3) 46%,
    rgba(16, 160, 148, 0) 66%,
    rgba(58, 201, 186, 0.32) 88%,
    rgba(23, 182, 168, 0.34)
  );
  filter: blur(70px);
  animation: auth-aurora 38s linear infinite;
  will-change: transform;
}

.auth-page::after {
  z-index: 0;
  inset: 0;
  background-image: radial-gradient(rgba(16, 160, 148, 0.26) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0.9), transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0.9), transparent 70%);
  animation: auth-grid-drift 26s ease-in-out infinite;
}

[data-theme='dark'] .auth-page::before {
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(111, 179, 170, 0.2),
    rgba(134, 198, 189, 0.04) 22%,
    rgba(111, 179, 170, 0.17) 46%,
    rgba(82, 133, 127, 0) 66%,
    rgba(99, 154, 146, 0.18) 88%,
    rgba(111, 179, 170, 0.2)
  );
}

[data-theme='dark'] .auth-page::after {
  background-image: radial-gradient(rgba(134, 198, 189, 0.13) 1px, transparent 1px);
}

@keyframes auth-aurora {
  to {
    transform: rotate(360deg) scale(1.06);
  }
}

@keyframes auth-grid-drift {
  50% {
    background-position: 26px 18px;
  }
}

/* Панель оформления на экране входа: тема, ширина, версия для слабовидящих */
.auth-toolbar {
  position: fixed;
  top: clamp(0.75rem, 2.4vw, 1.35rem);
  right: clamp(0.75rem, 2.4vw, 1.35rem);
  z-index: 6;
  display: flex;
  gap: 0.4rem;
}

.auth-toolbar .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
}

.auth-toolbar .settings {
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
}

@media (max-width: 560px) {
  .page--auth .auth-page {
    padding-top: 4.3rem;
  }

  .auth-toolbar .icon-btn {
    width: 34px;
    height: 34px;
  }

  .auth-toolbar .icon-btn svg {
    width: 17px;
    height: 17px;
  }
}

.auth-box {
  --auth-pad: clamp(1.1rem, 3vw, 1.4rem);
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: var(--auth-pad) var(--auth-pad) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  font-size: 0.9rem;
}

.auth-box__brand {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 0.7rem;
  border-radius: var(--radius);
  background: var(--gradient-brand);
  color: #fff;
  isolation: isolate;
}

.auth-box__brand::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 28% 12%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 56%);
  pointer-events: none;
}

.auth-box__brand-ring {
  position: absolute;
  inset: -5px;
  border: 1px solid var(--brand-300);
  border-radius: 30%;
  opacity: 0;
  animation: brand-ring 3.4s var(--ease) infinite;
  pointer-events: none;
}

@keyframes brand-ring {
  0% {
    opacity: 0.7;
    transform: scale(0.96);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

.auth-box__brand svg {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
}

.auth-box__brand .logo-roof {
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
  animation: logo-draw 6s var(--ease) infinite;
}

@keyframes logo-draw {
  0% {
    stroke-dashoffset: 64;
  }
  26%,
  80% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 64;
  }
}

.auth-box__brand .logo-bars path {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: logo-bar 6s var(--ease) infinite;
}

.auth-box__brand .logo-bars path:nth-child(2) {
  animation-delay: 0.18s;
}

.auth-box__brand .logo-bars path:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes logo-bar {
  0% {
    opacity: 0;
    transform: scaleY(0.15);
  }
  24% {
    opacity: 1;
    transform: scaleY(1);
  }
  80% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 0;
    transform: scaleY(0.15);
  }
}

.auth-box__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  margin: 0 calc(var(--auth-pad) * -1) var(--auth-pad);
  padding: 0 var(--auth-pad) var(--auth-pad);
  border-bottom: 1px solid var(--border);
}

.auth-box__head .auth-box__brand {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: var(--radius-sm);
}

.auth-box__head .auth-box__brand svg {
  width: 20px;
  height: 20px;
}

.auth-box__titles {
  display: grid;
  gap: 0.26rem;
  min-width: 0;
}

.auth-box__eyebrow {
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.auth-box__head h1 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
}

.auth-box > .alert {
  margin-bottom: 0.85rem;
}

.auth-box > .alert:focus,
.auth-box > .alert:focus-visible {
  outline: none;
}

.auth-box__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: var(--auth-pad) calc(var(--auth-pad) * -1) 0;
  padding: 0.9rem var(--auth-pad);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-dim);
}

.auth-box__foot a {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}

.auth-box__foot a:hover {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Размытие строки поддержки при смене вкладки */
.auth-box__foot.is-switching {
  animation: auth-foot-in 0.55s var(--ease);
}

@keyframes auth-foot-in {
  from {
    opacity: 0.25;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Вкладки */
.tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.2rem;
  padding: 0.25rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.tabs__btn {
  display: grid;
  place-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.25rem;
  border-radius: var(--radius-xs);
  font-size: clamp(0.72rem, 0.66rem + 0.25vw, 0.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    box-shadow 0.4s var(--ease), font-weight 0.4s var(--ease);
}

.tabs__btn:hover {
  color: var(--text);
  background: var(--surface);
}

[data-theme='dark'] .tabs__btn:hover {
  background: var(--surface-3);
}

.tabs__btn[aria-selected='true'] {
  background: var(--surface);
  color: var(--brand-700);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 42, 48, 0.14);
}

.tabs__btn[aria-selected='true']:hover {
  background: var(--surface);
}

/* Панели: высота по содержимому, появление — с плавным подъёмом */
.auth-panel {
  display: none;
  gap: 0.75rem;
}

[data-auth-tabs][data-active-tab='login'] [data-auth-panel='login'],
[data-auth-tabs][data-active-tab='register'] [data-auth-panel='register'],
[data-auth-tabs][data-active-tab='recover'] [data-auth-panel='recover'] {
  display: grid;
  align-content: start;
  animation: auth-panel-in 0.55s var(--ease);
}

@keyframes auth-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.auth-panel:focus-visible {
  outline: none;
}

/* Компактная типографика и прямые углы на экране входа */
.page--auth .field {
  position: relative;
  gap: 0;
}

.page--auth .field__label {
  position: absolute;
  z-index: 2;
  top: 1.48rem;
  left: 2.15rem;
  max-width: calc(100% - 3rem);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  background: transparent;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 0.22s var(--ease), left 0.22s var(--ease),
    font-size 0.22s var(--ease), color 0.22s var(--ease),
    background-color 0.22s var(--ease);
  white-space: nowrap;
}

/* Активное поле — подпись «садится» на верхнюю границу и уходит левее */
.page--auth .field:focus-within .field__label,
.page--auth .field.is-filled .field__label {
  top: 0;
  left: 0.85rem;
  max-width: calc(100% - 3.1rem);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-700);
  background: var(--surface);
}

.page--auth .field:has(.field__toggle):focus-within .field__label,
.page--auth .field:has(.field__toggle).is-filled .field__label {
  max-width: calc(100% - 5.4rem);
}

.page--auth .field.is-invalid .field__label {
  color: #a3322a;
}

[data-theme='dark'] .page--auth .field.is-invalid .field__label {
  color: #ffb3ad;
}

.page--auth .input {
  height: 2.95rem;
  padding: 0 0.95rem 0 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.86rem;
  transition: border-color 0.24s var(--ease), background-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.page--auth .field__control:has(.field__toggle) .input {
  padding-right: 3rem;
}

.page--auth .input::placeholder {
  color: transparent;
  transition: color 0.18s var(--ease);
}

.page--auth .field:focus-within .input::placeholder,
.page--auth .field.is-filled .input::placeholder {
  color: var(--text-dim);
}

.page--auth .input:hover {
  border-color: var(--border-strong);
}

.page--auth .input:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(23, 182, 168, 0.16);
}

/* Индикатор корректного значения */
.page--auth .field.is-valid .field__control::after {
  content: '';
  position: absolute;
  right: 0.8rem;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310a094' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  animation: field-pop 0.22s var(--ease);
}

.page--auth .field.is-valid .field__control:has(.field__toggle)::after {
  right: 2.9rem;
}

@keyframes field-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
}

.page--auth .field.is-invalid .field__control > svg {
  color: #d34a40;
}

[data-theme='dark'] .page--auth .field.is-invalid .field__control > svg {
  color: #ff9188;
}

.page--auth .field__control .input {
  padding-left: 2.5rem;
}

.page--auth .field__control > svg {
  left: 0.95rem;
  width: 17px;
  height: 17px;
  opacity: 0.75;
  transition: color 0.24s var(--ease), opacity 0.24s var(--ease);
}

.page--auth .field.is-filled .field__control > svg {
  opacity: 0.9;
}

.page--auth .field:focus-within .field__control > svg {
  color: var(--brand-600);
  opacity: 1;
}

/* Тоньше обводка иконок — без «жирного» вида */
.page--auth .field__control > svg * {
  stroke-width: 1.6;
}

.page--auth .field__toggle svg * {
  stroke-width: 1.7;
}

.page--auth .field__toggle {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.page--auth .field__toggle:hover {
  background: rgba(23, 182, 168, 0.1);
  color: var(--brand-700);
}

.page--auth .field__toggle[aria-pressed='true'] {
  background: var(--accent-soft);
  color: var(--brand-700);
}

.page--auth .field__toggle svg {
  width: 16px;
  height: 16px;
}

/* Построчные подсказки скрыты — все ошибки выводятся общей сводкой */
.page--auth .field .field__error {
  display: none;
}

/* Блок уведомлений: пока свёрнут — не занимает места вообще */
.auth-errors {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: -0.75rem;
  opacity: 0;
  transition: grid-template-rows 0.55s var(--ease), margin-top 0.55s var(--ease),
    opacity 0.4s var(--ease);
}

.auth-errors.is-open {
  grid-template-rows: 1fr;
  margin-top: 0;
  opacity: 1;
}

.auth-errors__inner {
  min-height: 0;
  overflow: hidden;
}

.auth-errors ul {
  display: grid;
  gap: 0.08rem;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border: 1px solid #f2d1cc;
  border-radius: var(--radius-xs);
  background: #fff4f3;
  color: #98342b;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.28;
  list-style: none;
  box-shadow: 0 12px 26px -20px rgba(152, 52, 43, 0.85);
}

.auth-errors li {
  display: grid;
  grid-template-columns: 0.6rem 1fr;
  gap: 0.45rem;
  align-items: start;
}

.auth-errors__mark {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
}

[data-theme='dark'] .auth-errors ul {
  border-color: #5c2a25;
  background: #2a1715;
  color: #ffb3ad;
}

/* Поле с ошибкой: только цвет, без дрожания */
.page--auth .field.is-invalid .field__control,
.page--auth .field.is-invalid .field__control:focus-within {
  animation: none;
  transform: none;
}

/* Автозаполнение браузера не меняет вид полей */
.page--auth .input:-webkit-autofill,
.page--auth .input:-webkit-autofill:hover,
.page--auth .input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-out 0s;
  animation: autofill-detect 0.01s;
}

@keyframes autofill-detect {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

.page--auth .btn {
  padding: 0.68rem 1.1rem;
  border-radius: var(--radius-xs);
  font-size: 0.86rem;
  font-weight: 500;
}

.page--auth .btn--lg {
  padding: 0.72rem 1.2rem;
  font-size: 0.86rem;
}

.page--auth .btn--primary {
  background: var(--brand-600);
  color: #fff;
  font-weight: 500;
  box-shadow: none;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease),
    transform 0.28s var(--ease);
}

.page--auth .btn--primary:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
  filter: none;
}

.page--auth .btn--soft {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--brand-700);
}

.page--auth .btn--soft:hover {
  background: var(--brand-100);
  color: var(--brand-700);
}

/* Кнопки-переходы (вход, восстановление, регистрация) */
.auth-form__actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.auth-form__actions--single {
  grid-auto-flow: row;
}

.page--auth .check {
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.page--auth .check--block {
  width: 100%;
  align-items: center;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.page--auth .check--block input[type='checkbox'] {
  margin-top: 0;
}

.page--auth .check--block:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.page--auth .check--block:has(input[type='checkbox']:focus-visible) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 182, 168, 0.16);
}

.page--auth .field.is-invalid .check--block {
  border-color: #d34a40;
  background: var(--surface);
}

.page--auth .check a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.page--auth .check input[type='checkbox'] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease),
    transform 0.12s var(--ease);
}

.page--auth .check:hover input[type='checkbox'] {
  border-color: var(--brand-300);
}

.page--auth .check input[type='checkbox']:active {
  transform: scale(0.9);
}

.page--auth .check input[type='checkbox']:checked {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

.page--auth .check input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
  animation: field-pop 0.18s var(--ease);
}

.page--auth .check input[type='checkbox']:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 2px;
}

.page--auth .alert {
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.page--auth .alert svg {
  width: 16px;
  height: 16px;
}

.page--auth .auth-form__hint {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.page--auth .alert {
  font-weight: 400;
}

/* Уведомления — вне потока, поэтому форма не смещается */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  z-index: 80;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  width: min(440px, calc(100vw - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  margin: 0;
  padding: 0.6rem 0.9rem;
  border: 1px solid #f0c6c1;
  border-radius: var(--radius-sm);
  background: #fff5f4;
  color: #96322a;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 16px 40px -26px rgba(16, 42, 48, 0.55);
  animation: toast-in 0.32s var(--ease);
}

.toast--info {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

[data-theme='dark'] .toast {
  border-color: #5c2a25;
  background: #2a1715;
  color: #ffb3ad;
}

[data-theme='dark'] .toast--info {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Ошибка важнее фокуса */
.page--auth .field.is-invalid .input,
.page--auth .field.is-invalid .input:focus {
  border-color: #d34a40;
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(211, 74, 64, 0.16);
}

.page--auth .field.is-invalid .field__control > svg,
.page--auth .field.is-invalid .field__control > svg:hover {
  color: #d34a40;
  transform: none;
}

[data-theme='dark'] .page--auth .field.is-invalid .field__control > svg {
  color: #ff9188;
}

@media (max-width: 430px) {
  .auth-form__actions {
    grid-auto-flow: row;
  }
}

@media (max-width: 400px) {
  .auth-box {
    --auth-pad: 0.95rem;
  }

  .tabs {
    gap: 0.12rem;
    padding: 0.18rem;
  }

  .tabs__btn {
    padding: 0.4rem 0.1rem;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page::before,
  .auth-page::after,
  .auth-box__brand-ring,
  .auth-box__brand .logo-bars path,
  .auth-box__foot,
  .auth-panel,
  .page--auth .field.is-invalid .field__control {
    animation: none;
  }

  .auth-box__brand .logo-roof {
    animation: none;
    stroke-dashoffset: 0;
  }

  .auth-box {
    transition: none;
  }
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.strength {
  display: grid;
  gap: 0.3rem;
  margin-top: -0.2rem;
}

.strength__bar {
  display: flex;
  gap: 4px;
}

.strength__bar span {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border-strong);
  transition: background-color 0.2s var(--ease);
}

.strength__text {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.strength[data-level='1'] .strength__bar span:nth-child(1) {
  background: #d34a40;
}

.strength[data-level='2'] .strength__bar span:nth-child(-n + 2) {
  background: #d99a1f;
}

.strength[data-level='3'] .strength__bar span {
  background: #2fa36b;
}

/* ============================================================
   Панель управления
   ============================================================ */
.dash {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.75rem);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.dash__side {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 0.9rem;
}

.side-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.side-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.side-user strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.25;
}

.side-user span {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.side-nav {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-muted);
}

.side-nav svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.side-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.side-nav a[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--brand-700);
}

.side-note {
  padding: 0.9rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--brand-300);
  font-size: 0.78rem;
  color: var(--brand-700);
}

.dash__main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.dash__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash__head h1 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  margin-bottom: 0.25rem;
}

.dash__head p {
  font-size: 0.87rem;
  color: var(--text-muted);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.kpi {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.kpi__label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.kpi__value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-block: 0.15rem 0.1rem;
}

.kpi__trend {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-600);
}

.kpi__trend--down {
  color: #d34a40;
}

.panel {
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  min-width: 0;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.panel__title {
  font-size: 1rem;
  font-weight: 800;
}

.panel__hint {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.dash__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.chart {
  width: 100%;
}

.chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.schedule {
  font-size: 0.85rem;
}

.schedule th {
  padding: 0 0.5rem 0.5rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.schedule td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.schedule tr:last-child td {
  border-bottom: 0;
}

.schedule__subject {
  font-weight: 700;
  white-space: nowrap;
}

.schedule__muted {
  color: var(--text-muted);
}

.table-wrap {
  overflow-x: auto;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
}

.feed {
  display: grid;
  gap: 0.75rem;
}

.feed__item {
  display: flex;
  gap: 0.7rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.feed__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.feed__dot {
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
}

.feed__title {
  font-size: 0.87rem;
  font-weight: 700;
  line-height: 1.35;
}

.feed__meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.actions-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.action-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

.action-tile svg {
  width: 20px;
  height: 20px;
  color: var(--brand-600);
}

.action-tile:hover {
  border-color: var(--brand-300);
  background: var(--accent-soft);
  color: var(--brand-700);
}

/* ---------- Адаптив страниц ---------- */
@media (max-width: 1060px) {
  .quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specs,
  .news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash__grid {
    grid-template-columns: 1fr;
  }

  .partners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__art {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .art-chip--1 {
    left: 0.5rem;
  }

  .art-chip--2 {
    right: 0.5rem;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .admission {
    grid-template-columns: 1fr;
  }

  .auth {
    grid-template-columns: 1fr;
  }

  .auth__aside {
    display: none;
  }

  .dash {
    grid-template-columns: 1fr;
  }

  .dash__side {
    position: static;
  }

  .side-nav {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    scrollbar-width: thin;
  }

  .side-nav a {
    white-space: nowrap;
  }

  .side-card--nav {
    padding: 0.9rem;
  }
}

@media (max-width: 640px) {
  .quick,
  .specs,
  .news,
  .kpis,
  .actions-row {
    grid-template-columns: 1fr;
  }

  .partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__facts {
    gap: 1.1rem 1.5rem;
  }

  .art-chip {
    display: none;
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Верхнее меню с подменю «Сведения об образовательной организации»
   ============================================================ */
.nav__item--sub {
  position: relative;
}

.nav__link--parent {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav__chevron {
  flex: none;
  transition: transform 0.25s var(--ease);
}

.nav__item--sub.is-open .nav__chevron {
  transform: rotate(180deg);
}

.nav__sub {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.55rem);
  left: 0;
  width: min(24rem, 78vw);
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-0.4rem);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav__sub[hidden] {
  display: none;
}

.nav__item--sub.is-open .nav__sub {
  opacity: 1;
  transform: none;
}

.nav__sublink {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
  text-decoration: none;
}

.nav__sublink:hover,
.nav__sublink:focus-visible {
  background: var(--surface-2);
  color: var(--text);
}

/* ============================================================
   Страницы «Сведения об образовательной организации»
   ============================================================ */
.sveden {
  padding: clamp(0.7rem, 1.4vw, 1.2rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
  margin-bottom: 1.4rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.breadcrumbs__link {
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.breadcrumbs__link:hover,
.breadcrumbs__link:focus-visible {
  background: var(--brand-50);
  color: var(--brand-700);
  text-decoration: none;
}

.breadcrumbs__sep {
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  color: var(--border-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}

.breadcrumbs__current {
  min-width: 0;
  max-width: 100%;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sveden__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.25;
}

.sveden__lead {
  margin: 0 0 1.6rem;
  max-width: 62ch;
  color: var(--text-muted);
  line-height: 1.6;
}

.sveden__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sveden__grid .sveden__link,
.sveden__list .sveden__link {
  display: block;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.sveden__grid .sveden__link:hover,
.sveden__list .sveden__link:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.sveden__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}

.sveden__content {
  order: 1;
  min-width: 0;
}

.sveden__aside {
  order: 2;
  position: sticky;
  top: 1.25rem;
  min-width: 0;
}

@media (max-width: 860px) {
  .sveden__aside {
    order: -1;
    position: static;
  }
}

/* меню подразделов */
.sveden-nav {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.sveden-nav__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.sveden-nav__head > span:not([class]) {
  min-width: 0;
  line-height: 1.25;
}

/* поиск по меню */
.sveden-nav__search {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.sveden-nav__search-icon {
  position: absolute;
  left: 1.25rem;
  width: 15px;
  height: 15px;
  color: var(--text-dim);
  pointer-events: none;
}

.sveden-nav__input {
  width: 100%;
  padding: 0.5rem 0.65rem 0.5rem 2.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.4;
  appearance: none;
}

.sveden-nav__input::placeholder {
  color: var(--text-dim);
}

.sveden-nav__input:focus-visible {
  border-color: var(--brand-300);
  outline: 2px solid var(--brand-300);
  outline-offset: 1px;
}

.sveden-nav__empty {
  margin: 0;
  padding: 1rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}

.sveden-nav__empty[hidden] {
  display: none;
}

.sveden-nav__head::-webkit-details-marker {
  display: none;
}

.sveden-nav__head::marker {
  content: '';
}

.sveden-nav__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: var(--radius-xs);
  background: var(--brand-50);
  color: var(--brand-700);
}

.sveden-nav__icon svg {
  width: 15px;
  height: 15px;
}

.sveden-nav__chev {
  width: 18px;
  height: 18px;
  margin-left: auto;
  transition: transform 0.22s var(--ease);
}

.sveden-nav[open] > .sveden-nav__head .sveden-nav__chev {
  transform: rotate(180deg);
}

.sveden__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sveden__list li + li {
  border-top: 1px solid var(--border);
}

.sveden__list .sveden__link {
  display: block;
  padding: 0.95rem 1rem;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.4;
}

.sveden__list .sveden__link:hover {
  border-left-color: var(--brand-300);
  background: var(--surface-2);
  color: var(--text);
}

.sveden__list .sveden__link.is-current {
  border-left-color: var(--brand);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.sveden__content {
  min-width: 0;
}

.sveden__placeholder {
  padding: 1.1rem 1.2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.sveden__placeholder p {
  margin: 0;
}

/* ---------- Таблицы подразделов «Сведения» ---------- */
.sveden__subtitle {
  margin: 1.6rem 0 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

/* ---------- Подраздел «Сведений» ---------- */
.sveden-sheet {
  --sheet-pad: clamp(1rem, 2vw, 1.5rem);
  padding: var(--sheet-pad);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(8, 20, 24, 0.05),
    0 20px 44px -34px rgba(8, 20, 24, 0.55);
  overflow: hidden;
}

.sveden-sheet__cover {
  position: relative;
  height: clamp(170px, 22vw, 240px);
  margin: calc(var(--sheet-pad) * -1) calc(var(--sheet-pad) * -1) 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background-color: var(--brand-600);
  background-image: url('/assets/img/section-cover.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.sveden-sheet__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 34, 36, 0) 55%, rgba(4, 34, 36, 0.22) 100%);
}

.sveden-sheet .sveden__title {
  margin: 1.2rem 0 0.6rem;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sveden-sheet__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.sveden-sheet__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9e63;
  box-shadow: 0 0 0 3px rgba(47, 158, 99, 0.16);
}

.sveden-sheet__lead {
  margin: 0 calc(var(--sheet-pad) * -1) 1.7rem;
  padding: 0 var(--sheet-pad) 1.35rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* параметры — одна карточка с полноширинными разделителями */
.sveden-rows {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.sveden-row {
  display: grid;
  grid-template-columns: minmax(9rem, 32%) minmax(0, 1fr);
  gap: 0.3rem 1.1rem;
  padding: 0.8rem 1.1rem;
}

.sveden-row + .sveden-row {
  border-top: 1px solid var(--border);
}

.sveden-row--wide {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
}

.sveden-row__label {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.sveden-row__value {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .sveden-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
}

.sveden-row__value a,
.sveden-dl__value a {
  color: var(--brand-700);
  text-decoration: underline;
}

/* повторяющиеся блоки */
.sveden-block {
  margin-top: 1.7rem;
}

.sveden-block__title {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.35;
}

.sveden-entry {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.sveden-entry + .sveden-entry {
  margin-top: 0.8rem;
}

.sveden-entry__tag {
  display: inline-block;
  margin: 0.85rem 1.1rem 0;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.72rem;
  font-weight: 700;
}

.sveden-entry__title {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.sveden-dl {
  display: grid;
  margin: 0;
}

.sveden-dl__row {
  display: grid;
  grid-template-columns: minmax(8rem, 34%) minmax(0, 1fr);
  gap: 0.25rem 1.1rem;
  padding: 0.65rem 1.1rem;
}

.sveden-dl__row + .sveden-dl__row {
  border-top: 1px solid var(--border);
}

.sveden-dl__term {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.sveden-dl__value {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .sveden-dl__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }
}

/* ---------- Страница-оглавление «Сведений» ---------- */
.sveden-cards {
  display: grid;
  gap: 0.9rem;
}

.sveden-card {
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.sveden-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
}

.sveden-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.sveden-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-xs);
  background: var(--brand-50);
  color: var(--brand-700);
}

.sveden-card__icon svg {
  width: 17px;
  height: 17px;
}

.sveden-card__title {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.sveden-card__text {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ---------- ФП «Профессионалитет» ---------- */
.proj {
  max-width: none;
}

.proj-text {
  margin: 0 0 1.7rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.proj-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.9rem;
}

.proj-card {
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.proj-card__icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.65rem;
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--brand-700);
  box-shadow: var(--shadow-xs);
}

.proj-card__icon svg {
  width: 18px;
  height: 18px;
}

.proj-card__title {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 700;
}

.proj-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.proj-steps {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.9rem;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.proj-step {
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.proj-step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.proj-step__title {
  margin: 0 0 0.2rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.proj-step__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.proj-links {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.9rem;
  padding: 0;
  list-style: none;
}

.proj-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease),
    color 0.16s var(--ease);
}

.proj-links a:hover,
.proj-links a:focus-visible {
  border-color: var(--brand-300);
  background: var(--brand-50);
  color: var(--brand-700);
}

.proj-links svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--brand-600);
}

/* ---------- Контакты и обратная связь ---------- */
.contacts {
  max-width: none;
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.contacts-card {
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.contacts-card + .contacts-card {
  margin-top: 1rem;
}

.contacts__grid .contacts-card + .contacts-card {
  margin-top: 0;
}

.contacts-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.contacts-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-xs);
  background: var(--brand-50);
  color: var(--brand-700);
}

.contacts-card__icon svg {
  width: 18px;
  height: 18px;
}

.contacts-card__title {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.contacts-row {
  display: grid;
  gap: 0.12rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
}

.contacts-row:first-of-type {
  padding-top: 0.15rem;
  border-top: 0;
}

.contacts-row__label {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.contacts-row__value,
.contacts-row__link {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contacts-row__link {
  color: var(--brand-700);
  text-decoration: none;
}

.contacts-row__link:hover,
.contacts-row__link:focus-visible {
  text-decoration: underline;
}

.contacts-form {
  display: grid;
  gap: 0.85rem;
  max-width: 34rem;
}

.contacts-form__row {
  display: grid;
  gap: 0.3rem;
}

.contacts-form__label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.contacts-form input[type='text'],
.contacts-form input[type='email'],
.contacts-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.contacts-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.contacts-form input:focus-visible,
.contacts-form textarea:focus-visible {
  border-color: var(--brand-300);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-100);
}

.contacts-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.contacts-form__consent input {
  margin-top: 0.15rem;
  flex: none;
}

.contacts-form__status:empty {
  display: none;
}

.contacts-form__status {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.contacts-form__status.is-ok {
  color: #2f9e63;
}

.contacts-form__status.is-error {
  color: #c0392b;
}

.contacts-form .btn {
  justify-self: start;
}

/* ---------- Специальности и профессии ---------- */
.prof-wrap {
  display: grid;
  gap: 1.2rem;
}

.prof-head .sveden__title {
  margin-bottom: 0.5rem;
}

.prof-head .sveden-sheet__lead {
  margin-bottom: 0.35rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.prof-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1rem;
}

.prof-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 6rem;
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.prof-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.prof-card__cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  height: clamp(96px, 11vw, 120px);
  padding: 0.8rem 1.15rem;
  background: var(--tone-bg, linear-gradient(135deg, #e6f6f2, #cdeee6));
  color: var(--tone-ink, #14776b);
  overflow: hidden;
}

.prof-card__cover--t1 {
  --tone-bg: linear-gradient(135deg, #e4f6f2 0%, #c9ede5 100%);
  --tone-ink: #14776b;
}

.prof-card__cover--t2 {
  --tone-bg: linear-gradient(135deg, #eaf7e6 0%, #d3edcc 100%);
  --tone-ink: #3f7a34;
}

.prof-card__cover--t3 {
  --tone-bg: linear-gradient(135deg, #e8f1fa 0%, #d2e4f6 100%);
  --tone-ink: #2c5f8a;
}

.prof-card__cover--t4 {
  --tone-bg: linear-gradient(135deg, #faf2e4 0%, #f0e1c6 100%);
  --tone-ink: #8a6224;
}

[data-theme='dark'] .prof-card__cover--t1 {
  --tone-bg: linear-gradient(135deg, #14302c 0%, #1a3b35 100%);
  --tone-ink: #7fd8c9;
}

[data-theme='dark'] .prof-card__cover--t2 {
  --tone-bg: linear-gradient(135deg, #1b2d1a 0%, #223a20 100%);
  --tone-ink: #9bd48d;
}

[data-theme='dark'] .prof-card__cover--t3 {
  --tone-bg: linear-gradient(135deg, #182635 0%, #1d3145 100%);
  --tone-ink: #8ec2ee;
}

[data-theme='dark'] .prof-card__cover--t4 {
  --tone-bg: linear-gradient(135deg, #2b2418 0%, #382e1e 100%);
  --tone-ink: #e2bd7f;
}

.prof-card__icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: var(--tone-ink, #14776b);
  opacity: 0.3;
  pointer-events: none;
}

.prof-card__icon svg {
  width: 56px;
  height: 56px;
}

.prof-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1.15rem 1.15rem;
}

.prof-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.prof-card__code {
  color: var(--tone-ink, #14776b);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.prof-card__kind {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--tone-ink, #14776b);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prof-card__title {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.prof-card__text {
  display: -webkit-box;
  margin: 0 0 1.1rem;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.6;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.prof-card__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.45rem;
  margin-top: auto;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  color: var(--brand-700);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.prof-card__more:hover,
.prof-card__more:focus-visible {
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.prof-card__more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.prof-card__more:hover svg,
.prof-card__more:focus-visible svg {
  transform: translateX(3px);
}

.prof-detail__kind {
  display: inline-block;
  margin: 1.2rem 0 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prof-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Показатели и партнёры ---------- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.9rem;
}

.stat-card {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.stat-card__value {
  display: block;
  color: var(--brand-700);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.stat-card__title {
  display: block;
  margin: 0.25rem 0 0.45rem;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.stat-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.partner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.9rem;
  padding: 0;
  list-style: none;
}

.partner-chips li {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------- Страница «Новости и события» ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 1.6rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.news-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.news-card__date {
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card__cat {
  align-self: flex-start;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-card__title {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-card__text {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-card__more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.news-card:hover .news-card__more svg {
  transform: translateX(3px);
}

.empty-state {
  margin: 1.2rem 0;
  padding: 1.4rem 1.2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Отдельная новость ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(8, 20, 24, 0.05),
    0 20px 44px -34px rgba(8, 20, 24, 0.45);
  overflow: hidden;
}

.article__cover {
  height: clamp(140px, 18vw, 210px);
  background-color: var(--brand-600);
  background-image:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.18), transparent 55%),
    url('/assets/img/hex-cover.svg'),
    linear-gradient(135deg, var(--brand-700) 0%, var(--brand-400) 100%);
  background-size: auto, 132px 76.21px, auto;
  background-repeat: no-repeat, repeat, no-repeat;
}

.article__head {
  padding: clamp(1rem, 2vw, 1.6rem) clamp(1rem, 2.4vw, 2rem) 0;
}

.article__cover--image {
  height: auto;
  max-height: 22rem;
  background: var(--surface-3);
}

.article__cover--image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 22rem;
  object-fit: cover;
}

.article__subtitle {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* --- галерея, аудио и видео в статье --- */

.article-gallery,
.article-audio,
.article-video {
  padding: 1.2rem clamp(1rem, 2.4vw, 2rem) 0;
}

.article-gallery__title,
.article-audio__title,
.article-video__title {
  margin: 0 0 0.7rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.6rem;
}

.article-gallery__item {
  margin: 0;
}

.article-gallery__item img {
  display: block;
  width: 100%;
  height: 10rem;
  border-radius: var(--radius-xs);
  object-fit: cover;
}

.article-gallery__item figcaption {
  margin-top: 0.3rem;
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.4;
}

.article-audio__item,
.article-video__item {
  margin: 0 0 0.8rem;
}

.article-audio__item figcaption,
.article-video__item figcaption {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}

.article-audio audio {
  width: 100%;
}

.article-video__frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #000;
}

.article-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-video__link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  color: var(--brand-700);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.article-video__link:hover {
  border-color: var(--brand-600);
  background: var(--brand-50);
}

.article__cat {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article__title {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.article__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.article__meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--brand-600);
}

.article__lead {
  margin: 0;
  padding: 1.1rem clamp(1rem, 2.4vw, 2rem);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

.article__body {
  padding: 1.2rem clamp(1rem, 2.4vw, 2rem) 0;
}

.article__text {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.article__text:first-child {
  color: var(--text);
  font-size: 1rem;
}

.article__h2 {
  margin: 1.6rem 0 0.7rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 800;
  line-height: 1.3;
}

.article__h3 {
  margin: 1.3rem 0 0.55rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.article__list {
  margin: 0 0 1.05rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.article__list li + li {
  margin-top: 0.32rem;
}

.article__list li::marker {
  color: var(--brand-600);
  font-weight: 700;
}

.article__quote {
  margin: 0 0 1.1rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--brand-600);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  background: var(--brand-50);
  color: var(--text);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.65;
}

.article__body a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article__body code {
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--surface-3);
  font-size: 0.88em;
}

.article__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.2rem clamp(1rem, 2.4vw, 2rem) clamp(1.2rem, 2.4vw, 1.8rem);
}

/* боковая колонка «другие новости» */
.article-aside {
  position: sticky;
  top: 1.25rem;
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-xs);
}

@media (max-width: 900px) {
  .article-aside {
    position: static;
    top: auto;
  }
}

.aside-block {
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.aside-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.aside-block__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.aside-block__title svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--brand-600);
}

.aside-block__all {
  flex: 0 0 auto;
  color: var(--brand-700);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s var(--ease);
}

.aside-block__all:hover {
  border-bottom-color: currentColor;
}

.aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.aside-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.5rem 0.24rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.16s var(--ease),
    background-color 0.16s var(--ease),
    color 0.16s var(--ease);
}

.aside-tag--counted {
  padding-right: 0.3rem;
}

.aside-tag:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
  color: var(--brand-700);
}

.aside-tag__count {
  min-width: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
}

.aside-tag:hover .aside-tag__count {
  background: var(--brand-600);
  color: #fff;
}

.news-filter__reset {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.related-list {
  display: grid;
  gap: 0.4rem;
}

.related-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 0.18s var(--ease),
    background-color 0.18s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.related-card:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

.related-card__thumb {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--thumb-bg, var(--brand-100));
  color: var(--thumb-ink, var(--brand-700));
  transition:
    transform 0.2s var(--ease),
    background-color 0.18s var(--ease);
}

.related-card__thumb svg {
  width: 17px;
  height: 17px;
}

.related-card:hover .related-card__thumb {
  transform: scale(1.06);
}

.related-card__thumb--t1 {
  --thumb-bg: var(--brand-600);
  --thumb-ink: #fff;
}

.related-card__thumb--t2 {
  --thumb-bg: var(--brand-100);
  --thumb-ink: var(--brand-700);
}

.related-card__thumb--t3 {
  --thumb-bg: var(--surface-3);
  --thumb-ink: #41616b;
}

.related-card__thumb--t4 {
  --thumb-bg: var(--brand-50);
  --thumb-ink: var(--brand-700);
}

[data-theme='dark'] .related-card__thumb--t1 {
  --thumb-bg: var(--brand-300);
  --thumb-ink: var(--brand-700);
}

[data-theme='dark'] .related-card__thumb--t3 {
  --thumb-ink: var(--brand-700);
}

.related-card__main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.related-card__date {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-transform: uppercase;
}

.related-card__title {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.36;
  text-wrap: pretty;
}

.related-card__arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--brand-600);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.18s var(--ease),
    transform 0.2s var(--ease);
}

.related-card:hover .related-card__arrow,
.related-card:focus-visible .related-card__arrow {
  opacity: 1;
  transform: none;
}

/* промо-карточка приёмной комиссии */
.aside-cta {
  display: grid;
  gap: 0.4rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--brand-700);
  background-image:
    radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.22), transparent 58%),
    url('/assets/img/hex-cover.svg'),
    linear-gradient(135deg, var(--brand-700) 0%, var(--brand-400) 100%);
  background-size: auto, 108px 62.35px, auto;
  background-repeat: no-repeat, repeat, no-repeat;
  color: #fff;
}

.aside-cta__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.aside-cta__text {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.5;
}

.aside-cta__btn {
  justify-self: start;
  margin-top: 0.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-xs);
  background: #fff;
  color: #16796d;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.aside-cta__btn:hover {
  background: var(--brand-50);
  transform: translateY(-1px);
}

[data-theme='dark'] .aside-cta {
  background-color: #14302c;
  background-image:
    radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.14), transparent 58%),
    url('/assets/img/hex-cover.svg'),
    linear-gradient(135deg, #16302c 0%, #23514a 100%);
}

/* ---------- Перечень документов ---------- */
.doc-list {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.9rem;
  padding: 0;
  list-style: none;
}

.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.89rem;
  line-height: 1.6;
}

.doc-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.18rem;
  color: var(--brand-600);
}

.sveden__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.sveden__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.5;
}

.sveden__table caption {
  text-align: left;
}

.sveden__table th,
.sveden__table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
  color: var(--text);
}

.sveden__table th:last-child,
.sveden__table td:last-child {
  border-right: 0;
}

.sveden__table tbody tr:last-child th,
.sveden__table tbody tr:last-child td {
  border-bottom: 0;
}

.sveden__table thead th {
  background: var(--surface-2);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
}

.sveden__table--params th {
  width: 42%;
  background: var(--surface-2);
  font-weight: 600;
}

.sveden__table a {
  color: var(--brand-700);
  text-decoration: underline;
  word-break: break-word;
}

.sveden__files {
  margin: 0;
  padding-left: 1.1rem;
}

.sveden__files li + li {
  margin-top: 0.25rem;
}

.sveden__updated {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.sveden__map {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.sveden__map iframe {
  display: block;
  width: 100%;
  border: 0;
}

[data-theme='dark'] .sveden__table thead th,
[data-theme='dark'] .sveden__table--params th {
  background: var(--surface-3);
}

@media (max-width: 860px) {
  .sveden__layout {
    grid-template-columns: 1fr;
  }

  .nav__sub {
    position: static;
    width: auto;
    box-shadow: none;
    margin-top: 0.3rem;
  }
}

/* Уведомление на экране входа (нет доступа) */
.auth-box--notice {
  display: grid;
  gap: 0.7rem;
  padding: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
}

.auth-box__notice-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--brand-700);
}

.auth-box__notice-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.auth-box__notice-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.auth-box__notice-text {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Плашка режима «Войти как» в личном кабинете */
.impersonation-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid #f0dcc2;
  background: #fff8ec;
  color: #7a5312;
  font-size: 0.82rem;
}

.impersonation-bar[hidden] {
  display: none;
}

[data-theme='dark'] .impersonation-bar {
  border-color: #3f3421;
  background: #241d10;
  color: #f3d8a5;
}

/* ---------- Страница 404 ---------- */
.notice-code {
  margin: 0;
  font-size: clamp(3rem, 9vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--brand-700);
}

.notice-path {
  display: inline-block;
  max-width: 100%;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-family: Consolas, Menlo, monospace;
  font-size: 0.82em;
  word-break: break-all;
}

.notice-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.notice-actions .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .notice-actions {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }
}

.notice-help {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.notice-help a {
  color: var(--brand-700);
  text-decoration: underline;
}