/* СТИЛИ ДЛЯ БЛОКА HERO */

.hero {
    display: flex;
}

.hero__fon {
    background-image: url(../img/фон2.webp);
    background-size: cover;
    height: 600px;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
}
  
.hero__text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1200px;
    z-index: 1;
    align-self: center;
    margin-top: auto;
}
 
.hero__title {
    font-weight: 700;
    font-size: 50px;
    text-transform: uppercase;
}

.hero__title-orange {
    color: #f07c00;
}
  
.hero__title-gray {
    color: #514f4f;
}

.hero__description {
    font-weight: 400;
    font-size: 24px;
    color: #514f4f;
    line-height: 1.4;
    margin-top: 30px;
}
   
.hero__btn {
    border-radius: 5px;
    padding: 15px 24px;
    background: #f07c00;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 30px;
    border: 2px solid transparent; 
}
 
.hero__btn:hover {
    border: 2px solid #f07c00;
    background: #fff;
    color: #f07c00;
}

.hero__image {
    width: 100%;
    height: 400px;
    background: url(../img/tok_main.png) no-repeat center;
    background-size: contain;
    z-index: 1;
}

@media (max-width: 900px) {
    
    /* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА HERO */
    
    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: auto;
    }
    
    .hero__text-content {
        align-items: center;
        margin-top: 0;
    }
    
    .hero__title {
        font-size: 30px;
    }
    
    .hero__description {
        font-size: 18px;
        margin-top: 20px;
    }
    
    .hero__btn {
        align-self: center;
    }
    
    .hero__image {
        height: 200px;
    }
}

 /* СТИЛИ ДЛЯ БЛОКА SEARCH-WIDGET */
   
.search-widget {
    position: relative;
    width: 100%;
    margin: 30px auto 0 auto;
}

.search-widget__container {
    position: relative;
    z-index: 1;
    border-radius: 5px;
    width: 100%;
    box-shadow: -5px -5px 30px 0 rgba(0, 0, 0, 0.1), 5px 5px 30px 0 rgba(0, 0, 0, 0.1);
    background: #fff;
}

.search-widget__form {
    position: relative;
    display: flex; 
    height: 100%;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.search-widget__field {
    flex: 1;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    height: 45px;
    outline: none;
    padding: 0 20px 0 40px;
    font-weight: 300;
    font-size: 13px;
    color: #929292;
    box-sizing: border-box;
}

.search-widget__button {
    position: absolute;
    right: 10px;
    top: 15px;
    cursor: pointer;
    border-radius: 5px;
    padding: 12px 50px;
    background: #f07c00;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-align: center;
    border: 2px solid transparent;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease-out;
    z-index: 2;
}

.search-widget__form::before {
	content: "";
	position: absolute;
	left: 28px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23929292"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
	background-size: contain;
	background-repeat: no-repeat;
	z-index: 2;
}

.search-widget__button:hover {
	border: 2px solid #f07c00;
	background: #fff;
	color: #f07c00;
}

.search-widget__form::after {
	content: "Сервис временно не доступен";
	position: absolute;
	top: 60px;
	width: calc(100% - 30px);
	background: #ff6b6b;
	color: #fff;
	text-transform: uppercase;
	padding: 10px;
	font-size: 18px;
	font-weight: 700;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s;
	z-index: 1000;
	box-sizing: border-box;
}

.search-widget__form:hover::after {
	opacity: 1;
	visibility: visible;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА SEARCH-WIDGET */
@media (max-width: 620px) {
	.search-widget__container {
		height: auto;
	}

	.search-widget__form {
		flex-direction: column;
		align-items: center;
		gap: 10px;
		padding: 10px;
	}

	.search-widget__field {
		width: 100%;
		padding: 10px 20px 10px 40px;
	}

	.search-widget__button {
		position: relative;
		right: auto;
		top: auto;
		width: 100%;
		max-width: 300px;
		height: 40px;
	}

	.search-widget__form::before {
		left: 20px;
		top: 28px;
		transform: translateY(-50%);
	}

	.search-widget__form::after {
		width: calc(100% - 20px);
		top: 100px;
		font-size: 14px;
		text-align: center;
	}
}

/* СТИЛИ ДЛЯ БЛОКА CATALOG*/

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.catalog__image img {
    width: 100%;
    display: block;
}

.catalog__header {
    border-radius: 5px;
    background: #f07c00;
    padding: 30px;
}

.catalog__title {
    font-weight: 700;
    font-size: 26px;
    color: #fff;
    cursor: text;
}

.catalog__description {
    font-weight: 400;
    font-size: 12px;
    color: #fff;
    line-height: 115%;
    cursor: text;
}

.catalog__item {
    display: flex;
    align-items: center;
    z-index: 1;
}

.catalog__content {
    display: block;
    margin-left: 10px;
    align-items: center;
    width: 100%;
}

.catalog__item-title {
    font-weight: 600;
    font-size: 16px;
    color: #f07c00;
    transition: all .3s ease-out;
    border-bottom: 2px solid transparent;
}

.catalog__item-title:hover {
    border-bottom-color: #f07c00;
}

.catalog__item-text {
    font-weight: 400;
    font-size: 12px;
    color: #514f4f;
    width: 180px;
    margin-top: 10px;
}

.catalog__button {
    display: inline-flex;
    align-items: flex-end;
    font-weight: 600;
    font-size: 13px;
    text-decoration-skip-ink: none;
    color: #f07c00;
    gap: 9px;
    cursor: pointer;
    position: relative;
}

.catalog__button::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffab52;
    transition: width 0.3s ease-out;
}

a:hover .catalog__button::after {
    width: 100%;
}

@media (max-width: 1150px) {
    
    /* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА CATALOG */
    
    .catalog__item {
        flex-direction: column;
    }
    
    .catalog__image {
        text-align: center;
    }
}

@media (max-width: 900px) {
    
    /* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА CATALOG */
    
    .catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    
    /* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА CATALOG */
    
    .catalog {
        grid-template-columns: 1fr;
    }
}

/* СТИЛИ ДЛЯ БЛОКА INDIVIDUAL ORDER */

.individual-order {
    display: flex;
}

.individual-order__image {
    position: absolute;
    right: 0;
    margin-top: 20px;
    margin-right: 100px;
}

.individual-order__bg-container {
    position: relative;
}
 
.individual-order__bg-shape {
    position: absolute;
    width: calc(100% + 500px);
    margin-left: -380px;
    height: 100%;
    background: #F07C00;
    clip-path: polygon(0 0, 100% 0, 81.7% 100%, 0 100%);
    z-index: 1;
}

.individual-order__content {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding-top: 40px;
    padding-bottom: 25px;
}

.individual-order__title {
    font-weight: 700;
    font-size: 30px;
    color: #fff;
    position: relative;
    padding: 10px 0 10px 25px;
}

.individual-order__title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: #fff;
}

.individual-order__text {
    max-width: 500px;
    font-weight: 400;
    font-size: 13px;
    color: #fff;
    line-height: 1.5;
    margin-top: 15px;
}

.individual-order__btn {
    font-weight: 600;
    font-size: 14px;
    color: #f07c00;
    border-radius: 5px;
    padding: 15px 72px;
    background: #fff;
    border: 2px solid transparent;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-out;
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

.individual-order__btn:hover {
    color: #fff;
    border: 2px solid #fff;
    background: #f07c00;
}

@media (max-width: 1114px) {
    
    /* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА INDIVIDUAL ORDER */
    
    .individual-order img {
        display: none;
    }
}

@media (max-width: 900px) {

    /* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА INDIVIDUAL ORDER */
    
    .individual-order {
        flex-direction: column;
    }
    
    .individual-order__bg-shape {
        width: 100%;
        margin-left: 0;
        clip-path: none;
        border-radius: 10px;
    }
    
    .individual-order__content {
        padding: 25px 15px;
        text-align: center;
    }
    
    .individual-order__title {
        padding: 5px 0;
        text-align: center;
        font-size: 20px;
    }
    
    .individual-order-__title:before {
        display: none;
    }
    
    .individual-order__text {
        width: 100%;
        max-width: 400px;
        margin: 15px auto 0;
    }
    
    .individual-order__image {
        position: relative;
        margin: 20px auto 0;
        max-width: 300px;
    }
    
    .individual-order__btn {
        margin: 20px auto 0;
        padding: 15px 40px;
    }
}

/* СТИЛИ ДЛЯ БЛОКА INDIVIDUAL-ORDER-MODAL */

.individual-order-modal {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    overflow: auto;
    overscroll-behavior: contain;
    z-index: 1000;
}

.individual-order-modal__box {
    margin: 0px auto;
    box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.52);
    position: relative;
}

.individual-order-modal__content {
    display: flex;
    width: 100%;
    height: 100%;
}

.individual-order-modal__header {
    flex: 0 0 45%;
    background: #f07c00;
    display: flex;
    align-items: flex-start;
    padding-top: 30px;
}

.individual-order-modal__body {
    flex: 0 0 55%;
    background: #fff;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    padding: 20px 20px 20px 65px;
    position: relative;
}

.individual-order-modal__close {
    font-weight: 700;
    font-size: 30px;
    color: #f07c00;
    transform: rotate(45deg);
    cursor: pointer;
    justify-self: end;
    align-self: start;
}

.individual-order-modal__title {
    font-weight: 700;
    font-size: 30px;
    color: #fff;
    position: relative;
    margin-left: 75px;
    margin-top: 30px;
    display: inline-block;
    max-width: 700px;
    padding-left: 20px;
}

.individual-order-modal__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: #fff;
}

.individual-order-modal__description {
    font-weight: 400;
    font-size: 16px;
    text-align: justify;
    color: #514f4f;
    margin-left: auto; 
}

.individual-order-modal__text {
    max-width: 950px;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 20px;
}

.individual-order-modal__info {
    font-weight: 600;
    font-size: 20px;
    line-height: 183%;
    text-align: center;
    color: #514f4f;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.individual-order-modal__button {
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 17px;
    text-align: justify;
    color: #fff;
    border-radius: 5px;
    background: #f07c00;
    border: none;
    padding: 15px 55px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.individual-order-modal__images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
    justify-items: center;
    align-items: center;
    margin-top: 40px;
}

.individual-order-modal__images .img-big {
    grid-column: span 2;
}

.individual-order-modal__images img {
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.individual-order-modal__images img:hover {
  transform: scale(1.05);
}

@media (max-width: 1080px) {
    
    /* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА INDIVIDUAL-ORDER-MODAL */
    
    .individual-order-modal__images {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
}

@media (max-width: 900px) {
    
    /* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА INDIVIDUAL-ORDER-MODAL */
    
    .individual-order-modal__content {
        flex-direction: column;
    }
    
    .individual-order-modal__header {
        flex: 0 0 auto;
        padding: 20px;
    }
    
    .individual-order-modal__body {
        flex: 1 1 auto;
        padding: 20px;
        grid-template-rows: auto auto auto auto;
    }
    
    .individual-order-modal__title {
        margin-left: 0;
        margin-top: 0;
        padding-left: 15px;
        font-size: 24px;
    }
    
    .individual-order-modal__close {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .individual-order-modal__description {
        font-size: 14px;
        text-align: left;
    }
    
    .individual-order-modal__info {
        font-size: 16px;
        text-align: left;
    }
    
    .individual-order-modal__button {
        font-size: 15px;
        padding: 12px 40px;
        max-width: 280px;
    }
    
    .individual-order-modal__images .img-big {
        grid-column: span 1;
    }
    
    .individual-order-modal__images img {
        margin: 0 auto;
        width: 100%;
        max-height: 130px;
    }
}

@media (max-width: 620px) {
    
     /* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА INDIVIDUAL-ORDER-MODAL */
    
    .individual-order-modal__body {
        padding: 15px;
    }
    
    .individual-order-modal__title {
        font-size: 20px;
        padding-left: 12px;
    }
    
    .individual-order-modal__description {
        font-size: 13px;
    }
    
    .individual-order-modal__info {
        font-size: 14px;
    }
    
    .individual-order-modal__button {
        font-size: 14px;
        padding: 10px 30px;
    }
    
    .individual-order-modal__images {
        gap: 15px;
    }
}

/* СТИЛИ ДЛЯ БЛОКА SOLUTIONS */

.solutions {
    display: flex;
    column-gap: 80px;
}

.solutions__image {
    max-height: 500px;
}

.solutions__text {
    font-weight: 400;
    font-size: 13px;
    color: #514f4f;
    width: 100%;
    line-height: 150%;
    cursor: text;
    max-width: 900px;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА SOLUTIONS */

@media (max-width: 900px) {
    .solutions {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .solutions__image {
        margin-top: 30px;
    }
}

/* СТИЛИ ДЛЯ БЛОКА ADVANTAGES */

.advantages {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.advantages__item {
    max-width: 270px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.advantages__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(240, 124, 0, 0.2);
}

.advantages__image {
    width: 100%;
    height: 130px;
    display: block;
}

.advantages__content {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    background: #fff;
    margin-top: -10px;
    position: relative;
    z-index: 1;
}

.advantages__title {
    font-weight: 600;
    font-size: 13px;
    color: #f07c00;
    padding-top: 10px;
}

.advantages__description {
    font-size: 11px;
    padding: 5px;
    color: #514f4f;
}

/* СТИЛИ ДЛЯ БЛОКА NEWS */

.news-slider__list {
    margin: 0 auto;
    display: flex;
    transition: transform 0.3s ease;
}

.news-slider__item:last-child {
    margin-right: 0;
}

.news-slider__container .bx-wrapper {
    position: relative;
    margin: 0 auto;
    box-shadow: none;
    border: none;
    background-color: transparent;
    width: 100%;
}

.news-slider__container .bx-viewport {
   padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
}

.news-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: -3px -3px 15px 0 rgba(0, 0, 0, 0.1), 3px 3px 15px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.news-card:hover {
    box-shadow: -3px -3px 15px 0 rgba(240, 124, 0, 0.15), 3px 3px 15px 0 rgba(240, 124, 0, 0.15);
}

.news-card__content {
    position: relative;
    height: 100%;
}

.news-card__image {
    width: 100%;
    height: 256px;
    overflow: hidden;
}

.news-card__image img {
    width: 100%;
    height: 100%;
}

.news-card__title {
    padding: 20px 20px 10px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #514f4f;
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    display: block;
}

.news-card__text {
    padding: 0 20px 15px;
    font-weight: 400;
    font-size: 13px;
    color: #514f4f;
    line-height: 1.4;
}

.news-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    flex-shrink: 0;
    justify-content: space-between;
}

.news-card__icon {
    display: flex;
    align-items: center;
}

.news-card__date {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    color: #514f4f;
}

.news-card__link {
    cursor: pointer;
    border: none;
    background: none;
    display: inline-block;
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    margin-left: auto;
}

.news-card__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #f07c00;
    box-sizing: border-box;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.news-card__link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 41%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #f07c00;
    border-right: 2px solid #f07c00;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.3s ease;
}

.news-card__link:hover::before {
    border-color: #f07c00;
    background-color: #f07c00;
}

.news-card__link:hover::after {
    border-color: #fff;
    transform: translate(-50%, -50%) rotate(45deg) scale(1.1);
}

.news-slider__prev a, .news-slider__next a {
    width: 44px;
    height: 44px;	
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='44' height='44' viewBox='0 0 44 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='21.9993' cy='22.3684' r='20.8333' stroke='%23F07C00' stroke-width='1.5' /%3e%3cpath d='M18.875 14.0351C18.875 14.0351 25.125 20.1725 25.125 22.3685C25.125 24.5645 18.875 30.7018 18.875 30.7018' stroke='%23F07C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' /%3e%3c/svg%3e");
    display: inline-block;
    overflow: hidden;
    text-indent: 999px; 
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-slider__prev a {
    transform: rotate(180deg);
}

.news-slider__prev a:hover, .news-slider__next a:hover {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='44' height='44' viewBox='0 0 44 44' fill='%23F07C00' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='21.9993' cy='22.3684' r='20.8333' stroke='%23F07C00' stroke-width='1.5' /%3e%3cpath d='M18.875 14.0351C18.875 14.0351 25.125 20.1725 25.125 22.3685C25.125 24.5645 18.875 30.7018 18.875 30.7018' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' /%3e%3c/svg%3e");
}

.news-slider__controls {
    justify-content: center;
    display: flex;
    column-gap: 50px;
}

/* АДАПТИВНЫЕ СТИЛИ СТИЛИ КАРТОЧЕК БЛОКА NEWS */

@media (max-width: 400px) {
    
    .news-card__image {
        height: 150px;
    }
    
    .news-card__title {
        font-size: 13px;
        padding-top: 10px;
    }
    
    .news-card__text,
    .news-card__date {
        font-size: 12px;
    }
    
    .news-card__footer {
        padding-bottom: 5px;
    }
}

/* СТИЛИ ДЛЯ КОНТЕНТА ВНУТРИ КАРТОЧЕК NEWS И ДЛЯ СЕТКИ КАРТИНОК ОДНОЙ ИЗ КАРТОЧЕК NEWS */

.news-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 10px;
    margin-top: 25px;
}

.news-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.news-grid img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-grid img:hover {
    transform: scale(1.03);
}

.news-grid figure:nth-child(1) {
    grid-column: span 4;
}

.news-grid figure:nth-child(2) {
    grid-column: span 4;
    grid-row: span 1;
}

.news-grid figure:nth-child(3) {
    grid-column: span 4;
    grid-row: span 1;
}

.news-grid figure:nth-child(4) {
    grid-column: span 3;
    grid-row: span 1;
}

.news-grid figure:nth-child(5) {
    grid-column: span 3;
    grid-row: span 1;
}

.news-grid figure:nth-child(6) {
    grid-column: span 3;
    grid-row: span 1;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ КОНТЕНТА ВНУТРИ КАРТОЧЕК NEWS И ДЛЯ СЕТКИ КАРТИНОК ОДНОЙ ИЗ КАРТОЧЕК NEWS */

@media (max-width: 1150px) {
    
    .news-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }
    
    .news-grid figure:nth-child(1),
    .news-grid figure:nth-child(2),
    .news-grid figure:nth-child(3) {
        grid-column: span 3;
        grid-row: span 1;
    }
    
    .news-grid figure:nth-child(4),
    .news-grid figure:nth-child(5),
    .news-grid figure:nth-child(6) {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 620px) {
    
    .news-grid {
        grid-template-columns: 280px;
        gap: 10px;
    }
    
    .news-grid figure:nth-child(1),
    .news-grid figure:nth-child(2),
    .news-grid figure:nth-child(3),
    .news-grid figure:nth-child(4),
    .news-grid figure:nth-child(5),
    .news-grid figure:nth-child(6) {
        grid-column: 1;
        grid-row: auto;
    }
}

.news-text {
    margin-top: 20px;
}

.news-img,
.video-container {
    margin-top: 35px;
}

.video-container {
    max-width: 940px;
}

.video-container video {
    width: 100%;
}

/* СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН БЛОКА NEWS */

.news-modal {
    background: transparent;
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    overflow: auto;
    overscroll-behavior: contain;
    z-index: 1000;
}

.news-modal__box {
    margin: 0px auto;
    height: 100%;
    box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.52);
    position: relative;
    width: 100%;
}

.news-modal__content {
    display: flex;
    width: 100%;
    height: 100%;
}

.news-modal__header {
    flex: 0 0 45%;
    background: #f07c00;
    display: flex;
    align-items: flex-start;
    padding-top: 30px;
}

.news-modal__body {
    flex: 0 0 55%;
    background: #fff;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    padding: 20px 20px 20px 65px;
    position: relative;
    overflow-y: auto;
}

.news-modal__title {
    font-weight: 700;
    font-size: 30px;
    color: #fff;
    position: relative;
    margin-left: 75px;
    margin-top: 30px;
    display: inline-block;
    max-width: 700px;
    padding-left: 20px;
}

.news-modal__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: #fff;
}

.news-modal__close {
    font-weight: 700;
    font-size: 30px;
    color: #f07c00;
    transform: rotate(45deg);
    cursor: pointer;
    justify-self: end;
    align-self: start;
}

.news-modal__text {
    font-weight: 400;
    font-size: 16px;
    text-align: justify;
    color: #514f4f;
    margin-left: auto;
}

.news-modal__date-container {
    justify-self: end;
    align-self: end;
    display: flex;
    column-gap: 10px;
    justify-content: right;
    align-items: center;
    margin-top: 20px;
}

.news-modal__date {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #514f4f;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН БЛОКА NEWS */

@media (max-width: 900px) {
    
    .news-modal__content {
        flex-direction: column;
    }
    
    .news-modal__header {
        flex: 0 0 auto;
        padding: 20px;
    }
    
    .news-modal__body {
        flex: 1 1 auto;
        padding: 15px;
        display: block;
    }
    
    .news-modal__title {
        margin-left: 0;
        margin-top: 0;
        padding-left: 15px;
        font-size: 24px;
    }
    
    .news-modal__close {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .news-modal__text {
        font-size: 14px;
        text-align: left;
        margin-left: 0;
    }
    
    .news-modal__date-container {
        justify-self: start;
        margin-top: 15px;
    }
    
    .news-modal__date {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    
    .news-modal__title {
        font-size: 20px;
        padding-left: 12px;
    }
    
    .news-modal__text {
        font-size: 13px;
    }
    
    .news-modal__date {
        font-size: 14px;
    }
    
    .news-modal__close {
        top: 15px;
        right: 15px;
        font-size: 24px;
    }
    
    .news-img {
        width: 100%;
    }
}

/* СТИЛИ ДЛЯ БЛОКА INDUSTRY */

.industry {
    width: 100%;
    box-sizing: border-box;
    padding-right: 40px;
}

.industry__title {
    margin-bottom: 10px;
}

.industry__text {
    font-weight: 400;
    font-size: 22px;
    color: #514f4f;
}

.industry__container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-height: 362px;
}

.industry__slider {
    height: 100%;
}

.industry__slide {
    position: relative;
    height: 100%;
    transition: all 0.4s ease;
    cursor: pointer;
}

.industry__slide_expanded {
    width: 370px !important;
    z-index: 20;
}

.industry__slide_expanded .industry__card_default {
    display: none;
}

.industry__slide_expanded .industry__card_detailed {
    display: block;
}

.industry__card {
    width: 100%;
    height: 100%;
}

.industry__card_default {
    display: block;
}

.industry__card_detailed {
    display: none;
    position: relative;
}

.industry__img {
    width: 100%;
    height: 100%;
}

.industry__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.industry__big-img {
    width: 100%;
    height: 100%;
}

.industry__big-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry__slide-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 3;
    white-space: nowrap;
    cursor: default;
}

.industry__title-bg {
    position: absolute;
    bottom: 15px;
    left: 15px;
    height: 40px;
    background: #fff;
    z-index: 2;
    opacity: 0.9;
}

/* Стилизация элементов управления BxSlider */
.bx-wrapper {
    box-shadow: none;
    border: none;
    background: transparent;
    margin-bottom: 0;
}

.bx-wrapper .bx-pager.bx-default-pager a {
    background: #ccc;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.bx-wrapper .bx-pager.bx-default-pager a:hover,
.bx-wrapper .bx-pager.bx-default-pager a.active {
    background: #f07c00;
}

.bx-wrapper .bx-controls-direction a {
    z-index: 100;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    text-indent: 0;
    line-height: 40px;
    text-align: center;
    color: #f07c00;
    font-size: 24px;
}

.bx-wrapper .bx-viewport {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* Адаптивность */
@media (max-width: 1150px) {
    .industry__slide {
        width: 130px !important;
    }

    .industry__slide_expanded {
        width: 350px !important;
    }
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА INDUSTRY */

@media (max-width: 770px) {

    .industry__slide {
        width: 120px !important;
    }

    .industry__slide_expanded {
        width: 280px !important;
    }

    .industry__slide-title {
        font-size: 18px;
        bottom: 15px;
        white-space: wrap;
    }

    .industry__title-bg {
        bottom: 10px;
        left: 10px;
        height: 35px;
    }

    .industry {
        padding-right: 10px;
    }
}

@media (max-width: 480px) {
    
    .industry__container {
        max-height: 220px;
    }
    
    .industry__slide {
        width: 100px !important;
    }
    
    .industry__slide_expanded {
        width: 220px !important;
    }
    
    .industry__slide-title {
        font-size: 11px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .industry__slide_active {
        width: 400px !important;
        z-index: 20;
    }

    .industry__slide_active .industry__card_default {
        display: none;
    }

    .industry__slide_active .industry__card_detailed {
        display: block;
    }
}

.industry__slider {
    transition: transform 0.3s ease;
}

.industry__slide_expanded {
    transform: translateZ(0);
}