@font-face {
  font-family: 'PT Root UI';
  src: url('../fonts/PT-Root-UI/pt-root-ui_light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PT Root UI';
  src: url('../fonts/PT-Root-UI/pt-root-ui_regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PT Root UI';
  src: url('../fonts/PT-Root-UI/pt-root-ui_medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PT Root UI';
  src: url('../fonts/PT-Root-UI/pt-root-ui_bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root{
  --container-max-width: 1440px;

  --text-size-sm: 14px;
  --text-size-md: 16px;
  --text-size-xl: 20px;
  --text-size-2xl: 32px;
  --text-size-3xl: 48px;

  --page-gap-sm: 56px;
  --page-gap-md: 144px;
  --block-gap-md: 40px;
  --block-gap-sm: 20px;

  --text-strong: #fff;
  --text-weak: rgba(255, 255, 255, 0.60);
  --accent: #3FE5F1;

  --text-height-sm: 142%;
  --text-height-md: 150%;
  --text-height-xl: 120%;

  --container-padding: 20px;
  --wrapper-padding: 20px;

  --radius-md: 40px;
}

*{
  padding: 0px;
	margin: 0px;
	border: none;
  box-sizing: border-box;
}

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

body {
  font-family: 'PT Root UI', sans-serif;
  font-size: var(--text-size-md);
  font-weight: 400;
  line-height: var(--text-height-md);
  color: var(--text-strong);
  background-color: #010509;
  background-image: url('../images/pattern-bg.png'), url('../images/lights.png'),url('../images/pixels.png'), url('../images/pixels_rotated.png');
  background-repeat: repeat, no-repeat, repeat-x, repeat-x;
  background-size: auto, cover, auto, auto;
  background-position: center, center right, top, bottom;
  background-attachment: scroll, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
  /* overflow-y: hidden; */
}

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

a:hover  {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p {
  font-size: inherit;
  font-weight: inherit;
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

ul, ul li {
	list-style: none;
}

img {
	vertical-align: top;
}

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

.container{
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.bg_wrapper{
  max-width: calc(var(--container-max-width) + 40px);
  padding: 0 var(--wrapper-padding);
  margin: 0 auto;
  background-image: url('../images/rulers-desktop.png');
  background-repeat: repeat-y;
  background-size: 100%;
  background-position: center
}
.header .bg_wrapper{
  background-image: none;
}

.d_flex{
  display: flex;
}

.items_center{
  align-items: center;
}

.justify_center{
  justify-content: center;
}

.justify_between{
  justify-content: space-between;
}

.page_gap_top_sm{
  padding-top: var(--page-gap-sm);
}

.page_gap_top_md{
  padding-top: var(--page-gap-md);
}

.block_gap_bottom_md{
  padding-bottom: var(--block-gap-md);
}

.section_title_accent{
  color: var(--accent);
  font-size: var(--text-size-xl);
  font-weight: 500;
  line-height: var(--text-height-xl);
  letter-spacing: -1px;
}

.section_title{
  color: var(--text-strong);
  font-size: var(--text-size-3xl);
  font-weight: 500;
  line-height: 86%;
  letter-spacing: -2.8px;
}

.section_title_white{
  color: var(--text-strong);
  font-size: var(--text-size-2xl);
  font-weight: 500;
  line-height: 87.5%;
  letter-spacing: -1.6px;
}

.text_weak{
  color: var(--text-weak);
  font-weight: 400;
  font-size: var(--text-size-md);
  line-height: var(--text-height-md);
}

.text_strong{
  color: var(--text-strong);
  font-weight: 500;
  font-size: var(--text-size-md);
  line-height: var(--text-height-md);
}

.doc_text_strong{
  color: var(--text-strong);
  font-weight: 500;
  font-size: var(--text-size-xl);
  line-height: var(--text-height-xl);
  letter-spacing: -1px;
}

.section_border{
  border-top: 1px solid rgba(63, 229, 241, 0.07);
  border-bottom: 1px solid rgba(63, 229, 241, 0.07);
}

.card_border{
  border: 1px solid rgba(63, 229, 241, 0.07);
  border-radius: var(--radius-md);
}

.member_name{
  font-size: var(--text-size-xl);
  font-weight: 500;
  line-height: var(--text-height-md);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.member_position{
  color: var(--text-weak);
  font-size: var(--text-size-sm);
  font-weight: 400;
  line-height: var(--text-height-sm);
}

.member_card_content{
  display: flex;
  align-items: center;
  gap: 16px;
}

.member_card_content img{
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 999px;
}

/* ---------------- map style ------------------- */

.map {
  width: 100%;
  height: auto;
}
.map__dot {
  fill: var(--accent);
  fill-opacity: 0.1;
  animation-name: map-dot;
  animation-direction: alternate;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 1s;
  animation-play-state: paused;
}
@keyframes map-dot {
  from {
    fill-opacity: 0.1;
  }
  to {
    fill-opacity: 0.3;
  }
}
.map__dot:nth-child(8n) {
  animation-play-state: running;
}
.map__dot:nth-child(12n) {
  animation-delay: 0.5s;
  animation-play-state: running;
}
.map__dot:nth-child(20n) {
  animation-delay: 1.5s;
  animation-play-state: running;
}

/* ---------------- section style -------------------- */

.page_top_box{
  width: 100%;
  height: var(--page-gap-md);
}

.page_top_box .bg_wrapper{
  height: 100%;
}

.burger{
  display: none;
}

.header {
  height: 40px;
  border-bottom: 1px solid rgba(63, 229, 241, 0.07);
  background-color: rgba(1, 5, 9, 0.10);
  backdrop-filter: blur(20px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
}

.header_mobile_nav{
  display: none;
}

.header_nav li, .header_lang li{
  height: 40px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.50);
  border-bottom: 2px solid transparent;
}

.header_nav ul, .header_lang{
  gap: 24px;
  font-size: var(--text-size-sm);
}

.header_nav ul li:last-child a{
  gap: 8px;
}

.header_nav ul li.active, .header_lang li.active{
  border-color: var(--accent);
  color: var(--text-strong);
}

.hero_section .container{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--block-gap-md);
}

.hero_section h1{
  font-size: 64px;
  font-weight: 500;
  line-height: 87.5%;
  letter-spacing: -3.2px;
}

.hero_section_text{
  display: flex;
  justify-content: flex-end;
}

.hero_section p{
  color: var(--text-weak);
  font-size: var(--text-size-md);
  /* width: 85%; */
}

.hero_section p a{
  text-decoration: underline;
}

.task_council_content .container, .main_activity_content .container{
  display: grid;
  gap: var(--block-gap-md);
  grid-template-columns: repeat(4, 1fr);
}

.main_activity_content .container{
  align-items: center;
}

.task_council_card{
  height: 320px;
  padding: var(--block-gap-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background: url('../images/bg-tasks.png') no-repeat center / cover,
  linear-gradient(180deg, rgba(55, 238, 251, 0.15) 0%, rgba(55, 238, 251, 0.05) 100%);
  backdrop-filter: blur(40px);
}

.main_activity_card{
  padding: var(--block-gap-md);
  display: flex;
  gap: var(--block-gap-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url('../images/bg-directions.png') no-repeat center / cover,
  linear-gradient(180deg, rgba(55, 238, 251, 0.15) 0%, rgba(55, 238, 251, 0.05) 100%);
  backdrop-filter: blur(40px);
  cursor: pointer;
}

.main_activity_card .first_text{
  padding-bottom: 1px;
  border-bottom: 1px dashed var(--text-weak);
}

.main_activity_card .rest {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.main_activity_card:hover .rest {
  max-height: 100px; /* резервируем фиксированную высоту */
  opacity: 1;
}

.member_locale{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--block-gap-md);
}

.chairman_box{
  border: 1px solid rgba(63, 229, 241, 0.07);
  border-radius: var(--radius-md);
  padding: var(--block-gap-md);
  background: url('../images/bg-person.png') no-repeat center / cover,
  linear-gradient(180deg, rgba(55, 238, 251, 0.15) 0%, rgba(55, 238, 251, 0.05) 100%);
  backdrop-filter: blur(40px);
}

.chairman_card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--block-gap-sm);
}

.chairman_card .name_box{
  text-align: center;
}

.chairman_card .img_box{
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  /* overflow: hidden; */
  /* background: radial-gradient(circle, rgba(10, 45, 47, 0.05) 0%, rgba(7, 29, 30, 0.95) 100%); */
  background: linear-gradient(180deg, rgba(55, 238, 251, 0.15) 0%, rgba(55, 238, 251, 0.05) 100%);
}

.chairman_card .img_box img{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: auto;
  z-index: 1;
}

.member_locale_list_box{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--block-gap-md);
}

.secretary_box{
  display: flex;
  flex-direction: column;
  gap: var(--block-gap-md);
}

.member_foreign_list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--block-gap-md);
}

.member_locale_list_2{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--block-gap-md);
}

.meeting_section > .bg_wrapper{
  padding-bottom: var(--page-gap-sm);
}

.meeting_content{
  background: url('../images/bg-row.png') no-repeat center / cover,
  linear-gradient(180deg, rgba(55, 238, 251, 0.15) 0%, rgba(55, 238, 251, 0.05) 100%);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(63, 229, 241, 0.07);
  border-radius: var(--radius-md);
  padding: var(--block-gap-md);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--block-gap-md);
}

.meeting_title{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meeting_data_box{
  border-left: 1px solid rgba(63, 229, 241, 0.07);
  padding-left: var(--block-gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--block-gap-sm);
}

.meeting_data{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meeting_program_box .text_strong{
  position: relative;
  width: fit-content;
  padding-bottom: 1px;
  border-bottom: 1px dashed var(--text-weak);
  cursor: pointer;
}

.meeting_program_box .text_strong svg{
  position: absolute;
  right: -16px;
  top: 30%;
  transition: transform 0.3s ease;
}

.meeting_program_box .text_strong.open svg {
  transform: rotate(180deg);
}

.meeting_program_list{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meeting_program_item{
  padding-left: 12px;
  position: relative;
}

.meeting_program_item .text_weak::before{
  position: absolute;
  left: 0;
  top: 10px;
  content: '';
  width: 4px;
  height: 4px;
  background-color: var(--accent);
}

.documents_tab_list{
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: var(--page-gap-sm);
  padding-top: var(--block-gap-md);
}

.documents_tab_list .tab_box{
  padding: 8px 16px;
  background: linear-gradient(180deg, rgba(55, 238, 251, 0.15) 0%, rgba(55, 238, 251, 0.05) 100%);
  backdrop-filter: blur(40px);
  border-radius: 999px;
  cursor: pointer;
}

.documents_tab_list .tab_box p{
  font-size: var(--text-size-md);
  font-weight: 400;
  color: var(--text-strong);
}

.documents_tab_list .tab_box.active{
  background: var(--accent);
  backdrop-filter: blur(2px);
}

.documents_tab_list .tab_box.active p{
  color: #010509;
}

.documents_content{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.document_card{
  background: url('../images/bg-row.png') no-repeat center / cover,
  linear-gradient(180deg, rgba(55, 238, 251, 0.15) 0%, rgba(55, 238, 251, 0.05) 100%);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(63, 229, 241, 0.07);
  border-radius: var(--radius-md);
  padding: var(--block-gap-md);
  display: none;
}

.document_card_content{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.document_card.show {
  display: block; /* показываем выбранные */
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.document_card img{
  cursor: pointer;
}

.date_status_box{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.document_circle{
  color: var(--text-weak);
}

.gallery_section > .bg_wrapper{
  padding-bottom: var(--page-gap-sm);
}

.gallery_list{
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--block-gap-md);
}

.gallery_list .img_box{
  grid-column: span 1;
  grid-row: span 1;
}

.gallery_list .img_box:nth-child(1){
  grid-column: span 2; /* 2 баған */
  grid-row: span 2; 
}

.gallery_list .img_box:nth-child(4){
  grid-column: span 2; /* 2 баған */
  grid-row: span 1; 
}

.footer_content .bg_wrapper{
  padding-top: var(--block-gap-md);
  padding-bottom: var(--block-gap-md);
}

.footer_content_box{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: var(--block-gap-md);
}

.contact_box_list{
  display: flex;
  flex-direction: column;
  gap: var(--block-gap-sm);
}

.contact_box_list > .contact_item .text_weak,
.contact_box_list .contact_item:nth-child(2) .text_strong{
  margin-top: 4px;
}

.map_img_box{
  width: 100%;
  height: 192px;
  margin-bottom: 16px;
}

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

@media screen and (min-width: 1041px) and (max-width: 1299px){
  :root{
    --container-padding: 16px;
    --block-gap-md: 37px;
  }
  .task_council_card, .main_activity_card{
    padding: 20px;
  }
}

@media screen and (max-width: 1040px) {
  :root{
    --container-max-width: 712px;
  
    --text-size-sm: 14px;
    --text-size-md: 16px;
    --text-size-xl: 18px;
    --text-size-2xl: 24px;
    --text-size-3xl: 32px;
  
    --page-gap-sm: 32px;
    --page-gap-md: 96px;
    --block-gap-md: 20px;
    --block-gap-sm: 12px;
  
    --text-height-sm: 142%;
    --text-height-md: 150%;
    --text-height-xl: 111%;
  
    --container-padding: 16px;
    --wrapper-padding: 0;
  
    --radius-md: 24px;
  }
  .bg_wrapper{
    max-width: calc(var(--container-max-width) + 10px);
    background-image: url('../images/rulers-tablet.png');
  }
  .section_title_accent{
    letter-spacing: -0.9px;
  }
  .section_title_white {
    line-height: 100%;
    letter-spacing: -1.2px;
  }
  .doc_text_strong{
    letter-spacing: -0.9px;
  }
  .burger{
    display: block;
  }
  .burger img {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }
  .burger img:nth-child(1) {
    display: block;
  }
  .burger img:nth-child(2) {
    display: none;
  }
  .header_nav{
    display: none;
  }
  .header_mobile_nav {
    display: block;
    position: fixed;
    bottom: 0;
    top: 40px;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(1, 5, 9, 0.10);
    backdrop-filter: blur(20px);
    transform: scale(0.95);
    filter: blur(4px);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
  }
  .header_mobile_nav.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    filter: none;
  }
  .header_nav.active ~ .burger img:nth-child(1) {
    display: none;
  }
  .header_nav.active ~ .burger img:nth-child(2) {
    display: block;
  }
  .header_mobile_nav ul {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
  }
  .header_mobile_nav ul li{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    color: var(--text-weak);
    font-size: var(--text-size-2xl);
    font-weight: 500;
    letter-spacing: -1.2px;
  }
  .header_mobile_nav ul li.active{
    border-left: 2px solid var(--accent);
    color: var(--text-strong);
  }
  .header_mobile_nav ul li svg{
    margin-left: 8px;
  }
  .hero_section h1{
    font-size: 32px;
    line-height: 87.5%;
    letter-spacing: -1.6px;
    word-break: break-word;
  }
  .hero_section .container{
    flex-direction: column;
    align-items: flex-start;
  }
  .hero_section p{
    width: 100%;
  }
  .member_locale {
    grid-template-columns: repeat(1, 1fr);
  }
  .member_foreign_list {
    grid-template-columns: repeat(2, 1fr);
  }
  .member_locale_list_2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .task_council_content .container, .main_activity_content .container{
    grid-template-columns: repeat(2, 1fr);
  }
  .task_council_card{
    height: 220px;
  }
}

@media screen and (max-width: 767px) {
  .bg_wrapper{
    max-width: var(--container-max-width);
    background-image: none;
  }
  .member_foreign_list, .member_locale_list_box {
    grid-template-columns: repeat(1, 1fr);
  }
  .member_locale_list_2 {
    grid-template-columns: repeat(1, 1fr);
  }
  .task_council_content .container, .main_activity_content .container{
    grid-template-columns: repeat(1, 1fr);
  }
  .task_council_card{
    height: 100%;
    gap: var(--block-gap-md);
  }
  .meeting_content{
    grid-template-columns: repeat(1, 1fr);
  }
  .meeting_title h3 {
    order: 2;
  }
  .meeting_title p {
    order: 1;
  }
  .meeting_data_box{
    padding-left: 0;
    border-left: none;
  }
  .gallery_list{
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery_list .img_box img{
    border-radius: var(--radius-md);
    height: 100%;
    object-fit: cover;
  }
  .gallery_list .img_box:nth-child(1){
    grid-column: span 1;
    grid-row: span 1; 
  }
  .gallery_list .img_box:nth-child(4){
    grid-column: span 1;
    grid-row: span 1; 
  }
  .footer_content_box{
    grid-template-columns: repeat(1, 1fr);
  }
  .documents_tab_list{
    overflow-x: auto;   /* включаем горизонтальный скролл */
    -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
    scrollbar-width: none; 
  }
  .documents_tab_list .tab_box{
    flex: 0 0 auto;
    white-space: nowrap;
  }
}