/* ----------------------------------------
   База стилей
---------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* font-family: 'JetBrains Mono', monospace; */
  background: #ffffff69;
  color: #222222;
  overflow-x: hidden;
  max-width: 100%;
}

main {
  flex: 1;
  max-width: 100%;
}

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

footer {
  background: #ffffff69;
  color: #222222;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

h3 {
  color: #004b7e;
}

/* ----------------------------------------
   Navigation
---------------------------------------- */
nav {
  background: rgb(128, 196, 239);
  padding: 0;
  margin: 0;
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px;
  background:rgb(188, 211, 231);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.social-icons a {
  display: flex;
  align-items: center;
  transition: opacity 0.2s, transform 0.2s;
}

.social-icons a:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.social-icons img {
  width: 28px;
  height: 28px;
  display: block;
}

/* ----------------------------------------
   Menu
---------------------------------------- */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.menu__item {
  position: relative;
  padding: 0 8px;
}

.menu__link {
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  font-size: 1rem;
  color: #1a2b50;
  font-weight: bold;
  transition: opacity 0.2s;
  font-style: bold;
}

.menu__link:visited {
  color: #1a2b50;
}

.menu__link:hover,
.menu__link:visited:hover {
  color: #3b78ea;
}

.has-children > .menu__link {
  cursor: pointer;
}

.menu__children {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 12px;
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  width: max-content;
  z-index: 1050;
}

.menu__item.is-open > .menu__children {
  display: block;
}

.menu__children .menu__item {
  margin: 6px 0;
}

.menu__children .menu__link {
  color: #1a2b50;
}

.menu__children .menu__link:visited {
  color: #1a2b50;
}

.menu__children .menu__link:hover,
.menu__children .menu__link:visited:hover {
    color: #3b78ea;
}

.menu__children .menu__children {
  left: 100%;
  top: 0;
  margin: 0 0 0 8px;
}

.menu__children .has-children > .menu__link::after {
  content: ' ▸';
  font-size: 0.85em;
  margin-left: 4px;
}

/* ----------------------------------------
   Top Header
---------------------------------------- */
.top {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.top > * {
  position: relative;
  z-index: 1;
}

.top__table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.top__cell {
  background: rgba(202, 212, 221, 0.7);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.top__cell--center {
  padding: 0;
  text-align: center;
}

.top__cell--right {
  text-align: right;
}

.top__logo {
  width: 95%;
  display: block;
  margin: 0 auto;
}

.top__text-small {
  font-size: 26px;
  color: #1f2a44;
}

.top__text-large {
  font-size: 40px;
  color: #0a1b72;
}

/* ----------------------------------------
   News
---------------------------------------- */
.news-section-title {
  color: #0c298a;
}

.page-title {
  color: #0c298a;
  margin-bottom: 2%;
}

.news-content-wrapper {
  border: 1px solid #ccc;
  border-radius: 1%;
  margin-top: 1%;
}

.section-divider {
  margin: 2% 1% 0 1%;
  border-top: 1px solid #ccc;
}

.news-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.news-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
}

.news-wrapper::-webkit-scrollbar {
  display: none;
}

.arrow-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgb(124, 221, 129);
  border: 2px solid #004b7e;
  color: #004b7e;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  z-index: 100;
  visibility: hidden;
}

.arrow-button:hover {
  transform: translateY(-50%) scale(1.08);
}

.arrow-button.left {
  left: 10px;
}

.arrow-button.right {
  right: 10px;
}

.arrow-button[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.news-card {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  width: 250px;
  height: auto;
  margin: 10px;
  background: #e9edee;
  padding: 20px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid #cfd6dc;
}

.news-card img {
  display: block;
  margin: 10px auto;
  max-width: 100%;
}

.news-card .created-at {
  margin-top: auto;
  text-align: right;
  font-size: 14px;
}

.news-block {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  color: #1a2b50;
}

.news-content {
  padding: 10px;
  font-size: 16px;
}

.full-content.is-collapsed {
  display: none;
}

.text-muted {
  color: #6c757d;
}

.consumer-info-section {
  margin: 1% 1% 0;
}

.consumer-info-title {
  color: #0c4f83;
  margin-bottom: 16px;
}

.consumer-info-card {
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  background: #ffffff;
  margin-bottom: 22px;
  overflow: hidden;
}

.consumer-info-card-head {
  margin-bottom: 8px;
}

.consumer-info-card-title {
  display: inline-block;
  background: rgb(202, 212, 221);
  padding: 12px 22px;
  border-radius: 0 0 22px 0;
  color: #22385f;
  margin: 0;
}

.consumer-info-content {
  padding: 10px 22px 16px;
  color: #2f4364;
}

.consumer-info-anonce {
  margin: 2px 0 8px;
}

.consumer-info-full {
  margin-top: 10px;
}

.consumer-info-files {
  margin-top: 12px;
}

.consumer-info-toggle {
  display: inline-block;
  margin-top: 6px;
}

.consumer-info-pagination {
  margin: 4px 0 24px;
  text-align: center;
}

.consumer-info-pagination a,
.consumer-info-pagination span {
  margin: 0 6px;
}

/* ----------------------------------------
   Static Page Content
---------------------------------------- */

.content-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: auto;
    display: block;
}

.content-wrapper * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.content-wrapper img, 
.content-wrapper video, 
.content-wrapper iframe {
    height: auto !important;
    display: block;
    margin-bottom: 1rem;
}

.content-wrapper table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    border-collapse: collapse;
}

.custom-layout {
    margin: 1% 1% 0 1%;
    padding-bottom: 3rem;
}

.custom-layout h1 {
    color: #0a1b72;
    margin-bottom: 1rem;
}

.management-biography,
.management-education,
.management-recommendations {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  font-size: 16px;
}
