:root {
  --color0: #000;
  --color1: #f9f9f9;
  --color2: #111;
  /*--color3: #82B0E052;*/
  --color3: #d3e2f1;
  --color4: #1B5DA7;
  --color5: #fff;
  --color6: #FFFFFFCC;
  --color7: #202027;
  --color8: #00000014;
  --color9: #6e6e6e;
  --color10: #2d2f32;
  --containerWidth: 1200px;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  font-family: 'Montserrat';
  font-style: normal;
  color: var(--color0);
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  padding: 0;
  margin: 0;
  font-weight: 500;
}

ol,
ul {
  list-style: none;
}

a,
a:visited,
a:hover {
  text-decoration: none;
  color: inherit;
}

select,
input {
  font-family: 'Montserrat';
}

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

body {
  display: flex;
  flex-direction: column;
  background-color: var(--color1);
  min-height: 100vh;
  overflow-x: hidden;
}

#workarea {
  flex: 1 1 auto;
}

.icon-chevron-down {
  font-size: .4rem;
}

.icon-eye,
.icon-printer {
  font-size: 1.3rem;
}

.container {
  width: 100%;
  max-width: calc(var(--containerWidth) + 30px);
  margin: 0 auto;
  padding: 0 15px;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0 0 40px 0;
}

.header-container {
  position: sticky;
  top: 0;
  z-index: 9;
}

.header {
  margin: 20px auto 17px;
  padding: 18px 17px;
  border-radius: 20px;
  background-color: var(--color3);
}

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

.logo {
  display: flex;
}

.logo img {
  width: 57.14px;
  height: 70px;
}

.logo__text {
  margin: 0 0 0 11px;
}

.logo__title {
  font-size: 30px;
  font-weight: 500;
}

.logo__subtitle {
  font-size: 24px;
  font-weight: 300;
}

.lang-icon {
  display: flex;
  width: 58px;
  justify-content: space-between;
  align-items: center;
}

.lang-icon span {
  font-weight: 600;
  font-size: 12px;
}

.lang-icon i::before {
  display: block;
}

.header__buttons {
  display: flex;
  align-items: center;
  color: var(--color4);
  column-gap: 15px;
  font-size: 1.65rem;
}

.header__buttons i {
  vertical-align: middle;
}

.header__buttons>img {
  max-height: 36px;
  max-width: 36px;
}

/* TODO: align center */
.header__buttons_group {
  display: flex;
  column-gap: 9px;
}

.broadcast-btn {
  width: 100px;
  height: 36px;
  background: var(--color4);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  display: flex;
  justify-content: center;
  align-items: center;
}

a.broadcast-btn {
  color: var(--color5);
}

.broadcast-btn>i {
  padding: 0 14px 0 0;
  margin: 0 -7px 0 0;
}

.menu {
  display: flex;
  position: relative;
  flex-wrap: wrap;
  font-size: .938rem;
  column-gap: 26px;
  row-gap: 18px;
  padding: 20px 0 0 0;
  color: var(--color2);
  font-size: 15px;
  font-weight: 500;
  overflow-inline: clip;
}

.menu li ul {
  position: absolute;
  visibility: hidden;
  background-color: var(--color5);
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
  z-index: 9;
  overflow: hidden;
  text-wrap: auto;
}

.menu li:hover ul {
  visibility: visible;
}

.menu li ul li {
  max-width: 100%;
}

.menu li ul li a {
  display: inline-block;
  width: 100%;
  padding: 15px;
  white-space: break-spaces;
}

.menu li ul li:hover {
  color: var(--color5);
  background-color: var(--color4);
}

.search-input {
  border-radius: 50px;
  overflow: hidden;
  background-color: var(--color6);
}

.search-input form {
  display: flex;
  flex-direction: revert;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  margin-bottom: 0;
}

.search-input input {
  border: none;
  font-size: inherit;
  font-family: inherit;
  flex: 1 1 auto;
}

.search-input input::placeholder {
  color: inherit;
}

.search-input input:focus {
  outline: none;
}

.search-input button {
  color: var(--color7);
  font-size: 20px;
  margin: 0 17px 0 0;
  border: none;
  background: none;
  cursor: pointer;
}

.shadow {
  box-shadow: 0px 0px 20px 0px var(--color8);
}

.menu li ul.shadow {
  max-width: 300px;
}

.block-wrapper {
  background-color: var(--color5);
  padding: 60px 0;
}

.content-block__title {
  font-size: 30px;
  color: var(--color4);
  position: relative;
  padding: 0 0 0 17px;
  margin: 0 0 24px 0;
}

a.content-block__title {
  color: var(--color4);
  display: block;
}

.content-block__title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background-color: var(--color4);
  border-radius: 5px;
}

.map-search {
  display: flex;
  gap: 24px;
}

.map-search__form {
  width: 33.333%;
}

.map-search__form button {
  background-color: var(--color4);
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--color5);
  border: none;
  cursor: pointer;
  margin-bottom: 15px;
}

.map-search__form label {
  font-size: 18px;
}

.map-search__form-field {
  margin: 10px 0 15px 0;
  padding: 15px 15px 15px 20px;
  background-color: var(--color5);
  border-radius: 10px;
  font-size: 15px;
  color: #6E6E6E;
  border: none;
  display: block;
  width: 100%;
}

select.map-search__form-field {
  /* Убираем стандартную стрелку */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Добавляем собственную стрелку через фоновое изображение */
  background: url('data:image/svg+xml;utf8,<svg fill="000" height="10" viewBox="0 0 10 6" width="10" xmlns="http://www.w3.org/2000/svg"><path d="M0 0l5 6 5-6z"/></svg>') no-repeat;

  /* Позиционируем стрелку 15px левее от стандартного положения */
  background-position: right 15px center;

  cursor: pointer;
}

input.map-search__form-field::placeholder,
select.map-search__form-field option {
  color: var(--color9);
  font-size: 15px;
  font-weight: 400;
}

.map-search__map {
  width: calc(66.666% - 24px);
}

.map-search__map-title {
  font-size: 18px;
  margin: 0 0 10px 0;
}

.map-search__map-interactive {
  border-radius: 20px;
  overflow: hidden;
  height: 293px;
}

footer {
  background-color: var(--color10);
  color: var(--color5);
  font-size: 15px;
  font-weight: 400;
  padding: 50px 0 80px 0;
}

footer>.container {
  display: flex;
  position: relative;
}

footer span {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 10px 0;
  font-family: 'Montserrat';
}

footer .site-version span {
  font-size: 12px;
}

.footer-left {
  flex: 0 0 auto;
}

.footer-tooltips {
  display: flex;
  justify-content: space-between;
  margin: 30px 0 100px;
}

.footer-tooltips a {
  text-decoration: underline;
  display: block;
}

.footer-tooltips div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.site-version a {
  text-decoration: none;
  display: flex;
  gap: 10px;
}

.site-version a span {
  text-decoration: underline;
}

.inclusive-site-version {}

.inclusive-site-version a {
  display: flex;
  align-items: center;
}

.inclusive-site-version a::before {
  text-decoration: unset;
}

.inclusive-site-version span {
  margin: 0;
}

.inclusive-site-version img {
  margin: 0 7px 0 0;
}

.footer-sitemap {
  margin: 0 85px;
  white-space: nowrap;
}

.footer-sitemap * {
  display: block;
}

.footer-sitemap a {
  margin: 0 0 8px 0;
}

.footer-sitemap a:last-of-type {
  margin: 0;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-phone,
.contact-address {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-start;
}

.copyright {
  position: absolute;
  right: 0;
  font-size: 12px;
  margin: 30px 0 0 0;
  width: 50%;
}

.pagination {
  color: var(--color2);
  font-size: 14px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.pagination li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination__left {
  font-size: 33px;
  margin: 0 5px 0 0;
  border-radius: 50%;
}

.pagination__right {
  font-size: 33px;
  transform: rotate(180deg);
  margin: -1px 0 0 5px;
  border-radius: 50%;
}

.pagination__number {
  font-size: 14px;
  border-radius: 7px;
  border: 1px solid;
  width: 35px;
  height: 35px;
}

.pagination__number_current {
  color: var(--color5);
  border-color: var(--color2);
  background-color: var(--color2);
}

.pagination__dots::after {
  content: '···';
}

@media (min-width: 769px) {
  .header__burger {
    display: none;
  }
}

@media (max-width: 769px) {
  .logo img {
    width: 30px;
    height: 36.75px;
  }

  .logo__text {
    margin: 0 0 0 7px;
  }

  .logo__title {
    font-size: 15px;
  }

  .logo__subtitle {
    font-size: 13px;
  }

  .header__buttons,
  .menu {
    display: none;
  }
}


.element {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 10px;
}

.preview-picture {
  margin-left: 20px;
  max-width: 40%;
}

.preview-text {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-text a {
  color: var(--color4);
}

.preview-text.full {
  max-width: 100%;
}

.files {
  margin-top: 20px;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.files h4 {
  margin-bottom: 10px;
}

.files ul {
  list-style-type: disc;
  padding-left: 20px;
}

.deputy-list {
  padding: 15px;
  font-family: Arial, sans-serif;
  min-width: 250px;
}

.deputy-list strong {
  display: block;
  font-size: 16px;
  color: #2C3E50;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3498DB;
}

.deputy-item {
  margin-top: 10px;
  line-height: 1.5;
}

.deputy-item a {
  color: #2980B9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.deputy-item a:hover {
  color: #E74C3C;
  text-decoration: underline;
}

/* Стилизация самого балуна (переопределение стандартных стилей яндекс карт) */
.ymaps-2-1-79-balloon {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
}

.ymaps-2-1-79-balloon__content {
  padding: 0 !important;
  margin: 0 !important;
}

.ymaps-2-1-79-balloon__close {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.ymaps-2-1-79-balloon__close:hover {
  opacity: 1;
}

.deputy-list p {
  color: #7F8C8D;
  font-style: italic;
  margin: 10px 0;
  padding: 10px;
  background: #F8F9F9;
  border-radius: 4px;
  text-align: center;
}


.footer-buttons {
  display: flex;
  align-items: flex-end;
  gap: 15px
}

.footer-buttons a i {
  font-size: 25px;
}

.popup-rename-me__icons_group {
  display: flex;
  gap: 10px;
}


@media screen and (max-width: 1200px) {
  .copyright {
    width: 65%;
  }

  .footer-sitemap {
    margin: 0 20px;
  }
}

@media screen and (max-width: 992px) {
  .map-search__form {
    width: 100%;
  }

  .map-search__map {
    width: 100%;
  }

  .page-content {
    gap: 20px;
  }

  .map-search {
    flex-wrap: wrap;
    gap: 10px;
  }

  .map-search__form button {
    width: 100%;
  }

  .content-block__title {
    font-size: 20px;
    margin: 0 0 10px 0;
  }

  .block-wrapper {
    padding: 30px 0;
  }

  .element {
    flex-direction: column;
  }

  .preview-picture {
    max-width: 100%;
    margin: 0 auto;
  }

  .preview-text {
    max-width: 100%;
  }

  footer>.container {
    flex-wrap: wrap;
  }

  .footer-left {
    flex: 100%;
  }

  .footer-sitemap {
    margin: 0;
    width: 100%;
    margin: 30px 0;
    text-align: center;
  }

  footer .logo {
    justify-content: center;
  }

  .footer-tooltips {
    justify-content: center;
    gap: 35px;
    margin: 30px 0;
  }

  .footer-tooltips>div,
  .site-version {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
  }

  .footer-buttons {
    justify-content: center;
  }

  .footer-contacts {
    width: 100%;
    text-align: center;
  }

  footer .container {
    min-height: 52px;
  }

  .contact-phone,
  .contact-address {
    justify-content: center;
  }
}

@media screen and (max-width: 500px) {

  .contact-phone,
  .contact-address {
    justify-content: flex-start;
  }

  footer .logo {
    justify-content: flex-start;
  }

  .footer-buttons {
    justify-content: flex-start;
  }

  .footer-sitemap {
    text-align: left;
  }

  .footer-contacts {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}


.header-container.act {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #F9F9F9;
}

.header-container.act .header__buttons {
  display: flex;
  position: fixed;
  width: calc(100% - 30px);
  left: 15px;
  top: 450px;
  box-shadow: 0px 0px 20px 0px var(--color8);
  background: #fff;
  padding: 15px;
  border-radius: 15px;
}

.header-container.act .broadcast-btn {
  position: fixed;
  top: 530px;
  width: calc(100% - 30px);
  left: 15px;
}

.header-container.act .header {
  background-color: rgba(0, 0, 0, 0);
  box-shadow: none;
}

.menu.act {
  margin-top: 100px;
  width: 100%;
  display: block;
  max-width: 100% !important;
  position: unset !important;
  padding: 15px;
  border-radius: 15px;
  background-color: #ffffff;
}

.search-input.act {
  position: fixed;
  z-index: 999;
  width: calc(100% - 30px);
  top: 109px;
}

.menu.act li ul.shadow {
  display: none;
}

.news-detail-text ul {
  list-style: initial;
  padding-left: 20px;
}

.news-detail-text ol {
  list-style: initial;
  padding-left: 20px;
}