/* ---------- шрифты (локальные, без Google) ---------- */

@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-sans-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-700-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-sans-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-serif-400-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-serif-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-serif-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/pt-serif-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-serif-700-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/pt-serif-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
Theme Name: Belpedcol FSE
Theme URI: https://belpedcol.ru
Author: ОГАПОУ «Белгородский педагогический колледж»
Description: Блочная тема нового сайта. Разрабатывается на staging, на продакшене не активирована.
Version: 0.3.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: belpedcol
*/

/* ---------- каркас ---------- */
:root {
  --brand: var(--wp--preset--color--brand, #0792b0);
  --brand-dark: var(--wp--preset--color--brand-dark, #02799a);
  --brand-darker: var(--wp--preset--color--brand-darker, #015d77);
  --brand-light: var(--wp--preset--color--brand-light, #e6f2f6);
  --accent: var(--wp--preset--color--accent, #f2c534);
  --ink: var(--wp--preset--color--ink, #16191c);
  --ink-2: var(--wp--preset--color--ink-2, #525a61);
  --ink-3: var(--wp--preset--color--ink-3, #5f686e);
  --line: var(--wp--preset--color--line, #dde3e6);
  --soft: var(--wp--preset--color--soft, #f6f8f9);
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 12px rgba(16, 25, 32, 0.08), 0 2px 4px rgba(16, 25, 32, 0.04);
}

body {
  background: #fff;
  overflow-wrap: break-word;
}

.wp-site-blocks {
  display: block;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand-dark);
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- верхняя полоса ---------- */
.topbar {
  font-size: 0.875rem;
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.social-btn__icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

html.a11y .social-btn {
  color: var(--a11y-link) !important;
}

html.a11y .social-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.topbar p {
  margin: 0;
  font-size: 0.875rem;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar__contacts {
  gap: 0.25rem 1.5rem;
}

.topbar__actions {
  align-items: center;
  gap: 0.5rem;
}

.btn-eye {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.btn-eye:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ---------- шапка ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .site-header__inner {
  align-items: center;
  gap: 1rem;
  min-height: 84px;
  flex-wrap: nowrap;
}

.site-header .brand {
  flex: 0 0 auto;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
}

.brand .wp-block-site-logo img {
  max-height: 56px;
  width: auto;
}

.brand__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 500px;
  text-decoration: none;
  color: var(--ink);
}

.brand__name:hover {
  color: var(--brand-dark);
}

.brand__legal {
  font-size: 0.6875rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  text-transform: none;
}

.brand__short {
  font-family: var(--wp--preset--font-family--serif, Georgia, serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-darker);
}

@media (max-width: 1200px) {
  .brand__name {
    max-width: 420px;
  }

  .brand__legal {
    font-size: 0.625rem;
  }

  .brand__short {
    font-size: 0.9375rem;
  }
}

@media (max-width: 782px) {
  .brand__name {
    max-width: none;
  }

  .brand__legal {
    font-size: 0.625rem;
  }

  .brand__short {
    font-size: 0.875rem;
  }
}

.main-nav {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}

.main-nav .wp-block-navigation-item__content {
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ink);
  white-space: nowrap;
}

.main-nav .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.main-nav .wp-block-navigation-item__content:hover,
.main-nav .current-menu-item > .wp-block-navigation-item__content {
  background: var(--brand-light);
  color: var(--brand-darker);
}

.main-nav .wp-block-navigation__submenu-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  min-width: 300px;
  max-height: 70vh;
  overflow: auto;
}

.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 0.5rem 0.65rem;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--ink-2);
  border-radius: 6px;
}

.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--soft);
  color: var(--brand-darker);
}

/* ---------- герой ---------- */
.hero {
  background: var(--wp--preset--color--brand-tint, #f2f8fa);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  color: var(--brand-darker);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 56ch;
}

.hero__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- быстрые ссылки ---------- */
.quick-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.quick-tile:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand);
  transform: translateY(-2px);
  color: var(--ink);
}

.quick-tile__icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--brand-light);
  color: var(--brand-darker);
  display: grid;
  place-items: center;
}

.quick-tile b {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.quick-tile span {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* ---------- секции ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--brand-darker);
}

.section-head a {
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- новости ---------- */
.news-query .wp-block-post-template {
  gap: 1.5rem;
  margin: 0;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.news-card:hover {
  box-shadow: var(--shadow);
}

.news-card .wp-block-post-featured-image {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft);
}

.news-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card > .wp-block-group__inner-container,
.news-card .wp-block-post-date,
.news-card .wp-block-post-title,
.news-card .wp-block-post-excerpt {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.news-card .wp-block-post-date {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.news-card .wp-block-post-title {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
  line-height: 1.3;
}

.news-card .wp-block-post-title a {
  color: var(--ink);
  text-decoration: none;
}

.news-card .wp-block-post-title a:hover {
  color: var(--brand-darker);
  text-decoration: underline;
}

.news-card .wp-block-post-excerpt {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.news-card .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
}

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

.spec-card {
  border-left: 4px solid var(--accent);
  background: #fff;
  padding: 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 1px 2px rgba(16, 25, 32, 0.06), 0 1px 3px rgba(16, 25, 32, 0.08);
}

.spec-card__code {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.03em;
}

.spec-card h3 {
  font-size: 1.125rem;
  margin: 0.5rem 0;
}

.spec-card p {
  font-size: 0.875rem;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- баннеры ---------- */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.banner {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
  min-height: 96px;
}

.banner:hover {
  border-color: var(--brand);
  color: var(--brand-darker);
  background: var(--wp--preset--color--brand-tint, #f2f8fa);
}

/* Баннеры-картинки из управляемого раздела «Баннеры». */
.banner-grid--images {
  grid-template-columns: repeat(var(--banner-cols, 4), 1fr);
  align-items: stretch;
}

.banner--image {
  position: relative;
  padding: 0;
  height: 180px;
  display: block;
  overflow: hidden;
}

.banner--image img {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  max-width: none;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .banner-grid--images {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 782px) {
  .banner-grid--images {
    grid-template-columns: 1fr;
  }

  .banner--image {
    height: 150px;
  }
}

/* ---------- подвал ---------- */
.site-footer {
  margin-top: 0;
}

.site-footer p,
.site-footer li {
  font-size: 0.875rem;
}

.site-footer a {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__grid h3 {
  font-family: var(--wp--preset--font-family--sans, Arial, sans-serif);
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: #fff;
}

.site-footer__grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__grid li {
  margin-bottom: 0.5rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 2rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: #e3eef2;
}

.site-footer__bottom p {
  margin: 0;
  color: #e3eef2;
}

/* ---------- версия для слабовидящих ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.a11y-panel {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--a11y-surface, #fff);
  color: var(--a11y-fg, #000);
  border-bottom: 3px solid var(--a11y-border, #000);
}

.a11y-panel__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  font: 16px/1.4 Arial, "Helvetica Neue", sans-serif;
}

.a11y-panel__group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.a11y-panel__label {
  font-weight: 700;
}

.a11y-btn {
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font: inherit;
  line-height: 1.3;
  cursor: pointer;
}

.a11y-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.a11y-btn[aria-pressed="true"] {
  font-weight: 700;
  border-width: 3px;
  background: rgba(0, 0, 0, 0.14);
}

.a11y-btn--exit {
  margin-left: auto;
}

.a11y-swatch {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 4px;
  cursor: pointer;
}

.a11y-swatch[aria-pressed="true"] {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

.a11y-swatch--a {
  background: #fff;
  color: #000;
}

.a11y-swatch--b {
  background: #000;
  color: #fff;
}

.a11y-swatch--c {
  background: #9dd1ff;
  color: #062a52;
}

.a11y-swatch--d {
  background: #f7f3d6;
  color: #4b3621;
}

/* Режим для слабовидящих */
html.a11y {
  --a11y-bg: #fff;
  --a11y-surface: #fff;
  --a11y-fg: #000;
  --a11y-link: #000;
  --a11y-border: #000;
  --a11y-font: 21px;
  --brand: var(--a11y-fg);
  --brand-dark: var(--a11y-fg);
  --brand-darker: var(--a11y-fg);
  --brand-light: var(--a11y-surface);
  --accent: var(--a11y-fg);
  --ink: var(--a11y-fg);
  --ink-2: var(--a11y-fg);
  --ink-3: var(--a11y-fg);
  --line: var(--a11y-border);
  --soft: var(--a11y-surface);
  background: var(--a11y-bg);
}

html.a11y-size-1 {
  --a11y-font: 18px;
}

html.a11y-size-2 {
  --a11y-font: 21px;
}

html.a11y-size-3 {
  --a11y-font: 24px;
}

html.a11y-scheme-a {
  --a11y-bg: #fff;
  --a11y-surface: #fff;
  --a11y-fg: #000;
  --a11y-link: #000;
  --a11y-border: #000;
}

html.a11y-scheme-b {
  --a11y-bg: #000;
  --a11y-surface: #000;
  --a11y-fg: #fff;
  --a11y-link: #ffec00;
  --a11y-border: #fff;
}

html.a11y-scheme-c {
  --a11y-bg: #9dd1ff;
  --a11y-surface: #9dd1ff;
  --a11y-fg: #062a52;
  --a11y-link: #062a52;
  --a11y-border: #062a52;
}

html.a11y-scheme-d {
  --a11y-bg: #f7f3d6;
  --a11y-surface: #f7f3d6;
  --a11y-fg: #4b3621;
  --a11y-link: #4b3621;
  --a11y-border: #4b3621;
}

html.a11y body {
  background: var(--a11y-bg) !important;
  color: var(--a11y-fg) !important;
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: var(--a11y-font);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

html.a11y :is(p, li, dd, dt, td, th, blockquote, figcaption, label) {
  font-size: 1em !important;
  line-height: 1.5 !important;
}

html.a11y :is(h1, h2, h3, h4, h5, h6) {
  font-family: inherit !important;
}

html.a11y h1 {
  font-size: 2em !important;
  line-height: 1.25 !important;
}

html.a11y h2 {
  font-size: 1.6em !important;
  line-height: 1.3 !important;
}

html.a11y h3 {
  font-size: 1.3em !important;
}

html.a11y :is(h4, h5, h6) {
  font-size: 1.15em !important;
}

html.a11y :is(.topbar, .site-header, .site-footer, .hero, .quick-tile, .news-card, .spec-card, .banner, .section-card, .section-nav, .file-link, .video-card, .spoiler, .spoiler__summary, .search-form, .widget, .cookie-notice) {
  background: var(--a11y-surface) !important;
  color: var(--a11y-fg) !important;
  border-color: var(--a11y-border) !important;
  box-shadow: none !important;
}

html.a11y :is(.btn-eye, .cookie-notice__btn) {
  background: var(--a11y-surface) !important;
  color: var(--a11y-fg) !important;
  border: 2px solid var(--a11y-fg) !important;
  border-radius: 4px;
}

html.a11y :is(.topbar, .site-footer) p,
html.a11y :is(.topbar, .site-footer) span {
  color: var(--a11y-fg) !important;
}

html.a11y a,
html.a11y a:visited {
  color: var(--a11y-link) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Цветной текст из старого контента убивает контраст — приводим к базовому. */
html.a11y [style*="color"]:not(.a11y-swatch) {
  color: var(--a11y-fg) !important;
}

html.a11y a:hover,
html.a11y a:focus {
  color: var(--a11y-link) !important;
  text-decoration-thickness: 2px;
}

html.a11y .wp-element-button {
  background: var(--a11y-fg) !important;
  color: var(--a11y-bg) !important;
  border: 2px solid var(--a11y-fg) !important;
}

html.a11y :focus-visible {
  outline: 4px solid var(--a11y-fg) !important;
  outline-offset: 3px;
}

html.a11y * {
  animation: none !important;
  transition: none !important;
}

html.a11y-no-images :is(img, picture, video, svg) {
  display: none !important;
}

html.a11y-no-images * {
  background-image: none !important;
}

/* ---------- адаптив ---------- */
@media (max-width: 1200px) {
  .site-header .site-header__inner {
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .site-header .main-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .quick-tiles,
  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-query .wp-block-post-template,
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 782px) {
  .site-header .site-header__inner {
    flex-wrap: wrap;
    min-height: 68px;
    gap: 0.5rem;
  }

  .site-header .brand {
    flex-wrap: nowrap;
    min-width: 0;
  }

  .site-header .main-nav {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .topbar .topbar__contacts {
    display: none;
  }

  .brand__name {
    min-width: 0;
  }

  .main-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .quick-tiles,
  .banner-grid,
  .news-query .wp-block-post-template,
  .spec-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .topbar__contacts {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- внутренние страницы ---------- */
.page-head {
  padding: 2.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  color: var(--brand-darker);
}

.page-head .wp-block-query-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--serif, Georgia, serif);
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  color: var(--brand-darker);
}

.page-head .wp-block-term-description p {
  margin: 0.75rem 0 0;
  color: var(--ink-2);
}

.page-body {
  padding-bottom: 3.5rem;
}

/* ---------- типографика контента ---------- */
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  margin: 2.25rem 0 0.75rem;
  color: var(--brand-darker);
}

.entry-content h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
}

.entry-content h4 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.5rem;
}

.entry-content p,
.entry-content li {
  margin-bottom: 0.9rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.entry-content li {
  margin-bottom: 0.4rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.entry-content figure {
  margin: 1.5rem 0;
}

/* Картинки, вставленные в текст подряд (галереи грамот и фотоальбомы). */
.entry-content img.alignnone {
  margin: 0 0.6rem 0.6rem 0;
}

.entry-content figcaption {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin-top: 0.5rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Таблицы из Word/старой админки приходят с фиксированными высотами строк. */
.entry-content table,
.entry-content table tr,
.entry-content table td,
.entry-content table th {
  height: auto !important;
}

/* Прокрутка для широких таблиц из старого контента. */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  scrollbar-width: thin;
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--line, #dde3e6);
  border-radius: 4px;
}

.table-scroll table {
  margin: 0;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--soft);
  font-weight: 700;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content a:not(.wp-element-button):not(.file-link) {
  color: var(--brand-dark);
}

.entry-content a:not(.wp-element-button):not(.file-link):hover {
  color: var(--brand-darker);
}

.entry-content .wp-block-file a {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.entry-content .wp-block-file__button {
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius);
}

.entry-content iframe {
  max-width: 100%;
  border-radius: var(--radius);
}

/* ---------- запись ---------- */
.single-head {
  padding: 2.5rem 0 0.5rem;
}

.single-head .wp-block-post-title {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  color: var(--brand-darker);
}

.single-terms a {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-dark);
  text-decoration: none;
}

.single-meta {
  font-size: 0.875rem;
  color: var(--ink-3);
  gap: 0.25rem 1.25rem;
}

.single-meta p {
  margin: 0;
}

.single-featured {
  margin: 1.5rem auto 2rem;
}

.single-featured img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.single-body {
  padding-bottom: 3.5rem;
}

.wp-block-post-navigation-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
}

.wp-block-post-navigation-link a {
  font-weight: 700;
  text-decoration: none;
}

/* ---------- пагинация ---------- */
.wp-block-query-pagination {
  margin-top: 2.5rem;
  gap: 0.5rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}

.wp-block-query-pagination a:hover {
  border-color: var(--brand);
  color: var(--brand-darker);
}

.wp-block-query-pagination .page-numbers.current {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

/* ---------- поиск ---------- */
.site-search {
  margin: 1.25rem 0;
}

/* Подпись поля скрыта визуально, но остаётся для скринридеров. */
.site-search .wp-block-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-search .wp-block-search__input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
}

.site-search .wp-block-search__button {
  background: var(--brand-dark);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 0.8rem 1.4rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-left: 0.5rem;
}

.site-search .wp-block-search__button:hover {
  background: var(--brand-darker);
}

/* ---------- 404 ---------- */
.error-404 {
  padding: 4rem 0 5rem;
  text-align: center;
}

.error-404__code {
  margin: 0;
  font-family: var(--wp--preset--font-family--serif, Georgia, serif);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: var(--brand);
  font-weight: 700;
}

.error-404 h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.5rem 0 1rem;
  color: var(--brand-darker);
}

.error-404 .wp-block-buttons {
  justify-content: center;
  margin-top: 1.5rem;
}

/* На узких экранах таблицы прокручиваются, но колонки не сжимаются в нечитаемое. */
@media (max-width: 782px) {
  .table-scroll table {
    width: auto;
    min-width: 100%;
  }

  .table-scroll td,
  .table-scroll th {
    min-width: 88px;
  }
}

/* ---------- главная: сайдбар и виджеты ---------- */
.home-layout {
  align-items: flex-start;
}

.home-sidebar {
  position: sticky;
  top: 96px;
}

.home-sidebar .banner-grid--images {
  grid-template-columns: 1fr;
}

.home-sidebar .sidebar-text {
  margin: 2rem 0;
}

.sidebar-text h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  color: var(--brand-darker);
}

.sidebar-text p {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(var(--partner-cols, 2), 1fr);
  gap: 0.75rem;
}

.partner {
  position: relative;
  padding: 0;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  overflow: hidden;
}

.partner:hover {
  border-color: var(--brand);
}

.partner img {
  position: absolute;
  top: 8px;
  left: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  max-width: none;
  object-fit: contain;
}

.gosuslugi-banner {
  max-width: 900px;
  margin: 0 auto;
}

.gosuslugi-banner #js-show-iframe-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.footer-map {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.footer-map iframe {
  display: block;
  width: 100% !important;
  height: 200px !important;
  border: 0;
}

@media (max-width: 1024px) {
  .home-sidebar {
    position: static;
  }

  .gosuslugi-banner {
    max-width: 100%;
  }
}

/* ---------- раздел «Сведения об образовательной организации» ---------- */
.breadcrumbs {
  padding: 1.5rem 0 0;
  font-size: 0.875rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-3);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--line-strong, #c3ccd1);
}

.breadcrumbs a {
  color: var(--ink-3);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Крошки уже дают отступ сверху — заголовку он больше не нужен. */
.breadcrumbs + .page-head,
.breadcrumbs + .single-head {
  padding-top: 0.75rem;
}

.section-layout {
  padding: 1.5rem 0 3.5rem;
  align-items: flex-start;
}

.section-nav {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: sticky;
  top: 100px;
}

.section-nav__title {
  margin: 0 0 0.75rem;
  font-family: var(--wp--preset--font-family--serif, Georgia, serif);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--brand-darker);
  cursor: pointer;
  list-style: none;
}

.section-nav__title::-webkit-details-marker {
  display: none;
}

.section-nav__title::after {
  content: "▾";
  float: right;
  color: var(--ink-3);
}

.section-nav[open] .section-nav__title {
  margin-bottom: 0.75rem;
}

.section-nav[open] .section-nav__title::after {
  content: "▴";
}

@media (min-width: 1025px) {
  .section-nav__title {
    cursor: default;
  }

  .section-nav__title::after {
    display: none;
  }
}

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

.section-nav__list a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.section-nav__list a:hover {
  background: #fff;
  color: var(--brand-darker);
}

.section-nav__list .is-current a {
  background: var(--brand-dark);
  color: #fff;
  font-weight: 700;
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.section-card {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.section-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.section-card__title {
  font-weight: 700;
}

.section-card__desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  font-weight: 400;
}

/* ---------- видео-ссылки ---------- */
.video-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.video-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.video-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  font-size: 0.875rem;
}

.video-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.video-card__title {
  font-weight: 700;
}

.video-card__meta {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* ---------- спойлеры (вместо BBSpoiler) ---------- */
.spoiler {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.spoiler__summary {
  cursor: pointer;
  padding: 0.7rem 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--soft);
  list-style-position: inside;
}

.spoiler__summary:hover {
  color: var(--brand-darker);
}

.spoiler[open] .spoiler__summary {
  border-bottom: 1px solid var(--line);
}

.spoiler__body {
  padding: 0.9rem 1rem;
}

.spoiler__body > *:first-child {
  margin-top: 0;
}

.spoiler__body > *:last-child {
  margin-bottom: 0;
}

/* ---------- уведомление о cookie ---------- */
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(16, 25, 32, 0.08);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.cookie-notice p {
  margin: 0;
  max-width: 68ch;
}

@media (min-width: 783px) {
  .cookie-notice p a {
    white-space: nowrap;
  }
}

.cookie-notice__btn {
  flex: 0 0 auto;
  background: var(--brand-dark);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 0.6rem 1.6rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-notice__btn:hover {
  background: var(--brand-darker);
}

html[data-cookie-consent="1"] .cookie-notice {
  display: none !important;
}

/* Плашка фиксированная — резервируем место, чтобы не перекрывала подвал. */
html:not([data-cookie-consent="1"]) body {
  padding-bottom: 96px;
}

@media (max-width: 782px) {
  html:not([data-cookie-consent="1"]) body {
    padding-bottom: 150px;
  }
}

@media (max-width: 782px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }

  .cookie-notice__btn {
    width: 100%;
  }
}

