

/* Start:/local/templates/ksp_krasnodar/css/main.css?179276316859590*/
/* ============================================ */
/* ОСНОВНЫЕ ПЕРЕМЕННЫЕ */
/* ============================================ */

:root {
  --blue: #007AD8;
  --blue-text: #006DC4;
  --blue-pale: #EFF8FF;
  --hero-accent: #C5E6FF;
  --avatar-bg: #E2F2FF;
  --text-dark: #373737;
  --text-muted: #5A646E;
  --white-muted: rgba(255, 255, 255, 0.85);
  --border-light: #E5EAF0;
  --card-shadow: 0 4px 10px rgba(0, 67, 134, 0.05);
  --container-w: 1840px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, Helvetica, sans-serif;
  overflow-wrap: break-word;
  color: var(--text-dark);
  background-color: var(--blue-pale);
  background-image: url("/local/templates/ksp_krasnodar/css/../assets/watermark.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 607px 614px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

@media (hover: none), (pointer: coarse) {
  body { background-attachment: scroll; }
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }

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

[data-stub] { cursor: default; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.svg-sprite { position: absolute; }

/* ============================================ */
/* ФОКУС КЛАВИАТУРЫ */
/* ============================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible,
.mainnav a:focus-visible,
.mainnav button:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible,
.appeal-banner a:focus-visible,
.tile--accent a:focus-visible,
.search-panel a:focus-visible,
.search-panel button:focus-visible {
  outline-color: #fff;
}

/* ============================================ */
/* ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ */
/* ============================================ */

html.a11y-mode {
  --text-dark: #000000;
  --text-muted: rgba(0, 0, 0, 0.85);
  --white-muted: #ffffff;
  --border-light: #6f6f6f;
  line-height: 1.7;
}

html.a11y-mode body { background-image: none; }

html.a11y-mode a:not(.btn-outline):not(.tile):not(.link-card):not(.icon-btn) {
  text-decoration: underline;
}

html.a11y-mode :focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

html.a11y-mode p { line-height: 1.7; }
html.a11y-mode h1,
html.a11y-mode h2,
html.a11y-mode h3 { line-height: 1.35; }

.a11y-link[aria-pressed="true"] {
  text-decoration: underline;
  color: #005ba3;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 100;
  background: #005FA8;
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0 0 6px 6px;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 40px;
}

.icon { display: block; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

/* ============================================ */
/* ТОПБАР */
/* ============================================ */

.topbar-stripe {
  height: 20px;
  background: var(--blue);
}

.topbar {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__img { width: 64px; height: 65px; }

.logo__text {
  min-width: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: var(--text-dark);
}

.logo__text strong { font-weight: 700; color: var(--blue-text); }

.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border-light);
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.contact-item .icon { flex-shrink: 0; }

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  padding-left: 20px;
  border-left: 1px solid var(--border-light);
}

.a11y-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-text);
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  width: 30px;
  height: 30px;
}

.search-btn { width: 36px; height: 36px; }

/* ============================================ */
/* ПОИСК */
/* ============================================ */

.search-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--search-overlay-top, 0px);
  z-index: 25;
  background: rgba(0, 122, 216, .9);
  display: none;
}

.search-panel {
  background: var(--blue);
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

.search-panel__inner {
  display: flex !important;
  align-items: center;
  gap: 24px;
  padding: 24px 40px;
  max-width: var(--container-w);
  margin: 0 auto;
}

.search-panel__inner form {
  flex: 1;
  display: flex !important;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.search-panel__label {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-panel__input {
  flex: 1;
  min-width: 100px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 0;
  outline: none;
  transition: border-color .15s ease;
}
.search-panel__input::placeholder { color: rgba(255, 255, 255, .6); }
.search-panel__input:focus { border-bottom-color: #fff; }
.search-panel__input:focus-visible { outline: none; }

.search-panel__submit,
.search-panel__close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.search-panel__submit svg { width: 22px; height: 22px; }
.search-panel__close svg { width: 16px; height: 16px; }
.search-panel__submit:hover,
.search-panel__close:hover { color: rgba(255, 255, 255, .75); }

/* ============================================ */
/* ОСНОВНОЕ МЕНЮ */
/* ============================================ */

.mainnav {
  position: relative;
  border-bottom: 1px solid var(--border-light);
  z-index: 20;
  background: #fff;
}

.mainnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mainnav__utility { display: none; }
.mainnav__eshche-item { display: none; }

.mainnav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--mainnav-gap, 35px);
  min-width: 0;
  margin: 0;
  padding: 0;
}

.mainnav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  white-space: nowrap;
}

.mainnav__link-text {
  position: relative;
}

.mainnav__link.is-active,
.mainnav__link:hover {
  color: var(--blue-text);
}

.has-dropdown.is-disabled .mainnav__link { opacity: .5; }

.mainnav__link .chevron {
  width: 9px;
  height: 4.5px;
  color: currentColor;
  transition: transform .15s ease;
}

.has-dropdown.is-open .mainnav__link .chevron { transform: rotate(180deg); }
.has-dropdown.is-open .mainnav__link { color: var(--blue-text); }

.has-dropdown.is-open .mainnav__link-text::after,
.mainnav__link:hover .mainnav__link-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 4px;
  background: var(--blue);
}

.appeal-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  padding: 16px 0;
  white-space: nowrap;
}

.appeal-link:hover { color: var(--blue-text); }

.appeal-link .icon { width: 18px; height: 14px; }

/* ============================================ */
/* ДЕСКТОПНЫЙ ДРОПДАУН */
/* ============================================ */

.dropdown-scrim {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 15;
  background: rgba(0, 122, 216, .9) !important;
  overflow-y: auto;
  min-height: 100vh;
}

.dropdown-panel {
  background: var(--blue);
  color: #fff;
  position: relative;
}

.dropdown-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 32px;
}

.dropdown-panel__head h2 {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 10px;
}

.goto-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.75);
  transition: color .15s ease;
}

.goto-link:hover { color: #fff; }

.goto-link .icon--arrow {
  width: 14px;
  height: 11px;
  flex-shrink: 0;
}

.dropdown-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.dropdown-close svg { width: 16px; height: 16px; }

.dropdown-panel__divider {
  height: 1px;
  background: rgba(255,255,255,.25);
  margin-top: 24px;
}

.dropdown-panel__grid {
  display: grid;
  grid-template-columns: repeat(var(--dropdown-cols, 3), minmax(0, 1fr));
  gap: 24px 40px;
  padding: 32px 0 40px;
}

.dropdown-panel__grid a {
  position: relative;
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  padding-left: 0;
  transition: padding-left .15s ease, color .15s ease;
}

.dropdown-panel__grid a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 11px;
  opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6H15M15 6L10 1M15 6L10 11' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .15s ease;
}

.dropdown-panel__grid a:nth-child(n+4) {
  padding-top: 24px;
}
.dropdown-panel__grid a:nth-child(n+4)::before { top: 29px; }
.dropdown-panel__grid a:nth-child(n+4)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,.25);
}

.dropdown-panel__grid a.is-row-first { padding-top: 0; }
.dropdown-panel__grid a.is-row-first::before { top: 5px; }
.dropdown-panel__grid a.is-row-first::after { content: none; }

.dropdown-panel__grid a.is-row-next { padding-top: 24px; }
.dropdown-panel__grid a.is-row-next::before { top: 29px; }
.dropdown-panel__grid a.is-row-next::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,.25);
}

.dropdown-panel__grid a:hover {
  padding-left: 24px;
  color: rgba(255,255,255,.75);
}
.dropdown-panel__grid a:hover::before { opacity: 1; }

.dropdown-panel__flat-links {
  display: flex;
  gap: 40px;
  padding-top: 32px;
}

.dropdown-panel__flat-links a {
  position: relative;
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  padding-left: 0;
  transition: padding-left .15s ease, color .15s ease;
}
.dropdown-panel__flat-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 11px;
  opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6H15M15 6L10 1M15 6L10 11' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .15s ease;
}
.dropdown-panel__flat-links a:hover {
  padding-left: 24px;
  color: rgba(255,255,255,.75);
}
.dropdown-panel__flat-links a:hover::before { opacity: 1; }

.dropdown-panel__groups {
  display: grid;
  grid-template-columns: repeat(var(--dropdown-cols, 3), minmax(0, 1fr));
  gap: 32px 40px;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(255,255,255,.25);
  margin-top: 24px;
}

.dropdown-group {
  position: relative;
  min-width: 0;
}

.dropdown-group:nth-child(n+4) {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.25);
}

.dropdown-group.is-row-first {
  padding-top: 0;
  border-top: none;
}

.dropdown-group.is-row-next {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.25);
}

.dropdown-group__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.dropdown-group__goto {
  margin-bottom: 16px;
}

.dropdown-group__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dropdown-group__list a {
  position: relative;
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  padding-left: 0;
  transition: padding-left .15s ease, color .15s ease;
}
.dropdown-group__list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 9px;
  opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6H15M15 6L10 1M15 6L10 11' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .15s ease;
}
.dropdown-group__list a:hover {
  padding-left: 24px;
  color: rgba(255,255,255,.75);
}
.dropdown-group__list a:hover::before { opacity: 1; }

/* ============================================ */
/* ГЛАВНАЯ: ГЕРОЙ */
/* ============================================ */

.hero { padding: 32px 0 0; }

.hero__card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0B72C4;
  color: #fff;
  min-height: 320px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__text {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}

.hero__eyebrow {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero__title {
  font-size: 54px;
  line-height: 1.3;
  margin: 0 0 14px;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 940px;
}

.hero__title span { color: var(--hero-accent); }

.hero__lead {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 0 26px;
}

.hero__stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat {
  border: 1px solid #fff;
  border-radius: 10px;
  padding: 20px;
  width: 251px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
}

.stat strong em { font-style: normal; font-size: 14px; font-weight: 600; line-height: 1.7; }

.stat span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* ============================================ */
/* ГЛАВНАЯ: НОВОСТИ */
/* ============================================ */

.news-grid { padding: 100px 0 90px; }

.news-grid__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.news-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 360px !important;
  background: #fff;
  box-shadow: var(--card-shadow);
  border-radius: var(--radius);
  padding: 40px;
}

.news-card h3 {
  font-size: 42px;
  line-height: 1.3;
  margin: 0 0 20px;
  text-transform: uppercase;
  font-weight: 700;
}

.news-card time {
  display: block;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.news-card p {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
}

.news-card__slides {
  display: grid;
  flex: 1 !important;
  min-height: 100px !important;
}

.news-card__slide {
  grid-area: 1 / 1;
  visibility: hidden;
}
.news-card__slide.is-active { visibility: visible; }

.news-card__text-only { margin-top: 0; }

.news-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto !important;
  padding-top: 20px !important;
}

.news-card__footer > a {
  font-size: 22px;
  font-weight: 600;
  color: var(--blue-text);
}

.carousel-controls { display: flex; gap: 12px; }
.carousel-controls[hidden] { display: none; }

.carousel-controls button {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
  transition: opacity .15s ease, background-color .15s ease;
}

.carousel-controls button img { width: 100%; height: 100%; transition: filter .15s ease; }
.carousel-controls button:not(:disabled):hover {
  opacity: 1;
  background-color: var(--blue-text);
}
.carousel-controls button:not(:disabled):hover img { filter: brightness(0) invert(1); }
.carousel-controls button:disabled { opacity: .3; cursor: default; }

/* ============================================ */
/* ГЛАВНАЯ: КАРТА */
/* ============================================ */

.map-section { padding: 10px 0; }

.section-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.19;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin: 0 0 18px;
}

.map-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 41px;
}

.map-card__title {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 55px;
}

.map-card__body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex: 1 1 auto;
  width: 100%;
}

.map-info {
  flex: 0 0 300px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
}

.map-info > * {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
}

.map-details dd,
.map-details a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.map-hint {
  background: var(--blue-pale);
  border-radius: 5px;
  padding: 40px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0;
}

.map-details {
  background: var(--blue-pale);
  border-radius: 5px;
  padding: 40px;
}

.map-kso + .map-kso {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.map-details h3 {
  font-size: 18px;
  color: var(--blue-text);
  margin: 0 0 14px;
}

.map-details dl { margin: 0; }
.map-details dl > div { margin-bottom: 12px; }
.map-details dt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.map-details dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}
.map-details a { color: var(--blue-text); }

.map-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-image svg {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: max(320px, calc(100vh - 116px));
}

.map-image g[id$="-regi_1_"] > path:first-of-type {
  transition: fill .15s ease, stroke .15s ease, stroke-width .15s ease;
  cursor: pointer;
}

.map-image g[id$="-regi_1_"]:hover > path:first-of-type {
  fill: var(--blue);
}

.map-image g[id$="-regi_1_"].is-selected > path:first-of-type {
  fill: var(--blue);
}

.map-image .region-label {
  pointer-events: none;
  transition: fill .15s ease;
}

.map-image .region-label.is-hover,
.map-image .region-label.is-selected {
  fill: #fff;
}

.map-image .map-neighbour {
  pointer-events: none;
}

.map-image g[id$="-regi_1_"]:focus {
  outline: none;
}

.map-image g[id$="-regi_1_"]:focus-visible > path:first-of-type {
  stroke: #002d52;
  stroke-width: 3;
}

.map-image__error {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.wide-map-hint { display: block; }
.mobile-map-hint { display: none; }

/* ============================================ */
/* ГЛАВНАЯ: ПЛИТКИ */
/* ============================================ */

.tiles { padding: 90px 0 30px; }

.tiles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.tile {
  position: relative;
  background: #fff;
  box-shadow: var(--card-shadow);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.tile__icon { width: 100px; height: 100px; flex-shrink: 0; filter: brightness(0); }

.tile__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.tile p {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blue-text);
}

.tile__arrow {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}
.tile__arrow img { width: 100%; height: 100%; }

.tile:hover {
  background: linear-gradient(90deg, rgba(0,122,216,.2) 0%, rgba(197,230,255,.2) 100%), #007AD8;
}
.tile:hover .tile__icon { filter: brightness(0) invert(1); }
.tile:hover p { color: #fff; }
.tile:hover .tile__arrow { filter: brightness(0) invert(1); }

/* ============================================ */
/* ГЛАВНАЯ: ССЫЛКИ */
/* ============================================ */

.links-section { padding: 70px 0 80px; }

.links-section__head {
  margin-bottom: 40px;
}

.eyebrow {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-text);
  margin-bottom: 20px;
}

.links-section__head .rule {
  width: 50px;
  height: 1px;
  background: var(--blue);
  margin-bottom: 20px;
}

.links-section__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.links-section__row .section-title { margin: 0; flex: 1; }

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.link-card {
  background: #fff;
  box-shadow: var(--card-shadow);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.link-card:hover {
  box-shadow: 0 12px 28px rgba(0, 67, 134, .18);
  transform: translateY(-3px);
}
.link-card:hover .link-card__url { text-decoration: underline; }

.link-card__url {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--blue-text);
}

.icon--ext { width: 14px; height: 14px; flex-shrink: 0; }

.link-card p {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-dark);
}

/* ============================================ */
/* ПОДВАЛ */
/* ============================================ */

.site-footer {
  background: var(--blue);
  color: #fff;
  margin-top: 20px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  padding: 60px 40px 32px;
}

.footer__col-brand {
  padding-right: 40px;
  border-right: 1px solid var(--white-muted);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand .logo__text { min-width: 0; }
.footer__brand .logo__img { mix-blend-mode: screen; }
.footer__brand .logo__text { color: #fff; }
.footer__brand .logo__text strong { color: #fff; }

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 18px;
  margin-top: 30px;
}

.footer__contacts > div { min-width: 0; }

.footer__contacts .label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 6px;
}

.footer__contacts p { margin: 0; line-height: 1.9; font-weight: 500; }
.footer__contacts a { color: #fff; }

.footer__nav-col h2 {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.footer__nav-col a {
  display: block;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer__nav-col a:hover { opacity: .8; }

.footer__buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 52px;
}

.btn-outline {
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: transparent;
  transition: background .15s ease, color .15s ease;
}
.btn-outline:hover { background: #fff; color: var(--blue-text); }

.footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  margin-top: -70px;
  padding: 16px 40px 40px;
  font-size: 18px;
  font-weight: 500;
  color: var(--white-muted);
}

.footer__bottom-text {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer__copy { margin: 0; line-height: 1.5; }
.footer__legal { color: var(--white-muted); }

.footer__social {
  grid-column: 4;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0px !important;
  flex-direction: row !important;
}

.footer__social img { width: 60px; height: 60px; display: block !important; margin-right: 20px !important; }
.footer__social a { display: inline-flex !important; flex-shrink: 0 !important; }

.footer__social--mobile { display: none; }

.scroll-top {
  width: 60px;
  height: 60px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-left: 4px;
  transition: background-color .15s ease;
}
.scroll-top:hover { background: rgba(255, 255, 255, .15); }
.scroll-top svg { width: 20px; height: 17px; }

/* ============================================ */
/* ХЛЕБНЫЕ КРОШКИ */
/* ============================================ */

.breadcrumb {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 75px 0 0;
  padding-left: 21px;
  font-size: 18px;
  color: var(--text-muted);
}
.breadcrumb > *:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue-text); }

.breadcrumb a {
  flex-shrink: 1;
  min-width: 0;
}
.breadcrumb__current { flex-shrink: 1; min-width: 0; }

.breadcrumb .is-truncatable {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================ */
/* ОСТАЛЬНЫЕ СТРАНИЦЫ (НЕ ГЛАВНАЯ) */
/* ============================================ */

.news-article__content a,
.timeline__text a,
.text-body a,
.text-note a,
.note-card p a,
.text-card > p a {
  color: var(--blue-text);
  text-decoration: underline;
}
.news-article__content a:hover,
.timeline__text a:hover,
.text-body a:hover,
.text-note a:hover,
.note-card p a:hover,
.text-card > p a:hover { text-decoration: none; }

.press-page { padding: 40px 0 80px; }
.press-page__layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 55px;
  align-items: start;
}
/* ... и так далее все остальные стили из style.css, которые НЕ перезаписываются mainpage.css ... */

/* !!! ВНИМАНИЕ !!! 
   Сюда нужно добавить все стили из style.css, которые не относятся к главной странице:
   - press-page
   - news-listing
   - news-feature
   - activity-listing
   - news-detail
   - search-page
   - history-page
   - collegium-page
   - structure-page
   - contacts-page
   - section-page
   - text-page
   - appeal-banner
   - tabs
   - error-page
   - docs-page
   - lightbox
   - и все остальные
*/

/* ============================================ */
/* МЕДИАЗАПРОСЫ */
/* ============================================ */

/* === МОБИЛЬНАЯ ШАПКА И МЕНЮ (1200px) === */

.topbar__mobile { display: none; }
.mobile-menu-toggle { display: none; }
.mobile-nav-close { display: none; }
.mainnav__inner > .a11y-link { display: none; }
.mainnav__search { display: none; }
.mainnav__list--mobile { display: none; }
.mainnav__list--desktop { display: flex; }

@media (max-width: 1680px) and (min-width: 1201px) {
  .mainnav__list { --mainnav-gap: 16px; }
  .mainnav__link { font-size: 15px; }
  .appeal-link { font-size: 15px; gap: 8px; }
  .appeal-link .icon { width: 17px; height: 14px; }
}

@media (max-width: 1465px) and (min-width: 1201px) {
  .container { padding: 0 24px; }
  .topbar__inner { gap: 20px; }
  .topbar__contacts { gap: 16px; }
  .topbar__contacts .contact-item:first-child { display: none; }
  .topbar__contacts .contact-item { font-size: 14px; }
  .logo { gap: 12px; }
  .logo__img { width: 54px; height: 55px; }
  .logo__text { font-size: 13px; }
  .a11y-link { font-size: 13px; }
  .topbar__actions { gap: 10px; }
  .mainnav__list { --mainnav-gap: 10px; }
  .mainnav__link { font-size: 13px; }
  .appeal-link { font-size: 13px; gap: 6px; }
}

@media (max-width: 1200px) {
  .topbar-stripe { height: 10px; }
  .topbar__inner { display: none; }
  .topbar__mobile { display: block; }
  .topbar { border-bottom: none; }

  .topbar__mobile-contacts {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px;
  }
  .topbar__mobile-contacts .contact-item { font-size: 14px; gap: 8px; }
  .topbar__mobile-contacts .contact-item:last-child { flex-shrink: 0; white-space: nowrap; }

  .topbar__mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;
  }
  .topbar__mobile-row .logo__img { width: 50px; height: 51px; }
  .topbar__mobile-row .logo__text { font-size: 14px; min-width: 0; }
  .topbar__mobile-row .logo { min-width: 0; flex-shrink: 1; }
  .topbar__mobile-row .mobile-menu-toggle { flex-shrink: 0; }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .mobile-menu-toggle svg { width: 36px; height: 36px; }

  .mainnav { border-bottom: none; }

  .mainnav__inner {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--blue);
    color: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 10px 40px;
    overflow-y: auto;
  }
  .mainnav__inner.is-open { display: flex !important; }

  .mobile-nav-close {
    display: flex;
    position: absolute;
    top: var(--mobile-nav-close-top, 20px);
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    align-items: center;
    justify-content: center;
    color: var(--blue-text);
    z-index: 1;
  }
  .mobile-nav-close svg { width: 14px; height: 14px; }

  .mainnav__search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: auto;
    margin-top: calc(var(--mobile-address-top, 44px) - 10px);
    margin-bottom: 56px;
    padding: 0 60px 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 15px;
    text-align: left;
  }
  .mainnav__search:focus-within { border-bottom-color: #fff; }
  .mainnav__search-submit { display: flex; flex-shrink: 0; color: #fff; }
  .mainnav__search-submit svg { color: #fff; }
  .mainnav__search input {
    flex: 1;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: none;
    font: inherit;
    color: #fff;
  }
  .mainnav__search input::placeholder { color: rgba(255, 255, 255, .75); opacity: 1; }
  .mainnav__search input:focus { outline: none; }

  .mainnav__list--mobile { display: block; }
  .mainnav__list--desktop { display: none; }

  .mainnav__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }
  .mainnav__list > li { border-bottom: 1px solid rgba(255,255,255,.25); }
  .mainnav__link { width: 100%; justify-content: space-between; padding: 20px 10px; font-size: 16px; color: #fff; white-space: normal; text-align: left; }
  .has-dropdown.is-open .mainnav__link,
  .mainnav__link.is-active,
  .mainnav__link:hover { color: #fff; }
  .appeal-link { padding: 24px 10px; margin-top: 12px; color: #fff; }

  .mainnav__link-text { flex: 1; min-width: 0; }
  .mainnav__link .chevron { width: 16px; height: 8px; flex-shrink: 0; }
  .mainnav__link .chevron { transition: transform 0.3s ease; }
  .has-dropdown-mobile.is-open .chevron { transform: rotate(180deg); }

  .mainnav__eshche-parent { display: none; }
  .mainnav__eshche-item { display: block; }

  .mainnav__accordion {
    overflow: hidden;
    max-height: 0;
    padding: 0 10px 0 20px;
    transition: max-height .3s ease;
  }
  .has-dropdown.is-accordion-open .mainnav__link { color: #fff; }
  .has-dropdown.is-accordion-open .mainnav__link .chevron { transform: rotate(180deg); }

  .mainnav__accordion .dropdown-panel__divider { display: none; }
  .mainnav__accordion .dropdown-panel__grid,
  .mainnav__accordion .dropdown-panel__groups { padding: 0 0 24px; margin-top: 0; border-top: none; }
  .mainnav__accordion .dropdown-panel__flat-links { padding: 0 0 20px; }
  .mainnav__accordion > .goto-link,
  .mainnav__accordion > .dropdown-group__goto {
    margin-left: -10px;
    padding: 4px 0 32px;
    margin-bottom: 0;
  }

  .mainnav__accordion .dropdown-group__list { gap: 0; }
  .mainnav__accordion .dropdown-group__list a { padding: 20px 0; }
  .mainnav__accordion .dropdown-group__list a:first-child { padding-top: 0; }
  .mainnav__accordion .dropdown-group__list a:nth-child(n+2) { border-top: 1px solid rgba(255,255,255,.25); }

  .mainnav__utility {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    margin-top: 12px;
  }
  .mainnav__utility > .a11y-link { color: #fff; font-size: 15px; }
  .mainnav__utility > .a11y-link img { filter: brightness(0) invert(1); }
  .mainnav__utility-row {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .mainnav__utility-row .icon-btn { width: 48px; height: 48px; }
  .mainnav__utility-row .icon-btn img { width: 100%; height: 100%; }

  .dropdown-scrim {
    position: fixed;
    inset: 0;
    height: auto;
    z-index: 50;
    background: var(--blue);
    overflow-y: auto;
  }
  .dropdown-panel__head { padding-top: 20px; }
  .dropdown-panel__head h2 { font-size: 20px; }
  .dropdown-panel__grid,
  .dropdown-panel__groups { --dropdown-cols: 1; }
  .dropdown-panel__grid a:nth-child(n+2) { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); }
  .dropdown-panel__grid a:nth-child(n+4) { padding-top: 20px; }
  .dropdown-group:nth-child(n+2) { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); }
  .dropdown-panel__grid a.is-row-first { padding-top: 0; border-top: none; }
  .dropdown-panel__grid a.is-row-next { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); }
  .dropdown-panel__grid a.is-row-next::after { content: none; }
  .dropdown-panel__grid a.is-row-next::before { top: 25px; }
  .dropdown-group.is-row-next { padding-top: 20px; }
  .dropdown-panel__flat-links { flex-direction: column; gap: 20px; }
}

/* === ПЛАНШЕТЫ (1100px) === */

@media (max-width: 1100px) {
  .topbar__contacts { display: none; }

  .hero__eyebrow { font-size: 16px; letter-spacing: 3px; }
  .hero__title { font-size: 42px; max-width: 780px; }
  .hero__lead { font-size: 20px; }
  .section-title { font-size: 34px; }

  .news-card h3 { font-size: 32px; }
  .news-card time { font-size: 19px; }
  .news-card p { font-size: 19px; }

  .tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile p { font-size: 19px; }

  .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-card__url, .link-card p { font-size: 19px; }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col-brand { grid-column: 1 / -1; border-right: none; padding-right: 0; }

  .press-page__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .press-sidebar { display: none; }

  .news-feature__body h2, .news-card-lg__body h3 { font-size: 22px; }
  .news-feature__body p, .news-card-lg__body p, .news-search__field input, .news-date { font-size: 19px; }

  .timeline { padding: 30px; }
  .timeline__text { font-size: 19px; }
  .timeline__content { padding-bottom: 60px; }

  .person-card { gap: 30px; padding: 30px; }
  .person-card--aligned { padding: 30px 20px; }
  .person-card .avatar { width: 180px; height: 180px; }
  .person-card__name { font-size: 26px; }
  .person-card__role { font-size: 19px; }

  .member-grid { gap: 30px; }
  .member-card { gap: 20px; }
  .member-card .avatar { width: 120px; height: 120px; }
  .member-card__name { font-size: 22px; }
  .member-card__role { font-size: 18px; }

  .member-feed { gap: 40px; }
  .member-activity { gap: 30px; padding: 30px; }
  .member-activity__meta { width: 150px; font-size: 18px; }
  .member-activity__title { font-size: 22px; }
  .member-activity__excerpt { font-size: 18px; }
  .member-activity__media { width: 240px; height: 180px; }

  .structure-page { gap: 40px; }
  .structure-card, .doc-plate { padding: 30px; }

  .docs-page { gap: 40px; }
  .doc-accordion { gap: 40px; }
  .doc-accordion__section { gap: 30px; }
  .doc-accordion__section + .doc-accordion__section { padding-top: 30px; }
  .doc-accordion__title { font-size: 28px; }
  .doc-accordion__body { gap: 30px; }

  .search-page__layout { gap: 40px; }
  .search-field { height: 70px; padding: 0 24px; gap: 20px; }
  .search-field--flush { padding-left: 30px; }
  .search-field svg { width: 30px; height: 30px; }
  .search-group { gap: 40px; }
  .search-group__body { gap: 30px; }
  .search-group__title { font-size: 28px; }
  .search-result { gap: 30px; padding: 30px; }
  .search-result__meta { width: 200px; }
  .search-result__date, .search-result__text { font-size: 18px; }
  .search-result__title { font-size: 22px; }
  .search-result__body .news-more { font-size: 18px; }
  .search-result__media { width: 240px; height: 180px; }

  .error-page { padding: 60px 40px; gap: 30px; }
  .error-page__message { font-size: 26px; }
  .error-page__or { font-size: 30px; }
  .error-page__btn { font-size: 24px; padding: 20px 40px; }

  .tabs__item { min-height: 70px; padding: 16px; font-size: 18px; }
  .page-intro { font-size: 19px; }
  .doc-list { gap: 30px; }

  .tabs-panel { gap: 40px; }

  .text-page { gap: 40px; }
  .text-card { padding: 30px; font-size: 19px; gap: 24px; }
  .text-card h2 { font-size: 28px; }
  .text-note, .note-card { padding: 30px; }
  .text-card--loose { gap: 40px; }
  .text-block { gap: 24px; }

  .appeal-banner { min-height: 0; padding: 30px; gap: 24px; }
  .appeal-banner__body { gap: 30px; }
  .appeal-banner__btn { padding: 16px 28px; }

  .section-page { gap: 40px; }
  .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .section-card__title { font-size: 22px; }
  .section-card .news-more { padding-top: 60px; }

  .contacts-page { gap: 40px; }
  .contact-tile { padding: 30px; }
  .contact-tile__title, .head-card__name, .dept-row__name, .dept-person__name { font-size: 22px; }
  .contact-tile__body p, .head-card__role, .dept-person__role, .dept-person__phone { font-size: 18px; }
  .head-card { gap: 20px; padding: 24px; }
  .dept-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dept-row__name { grid-column: 1 / -1; }

  .news-article__title { font-size: 28px; }
  .news-block-title { font-size: 30px; }
  .news-article__content p,
  .news-article__published,
  .news-gallery__counter,
  .news-doc__name,
  .news-doc__size,
  .news-back { font-size: 19px; }
  .news-more { font-size: 19px; }

  .footer__bottom { display: flex; justify-content: space-between; margin-top: 0; }
  .footer__bottom-text { grid-column: auto; }
  .footer__social { grid-column: auto; }
  .footer__bottom .footer__social { margin-left: auto; }
}

/* === ПЛАНШЕТЫ ПОРТРЕТ (800px) === */

@media (max-width: 800px) {
  .hero__text { padding: 32px; }
  .hero__title { font-size: 34px; max-width: none; }
  .hero__lead { font-size: 18px; }
  .hero__stats { flex-wrap: wrap; }
  .stat { width: 100%; }

  .news-grid { padding: 40px 0; }
  .news-grid__inner { grid-template-columns: minmax(0, 1fr); }
  .news-card h3 { font-size: 26px; }

  .section-title { font-size: 28px; }
  .map-card__body { flex-direction: column; }
  .map-card { padding: 20px; }
  .map-info { flex: 1 1 auto; width: 100%; }

  .footer__bottom { flex-wrap: wrap; }

  .news-search { flex-direction: column; }
  .news-feature { flex-direction: column; gap: 30px; padding: 24px; }
  .news-feature__media img { height: 280px; }
  .news-feed { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .news-card-lg { padding: 24px; }

  .activity-listing { gap: 40px; }
  .activity-card { padding: 24px; }
  .year-filter { gap: 12px; }
  .year-filter__item { min-width: 88px; height: 64px; font-size: 19px; }

  .history-page { gap: 40px; }
  .timeline { padding: 24px; }
  .timeline__content { gap: 20px; padding-bottom: 40px; }
  .timeline__pair { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .collegium-page { gap: 40px; }
  .person-card,
  .person-card--aligned { flex-direction: column; text-align: center; padding: 24px; gap: 20px; }
  .person-card__text { align-items: center; }

  .structure-card, .doc-plate { padding: 24px; }

  .contact-tiles { grid-template-columns: minmax(0, 1fr); }
  .contact-heads { grid-template-columns: minmax(0, 1fr); }
  .contact-tile { padding: 24px; }

  .search-result { flex-direction: column; gap: 20px; }
  .search-result__meta { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .search-result__tags { flex-direction: row; flex-wrap: wrap; }
  .search-result__media { width: 100%; height: auto; aspect-ratio: 4 / 3; }

  .error-page { padding: 40px 24px; }
  .error-page__message { font-size: 22px; }
  .error-page__or { font-size: 24px; }
  .error-page__btn { font-size: 20px; padding: 16px 32px; }

  .tabs__item { font-size: 16px; }

  .text-card { padding: 24px; }
  .text-note, .note-card { padding: 24px; }
  .note-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .text-card--loose { gap: 24px; }

  .lightbox { flex-wrap: wrap; gap: 20px; padding: 24px; }
  .lightbox__frame { order: -1; flex-basis: 100%; padding: 16px; }
  .lightbox__frame img { max-height: calc(100vh - 260px); }
  .lightbox__arrow { width: 48px; height: 48px; }
  .lightbox__close { top: 16px; right: 16px; width: 48px; height: 48px; }
  .lightbox__dots { bottom: 16px; gap: 10px; }
  .lightbox__dot { width: 10px; height: 10px; }

  .appeal-banner { flex-direction: column; align-items: stretch; padding: 24px; }
  .appeal-banner__body { flex: 0 0 auto; max-width: none; }
  .appeal-banner__emblem { flex: 0 0 auto; width: 220px; align-self: flex-start; }

  .member-activity { flex-direction: column; padding: 24px; gap: 16px; }
  .member-activity__meta { flex-direction: row; flex-wrap: wrap; width: auto; gap: 12px; }
  .member-activity__media { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .member-activity__media--empty { aspect-ratio: 2 / 1; }

  .news-detail { gap: 40px; }
  .news-article { padding: 24px 24px 40px; gap: 40px; }
  .news-article__pair { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .news-gallery__peek { display: none; }
  .news-gallery__main { flex: 1 1 auto; }
  .news-doc { flex-wrap: wrap; }
  .news-doc__meta { width: 100%; justify-content: flex-end; }
  .news-related { padding-top: 20px; }
  .news-related__head { padding: 0 24px; }
  .news-related__row { grid-auto-columns: calc(100% - 8px); }
  .pager { justify-content: flex-start; }
}

/* === МОБИЛЬНЫЕ (600px) === */

@media (max-width: 600px) {
  .container { padding: 0 10px; }
  #mainnav-inner { padding: 20px 10px 40px; }
  body { background-image: none; }

  .hero { padding: 10px 0 0; }
  .hero__card { min-height: 0; background: #0098e0; }
  .hero__bg {
    top: auto;
    bottom: 0;
    height: 25%;
    object-position: bottom;
  }
  .hero__text { padding: 20px; min-height: 0; max-width: none; }
  .hero__eyebrow { font-size: 14px; letter-spacing: 2.8px; }
  .hero__title { font-size: 30px; max-width: none; }
  .hero__lead { font-size: 15px; max-width: none; }
  .hero__stats { flex-direction: column; gap: 20px; }
  .stat { width: 100%; }

  .news-grid { padding: 20px 0; }
  .news-grid__inner { gap: 20px; }
  .news-card { padding: 20px; border: 1px solid #e4e4e4; }
  .news-card h3 { font-size: 18px; margin-bottom: 10px; }
  .news-card time { font-size: 14px; margin-bottom: 10px; }
  .news-card p { font-size: 14px; }
  .news-card__footer { padding-top: 30px; }
  .news-card__footer > a { font-size: 14px; }
  .carousel-controls { gap: 10px; }
  .carousel-controls button { width: 36px; height: 36px; }

  .map-section { padding: 20px 0; }
  .section-title { font-size: 20px; }
  .map-card { padding: 0; background: none; border: none; box-shadow: none; }
  .map-card__title { margin-bottom: 20px; }
  .map-card__body { gap: 20px; }
  .map-image { order: -1; }
  .map-info { flex-basis: auto; }
  .map-hint, .map-details { border-radius: 10px; padding: 20px; font-size: 14px; }
  .map-details h3 { font-size: 16px; }

  .wide-map-hint { display: none; }
  .mobile-map-hint { display: block; }

  .tiles { padding: 0 0 20px; }
  .tiles__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tile { padding: 20px; gap: 20px; border: 1px solid #d8dbdf; }
  .tile__icon { width: 60px; height: 60px; }
  .tile p { font-size: 14px; }
  .tile__arrow { width: 36px; height: 36px; }

  .links-section { padding: 0 0 20px; }
  .links-section__head { margin-bottom: 20px; }
  .eyebrow { font-size: 12px; letter-spacing: 2.4px; margin-bottom: 10px; }
  .links-section__row .section-title { font-size: 20px; }
  .links-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .link-card {
    background: #fff;
    flex: 0 0 245px;
    padding: 20px;
    scroll-snap-align: start;
  }
  .link-card__url, .link-card p { font-size: 14px; }

  .footer__top { grid-template-columns: minmax(0, 1fr); padding: 30px 10px; gap: 30px; }
  .footer__col-brand { border-right: none; padding-right: 0; }
  .footer__nav-col { display: none; }
  .footer__brand .logo__img { width: 70px; height: 71px; }
  .footer__brand .logo__text { font-size: 16px; }
  .footer__contacts { font-size: 16px; margin-top: 20px; }
  .footer__contacts .label { font-size: 16px; }
  .footer__buttons { margin-top: 20px; width: 100% !important; display: flex !important; flex-direction: column !important; gap: 10px !important; }
  .btn-outline { font-size: 16px; display: block !important; width: 100% !important; text-align: center !important; box-sizing: border-box !important; }
  .footer__social img { width: 50px; height: 50px; }
  .footer__social--mobile { display: flex; }
  .footer__bottom .footer__social { display: flex !important; justify-content: flex-start !important; }
  .footer__bottom .footer__social a[data-stub] { display: none !important; }
  .footer__bottom .footer__social .scroll-top { display: flex !important; }
  .footer__nav-col-last { width: 100% !important; grid-column: 1 / -1 !important; }
  .scroll-top { width: 36px; height: 36px; }
  .scroll-top svg { width: 13px; height: 15px; }
  .footer__bottom { padding: 20px 10px 30px; font-size: 14px; flex-wrap: wrap; gap: 12px; }
  .footer__bottom-text { gap: 12px; }

  .breadcrumb { font-size: 12px; padding-top: 20px; padding-left: 0; }
  .breadcrumb .is-truncatable { flex-basis: 100%; }
  .press-page { padding: 20px 0 40px; }
  .press-page__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .news-listing { gap: 30px; }
  .news-listing > .section-title { font-size: 28px; }

  .news-search { flex-direction: column; gap: 10px; }
  .news-search__field {
    height: auto;
    padding: 15px;
    gap: 15px;
    border: 1px solid var(--text-muted);
  }
  .news-search__field input,
  .news-period-trigger { font-size: 14px; }
  .news-period-trigger { gap: 15px; }
  .news-search__field .icon,
  .news-period-trigger .icon { width: 24px; height: 24px; }
  .news-calendar { left: 0; width: 100%; }

  .news-feature,
  .news-card-lg { flex-direction: column; padding: 20px; gap: 10px; }
  .news-feature__media,
  .news-card-lg__media { margin-bottom: 0; }
  .news-feature__media img,
  .news-card-lg__media img { height: 230px; }
  .news-feature__body,
  .news-card-lg__body { gap: 10px; }
  .news-tag { font-size: 11px; }
  .news-date { font-size: 14px; }
  .news-feature__body h2,
  .news-card-lg__body h3 { font-size: 18px; }
  .news-feature__body p,
  .news-card-lg__body p { font-size: 14px; }
  .news-feature__body .news-more,
  .news-card-lg .news-more { margin-top: 0; padding-top: 10px; }
  .news-more { font-size: 14px; gap: 10px; }
  .news-more svg { width: 16px; height: 14px; }

  .news-feed { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }

  .activity-listing { gap: 24px; }
  .activity-card { padding: 20px; gap: 10px; }
  .activity-card__meta { gap: 10px; }
  .activity-card__date { font-size: 14px; }
  .activity-card__title { font-size: 18px; }
  .activity-card p { font-size: 14px; }
  .year-filter { gap: 10px; }
  .year-filter__item { min-width: 0; height: 44px; padding: 0 14px; font-size: 14px; }

  .collegium-page, .structure-page, .contacts-page, .section-page { gap: 24px; }
  .text-page { gap: 30px; }
  .text-page > .doc-plate { background: var(--avatar-bg); }
  .collegium-page > .section-title,
  .structure-page > .section-title,
  .contacts-page > .section-title,
  .section-page > .section-title,
  .text-page > .section-title { font-size: 20px; }

  .tabs__item { min-height: 74px; padding: 10px 20px; font-size: 14px; }
  .page-intro { font-size: 14px; }
  .doc-list { gap: 20px; }

  .docs-page { gap: 24px; }
  .docs-page > .section-title { font-size: 20px; }
  .doc-accordion { gap: 24px; }
  .doc-accordion__section { gap: 20px; }
  .doc-accordion__section + .doc-accordion__section { padding-top: 20px; }
  .doc-accordion__header { gap: 12px; }
  .doc-accordion__title { font-size: 18px; }
  .doc-accordion__toggle { width: 36px; height: 36px; }
  .doc-accordion__toggle svg { width: 14px; height: 14px; }
  .doc-accordion__body { gap: 16px; }
  .docs-empty { font-size: 14px; }

  .search-page__layout { gap: 24px; }
  .search-page__layout > .section-title { font-size: 20px; }
  .search-field { height: 52px; padding: 0 16px; gap: 10px; }
  .search-field--flush { padding-left: 16px; }
  .search-field input { font-size: 14px; }
  .search-field svg { width: 22px; height: 22px; }
  .search-filters { gap: 16px; }
  .search-filters__row { gap: 8px; padding: 0; }
  .search-filters__label { padding: 6px 0; font-size: 14px; width: 100%; }
  .filter-tag { padding: 6px 12px; font-size: 14px; }
  .search-group { gap: 24px; }
  .search-group__body { gap: 16px; }
  .search-group__title { font-size: 20px; }
  .search-result { padding: 20px; }
  .search-result__date, .search-result__text { font-size: 14px; }
  .search-result__title { font-size: 17px; }
  .search-result__tag { font-size: 13px; padding: 4px 10px; }
  .search-result__body .news-more { font-size: 15px; gap: 12px; }
  .pager { gap: 16px; }
  .pager__label, .pager__gap, .pager__item { padding: 4px 10px; font-size: 14px; }

  .error-page { padding: 30px 16px; gap: 20px; }
  .error-page__message { font-size: 17px; }
  .error-page__or { font-size: 18px; }
  .error-page__btn { font-size: 15px; padding: 14px 24px; }

  .tabs-panel { gap: 20px; }

  .text-card { padding: 20px; font-size: 14px; gap: 20px; }
  .text-card h2 { font-size: 18px; font-weight: 500; }
  .text-block { gap: 20px; }
  .text-body ul { padding-left: 22px; }
  .text-note, .note-card { padding: 20px; }
  .note-card { gap: 16px; }
  .note-card__icon { width: 48px; height: 48px; }
  .note-card__icon img { width: 32px; height: 32px; }

  .text-card--loose { padding-bottom: 0; }
  .appeal-banner {
    display: block;
    margin: 0 -30px;
    padding: 20px 30px;
    border-radius: 0;
  }
  .appeal-banner__body { gap: 20px; max-width: none; }
  .appeal-banner__slogan { gap: 20px; }
  .appeal-banner__title { font-size: 20px; }
  .appeal-banner__lead { font-size: 18px; font-weight: 500; }
  .appeal-banner__features { flex-direction: column; gap: 10px; }
  .appeal-banner__feature-icon { width: 36px; height: 36px; }
  .appeal-banner__feature-icon img { width: 24px; height: 24px; }
  .appeal-banner__feature span { font-size: 16px; }
  .appeal-banner__btn { font-size: 14px; padding: 15px 12px; align-self: stretch; }
  .appeal-banner__emblem {
    position: absolute;
    right: 36px;
    bottom: 75px;
    width: 121px;
  }
  .section-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .section-card__title { font-size: 17px; }
  .section-card .news-more { padding-top: 30px; }
  .structure-card, .doc-plate { padding: 20px; }

  .structure-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    border-radius: 4px;
    background: #fff;
    box-shadow: var(--card-shadow);
  }
  .structure-block > .structure-card,
  .structure-block > .doc-plate {
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .structure-block > .doc-plate { padding: 0 15px; }

  .contact-tiles, .contact-heads, .dept-table { gap: 16px; }
  .contact-tile { gap: 16px; padding: 20px; }
  .contact-tile__icon { padding: 8px; }
  .contact-tile__icon img { width: 32px; height: 32px; }
  .contact-tile__body { gap: 12px; }
  .head-card { gap: 16px; padding: 16px; }
  .head-card__photo { width: 72px; height: 72px; }
  .dept-row { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 12px; }
  .dept-row__name { padding: 0 0 4px; }
  .dept-person { padding: 16px; gap: 6px; }
  .contact-tile__title, .head-card__name,
  .dept-row__name, .dept-person__name { font-size: 17px; }
  .contact-tile__body p, .head-card__role,
  .dept-person__role, .dept-person__phone { font-size: 14px; }
  .person-card .avatar { width: 150px; height: 150px; }
  .person-card__name { font-size: 20px; }
  .person-card__role { font-size: 15px; }

  .member-grid { gap: 16px; }
  .member-card { gap: 16px; padding: 16px; }
  .member-card .avatar { width: 90px; height: 90px; }
  .member-card .avatar--empty img { width: 46px; }
  .member-card__text { gap: 6px; }
  .member-card__name { font-size: 17px; }
  .member-card__role { font-size: 14px; }

  .member-feed { gap: 20px; }
  .member-activity { padding: 20px; }
  .member-activity__meta { font-size: 14px; }
  .member-activity__title { font-size: 18px; }
  .member-activity__excerpt { font-size: 14px; }
  .member-activity__media--empty img { width: 46px; }

  .history-page { gap: 24px; }
  .history-page > .section-title { font-size: 20px; }
  .timeline { padding: 20px; }
  .timeline__item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-areas: "rail year" "rail content";
    column-gap: 12px;
  }
  .timeline__year { grid-area: year; width: 66px; padding: 4px 8px; font-size: 13px; margin-bottom: 12px; }
  .timeline__rail { grid-area: rail; width: 24px; padding: 6px; }
  .timeline__content { grid-area: content; gap: 16px; padding-bottom: 30px; }
  .timeline__rail img { width: 12px; height: 12px; }
  .timeline__text { font-size: 14px; }
  .timeline__text ul { padding-left: 22px; }
  .timeline__video-play { width: 42px; height: 42px; }

  .news-detail { gap: 24px; }
  .news-back { font-size: 16px; padding: 0; gap: 12px; }
  .news-article { padding: 20px; gap: 30px; }
  .news-article__title { font-size: 20px; }
  .news-block-title { font-size: 20px; }
  .news-article__meta { gap: 12px; }
  .news-article__published { font-size: 14px; gap: 12px; }
  .news-article__published .icon { display: none; }
  .news-article__content { gap: 24px; }
  .news-article__content p,
  .news-gallery__counter,
  .news-doc__name,
  .news-doc__size { font-size: 14px; }
  .news-gallery,
  .news-docs { gap: 24px; }
  .news-gallery__stage { gap: 16px; }
  .news-gallery__arrow { width: 44px; height: 44px; }
  .news-doc { gap: 12px; }
  .news-doc__icon { width: 40px; height: 45px; }
  .news-doc__meta { gap: 12px; }
  .news-doc__size { width: auto; height: 44px; padding: 0; margin-right: auto; }
  .news-doc__action { width: 44px; height: 44px; }
  .news-doc__action svg { width: 22px; height: 22px; }
  .news-related { padding-top: 10px; gap: 24px; }
  .news-related__head { padding: 0; flex-direction: column; align-items: flex-start; gap: 16px; }
  .news-related__row { gap: 20px; grid-auto-columns: calc(100% - 8px); }

  .pager { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pager__group { gap: 12px; row-gap: 12px; flex-wrap: wrap; }
  .pager__label { width: 80px; padding: 10px 0; }
  .pager__label, .pager__btn, .pager__ellipsis { font-size: 14px; }
  .pager__btn, .pager__ellipsis { height: auto; min-height: 40px; padding: 10px 16px; }

  .search-panel__inner {
    padding: 16px 12px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .search-panel__inner form {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-panel__label {
    font-size: 14px;
    width: 100%;
  }
  .search-panel__input {
    font-size: 15px;
    min-width: 60px;
  }
  .search-panel__submit,
  .search-panel__close {
    width: 30px;
    height: 30px;
  }
  .search-panel__submit svg { width: 18px; height: 18px; }
  .search-panel__close svg { width: 14px; height: 14px; }
}

/* ============================================ */
/* РАЗНОЕ (специфичные правки) */
/* ============================================ */

#bx_incl_area_12 {
  display: contents !important;
}

.footer__menu-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  width: 320% !important;
}

@media (max-width: 1200px) {
  .footer__menu-inner {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .footer__menu-inner {
    width: 100% !important;
  }
  .footer__nav-col { display: none; }
}

#bx_incl_area_12 .bx-context-toolbar {
  display: block !important;
  position: relative !important;
  margin-bottom: 10px !important;
  grid-column: 1 / -1 !important;
}

.footer__bottom .footer__social .bx-context-toolbar-empty-area {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  flex-direction: row !important;
}
/* End */


/* Start:/local/templates/ksp_krasnodar/components/bitrix/menu/footer_menu/style.css?179276316859*/
div.footer__brand .logo__img {
    mix-blend-mode: unset;
}
/* End */
/* /local/templates/ksp_krasnodar/css/main.css?179276316859590 */
/* /local/templates/ksp_krasnodar/components/bitrix/menu/footer_menu/style.css?179276316859 */
