html {
    scroll-behavior: smooth;
}
.header {
    background-image: url('../images/bag.png'); /* Укажите путь к фото */
    background-size: cover;            /* Изображение заполняет весь блок */
    background-position: center;       /* Центрируем изображение */
    background-repeat: no-repeat;      /* Отключаем повторение */
    background-attachment: fixed;      /* Ключевое свойство — фиксируем фон */
    height: 420px;                     /* Задайте высоту шапки (можно и другое значение) */
    width: 100%;                       /* На всю ширину экрана */
    margin: 0;
    margin-top: 0;
    z-index: 1;
    position: relative; /* Важно: делает контекст для псевдоэлемента */
    color: white;
    transition: height 0.3s ease;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Чёрный цвет с прозрачностью 50% */
    z-index: -1; /* Помещаем слой под содержимым, но поверх фона */
    pointer-events: none; /* Чтобы клики проходили сквозь слой к содержимому */
}
body {
    margin: 0;
    font-family: Noto Sans;
}
.logo {
    position: absolute;
    left: 0;
    height: 95px;
    object-fit: contain;
}
h1 {
    font-size: 25px;
    margin: 35px 0 15px 0;
    color: #303030;
}
h2 {
    font-family: arial;
    font-size: 22px;
    margin: 25px 0 10px 0;
    color: #303030;
}
main {
  background-color: white;
  z-index: 1;
}
.container {
    position: relative;
    width: 920px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 2;
}
.menu-container {
    position: relative;
    width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 2;
}
.general-container {
    position: relative;
    width: 920px;
    height: 150px;
    top: 145px;
    left: 80px;
    transition: top 0.3s ease;
}
.organization-name {
    position: absolute;
    font-size: 0;
    text-align: left;
    left: 115px;
    z-index: 1;
}
.org-type {
    color: white;
    font-size: 28px;
    font-weight: normal;
    display: block;
}
.org-title {
    color: white;
    font-size: 39px;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}
.join-button {
    position: absolute;
    font-size: 18px;
    text-align: left;
    left: 115px;
    top: 135px;
    padding: 10px 20px;
    color: white;
    background-color: #2a6ead;
    cursor: pointer;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.5s ease;
}
.join-button:hover {
    background-color: #2482da;
}
.org-slogan {
    position: absolute;
    text-align: left;
    left: 265px;
    top: 145px;
    color: white;
    font-size: 18px;
    font-weight: 300;
    display: block;
}
.discription-bunner img {
    position: absolute;
    top: 0;
    right: 75px;
    max-width: 170px;
    max-width: 170px;
    margin-left: 20px;
    border-radius: 8px;
}
.main-menu {
    position: absolute;
    display: flex;
    align-items: left;
    top: 20px;
    left: 20px;
    width: 400px;
    height: 85px;
    color: white;
}
.main-menu ul {
    position: relative;
    list-style: none;
    white-space: nowrap;
    margin: 20px 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: top;
}

.main-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: transform 0.3s ease;
    z-index: 10;
}

.menu-point {
    display: inline-block;
    height: 50px;
    z-index: 10;
    transition: transform 0.3s ease; 
}
.menu-item {
    z-index: 10;
}
.menu-point:hover {
    transform: translateY(-5px);
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 50px;
    left: 0;
    min-width: 200px;
    list-style: none;
    padding: 10px 0;
    border-radius: 6px;
    transition: opacity 1s ease;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 0;
    color: #fff;
    font-size: 15px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.dropdown-menu a:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px);
}

/* Показываем выпадающее меню при наведении */
.menu-point:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}
.menu-point:hover .organization-name {
    top: 250px;
}
.textblock {
    font-size: 16px;
    line-height: 25px;
    text-align: justify;
    color: #303030;
    margin: 15px 0;
    width: 100%;
}

.news-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 920px;
    overflow: hidden;
}

.news-slider {
    display: flex;
    gap: 16px;
    margin: 0 auto 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.news-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 260px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    scroll-snap-align: start;
}

.news-card .date {
    font-size: 14px;
    line-height: 20px;
    color: #303030;
    font-weight: normal;
    text-decoration: none;
    margin-bottom: 5px;
}

.news-card .content {
    font-size: 1em;
    color: #333;
}

.news-card .content a {
    font-size: 14px;
    line-height: 20px;
    color: #303030;
    font-weight: bold;
    text-decoration: none;
}


.scroll-btn {
    position: absolute;
    top: 300px;
    transform: translateY(-50%);
    background: #2a6ead;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
}
.scroll-btn.prev {
    left: -50px;
}

.scroll-btn.next {
    right: -50px;
}
.scroll-btn-mob {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background: #2a6ead;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
}
.scroll-btn-mob.prev {
    left: 0;
}

.scroll-btn-mob.next {
    right: 0;
}


.scroll-btn:disabled {
    opacity: 0.4;
}
.scroll-btn:hover {
    background-color: #2482da;
}

.news-card .content {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* количество отображаемых строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pravlenie-image {
    width: 220px;
    margin: 20px;
    border-radius: 180px;
    overflow: hidden;
}
.zoom-effect {
    width: 220px;
    border-radius: 180px;
    transition: transform 0.3s;
}

.zoom-effect:hover {
  transform: scale(1.15);
}

.pravlenie {
    position: relative;
    width: calc(100% - 125px);
    height: 275px;
    text-align: left;
}

.titleblock {
    position: absolute;
    left: 260px;
    top: 45px;
    margin: 10px;
    font-size: 20px;
    display: block;
    font-weight: bold;
    color: #303030;
}
.pravlenie-description {
    position: absolute;
    left: 260px;
    top: 80px;
    margin: 10px;
    font-size: 16px;
    display: block;
    font-weight: normal;
    color: #303030;
}
.pravlenie-button {
    position: absolute;
    left: 260px;
    top: 150px;
    margin: 10px;
    display: block;
}
.pr-but {
    font-size: 16px;
    margin-right: 20px;
    padding: 8px 25px;
    color: white;
    background-color: #2a6ead;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.5s ease;
}
.pr-but:hover {
    background-color: #2482da;
}

.docs-grid {
    display: inline-grid;
    grid-template-columns: repeat(auto-fill, 445px);
    grid-auto-rows: 100px;
    gap: 30px;
    padding: 0;
    max-width: 100%;
    margin: 20px 0;
}

.docs-card {
    width: 445px;
    height: 100px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;  
    flex-direction: row;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s;
}
.docs-card:hover {
    transform: translateY(-10px);
}
.docs-i {
    font-size: 60px;
    color: #303030;
    transition: 0.5s ease;
}
.fa {
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}
.textdocs {
    font-size: 14px;
    line-height: 20px;
    width: 100%;
    color: #303030;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
}
.docs-card:hover .docs-i {
    color: #2a6ead;
}

th {
    background-color: #2a6ead;
    color: white;
    font-weight: bold;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
tr:nth-child(even) {
    background-color: #eeeeee;
}

.otdelenie {
    width: calc(100% - 30px);
    height: 180px;
    position: relative;
    display: flex;
    align-items: flex-start;  
    flex-direction: row;
    margin: 25px 0;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s;
}
.otdelenie:hover {
    transform: translateY(-10px);
}
.reg-title {
    position: absolute;
    font-family: arial;
    font-size: 20px;
    left: 40px;
    top: 0;
    color: #303030;
}
.reg-text {
    position: absolute;
    left: 40px;
    top: 70px;
    font-family: arial;
    font-size: 16px;
    color: #303030;
}
.reg-contact {
    position: absolute;
    display: flex;
    align-items: center;
    left: 40px;
    top: 150px; 
    width: 100%;
    height: 30px;
}
.reg-but {
    position: relative;
    font-size: 16px;
    margin-right: 20px;
    padding: 8px 20px;
    color: white;
    background-color: #2a6ead;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.5s ease;
}
.reg-but:hover {
    background-color: #2482da;
}
.reg-context {
    font-size: 16px;
    font-weight: 600;
    margin: 0 10px;
    color: #303030;
    text-decoration: none;
    transition: 0.5s ease;
}
.reg-cont {
    position: absolute;
    width: 100px;
    height: 100%;
    top: 0;
    right: 10px;
    gap: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
}
.reg-cont img {
    height: 65px;
    margin: 0 auto;
}

.zadachi {
    width: 920px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 25px 0;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px 15px;
}
.zadachi-cont {
    position: relative;
    width: 100px;
    height: 100%;
    top: 0;
    left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-size: 50px;
    color: #2a6ead;
}
.zadachi-text {
    position: relative;
    font-size: 16px;
    line-height: 25px;
    text-align: justify;
    color: #303030;
    margin: 15px 15px;
    width: 720px;
}

.p-container {
    position: relative;
    display: flex;
    align-items: center;
    width: calc(100% - 125px);
    height: 200px;
    text-align: left;
}
.p-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
}
.p-zoom-effect {
    transition: transform 0.3s;
}
.p-zoom-effect:hover {
  transform: scale(1.1);
}
.p-info {
    position: relative;
    width: calc(100% - 80px);
    left: 35px;
}
.p-titleblock {
    margin: 10px;
    font-size: 20px;
    display: block;
    font-weight: bold;
    color: #303030;
}
.p-region {
    margin: 10px;
    font-size: 14px;
    display: block;
    font-weight: normal;
    color: #818181;
}
.p-description {
    margin: 10px;
    font-size: 16px;
    display: block;
    font-weight: normal;
    color: #303030;
}
.p-button {
    margin-left: 10px;
    margin-top: 20px;
    display: block;
}
.p-but {
    font-size: 14px;
    margin-right: 25px;
    padding: 8px 20px;
    color: white;
    background-color: #2a6ead;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s ease;
}
.p-but:hover {
    background-color: #2482da;
}

.payment-grid {
    display: inline-grid;
    grid-template-columns: repeat(auto-fill, 445px);
    grid-auto-rows: 75px;
    gap: 30px;
    padding: 0;
    max-width: 100%;
    margin: 20px 0;
}

.payment-card {
    width: 445px;
    height: 75px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;  
    flex-direction: row;
    gap: 20px;
    text-align: left;
    text-decoration: none;
}
.payment-cost {
    font-size: 18px;
    line-height: 20px;
    width: 140px;
    color: #2a6ead;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}
.textpay {
    font-size: 14px;
    line-height: 20px;
    width: 100%;
    color: #303030;
    font-weight: bold;
    text-decoration: none;
}
.docs-card:hover .docs-i {
    color: #2a6ead;
}

.skidka-cont {
    position: relative;
    width: 100px;
    height: 100%;
    top: 0;
    left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-size: 50px;
    color: #2a6ead;
}
.skidka {
    width: 920px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 20px 0;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
}
.skidka-program-grid {
    display: inline-grid;
    grid-template-columns: 920px;
    grid-auto-rows: 45px;
    gap: 15px;
    padding: 0;
    max-width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
}
.skidka-program {
    width: 920px;
    height: 45px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;  
    flex-direction: row;
    gap: 20px;
    text-align: left;
    text-decoration: none;
}
.skidka-text {
    font-size: 14px;
    line-height: 20px;
    width: 100%;
    margin-right: 25px;
    color: #303030;
    font-weight: bold;
    text-align: justify;
    text-decoration: none;
}
.skidka-mean {
    font-size: 20px;
    line-height: 20px;
    width: 150px;
    color: #2a6ead;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}


.contacts-cont {
    position: relative;
    width: 100px;
    height: 100%;
    top: 0;
    left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-size: 45px;
    color: #2a6ead;
}
.contacts-grid {
    display: grid;
    grid-template-columns: 300px 620px;
    grid-auto-rows: 200px;
    gap: 30px;
    max-width: 100%;
}
.contacts-button {
    width: 100%;
    margin-top: 20px;
    display: block;

}
.c-but {
    position: relative;
    font-size: 16px;
    padding: 10px 50px;
    margin: 0 auto 0;
    color: white;
    background-color: #2a6ead;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s ease;
}
.c-but:hover {
    background-color: #2482da;
}



.contacts-container {
  display: flex;
  gap: 20px; /* Отступ между колонками */
  padding: 20px 0;
  box-sizing: border-box;
}

.left-block {
    flex: 60%; /* Занимает 60 % ширины, не сжимается */
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.right-blocks {
  flex: 40%; /* Занимает 40 % ширины */
  display: flex;
  flex-direction: column; /* Блоки располагаются вертикально */
  gap: 20px; /* Отступ между блоками справа */
}

.top-block,
.bottom-block {
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.c-box {
    width: 100%;
    height: 90px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;  
    flex-direction: row;
    gap: 20px;
    text-align: left;
    text-decoration: none;
}
.c-pict {
    font-size: 30px;
    width: 55px;
    color: #2a6ead;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}
.c-box-text {
    font-size: 14px;
    line-height: 20px;
    width: 145px;
    color: #303030;
    font-weight: bold;
    text-align: justify;
    text-decoration: none;
}
.c-box-text-2 {
    font-size: 14px;
    line-height: 20px;
    width: 220px;
    color: #303030;
    text-align: justify;
    text-decoration: none;
}
.c-phone {
    position: relative;
    font-size: 16px;
    line-height: 35px;
    color: #303030;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
}
.c-phone-text {
    position: relative;
    font-size: 16px;
    line-height: 35px;
    color: #303030;
}

.c-phone:hover {
    color: #2482da;
}
.c-title {
    margin: 10px 0;
}
.c-text {
    position: relative;
    font-size: 16px;
    line-height: 25px;
    margin: 20px 0;
    color: #303030;
    width: 100%;
}
.c-soc-box {
    display: flex;
    justify-content: center; 
    align-items: center;
    width: 100%;
    padding: 5px;
    gap: 45px;    
    box-sizing: border-box;
}
.c-soc-box a {
    color: #2a6ead;
    font-size: 30px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mob-menu-back {
    background-color: #2175C5;
}

.mob-menu-back a {
    text-decoration: none;
}
.mobile-menu {
  max-width: 100% !important;
}
.dropdown-menu-mob {
  position: absolute; /* Выводим из потока документа */
  top: 100%; /* Располагаем под родительским элементом */
  left: 0;
  line-height: 20px !important;
  display: inline-block;
  min-width: 100%;
  background-color: #2175c5;
  white-space: normal;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Тень для объёма */
  opacity: 0; /* Изначально прозрачное */
  visibility: hidden; /* Скрыто */
  transform: translateY(-10px); /* Небольшой сдвиг для эффекта появления */
  transition: all 0.3s ease;
  z-index: 10000;
  margin-top: 5px;
}

.dropdown-mob {
  width: 100%;
  position: relative;
  display: inline-block;
  text-align: right;
}
.burger-toggle {
    color: white;
    margin-right: 15px;
    font-size: 35px;
    text-align: left;
    line-height: 50px;
}  
.dropdown-menu-mob a {
  display: block;
  width: 100% !important;
  line-height: 20px !important;
  padding: 15px;
  margin: 0 !important;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.2s ease; 
  white-space: normal;
  text-align: left;
  border-radius: 0;
}
.dropdown-menu-mob a:hover {
  width: 100% !important;
  line-height: 20px !important;
  padding: 15px;
  margin: 0 !important;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  font-size: 16px;
  background-color: #1a5e9e;
  transition: background-color 0.2s ease; 
  white-space: normal;
  text-align: left;
  border-radius: 0;
}
.submenu {
  display: none; /* Изначально скрыто */
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

.submenu.active {
  display: block; /* Показываем при активном классе */
  max-height: 500px; /* Достаточно для большинства подпунктов */
}
.menu-item-with-submenu a {
  display: flex;
  align-items: center;
  gap: 8px; /* Расстояние между текстом и стрелкой */
  width: 100%; /* Занимает всю ширину родителя */
}
.arrow {
  flex-shrink: 0; /* Не сжимается при нехватке места */
  font-size: 0.8em;
  transition: transform 0.5s;
}

/* Стили для подпунктов (отличаются от основных пунктов) */
.submenu a {
  padding-left: 30px; /* Отступ для визуального отличия */
  color: white;
}
.submenu a:hover {
  padding-left: 30px; /* Отступ для визуального отличия */
  color: white;
}




@media (max-width: 900px) {
  nav {
  	max-width: 100% !important;
  	min-width: 100% !important;
  	border-radius: 0 !important;
  }
  .desktop-menu {
    	display: none;
  }
  nav {
    	margin: 5px auto 0 !important;
    	z-index: 10000 !important;
  }
  .container {
    width: 90%;
  }
  .menu-container {
    width: 90% !important;
  }
  .general-container {
    text-align: center;
    top: 40px;
    width: 100%;
    left: 0;
  }
  .logo {
    position: absolute;
    text-align: center;
    margin: 0 auto 0;
    left: auto;
    height: 75px;
  }
  .organization-name {
    width: 100%;
    text-align: center;
    left: 0;
    top: 100px;
  }
  .join-button {
    position: relative;
    text-align: center;
    margin: 0 auto 0;
    top: 175px;
    left: auto;
  }
  .org-slogan {
    display: none;
  }

  .news-container {
    width: 100%;
  }
  .news-slider {
    width: 70%;
  }
  .pravlenie {
    position: relative;
    width: 100%;
    height: 275px;
    text-align: left;
  }
  .org-type {
    color: white;
    font-size: 16px;
    font-weight: normal;
    display: block;
  }
  .org-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-top: 5px;
  }
  .scroll-btn.prev {
    display: none;
  }

  .scroll-btn.next {
    display: none;
  }
  .news-slider {
    margin: 0 auto 0;
  }
  .news-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 90%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    scroll-snap-align: start;
  }



  .contacts-container {
    	flex-direction: column;
  }
  .left-block,
  .right-blocks {
    	width: 100%;
  }

}

@media (min-width: 900px) {
	.mobile-menu {
    		display: none;
	}
	.scroll-btn-mob {
		display: none;
	}
}

