html {scroll-behavior: smooth;}
body {font-family: "Fira Sans", sans-serif;}
body a {color: #cfb578;}
body a:hover {color: #fbe8ba;}
body a:active {color: #fff3d7;}
h1, h2 {font-family: "PT Serif", sans-serif;
	font-weight: bold;}
.intro-bg{
    background-color: #f3eee4 !important;
}
.bg-chgik {background-color: #f3eee4 !important;}
.bg-chgik-red {background-color: #c32022;}
.text-danger {
    color: #c32022 !important;
}

/* Стили для нового макета первого экрана */
.intro-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Исправление для заголовка */
.row.justify-content-center {
    flex-direction: column;
    align-items: center;
}

/* Раздел 1 */
@media (max-width: 991.98px) {
    .intro-bg {
        padding-top: 6rem !important;
        padding-bottom: 4rem !important;
        min-height: auto;
    }
    
    .text-left {
        text-align: center !important;
    }
    
    [data-aos="fade-right"],
    [data-aos="fade-left"] {
        transform: translateY(30px);
        opacity: 0;
    }
    
    [data-aos="fade-right"].aos-animate,
    [data-aos="fade-left"].aos-animate {
        transform: translateY(0);
        opacity: 1;
    }
}
@media (max-width: 767px){.bg-chgik{background-image:none}}
.btn-red{
    background-color: #c32022;
    border-color: #c32022;
}
.btn-red:hover {
    background-color: #930c0e;
    border-color: #930c0e;
}
.chgik-part-title{
    color: #ddcaab;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.testimonial-one .slick-dots li {
    background-color: #ddcaab;
}
.testimonial-one .slick-dots li.slick-active{
	background-color: #c32022;
}
@media (min-width: 576px) {
	.gallery_box li{ 
		width:100%; 
	}
}
@media (min-width: 768px) {
	.gallery_box li{ 
		width:50%; 
	}
}
@media (min-width: 992px) {
	.gallery_box li{ 
		width:20%; 
	}
}

/* Раздел 2 */
.policy-card {
	transition: all 0.3s ease;
	border: none;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	height: 100%;
}
.policy-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.policy-card .card-icon {
	font-size: 2.5rem;
	color: #c32022;
	margin-bottom: 1rem;
}
.policy-card .card-title {
	color: #1d293f;
	font-weight: 600;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	display: inline-block;
}

/* Раздел 3 */
.contest-card{
	transition: all 0.3s ease;
	border: none;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.contest-card .card-icon {
    font-size: 2.5rem;
    color: #c32022;
    margin-bottom: 1rem;
}
/* Стили для вертикальных табов (десктоп) */
.pedagogical-new-vertical-tabs .nav-link {
    color: #6c757d;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.pedagogical-new-vertical-tabs .nav-link:hover {
    background-color: rgba(221, 202, 171, 0.2);
    color: #c32022;
}

.pedagogical-new-vertical-tabs .nav-link.active {
    color: #c32022;
    background-color: rgba(221, 202, 171, 0.3);
    border-left: 3px solid #c32022;
    font-weight: 600;
}

/* Стили для аккордеона (мобильная версия) - обновленные в соответствии с vosco-part-accordion-btn */
.pedagogical-new-accordion-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    background: none;
    border: none;
    transition: all 0.3s ease;
    background-color: rgba(221, 202, 171, 0.2);
}

.pedagogical-new-accordion-btn:hover {
    color: #c32022;
    background-color: rgba(221, 202, 171, 0.3);
}

.pedagogical-new-accordion-btn:not(.collapsed) {
    color: #c32022;
    background-color: rgba(221, 202, 171, 0.4);
    font-weight: 600;
}

.pedagogical-new-accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #6c757d;
}

.pedagogical-new-accordion-btn:not(.collapsed) .pedagogical-new-accordion-icon {
    transform: rotate(180deg);
    color: #c32022;
}

.pedagogical-new-tab-content {
    padding: 1.5rem;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pedagogical-new-image-wrapper {
    margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
    .pedagogical-vertical-tabs-new-tabs .card {
        margin-bottom: 0.5rem;
        border-radius: 4px;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .pedagogical-new-accordion-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .pedagogical-new-tab-content .card-body {
        padding: 1rem;
    }
}

/* Стили для модальных окон */
.modal-content {
	border-radius: 10px;
	border: none;
}
.modal-header {
	background-color: #f3eee4;
	border-bottom: 1px solid #ddcaab;
}
.modal-title {
	font-weight: bold;
	color: #1d293f;
}
.document-item {
	display: flex;
	align-items: center;
	margin-bottom: 1.2rem;
	padding: 1rem;
	border-radius: 8px;
	background-color: white;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.document-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.document-icon {
	font-size: 1.8rem;
	color: #c32022;
	margin-right: 1rem;
	flex-shrink: 0;
	width: 40px;
	text-align: center;
}
.document-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}
.document-header {
	display: flex;
	align-items: center;
	margin-bottom: 0.5rem;
}
.document-title {
	font-weight: 500;
	margin-bottom: 0;
	font-size: 1.05rem;
	flex-grow: 1;
}
.document-link {
	font-size: 0.9rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	margin-top: 0.3rem;
}
.document-link:hover {
	text-decoration: underline;
}
.document-link i {
	margin-left: 0.3rem;
	font-size: 0.8rem;
}
.subcategory-title {
	font-weight: 500;
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e2e4e8;
}
.note-box {
	background-color: #f8f9fa;
	border-left: 4px solid #c32022;
	padding: 1rem;
	margin-top: 1.5rem;
	border-radius: 4px;
}
.custom-close-btn {
    border: none;
    background: transparent;
    padding: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    outline: none;
    margin: -1rem -1rem -1rem auto;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.custom-close-btn:hover {
    opacity: 1;
}
.custom-close-btn:focus {
    outline: none;
    box-shadow: none;
}
.custom-close-btn:active {
    transform: scale(0.95);
}
.custom-close-btn svg {
    color: #000;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    width: 24px;
    height: 24px;
}
.custom-close-btn:hover svg {
    opacity: 0.8;
}
.modal-header.dark .custom-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Стили для навигационных карточек */
.nav-card-square {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
    padding: 1.5rem;
    border: 2px solid #c32022;
    border-radius: 10px;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.nav-card-square:hover {
    background: #c32022;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(195, 32, 34, 0.3);
}
.nav-card-square.nav-card-disabled {
    border-color: var(--border-color);
    opacity: 0.7;
    cursor: not-allowed;
}
.nav-card-square.nav-card-disabled:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}
.nav-card-content {
    flex-grow: 1;
}
.nav-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c32022;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: all 0.3s ease;
}
.nav-card-square:hover .nav-card-title {
    color: white;
}
.nav-card-disabled .nav-card-title {
    color: var(--color-texts);
}
.nav-card-desc {
    font-size: 0.875rem;
    color: var(--color-texts);
    margin-bottom: 0;
    line-height: 1.4;
    transition: all 0.3s ease;
}
.nav-card-square:hover .nav-card-desc {
    color: rgba(255, 255, 255, 0.9);
}
.nav-card-disabled .nav-card-desc {
    color: var(--color-texts);
}
.nav-card-arrow {
    text-align: right;
    margin-top: auto;
}
.nav-card-arrow i {
    font-size: 1.1rem;
    color: #c32022;
    transition: all 0.3s ease;
}
.nav-card-square:hover .nav-card-arrow i {
    color: white;
    transform: translateX(3px);
}
.nav-card-disabled .nav-card-arrow i {
    color: var(--color-texts);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767.98px) {
    .nav-card-square {
        height: 120px;
        padding: 1.2rem;
    }
    .nav-card-title {
        font-size: 1rem;
    }
    .nav-card-desc {
        font-size: 0.8rem;
    }
}
@media (max-width: 575.98px) {
    .nav-card-square {
        height: 110px;
        padding: 1rem;
    }
    .nav-card-title {
        font-size: 0.9rem;
    }
    .nav-card-desc {
        font-size: 0.75rem;
    }
}

/* Раздел 4 */
.poll-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.poll-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.poll-card img {
  height: 180px;
  object-fit: cover;
}
.poll-card .card-icon {
	font-size: 1rem;
	color: #c32022;
	margin-bottom: 1rem;
}
/* Активные опросы */
.active-poll-card {
  transition: all 0.3s ease;
  border-left: 4px solid #c32022;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.active-poll-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.archive-document-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.archive-document-item:hover {
    background-color: #e9ecef !important;
    border-left-color: #ddcaab;
    transform: translateX(3px);
    color: #000 !important;
}
.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}
.nav-tabs .nav-link.active {
    border-bottom-color: #ddcaab;
    color: #ddcaab;
    background: transparent;
}
.nav-tabs .nav-link:hover {
    border-bottom-color: #ddcaab;
}
.archive-document-title {
    color: #343a40;
    font-weight: 500;
    font-size: 0.95rem;
}
.archive-document-icon {
    font-size: 1.2rem;
}

/* Раздел 5 */
.vosco-part-accordion .card {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.vosco-part-accordion .card-header {
    padding: 0;
    background-color: #fff;
    border-bottom: none;
}

.vosco-part-accordion-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 600; /* Всегда жирный шрифт */
    position: relative;
    background: none;
    border: none;
    transition: all 0.3s ease;
    background-color: rgba(221, 202, 171, 0.2); /* Фон для закрытых вкладок */
}

.vosco-part-accordion-btn:hover {
    color: #c32022;
    background-color: rgba(221, 202, 171, 0.3); /* Темнее при наведении */
}

.vosco-part-accordion-btn:not(.collapsed) {
    color: #c32022;
    background-color: rgba(221, 202, 171, 0.4); /* Темнее для активных вкладок */
    font-weight: 600; /* Сохраняем жирный шрифт */
}

.vosco-part-accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #6c757d;
}

.vosco-part-accordion-btn:not(.collapsed) .vosco-part-accordion-icon {
    transform: rotate(180deg);
    color: #c32022;
}

.vosco-part-accordion .card-body {
    padding: 1.5rem;
    background-color: #fff;
    border-top: 1px solid rgba(221, 202, 171, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .vosco-part-accordion-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .vosco-part-accordion .card-body {
        padding: 1rem;
    }
}

/* Футер */
.footer-title-wrapper {
    padding: 0 60px;
}
.footer-title {
    font-family: "PT Serif", sans-serif;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}
.footer-title-text {
    position: relative;
    padding: 0 20px;
    z-index: 2;
}
.footer-title-wrapper:before,
.footer-title-wrapper:after {
    content: "";
    position: absolute;
    top: 50%;
    height: 2px;
    background: #cfb578;
    width: 200px;
}
.footer-title-wrapper:before {
    left: 0;
}
.footer-title-wrapper:after {
    right: 0;
}

/* Стили для карточек футера */
.footer-nav-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 140px;
    padding: 1.5rem;
    border: 2px solid #cfb578;
    border-radius: 10px;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}
.footer-nav-card:hover {
    background: #cfb578;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(207, 181, 120, 0.3);
}
.footer-nav-card-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
}
.footer-nav-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #cfb578;
    margin-bottom: 0;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.footer-nav-card:hover .footer-nav-card-title {
    color: #1d293f;
}
.footer-nav-card-arrow {
    text-align: right;
    margin-top: auto;
    padding-top: 1rem;
}
.footer-nav-card-arrow i {
    font-size: 1.1rem;
    color: #cfb578;
    transition: all 0.3s ease;
}
.footer-nav-card:hover .footer-nav-card-arrow i {
    color: #1d293f;
    transform: translateX(3px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991.98px) {
    .footer-title-wrapper {
        padding: 0 40px;
    }
    .footer-title-wrapper:before,
    .footer-title-wrapper:after {
        width: 110px;
    }
    .footer-nav-card {
        min-height: 120px;
        padding: 1.2rem;
    }
    .footer-nav-card-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
}
@media (max-width: 767.98px) {
    .footer-title-wrapper {
        padding: 0 20px;
    }
    .footer-title-wrapper:before,
    .footer-title-wrapper:after {
        width: 60px;
    }
    .footer-title {
        font-size: 1.5rem;
    }
    .footer-nav-card {
        min-height: 110px;
        padding: 1rem;
    }
    .footer-nav-card-title {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}
@media (max-width: 575.98px) {
    .footer-title-wrapper {
        padding: 0 10px;
    }
    .footer-title-wrapper:before,
    .footer-title-wrapper:after {
        width: 40px;
    }
    .footer-title {
        font-size: 1.3rem;
    }
    .footer-title-text {
        padding: 0 10px;
    }
    .footer-nav-card {
        min-height: 100px;
    }
    .footer-nav-card-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    .footer-nav-card-arrow {
        padding-top: 0.5rem;
    }
}