/* Главный CSS */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.bvi-body > .bvi-panel {
    display: none !important;
}
@media (max-width: 479.98px) {
	#navbar {
		top: 0px !important;
	}
}


/* Сайт в разработке */
.warning {
	text-align: center;
	background-color: red;
	color: white;
}

.warning a {
	color: white;
	transform: italic;
	font-weight: bold;
}

@media (max-width: 479.98px) {
	.warning {
		position: fixed;
		margin-top: 61px;
		width: 100%;
		text-align: center;
		background-color: red;
		color: white;
		z-index: 9998;
	}
}

/* CSS только для стрелки */
        #scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background-color: #e4032e;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 1000;
            border: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        #scroll-to-top.show {
            opacity: 1;
            visibility: visible;
        }
        
        #scroll-to-top:hover {
            background-color: #c10226;
            transform: scale(1.05);
            transition: transform 0.2s ease, background-color 0.2s ease;
        }
        
        #scroll-to-top:active {
            transform: scale(0.95);
        }
        
        #scroll-to-top svg {
            width: 24px;
            height: 24px;
            fill: white;
        }
		
		@media (max-width: 479.98px) {
			#scroll-to-top {
				display: none;
			}
		}

/* Кнопка для слабовидящих */

.bvi-link,
.bvi-panel-link,
.bvi-open {
    text-decoration: none !important;
}

.bvi-link span,
.bvi-panel-link span,
.bvi-open span {
    display: none !important;
}

/* Убираем подчеркивание при наведении */
.bvi-link:hover,
.bvi-panel-link:hover,
.bvi-open:hover {
    text-decoration: none !important;
}

/* Полный сброс */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
}

body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.admin-bar .site {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.admin-bar {
    margin-top: 0 !important;
}

.admin-bar body {
    margin-top: 0 !important;
}

/* Это база */

html {
	margin: 0;
	padding: 0;
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Roboto", sans-serif;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
	overflow-x: hidden; 
}

h1,
h2,
h3 {
    font-weight: 400
}

table {
	margin-top: 10px;
    border-collapse: collapse;
    caption-side: bottom
}

th {
    text-align: inherit;
    text-align: -webkit-match-parent
}

tbody,
td,
tfoot,
th,
thead,
tr {
    border: 0 solid;
    border-color: inherit
}

/* Архив новостей */

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

.type-post {
	margin: 0px 20px;
	padding: 20px;
	background-color: #F9F9F9;
	position: relative;
}

.entry-meta {
	font-size: 24;
	position: absolute;
	right: 20px;
	top: 20px;
}

.status-publish h2 {
	font-size: 24px;
	max-width: 75%;
	margin: 0px;
	margin-top: 15px;
	margin-bottom: 5px;
	line-height: 1.1;
}

.status-publish a {
	color: #E4032E;
	text-decoration: none;
}

.status-publish a:isited {
	color: #E4032E;
}

.page-container,
.wide-page {
    flex: 1
}

.navigation {
	display: none;
}

/* Скроллинг */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 3px solid transparent;
    background-clip: padding-box;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.6);
    background-clip: padding-box;
}

/* Показываем скроллбар только при скролле */
body:hover::-webkit-scrollbar-thumb,
body:active::-webkit-scrollbar-thumb,
body:focus::-webkit-scrollbar-thumb {
    opacity: 1;
}

/* Для Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* Убираем сдвиг контента */
html {
    overflow: overlay;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Сведения об организации */

.grid-menu-org {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
}

.grid-item-org2 {
  grid-column: span 4 / span 4;
}

.grid-item-org3 {
    grid-column: span 1 / span 1;
}

.grid-item-org4 {
    grid-column-start: 7;
}

.grid-item-org5 {
    grid-column-start: 8;
}

.grid-item-org6 {
    grid-column: span 3 / span 3;
    grid-row-start: 2;
}

.grid-item-org7 {
    grid-column: span 5 / span 5;
    grid-row-start: 2;
}

.grid-item-org8 {
    grid-column: span 2 / span 2;
    grid-row-start: 3;
}

.grid-item-org9 {
    grid-column: span 2 / span 2;
    grid-column-start: 3;
    grid-row-start: 3;
}

.grid-item-org10 {
    grid-column: span 4 / span 4;
    grid-column-start: 5;
    grid-row-start: 3;
}

.grid-item-org11 {
	grid-column: span 2 / span 2;
    grid-row-start: 4;
}

.grid-item-org12 {
    grid-column: span 2 / span 2;
    grid-row-start: 4;
}

.grid-item-org13 {
    grid-column: span 2 / span 2;
    grid-column-start: 5;
    grid-row-start: 4;
}

.grid-item-org14 {
    grid-column: span 2 / span 2;
    grid-column-start: 7;
    grid-row-start: 4;
}
        
.grid-item-org {
    padding: 15px;
    background-color: #EEEEEE;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
	transition: all 0.2s;
	cursor: pointer;
	height: 100%;
	font-size: 20px;
	color: black;
}

.grid-item-org:hover {
	color: #E40532;
}

a .grid-item-org {
	color: black;
}


/* Автоматическая галлерея */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3; /* Соотношение сторон плиток */
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.gallery-link:hover {
    transform: scale(1.03);
}

.gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение заполняет плитку без искажений */
    transition: transform 0.3s ease;
}

.gallery-link:hover img {
    transform: scale(1.05);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-item {
        aspect-ratio: 16/9; /* Более широкие плитки на мобильных */
    }
}

/* Дополнительные стили для улучшения внешнего вида */
.gallery-instance-1 {
    margin: 20px 0;
}

.gallery-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Баннеры */

.banners {
    margin: 0 auto
}

.banners img {
    max-height: 300px
}

.banners .splide__arrow svg {
    fill: #e40338
}

.banners .splide__arrow:hover:not(:disabled) svg {
    fill: #ff5d5d
}

.banners .splide__arrow:focus-visible {
    outline: 3px solid #ff5d5d
}

.banners.splide.is-focus-in .splide__arrow:focus {
    outline: 3px solid #ff5d5d
}

.banners .splide__arrows--ttb .splide__arrow--prev {
    top: 0
}

.banners .splide__arrows--ttb .splide__arrow--next {
    bottom: 0
}

.banners .splide__pagination__page:hover {
    background: #ff5d5d
}

.banners .splide__pagination__page:focus-visible {
    outline: 3px solid #ff5d5d
}

.banners.splide.is-focus-in .splide__pagination__page:focus {
    outline: 3px solid #ff5d5d
}

.banners .splide__pagination__page.is-active {
    background: #e40338
}

.banners .splide__slide {
    display: flex;
    justify-content: center
}

/* Технические свойства */

.ep *,
.managers-container *,
.page-container *,
.wide-page * {
    box-sizing: border-box
}

.ep a,
.managers-container a,
.page-container a,
.wide-page a {
    color: #0c3053
}

.ep a:visited,
.managers-container a:visited,
.page-container a:visited,
.wide-page a:visited {
    color: #0c3053;
}

.ep a:hover,
.managers-container a:hover,
.page-container a:hover,
.wide-page a:hover {
    color: #e4032e
}

.ep iframe,
.ep img,
.managers-container iframe,
.managers-container img,
.page-container iframe,
.page-container img,
.wide-page iframe,
.wide-page img {
    max-width: 100%
}

.ep .alignleft,
.managers-container .alignleft,
.page-container .alignleft,
.wide-page .alignleft {
    float: left;
    height: auto;
    margin: .5em 1.5em 1em 0;
    max-width: 50%
}

.ep .alignright,
.managers-container .alignright,
.page-container .alignright,
.wide-page .alignright {
    float: right;
    height: auto;
    margin: .5em 0 1em 1.5em;
    max-width: 50%
}

.ep .aligncenter,
.managers-container .aligncenter,
.page-container .aligncenter,
.wide-page .aligncenter {
    clear: both;
    display: block;
    margin: 1em auto
}

.ep .clearfix:after,
.ep .entry-content:after,
.ep .wp-block-image:after,
.managers-container .clearfix:after,
.managers-container .entry-content:after,
.managers-container .wp-block-image:after,
.page-container .clearfix:after,
.page-container .entry-content:after,
.page-container .wp-block-image:after,
.wide-page .clearfix:after,
.wide-page .entry-content:after,
.wide-page .wp-block-image:after {
    clear: both;
    content: "";
    display: table
}

.ep .featured-image,
.managers-container .featured-image,
.page-container .featured-image,
.wide-page .featured-image {
    display: flex;
    justify-content: center
}

.ep .featured-image img,
.managers-container .featured-image img,
.page-container .featured-image img,
.wide-page .featured-image img {
    max-height: min(50vh, 400px)
}

.h-font {
    font-weight: 400
}

.managers-container,
.page-container {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1600px;
    padding: 0 1rem;
    width: 100%
}

.page-menu {
    display: none
}

.page-title {
    color: #e4032e;
    text-transform: uppercase; 
	font-size: 32px; 
	font-weight: bold;
	margin: 0px;
}

.page-container ul {
    list-style: none;
	padding: 5px 5px 5px 0;
}

.ep .table th,
.managers-container .table th,
.page-container .table th,
.wide-page .table th {
    font-weight: inherit
}

/* Таблицы */

.table {
	width: 100%;
    border-collapse: collapse;
    table-layout: fixed; 
}

.table tr:nth-child(odd) {
  background-color: #EFEEEE;
}

.table tr:nth-child(even) {
  background-color: white;
}

.table td {
	vertical-align: top;
	padding: 15px 10px;
}

.table table tr:nth-child(odd) {
  background-color: white;
}

.sticky-header th {
    position: sticky;
    top: 0;
    z-index: 1
}

.sticky-left {
    left: 0;
    position: sticky;
    z-index: 2
}

.partners {
    margin: 50px 0
}

.ep.partner .featured-image,
.managers-container.partner .featured-image,
.page-container.partner .featured-image,
.wide-page.partner .featured-image {
    justify-content: inherit;
    margin: 1rem 0
}

.ep.partner .featured-image img,
.managers-container.partner .featured-image img,
.page-container.partner .featured-image img,
.wide-page.partner .featured-image img {
    max-width: min(100%, 300px)
}

.page-container .featured-image {
	display: none;
}

/* iframe */

.pdf-ultimate-container {
    width: 100%;
    margin: 20px 0;
    background: white;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0; /* Граница вместо черного фона */
    border-radius: 8px;
}

.pdf-ultimate-frame {
    width: 100% !important;
    height: 860px !important;
    border: none !important;
    background: white !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Начальники */

.CEO {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

.CEO-card {
  background-color: #EFEEEE;
  padding: 20px;
  display: flex;
  gap: 20px;
}

.CEO-col {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 50%;
}

.CEO-name {
  color: #E4032E;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
	line-height: 1.2;
}

.CEO-data {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 10px 0;
	gap: 10px;
}

.CEO-text {
  font-size: 14px;
  opacity: 0.8;
}

.CEO-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: left;
}

.CEO-contact img {
  height: 18px;
  width: 24px;
}

.CEO-info {
  margin-top: auto;
  width: 100%;
  text-align: right;
}

.CEO-info:hover {
  transition: all 0.2s;
  color: #E4032E;
  cursor: pointer;
}

/* Десктопная версия */
@media (min-width: 768px) {
  .CEO {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "director director"
      "card card";
  }
  
  .CEO-card:first-child {
    grid-area: director;
    max-width: calc(50% - 10px);
    margin-left: auto;
  }
  
  .CEO-card {
    max-width: 100%;
  }
	
	.partret img {
		max-height: 320px;
	}
}

/* Мобильная версия */
@media (max-width: 767.98px) {
  .CEO-card {
    flex-direction: column;
    max-width: 100%;
  }
  
  .CEO-col {
    max-width: 100%;
    justify-content: flex-start;
  }
  
  .CEO-col:first-child {
    margin-bottom: 15px;
  }
  
  /* Исправления для изображений */
  .partret img {
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
	
}
  
  /* Гарантируем, что иконки контактов не меняют размер и выравнивание */
  .CEO-contact img {
    height: 18px;
    width: 24px;
    transform: none; /* Убираем возможные трансформации */
  }


  
  .CEO-contact {
    justify-content: flex-start; /* Сохраняем выравнивание по левому краю */
  }


/* Страницы постов */

.page-container {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  margin: 20px auto;
  max-width: 1200px;
  min-height: calc(100vh - 185px);
}

.page-container > * {
  flex: 1 1 100%;
  min-width: 0;
}

.page-container a[href*=".jpg"],
.page-container a[href*=".jpeg"], 
.page-container a[href*=".png"],
.page-container a[href*=".webp"] {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 250px;
  max-width: 100%;
}

.page-container .row-image {
	display: flex;
	flex-wrap: wrap;
	align-content: start;
	gap: 20px;
	justify-content: space-between;
}

.page-container .row-image a[href*=".png"] {
	flex: 1 1 calc(24% - 20px);
}

.page-container .row-image  a img  {
	max-height: 300px;
}

/* Динамическая высота на основе ширины контейнера */
.page-container a img {
  width: 100%;
  height: calc(100vw / 3 - 40px); /* Высота = 1/3 ширины вьюпорта */
  max-height: 400px;
  min-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease;
}

/* Адаптация для разных экранов */
@media (max-width: 767px) {
  .page-container a[href*=".jpg"],
  .page-container a[href*=".jpeg"], 
  .page-container a[href*=".png"],
  .page-container a[href*=".webp"] {
    flex: 1 1 100%;
  }
  .page-container a img {
    height: calc(100vw - 40px);
    max-height: 500px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .page-container a[href*=".jpg"],
  .page-container a[href*=".jpeg"], 
  .page-container a[href*=".png"],
  .page-container a[href*=".webp"] {
    flex: 1 1 calc(50% - 20px);
  }
  .page-container a img {
    height: calc(100vw / 2 - 40px);
    max-height: 350px;
  }
}

.page-container a:hover img {
  transform: scale(1.03);
}

/* Список документов */

.document-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.document-item {
	color: black;
	text-decoration: none;
	display: flex;
	align-content: center;
	display: flex;
	gap: 5px;
	width: 100%;
}

.document-icon {
	height: 22px;
	min-height: 22px;
	width: 22px;
	min-width: 22px;
	background-image: url('https://krascollege.ru/wp-content/uploads/2025/09/document_icon.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left center;
}

.document-icon-link {
	height: 22px;
	width: 28px;
	min-height: 22px;
	min-width: 28px;
	background-image: url('https://krascollege.ru/wp-content/uploads/2025/09/link_icon.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.document-text, .docuemnt-text {
	font-size: 16px;
	width: 65%;
}

/* Новости */

.all-news {
	position: absolute;
	right: 0px;
	bottom: -50px;
	height: 30px;
}

.all-news a {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 18px;
	text-decoration: none;
	color: #E4032E;
}

.all-news a:visited {
	color: #E4032E;
}

.category-grid {
	position: relative;
}

.category-grid-title {
	text-transform: uppercase; 
	font-size: 24px; 
	font-weight: bold;
	margin: 80px 0px 40px 0px!important;
	height: 50px;
}

.category-grid-container {
	max-width: 1420px;
    margin: 0px auto !important;
    box-sizing: border-box;
    flex: 1;
    width: 100%;
}

.category-grid-item {
    display: flex;
    flex-direction: column;
	position: relative;
}

.category-grid-item a {
    color: #0c3053;
    text-decoration: none;
    transition: color .2s
}

.category-grid-item a:visited {
    color: black;
}

.category-grid-item a:hover {
    color: #e4032e
}

.category-grid-item h3 {
    font-weight: 900;
    hyphens: auto;
    margin: 0;
	height: 55px;
	font-size: 20px;
	line-height: 1.2;
	overflow: hidden;
}

.post-category {
	background-image: url("/wp-content/uploads/2025/09/shape.svg");
	background-repeat: no-repeat;
	background-size: 100%;
	background-position: center;
	padding: 20px 35px 20px 10px;
	font-weight: 500;
	color: #E4032E;
}

.news-img {
    width: 100%;
	height: 240px;
	object-fit: cover; 
	object-position: center;
	display: block;
	transition: all 0.2s ease-in-out;
}

.category-grid-item .date {
    color: #838794;
    font-size: 16px;
}

.category-grid-item .excerpt{
	hyphens: auto;
	font-size: 14px;
	width: 90%;
	height: 60px;
	overflow: hidden;
}
.category-grid-item .info {
	margin: 10px 0;
    height: 45px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.category-grid-pager a {
    color: #000;
    display: block;
    padding: 6px 12px;
    text-decoration: none
}

.category-grid-pager a:hover {
    color: #e4032e
}

.category-grid-pager nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0
}

.category-grid-pager .current {
    background: #e2e8f0;
    border-radius: .375rem;
    display: block;
    font-weight: 600;
    padding: 6px 12px
}

.category-grid-pager svg {
    width: 35px
}

.news-arrow-continue {
	width: 28px;
	height: 28px;
	position: absolute;
	bottom: 0px;
	right: 0px;
}

.category-grid-container .load-more {
    text-align: center
}

.category-grid-container .load-more button {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    padding: 12px 30px;
    transition: background-color .2s ease
}

.category-grid-container .load-more button:hover {
    background-color: #e2e8f0
}

.category-grid-waiter {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%
}

.category-grid-waiter:after {
    animation: category-grid-spinner 1.2s linear infinite;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: #e4032e;
    content: "";
    height: 30px;
    width: 30px
}

@keyframes category-grid-spinner {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(1turn)
    }
}

/* Шапка и навигация */

.navbar {
	position: relative;
    background-color: #2E2D2C;
    display: flex;
    justify-content: right;
	padding: 20px;
}

.navbar-button {
    background-color: transparent;
    border: none;
    color: #efeeee;
    cursor: pointer;
    display: flex;
	align-items: center;
    margin: 0;
    padding: 0;
    transition: all .2s ease
}

.navbar-button img:hover {
	 filter: 
        brightness(0.4) 
        sepia(1) 
        hue-rotate(300deg) 
        saturate(5);
}

.navbar-button img {
	box-sizing: border-box;
	min-height: 38px;
    padding: 8px
}

.navbar-button svg {
    box-sizing: border-box;
    min-height: 38px;
    padding: 8px
}

.navbar-button:hover {
    color: #e82c4d
}

.navbar-logo-container {
    flex-shrink: 0;
	align-content: center;
	margin-right: auto;
}

.navbar-logo {
    width: 320px;
    height: auto;
    max-width: 100%;
}

.navbar-menu-button {
    
}

.navbar-menu-button img {
	background-size: 100%;
	padding: 8px;
	min-height: 19px;
	min-width: 22px;
}

.navbar-menu-button:hover {
    color: #e82c4d
}

.navbar-menu-button-icon {
    display: none;
}

.navbar-menu-button-icon:after,
.navbar-menu-button-icon:before {
    background-color: currentColor;
    border-radius: var(--line-radius);
    content: "";
    display: block;
    height: var(--line-height);
    transition: all .3s ease
}

.navbar-buttons {
	display: flex;
	align-items: flex-start;
}

.navbar-menu-button-icon:before {
    width: 100%
}

.navbar-menu-button-icon:after {
    width: 70%
}

.navbar-nav {
    display: none
}

.navbar-item {
    margin-bottom: .5rem;
    margin-right: .5rem;
    position: relative;
    white-space: nowrap
}

a.navbar-link {
    color: #efeeee;
    display: block;
	gap: 10px;
    font-size: 1.15rem;
    font-weight: 300;
    padding: 0px 10px 10px 10px;
    text-decoration: none;
    transition: color .15s ease-in-out
}

a.navbar-link:visited {
    color: #efeeee
}

a.navbar-link:focus,
a.navbar-link:hover {
    color: #e82c4d
}

a.navbar-link.active {
    color: #efeeee
}

a.navbar-dropdown-item {
    background-color: transparent;
    border: 0;
    box-sizing: border-box;
    clear: both;
    color: #212529;
    display: block;
    font-weight: 400;
    padding: .25rem 1rem;
    text-align: inherit;
    text-decoration: none;
    width: 100%
}

a.navbar-dropdown-item:visited {
    color: #212529
}

a.navbar-dropdown-item:focus,
a.navbar-dropdown-item:hover {
    background-color: #e4032e;
    color: #efeeee
}

.navbar-dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, .15);
    height: 0;
    margin: .5rem 0;
    overflow: hidden
}

.navbar-dropdown-menu {
	background-color: #EEEEEE;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .25rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .175);
    display: none;
    font-size: 1rem;
    list-style: none;
    margin: 0;
    min-width: 10rem;
	width: 100%;
    padding: 0;
    position: absolute;
    text-align: left;
    z-index: 1000
}
.navbar-item {
	white-space: normal !important;
}

.navbar-dropdown:hover .navbar-dropdown-menu {
    display: block;
}

.navbar-dropdown-toggle::after {
	display: none;
}

/* Видеобанер */

.main {
	display: flex;
	flex-direction: column;
	height: 100vh;
	position: relative;
	width: 100%;
}
.main-video {
	background: #000;
	height: 100%;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	width: 100%;
}
.main-video::-webkit-media-controls {
    display: none;
  }
.main-video-container {
	flex: 1;
	position: relative;
}
.main-video-placeholder {
	background: #222;
	color: white;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
.main-video-placeholder img {
	height: 100%;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	width: 100%;
}
.main-video-caption {
	bottom: 15%;
	color: white;
	left: 3%;
	max-width: 94%;
	position: absolute;
	z-index: 2;
}
	
.main-video-caption h2 {
	display: flex;
	flex-wrap: wrap;
	font-size: 1.75rem;
	font-weight: 500;
	margin: 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.main-video-caption-word {
	text-transform: uppercase;
}
@keyframes mainVideoCaptionFadeOutLetter {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(-7px);
	}
}

/* О колледже */


.about-stats-container{
	padding: 0px;
	margin: 0px;
}

.about-stats {
    margin: 60px auto;
    width: 100%
}

.about-stats-text {
	font-size: 22px;
	max-height: 150px;
	margin-bottom: 50px;
}

.about-stats-data {
    display: flex;
	justify-content: space-between;
	gap: 40px;
}

.about-stats-grid {
    display: flex;
	justify-content: space-between;
    width: 100%
}

.about-stats-col {
	margin: 0px;
	padding: 0px;
	width: 45%;
	height: 400px;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-content: flex-start;
}

.about-stats-col img {
	width: 100%;
	height: 400px;
	object-fit: cover;
}

.about-stats-col2 {
	height: 50px;
}

.about-stats a {
    color: #e4032e;
    text-decoration: none;
    transition: color .2s
}

.about-stats a:hover {
    color: #e4032e
}

.about-stats-number {
    color: #e4032e;
    display: flex;
    font-size: 3.5rem;
    justify-content: center;
    margin: 0;
	font-weight: 800;
}

.about-stats-digit {
    display: inline-block;
	font-weight: bold;
    transition: transform .1s ease-out
}

.about-stats-description {
    font-size: .85rem
}

.about-stats-prefix {
    display: inline-block
}

.about-stats-wiggle {
    animation: about-stats-wiggle .3s ease-in-out
}

@keyframes about-stats-wiggle {

    0%,
    to {
        transform: translateY(0)
    }

    25% {
        transform: translateY(-5px)
    }

    50% {
        transform: translateY(0)
    }

    75% {
        transform: translateY(5px)
    }
}

/* Бегущая строка */

.scrolling-marquee {
    overflow: hidden;
    width: 100%;
	transform: rotate(-3deg) scale(1.05);
	margin: 120px 0px;
}

.scrolling-marquee-container {
    background-color: #e4032e;
    padding: 15px 0;
}

.scrolling-marquee-track {
    animation: marquee-scroll 30s linear infinite;
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
}

.scrolling-marquee-content {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    padding: 0 50px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

/* Проекты */

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(4, 1fr);
	gap: 20px;
}

.project-card img {
	width: 420px;
	height: 100%;
	transition: all 0.3s;
	background-position: center;
}

.project-card1 {
	grid-row: span 2 / span 2;
    grid-row-start: 1;
}

.project-card2 {
	grid-row: span 1 / span 1;
    grid-row-start: 1;
}

.project-card3 {
	grid-row: span 1 / span 1;
    grid-row-start: 2;
}

.project-card4{
	grid-row: span 2 / span 2;
    grid-row-start: 1;
}

/* Проект - Профессионалитет для всех */

.post-6328 {
	max-width: 100% !important;
	display: block !important;
	padding: 0px !important;
}

.post-6328 h1.page-title {
	display: none;
}

.prof-img {
	width: 100%;
	display: flex;
	justify-content: center;
}

.prof-block {
	max-width: 1920px !important;
	width: 100%;
}

.prof-content {
	padding: 20px;
	max-width: 1440px;
	margin: 0 auto;
}

.prof-title {
	color: #4716D4;
	font-weight: 700;
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1;
	width: 80%;
}

.prof-text {
	font-size: clamp(1.5rem, 4vw, 1.5rem);
	width: 80%;
}

.sponsor-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
    gap: 40px 10px; 
}

.sponsor-item {
	color: #4716D4;
	font-weight: 500;
	font-size: clamp(1.5rem, 4vw, 1.5rem);
}

/* Партнеры */

/* Стили для слайдера партнеров */
.partners-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.partners-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0px;
    scroll-snap-type: x mandatory;
    width: 100%;
    box-sizing: border-box;
}

.partners-slider::-webkit-scrollbar {
    display: none;
}

.partner-slide {
    flex: 0 0 calc(25% - 15px); /* 4 слайда в строке с учетом gap */
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 150px;
    min-width: 0; /* Важно для корректного сжатия */
    box-sizing: border-box;
}

.partner-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.partner-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    display: block;
}

.partner-link h3 {
    padding: 20px;
    text-align: center;
    margin: 0;
    font-size: 16px;
    color: #333;
    word-wrap: break-word;
}

/* Всплывающая плашка */
.partner-hover-card {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #E4032E, #A3001F);
    color: white;
    padding: 10px;
    box-sizing: border-box;
    transition: bottom 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-slide:hover .partner-hover-card {
    bottom: 0;
}

.partner-hover-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.partner-hover-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    line-height: 1.2;
}

.partner-hover-description {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 15px;
    flex-grow: 1;
    overflow: hidden;
}

.partner-hover-link {
    display: flex;
    align-items: center;
	justify-content: end;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.partner-hover-link img {
    height: 16px;
	width: 50%;
    filter: brightness(0) invert(1);
    padding: 0;
	background-size: 100%;
}

.partner-hover-link span {
    color: white;
}

/* Стрелки слайдера */
.category-grid-container.partners {
	position: relative;
}

.partners-arrow-prev,
.partners-arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
}

.partners-arrow-prev {
    left: 0px;
}

.partners-arrow-prev img {
    transform: rotate(180deg);
}

.partners-arrow-next {
    right: 0px;
}

.partners-arrow-prev:hover,
.partners-arrow-next:hover {
    background: #f5f5f5;
}

.partners-arrow-prev img,
.partners-arrow-next img {
    width: 20px;
    height: 20px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .partner-slide {
        flex: 0 0 calc(33.333% - 14px); /* 3 слайда */
    }
}

@media (max-width: 768px) {
    .partners-slider-container {
        padding: 0;
    }
    
    .partner-slide {
        flex: 0 0 calc(50% - 10px); /* 2 слайда */
        height: 120px;
    }
    
    .partner-hover-card {
        padding: 5px;
    }
    
    .partner-hover-title {
        font-size: 16px;
    }
    
    .partner-hover-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .partners-slider-container {
        padding: 0 35px;
    }
    
    .partner-slide {
        flex: 0 0 calc(100% - 10px); /* 1 слайд */
        height: 100px;
    }
}

/* баннеры */
.category-grid-container.banners {
    position: relative;
    padding: 0 80px; /* Место для стрелок */
    box-sizing: border-box;
    width: 100%;
}

.banners-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.banners-slider {
    width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px; /* Отступы между баннерами */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: flex-start; /* Выравнивание по верху */
}

.banners-slider::-webkit-scrollbar {
    display: none;
}

.banner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    flex-shrink: 0; /* Запрещаем сжатие */
    box-sizing: border-box;
    cursor: pointer;
}

.banner-link {
	display: flex;
	align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.banner-image {
    width: 100%;
    height: 100%;
    display: block;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.banner-text {
    padding: 30px;
    text-align: center;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Стрелки баннеров - за пределами слайдера */
.banners-arrow-prev,
.banners-arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
}

.banners-arrow-prev {
    left: 0px;
}

.banners-arrow-prev img {
    transform: rotate(180deg);
}

.banners-arrow-next {
    right: 0px;
}

.banners-arrow-prev:hover,
.banners-arrow-next:hover {
    background: #f5f5f5;
}

.banners-arrow-prev img,
.banners-arrow-next img {
    width: 20px;
    height: 20px;
}
/* Адаптивность для баннеров */
@media (max-width: 768px) {
    .category-grid-container.banners {
        padding: 0 20px; /* Меньше отступов на мобильных */
    }
    
    .banners-slider {
        gap: 15px;
    }

    
    .banner-item {
        border-radius: 8px; /* Меньше скругление на мобильных */
    }
}

@media (max-width: 480px) {
    .category-grid-container.banners {
        padding: 0 15px;
    }
    
    .banners-slider {
        gap: 10px;
		align-items: center;
		margin: 30px 0px;
    }
    
    .banner-item {
        border-radius: 6px;
    }
}

/* Улучшаем качество изображений на ретине дисплеях */
.banner-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

/* Для высокопиксельных дисплеев */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .banner-image {
        image-rendering: auto; /* Позволяем браузеру оптимизировать */
    }
}

/* Приемная комиссия */

.page-container.post-6260 {
	width: 100%;
	max-width: 100%;
	padding: 0 !important;
	margin: 0 !important;
	gap: 0px;
	font-size: 20px;
}
.page-container.post-6260 h1.page-title {
	opacity: 0;
	height: 0px;
}
.table-row {
	display: flex;
	justify-content: center;
}
.table-col {
	width: 50%;
}
.table-col.first {
	display: flex;
	justify-content: right;
}

.table-col.first img {
	margin-right: 5px;
}
.table-col.second {
	display: flex;
	justify-content: left;
	box-sizing: border-box;
	padding-left: 140px !important;
	padding-bottom: 50px !important;
	flex-wrap: wrap;
	align-content: center;
}
.page-title-6260 {
	color: #e4032e;
    text-transform: uppercase; 
	font-size: 32px !important; 
	font-weight: bold;
	margin: 0px;
}
.page-container.post-6260 div.document-item {
	width: 100%;
	display: flex;
	justify-content: left !important;
}
.page-container.post-6260 div.document-text {
	width: 100%;
	font-size: 20px;
}

.document-icon.geo {
	background-position: center;
	background-image: url("https://krascollege.ru/wp-content/uploads/2025/11/icon_geo.svg");
	margin-right: 10px;
}
.document-icon.tel {
	background-position: center;
	background-image: url("https://krascollege.ru/wp-content/uploads/2025/11/icon_tel.svg");
	margin-right: 10px;
}
.document-icon.mail {
	background-position: center bottom;
	background-image: url("https://krascollege.ru/wp-content/uploads/2025/11/icon_mail.svg");
	margin-right: 10px;
}
b.title {
	color: #e4032e;
}

.container-half {
	max-width: 1420px;
	margin: 20px auto;
}

.college-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
	margin: 120px 0 60px 0;
}

.college-card {
	padding: 20px;
	background-color: #EFEEEE;
    display: flex;
    align-items: center;
}

.college-card-icon {
    min-width: 60px;
    height: 60px;
	margin: 5px 20px 5px 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.college-card span {
	color: black;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
}

.container-full {
	display: flex;
	flex-direction: column;
}

.video-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0 150px 0;
}

.video-list {
    display: flex;
	justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    cursor: grab;
    
    /* Скрываем скроллбар */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-list::-webkit-scrollbar {
    display: none;
}

.video-list.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.video-item {
    width: 580px;
    height: 360px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
    z-index: 1;
}

.video-item:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.video-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding: 20px;
}

.video-icon {
    background-image: url("https://krascollege.ru/wp-content/uploads/2025/11/play-icon.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-item:hover .video-icon {
    transform: translate(-50%, -50%) scale(1.2);
}

.video-text {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    width: 100%;
    margin-top: auto;
    padding: 15px;
}

.container-full img{
	margin: 0 auto;
}

.gallery-button {
	color: white !important;
	font-size: 38px;
	font-weight: bold;
	background-image: url("https://krascollege.ru/wp-content/uploads/2025/11/button-background.svg");
	background-size: 100%;
	width: 320px;
	height: 90px;
	padding: 10px 25px;
	text-align: center;
	line-height: 90px;
	margin: 20px auto 50px auto;
}

/* Профессии колледжа */

.image-link-document img {
	height: 100% !important;
	width: 100% !important;
	max-height: 100% !important;
	max-width: 100% !important;
}

.containing-professions {
	margin-top: 15px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.profession-card {
    padding: 25px;
}

.profession-card h2 {
    font-size: 1.17em;
    font-weight: 300;
    line-height: 1.3;
    margin: 0
}

.profession-card a,
.profession-card a:visited {
    color: inherit
}

.profession-card a:hover {
    border-bottom: 2px solid white;
	padding-bottom: 2px;
}

.profession-card h2 a {
    color: inherit;
}

.profession-card h2 a:hover {
    color: inherit
}

.profession-card .programs {
    display: grid;
    grid-gap: .5rem;
    grid-template-columns: 1fr 1fr;
    margin: 1rem 0 0
}

.profession-grid {
    margin: 0px auto;
	box-sizing: border-box;
    max-width: 1420px;
    display: grid;
    grid-template-columns: repeat(1, minmax(150px, 1fr));
    gap: 20px;
}

.profession-grid-item {
    background: linear-gradient(180deg, #e8e8e8, #fafafa);
}

.profession-grid-item:hover {
	color: white;
    background: linear-gradient(180deg, #E4032E, #A3001F);
}

.profession-list-container {
    box-sizing: border-box;
    flex: 1;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
    width: 100%
}

.profession-list-compact .profession-card h2 {
    font-size: 1.2rem
}

.profession-list-compact .profession-card {
    padding: 20px
}

/* Подвал */

.footer {
    background-color: #2e2d2c;
    box-sizing: border-box;
    color: #b9bcc0;
    padding: 20px;
	margin-top: auto;
}

.footer h3 {
	font-size: 22px;
    font-weight: bold; 
    color: #ffffff;
	margin: 0px;
}

.footer a {
    color: #ffffff;
    text-decoration: underline; 
    transition: color .2s;
}

.footer a:visited {
    color: #f0f0f0;
}

.footer a:hover {
    color: #e4032e;
    text-decoration: none;
}

.footer-content {
    box-sizing: border-box;
    margin: 0 auto;
}

.footer-grid {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
	justify-content: space-between;
}

.footer-column {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	padding: 10px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-menu h3 {
    margin-bottom: 20px;
}

.footer-phones {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-phones a {
    display: block;
    margin-bottom: 10px;
	font-size: 26px;
	font-weight: 300;
}

#footer-contact-form-btn {
    background-color: #e4032e;
    border: 1px solid #e4032e;
    border-radius: .25rem;
    color: #ffeef1;
    cursor: pointer;
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    user-select: none;
    vertical-align: middle;
    width: 100%;
	margin: 20px 0;
}

.footer-social img {
	min-height: 20px;
	min-width: 20px;
}

#footer-contact-form-btn:hover {
    background-color: #c40227;
    color: #fff;
}

.footer-column3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-column3 > div:first-child {
    margin-bottom: 20px;
}

.footer-row {
    display: flex;
	justify-content: space-between;
	align-items: start;
}

.footer-row > div:first-child {
    text-align: left;
    line-height: 1.5;
}

.footer-row > div:last-child {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-row a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-row a:hover {
    transform: scale(1.1);
}

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

.data-director div {
    line-height: 1.5;
}

.data-director b {
    color: #ffffff;
    font-weight: bold;
}

/* Форма обратной связи */

.contacts-block {
	display: none;
	position: fixed;
	z-index: 10000;
	width: 100%;
	height: 100%;
	justify-content: center;
	align-items: center;
	background-color: #00000080;
}

.contacts-container {
	background-color: #EFEEEE;
	max-width: 540px;
	min-height: 700px;
	padding: 60px;
	margin: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #2E2D2C;
}

.contacts-header {
	font-size: 28px;
	color: #E4032E;
	font-weight: 800;
	margin-bottom: 10px;
}

.work-hours {
	margin-bottom: 10px;
}

.contact-details {
	margin-bottom: 10px;
}

.phone-number {
	font-size: 20px;
	margin-bottom: 10px;
}

.contacts-container a {
	text-decoration: none;
	color: black;
	transition: all 0.2s;
}

.contacts-container a:hover {
	color: #E4032E;
}

.form-description {
	margin-bottom: 10px;
}

.form-input {
	width: 100%;
	margin-bottom: 5px;
	font-size: 16px;
	background-color: #00000000;
	padding: 5px 5px 5px 0px;
	border: none;
	outline: none;
	border-bottom: 1px solid #2E2D2C;
	transition: all 0.2s;
	cursor: pointer;
}

.form-input:focus {
	border-bottom: 1px solid #E4032E;
	color: #E4032E;
}

.form-input:focus::placeholder {
	color: #E4032E;
}

.form-input:hover {
	border-bottom: 1px solid #c40227;
	color: #c40227;
}

.form-input:hover::placeholder {
	color: #c40227;
}

.checkbox-group {
	margin: 10px 0px;
	font-size: 13px;
}

.checkbox-group a {
	color: #E4032E;
}

.form-checkbox {
	accent-color: #E4032E;
	margin: 0px;
}

.submit-group {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
	gap: 10px;
}

.form-message {
	text-align: center;
}

.submit-btn {
	font-size: 20px;
	border: none;
	outline: none;
	background-color: #E4032E;
	color: white;
	padding: 10px 30px;
	cursor: pointer;
	transition: all 0.2s;
}

.submit-btn:hover {
	background-color: #c40227;
}

.form-message-success {
	color: green;
}

.form-message-success:hover {
	color: green;
}

.form-message-error {
	color: red;
}

.form-message-error:hover {
	color: red;
}

/* ===== АДАПТИВНАЯ ВЕРСТКА ===== */

/* 1. Резиновая верстка для плавных изменений */
.container-fluid {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* Плавное изменение размеров шрифтов */
body {
    font-size: clamp(14px, 1.5vw, 16px);
}

h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.75rem); }

/* 2. Медиа-запросы для разных платформ */

/* Телефоны: < 480px */
@media (max-width: 479.98px) {
    html {
        font-size: 14px;
    }
	
	html, body {
		touch-action: pan-x pan-y;
		-webkit-touch-callout: none;
		-webkit-user-select: none;
		-khtml-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
	}
	
	html {
		font-size: 14px;
		overflow: -moz-scrollbars-none; /* Старые версии Firefox */
		-ms-overflow-style: none; /* IE 10+ */
	}

	body {
		-ms-overflow-style: none; /* IE и Edge */
		scrollbar-width: none; /* Firefox */
		overflow-y: scroll; /* Разрешаем прокрутку */
		line-height: 1.25;
	}

	body::-webkit-scrollbar {
		width: 0 !important; /* Chrome, Safari, Opera */
		display: none; /* Chrome, Safari, Opera */
	}
	.page-title {
		font-size: 16px; 
		font-weight: bold;
	}
	
	html {
        font-size: 15px;
    }
    
	.navbar-buttons {
		padding-right: 10px;
	}
	
	.navbar-button img:hover {
	 filter: none;
	}
	
	.page-container {
		margin: 80px auto 20px auto;
	}
	
	.navbar {
		position: fixed;
		z-index: 9999;
		width: 100%;
		padding: 10px;
	}
	.navbar-nav {
		display: block;
        position: fixed;
		z-index: 9999;
		left: -320px;
		top: 61px;
		background: linear-gradient(90deg, #1A1A1A 4%, #2E2D2C 26%, #2E2D2C 100% );
        list-style: none;
        margin: 0px;
		height: calc(110vh);
		width: 100%;
		max-width: 310px;
		padding: 20px 10px 10px 20px;
		line-height: 1.1;
		transition: all 0.3s;
		.navbar-link {
			white-space: normal;
			font-size: 18px;
			padding: 0;
			margin-bottom: 15px;
		}
    }
	
	.navbar-logo {
		width: 160px;
		height: auto;
		max-width: 100%;
	}
	
	.navbar-dropdown:hover .navbar-dropdown-menu {
    	display: none;
	}

    .main-video-caption h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
	
	.about-stats-grid {
        flex-direction: column;
    }
    
	.category-grid-title {
		height: auto;
		max-height: 200px;
	}
	
	.about-college {
		margin-top: 80px;
	}
	
    .about-stats-col {
		display: block;
		max-height: 600px;
		min-height: 40px;
        width: 100%;
		height: auto;
    }
	
	.about-stats-col2 {
		height: 60px;
		position: relative;
	}
	
	.about-stats-col img{
		margin-top: 40px;
		height: 300px;
	}
	
	.about-stats-number {
		top: 14px;
		position: absolute;
	}
	
	.about-stats-text {
		max-width: 100%;
		margin-bottom: 10px;
		font-size: 16px;
		height: auto;
		max-height: 300px;
	}
	
	.about-stats-data {
        gap: 0;
		display: block;
		max-width: 100%;
		margin-top: 25px;
	}
    
    .category-grid-item {
        flex: 1 0 calc(50% - 15px);
    }
    
    .scrolling-marquee {
        transform: rotate(-2deg) scale(1.02);
        margin: 20px 0;
    }
    
    .scrolling-marquee-content {
        font-size: 18px;
        padding: 0 20px;
    }
	
	.category-grid {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}
    
    .category-grid-item h3 {
        font-size: 16px;
        height: auto;
        min-height: 40px;
    }
    
    .category-grid-item .excerpt {
        height: auto;
        min-height: 40px;
    }
	
	.category-grid-container h3 {
		font-size: 18px;
	}
	
	.profession-grid {
		margin-top: 50px;
	}
    
    .news-img {
        height: 180px;
    }
	
	.all-news {
		position: relative;
		margin: 0 auto;
		right: auto;
		bottom: auto;
	}
	
	.project-grid {
		display: flex;
        flex-direction: column;
		gap: 15px;
	}
    
    .profession-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .profession-card {
        padding: 15px;
    }
	
	.sponsor-list {
		display: grid;
		grid-template-columns: repeat(1, 1fr);
		gap: 20px; 
	}
    
    .footer-grid {
        flex-direction: column;
    }
    
    .footer-column {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .footer-phones a {
        font-size: 20px;
    }
    
    .banner-item {
        flex: 0 0 100%;
        height: 200px;
    }
    
    .partner-slide {
        flex: 0 0 280px;
        height: 180px;
    }
	
	.table {
        font-size: 10px;
    }
    
	.table td {
		padding: 2.5px;
		word-break: break-all;
	}
	
	.table td table {
		width: 100%;
		padding: 0px;
        font-size: 4px;
    }
	
	.table-row {
		margin-top: 60px;
		font-size: 14px !important;
	}
	
	.table-col.first {
		display: none;
	}
	
	.table-col.second {
		width: 100%;
		padding-left: 0 !important;
		padding: 10px !important;
	}
	
	.page-title-6260 {
		font-size: 18px !important;
	}
	
	.document-text, .docuemnt-text {
		font-size: 10px !important;
	}
	
	.document-icon.geo {
		display: none;
	}
	.document-icon.tel {
		display: none;
	}
	.document-icon.mail {
		display: none;
	}
	.container-half {
		padding: 10px;	
	}
	.college-card-container {
		margin: 0px;
		gap: 10px;
		grid-template-columns: repeat(1, 1fr);
		margin-bottom: 40px;
	}
	
	.video-slider-container {
		padding: 0px;
		padding-bottom: 40px;
	}
	
	.college-card {
		padding: 5px;
	}
	
	.college-card-icon {
		height: 30px;
		width: 30px;
	}
	
	.college-card span {
		font-size: 16px;
	}
	
	.video-content {
		width: 100%;
		height: 100%;
		padding: 0px;
	}
	
	.video-list {
		padding: 20px;
		justify-content: flex-start
	}
	
	.video-item {
		height: 180px;
		width: 340px;
		padding: 10px;
	}
	
	.video-text {
		font-size: 14px;
		text-align: center;
	}
	
	.gallery-button {
		height: 60px;
		width: 220px;
		font-size: 20px;
		line-height: 60px;
	}
	
	#footer-contact-form-btn {
		margin: 20px 0;
	}
	
	.grid-menu-org {
		display: flex;
		flex-direction: column;
		gap: 10px	
	}
	
	.about-stats-digit, .about-stats-prefix{
		font-size: 32px;
	}
	.contacts-container {
		padding: 20px;
		margin: 30px;
		min-height: 0px;
	}
	
	.page-title {
		margin-top:10px;
	}
	
	.submit-btn {
		width: 100%;
	}
	
	.submit-group {
		flex-direction: column;
	}
	
	.document-text, .docuemnt-text {
		width: 100%;
	}
	
	.status-publish h2 {
		font-size: 18px;
		max-width: 100%;
	}
}

/* Планшеты: 480px - 767.98px */
@media (min-width: 480px) and (max-width: 767.98px) {
    html {
        font-size: 15px;
    }
	
	.page-container {
		margin: 150px auto 20px auto;
	}
    
	.navbar-buttons {
		padding-right: 40px;
	}
	
	.navbar {
		position: fixed;
		z-index: 9999;
		width: 100%;
	}
	.navbar-nav {
		display: block;
        position: fixed;
		z-index: 9999;
		left: -530px;
		top: 120px;
		background: linear-gradient(90deg, #1A1A1A 4%, #2E2D2C 26%, #2E2D2C 100% );
        list-style: none;
        margin: 0px;
		height: calc(100vh - 120px);
		max-width: 520px;
		padding: 20px;
		transition: all 0.3s;
    }
	
	.navbar-dropdown:hover .navbar-dropdown-menu {
    	display: none;
	}
	
    .main-video-caption h2 {
        font-size: 1rem;
    }
    
    .about-stats-grid {
        flex-direction: column;
    }
    
    .about-stats-col {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .category-grid-item {
        flex: 1 0 calc(50% - 15px);
    }
    
    .profession-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .profession-card .programs {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex: 0 0 50%;
    }
    
    .footer-column1 {
        flex: 0 0 100%;
        order: -1;
    }
    
    .banner-item {
        flex: 0 0 calc(50% - 10px);
        height: 250px;
    }
	
	.grid-menu-org {
		display: flex;
		flex-direction: column;
		gap: 10px	
	}
	.table td {
		padding: 5px;
	}
}

/* Нетбуки: 768px - 1023.98px */
@media (min-width: 768px) and (max-width: 1023.98px) {
	.page-container {
		margin: 150px auto 20px auto;
	}
	
	.navbar-buttons {
		padding-right: 40px;
	}
	
	.navbar {
		position: fixed;
		z-index: 9999;
		width: 100%;
	}
	.navbar-nav {
		display: block;
        position: fixed;
		z-index: 9999;
		left: -530px;
		top: 120px;
		background: linear-gradient(90deg, #1A1A1A 4%, #2E2D2C 26%, #2E2D2C 100% );
        list-style: none;
        margin: 0px;
		height: calc(100vh - 120px);
		max-width: 520px;
		padding: 20px;
		transition: all 0.3s;
    }
	
	.navbar-dropdown:hover .navbar-dropdown-menu {
    	display: none;
	}
	
    .main-video-caption h2 {
        font-size: 2vw;
    }
    
    .about-stats-grid {
        flex-direction: column;
    }
    
    .about-stats-col {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .category-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .category-grid-item {
        flex: 1 0 calc(33.333% - 20px);
    }
    
    .profession-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-column1 {
        flex: 0 0 30%;
    }
    
    .footer-column2,
    .footer-column3,
    .footer-column4 {
        flex: 0 0 20%;
    }
    
    .partners-arrow-prev,
    .banners-arrow-prev {
        left: 10px;
    }
    
    .partners-arrow-next,
    .banners-arrow-next {
        right: 10px;
    }
	
	.grid-menu-org {
		display: flex;
		flex-direction: column;
		gap: 10px	
	}
}

/* ПК: > 1024px */
@media (min-width: 1024px) {
    .page-menu {
        background-color: #eee;
        border-radius: 10px;
        display: block;
        float: right;
        margin: 1rem 0;
        padding: 1rem;
    }

    .page-menu a,
    .page-menu a:visited {
        color: #000;
        text-decoration: none;
        transition: color .2s;
    }

    .page-menu a:hover {
        color: #e4032e;
    }

    .page-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .page-menu li {
        margin: 0 0 .5rem;
    }

    
    .navbar-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        list-style: none;
        margin: 0px;
		max-width: 860px;
    }
	
	.navbar-menu-button {
		display: none;
	}
    
    .main-video-caption h2 {
        font-size: 3vw;
    }
    
    .category-grid {
        display: flex;
        flex-wrap: wrap;
        gap:  40px 20px;
    }
    
    .category-grid-item {
        flex: 1 0 calc(33.33333% - 2.5rem);
    }
    
    .profession-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
    
    .profession-card .programs {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .footer-column1 {
        flex: 0 0 25%;
    }
    
    .footer-column2 {
        flex: 0 0 20%;
    }
    
    .footer-column3 {
        flex: 0 0 20%;
    }
    
    .footer-column4 {
        flex: 0 0 20%;
    }
}

/* 3. Дополнительные улучшения для резиновой верстки */

/* Плавное масштабирование контейнеров */
.page-container,
.category-grid-container,
.profession-list-container {
    padding-left: max(15px, 5vw);
    padding-right: max(15px, 5vw);
}

/* Адаптивные отступы */
.section-padding {
    padding: clamp(20px, 5vw, 60px) 0;
}

/* Адаптивная высота элементов */
.adaptive-height {
    height: clamp(200px, 40vw, 400px);
}

/* Плавное изменение gap в grid/flex */
.responsive-gap {
    gap: clamp(10px, 2vw, 30px);
}

/* 4. Исправления для конкретных элементов */

@media (max-width: 1640px) {
    .partners-arrow-prev,
    .banners-arrow-prev {
        left: 5px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    
    .partners-arrow-next,
    .banners-arrow-next {
        right: 5px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
}

/* 5. Улучшения для изображений и медиа */
.responsive-media {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Адаптивные iframe (видео) */
.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}