* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;/*чтобы убрать горизонтальный скролл, который появляется из-за вертикального скролла и 100vw*/
}

span {
    font-family: "Montserrat", sans-serif !important;
}

.section > .container {
    margin-bottom: 0 !important
}

.content-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 30px 0 80px 0;
}

.content {
    width: 1320px;
    margin: 0 auto;
    padding: 0 10px;
}

p:not([class]) {
    margin-bottom: 0 !important;
}

.product-page__details {
    display: flex;
    max-width: 577px;
    height: 472px;
    padding: 25px;
    background-color: var(--SuperWhite);
    color: var(--DynastyPaleGrey);
}

.product-page__property {
    border: 1px solid var(--DynastyPaleGrey) !important;
    font-size: 16px;
    line-height: 18px;
}

.documentation-trigger.product-page__property {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center center;
}

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

.product-page__title {
    font-size: 36px;
    line-height: 38px;
}

.product-page__cover .product-page__title {
    max-width: 95%;
}

.product-page__price {
    font-size: 24px;
    line-height: 26px;
    color: var(--MaybeBlack);
}

.product-page__price--null-price {
    font-size: 24px;
    line-height: 26px;
    /*border: 1px solid var(--DynastyPaleGrey);*/
}

.product-page__price--ask-price {
    font-size: 10px;
    line-height: 10px;
    color: var(--ThisIsGrey);
}

.product-page__button {
    max-width: 300px;
    width: 100%;
    height: 58px;
    padding: 19px 0;
    background-color: var(--NoElectricBlue);
    border-radius: 10px;
    border: none;
    color: var(--SuperWhite);
    font-size: 18px;
    line-height: 20px;
}

.product-page__button:hover {
    opacity: 0.8 !important;
}

.product-page__button:focus-visible {
    outline: none !important;
}

.product-page__documentation, 
.product-page__scheme {
    cursor: pointer;
}

.product-page__documentation-title,
.product-page__scheme-title {
    font-size: 16px;
    line-height: 18px;
    color: var(--MaybeBlack);
}

.product-page__documentation-value, 
.product-page__scheme-value {
    font-size: 10px;
    line-height: 12px;
    color: var(--ThisIsGrey) !important;
}

.product-page__documentation-value a, 
.product-page__scheme-value a {
    text-decoration: none;
    color: var(--ThisIsGrey) !important;
}

/* Slider */
.product-page__slider {
    width: 703px;
    height: 472px;
    max-width: 100%;
    padding: 25px;
    background-color: var(--SuperWhite);
}

.product-page__slider-list {
    width: 653px;
    height: 422px;
    margin: 0 auto;
    /*background-color: #F5F5F5;*/
}

.product-item-detail-slider-images-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-height: 1px; /* Чтобы не схлопывался до инициализации */
}

/*Стрелки слайдера*/
.product-page__slider .btn-arrow {
    z-index: 1;
    font-size: 0 !important;
    border: none;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0; 
}

.product-page__slider .btn-arrow:hover {
    opacity: .8;
}

.btn-arrow.btn-prev {
    left: 50px;
    background: url(/local/templates/cirspb_2021/svg/element/arrow-left.svg) no-repeat center center;
}

.product-page__slider .btn-arrow.btn-next {
    right: 50px;
    background: url(/local/templates/cirspb_2021/svg/element/arrow-right.svg) no-repeat center center;
}

.product-page__slider-item {
    display: none;
	position: relative !important;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	text-align: center;
	opacity: 1;
    width: 100%;
    height: 100%;
    align-items: center;
    overflow: hidden;
}

.product-page__slider-item.active {
  display: block;
}

.product-page__slider-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.product-item-detail-slider-image img {
	position: relative;
    transform: none;
	height: auto;
	width: 100%;
    object-fit: contain;
	max-width: 500px;
    max-height: 422px;
}

/*НАСТРОЙКИ ПОПАПА*/

/*затемнение при попапе*/
.popup-window-overlay {
    opacity: 0.5 !important;
}

/*крестик в попапе*/
.product-item-detail-slider-close {
    display: none;
}

.product-item-detail-slider-container.popup .product-item-detail-slider-close {
	width: 30px;
	height: 30px;
	right: 25px;
	top: 25px;
    bottom: 0;
	opacity: .5;
	background: url('data:image/svg+xml;charset=US-ASCII,<svg%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"16"%20height%3D"16"%20viewBox%3D"0%200%2016%2016"><polygon%20fill%3D"%23fff"%20fill-rule%3D"evenodd"%20points%3D"16%2015.1%208.944%208%2016%201%2015.006%200%208.05%207%20.994%200%200%201%207.056%208%200%2015.1%20.994%2016%208.05%209%2015.006%2016"%2F><%2Fsvg>') no-repeat center;
    background-size: 30px;
	-webkit-transition: all 300ms ease;
	   -moz-transition: all 300ms ease;
		-ms-transition: all 300ms ease;
		 -o-transition: all 300ms ease;
			transition: all 300ms ease;
	display: block;
	position: absolute;
	cursor: pointer;
	z-index: 150;
}
.product-item-detail-slider-container.popup .product-item-detail-slider-close:hover { 
    opacity: 1;
}

/*popup с увеличенным изображением картинки товара */
.product-item-detail-slider-container.popup {
    width: 100%;
    height: 100%;
	position: fixed;
	top:   0;
	left:  0;
	right: 0;
	bottom:0;
	background: rgba(0,0,0,0.8);
	z-index: 999999;
	animation-name: imgPopupShow;
	animation-duration: 300ms;
    border-radius: 0 !important;
}

/*серая подложка у блока с слайдером*/
.product-item-detail-slider-container.popup .product-item-detail-slider-block {
	height: 100vh;
    margin: 0 auto;
    background-color: transparent;
}
.product-item-detail-slider-container.popup .product-item-detail-slider-image{
	max-height: 100vh;
	position: absolute;
	top: 50%;
	width:calc(100% - 150px);
	left: 50%;
	-webkit-transform: translateY(-50%) translateX(-50%);
	   -moz-transform: translateY(-50%) translateX(-50%);
		-ms-transform: translateY(-50%) translateX(-50%);
		 -o-transform: translateY(-50%) translateX(-50%);
			transform: translateY(-50%) translateX(-50%);
}
@keyframes imgPopupShow {
	from { opacity: 0;}
	to   { opacity: 1;}
}

.product-item-detail-slider-container.popup .product-item-detail-slider-image img {
	width:auto;
	max-width: 850px;
	cursor: default;
	max-height: 90vh;
	background: #fff;
}

/*НОВЫЕ СТИЛИ ДЛЯ ПОПАПА ПРЕДЫДУЩИХ ВЕРСИЙ НЕКОТОРЫХ НАШИХ РАЗРАБОТОК*/
.btn_prev-version {
    padding: 16px 29.66px 18px 30px;
    font-size: 14px;
    font-weight: 500;
    line-height: 24.36px;
    color: #ffffff;
    background-color: #A1A1A1;
    border: none;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.popup-title {
    font-size: 24.5px;
    font-weight: 700;
    line-height: 29.4px;
}

.link-doc {
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
}

.popup-text-bold {
    font-weight: 600;
}

.link-doc:hover {
    text-decoration: underline !important;
}

.modal-header-noborder {
    border: none !important;
}

.radius20 {
    border-radius: 20px !important;
    padding: 45px 35px;
}

/*блок с табами*/
.product-page__info {
    margin-top: 50px;
    margin-bottom: 80px;
}

.product-page__info .nav-pills {
    /*margin: 0 25px;*/
    margin-bottom: 30px;
    gap: 20px;
}

.nav-pills .nav-link {
    width: 310px;
    padding: 18.5px;
    background-color: var(--SaintGrey);
    color: var(--MissPale);
    font-size: 18px;
    line-height: 20px;
    border-radius: 10px !important;
    border: none;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background-color: var(--NoElectricBlue) !important;
    color: var(--SuperWhite) !important;
}


.nav-pills .nav-link.active img,
.nav-pills .nav-link:not(.active):hover img {
    filter: invert(100%) brightness(250%) contrast(120%);
}

.product-page__info .tab-pane:first-of-type {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 200px;
    padding: 25px;
    background-color: var(--SuperWhite);
    border-radius: 10px;
    color: var(--MaybeBlack);
    font-size: 16px;
    line-height: 18px;
    text-align: justify;
}

.tab-pane:focus,
.tab-content:focus-visible {
    outline: none !important;
}

.tab-pane__title {
    color: var(--DynastyPaleGrey);
    font-size: 24px;
    line-height: 26px;
}

.product-page__info p:not([class]) {
    margin-bottom: 10px !important;
}

.tab-content a {
    color: #317fc5;
}

/*#characteristics.tab-pane {
    row-gap: 20px;
}*/

.product-page__info .set-content__table {
    width: 100%;
    padding: 25px;
    border-radius: 10px;
    background-color: var(--SuperWhite);
    font-size: 18px;
    line-height: 20px;
    color: var(--MaybeBlack);
}

.set-content__table table {
    margin-bottom: 0 !important;
    --bs-table-bg: transparent;
}*/

/*сбрасываем стили*/
.set-content__table .table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-bg-type: transparent !important;
}

.set-content__table .table>:not(caption)>*>* {
    padding: 0 !important;
}

/*нечетные строки таблицы - серые*/
.set-content__table table tbody tr:nth-child(odd) {
    background-color: var(--MrGrey) !important;
}

/*четные строки таблицы - белые*/
.set-content__table table tbody tr:nth-child(even) {
    padding: 0 !important;
    background-color: #ffffff !important; 
}

.set-content__table table tbody tr:nth-child(even) td {
    padding: 10px 0 !important;
}

.set-content__table .table-bordered>:not(caption)>* {
    border-color: transparent !important;
}

/*.product-page__info table td:nth-child(2),
.product-page__info table th:nth-child(2) {
    text-align: right;
}*/

/*#set-content .tab-pane__table {
    width: 100%;
    font-size: 18px;
    line-height: 20px;
}*/

/*нечетные строки таблицы - серые*/
#set-content table tbody tr:nth-child(odd) td {
    padding: 10px 0 !important;
}

#set-content table tbody tr:nth-child(even) td {
    padding: 20px 0 !important;
}

.documentation__card {
    width: 309px;
    height: auto;
    min-height: 159px;
    max-width: 100%;
    max-height: 100%;
    padding: 25px;
    border-radius: 10px;
    background-color: var(--SuperWhite);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /*плавный переход*/
    transform-origin: center center; /*без обрезки при увеличении*/
}

.documentation__card:hover {
    transform: scale(1.03); /*легкое увеличение*/
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /*тень*/
}

.documentation__title {
    margin-top: 9px;
    margin-bottom: 5px;
    font-size: 20px;
    line-height: 22px;
    color: var(--MaybeBlack);
}

.documentation__card a {
    font-size: 14px;
    line-height: 16px;
    color: var(--ThisIsGrey);
}

.product-page__title {
    margin: 0;
    line-height: 1; 
}

/*попап с формой заказа*/
.popup-window {
    border-radius: 20px !important;
}

.popup-window-close-icon:after {
    width: 30px !important;
    height: 30px !important;
    top: 80% !important;
    left: 20% !important;
    /*background-image: */
}

 /*кнопка формы*/
.btn-flat {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 300px;
    max-width: 100%;
    background-color: var(--NoElectricBlue) !important;
    border-radius: 10px !important;
    font-size: 18px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
}

footer {
    margin-top: 0 !important;
}

@media (min-width: 769px) and (max-width: 1300px) {
    .product-page__cover {
        gap: 10px;
    }
    
    .product-page__details {
        max-width: 100%;
    }
    
    .product-page__property {
        font-size: 10px;
        line-height: 12px;
    }
    
    .product-page__resources {
        flex-direction: column;
    }
    
    .product-page__slider {
        width: 50%;
    }
    
    .product-page__slider .btn-arrow.btn-prev {
        left: 10px;
    }
    
    .product-page__slider .btn-arrow.btn-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 0 20px;
    }
    
    .product-page__details {
        display: contents; /*распаковка содержимого блока, т.е. div убирается, элемменты остаются как бы без родителя*/
        height: auto;
        padding: 0 !important;
        background-color: transparent;
    }
    
    .product-page__properties {
        order: 0;
        margin-bottom: 10px !important;
        gap: 10px !important;
    }
    
    .product-page__property {
        padding: 12px 13px !important;
        font-size: 10px;
        line-height: 12px;
    }
    
    .product-page__title {
        order: 1;
        font-size: 24px;
        line-height: 26px;
    }
    
    .product-page__details-block {
        order: 3;
        padding: 25px;
        background-color: var(--SuperWhite);
        border-radius: 20px;
    }
    
    .product-page__price,
    .product-page__price--null-price {
        font-size: 20px;
        line-height: 22px;
    }
    
    .product-page__button {
        max-width: 100%;
        margin-bottom: 30px;
        font-size: 14px;
        line-height: 16px;
    }
    
    .product-page__slider {
        order: 2;
        height: 246px;
        padding: 13px;
        margin-bottom: 25px;
    }
    
    .product-page__slider-list,
    .product-item-detail-slider-image img {
        max-height: 219px;
    }
    
    .product-page__slider .btn-arrow.btn-prev {
        left: 12px;
    }
    
    .product-page__slider .btn-arrow.btn-next {
        right: 12px;
    }
    
    .product-page__info {
        margin-top: 20px;
        margin-bottom: 40px; 
    }
    
    .product-page__info img {
        max-width: 100%;
        height: auto !important;
    }
    
    .product-page__info .nav-pills {
        margin-bottom: 20px;
        gap: 10px;
        justify-content: space-between;
    }
    
    .nav-pills .nav-item {
        flex: 0 0 calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
        box-sizing: border-box;
      }
    
    .nav-pills .nav-link {
        width: 100% !important;
        padding: 22px;
        font-size: 14px;
        line-height: 16px;
    }
    
    .nav-pills .nav-link img {
        width: 20px !important;
        height: 20px !important;
    }
    
    /*.nav-pills .nav-link:hover {
        background-color: transparent;
    }*/
    
    .product-page__info .tab-pane:first-of-type {
        padding: 20px;
        border-radius: 20px;
        font-size: 12px;
        line-height: 14px;
    }
    
    .tab-pane__title:not(#set-content .tab-pane__title) {
        font-size: 20px;
        line-height: 22px;
    }
    
    .documentation__card {
        width: 727px;
    }     
    
    /*.product-page__info .tab-pane__table {
        width: 100%;
        font-size: 14px;
        line-height: 16px;
    }
    
    table tbody tr:nth-child(odd) td,
    table tbody tr:nth-child(even) td {
        padding: 5px 10px !important;
    }*/
    
    #set-content .tab-pane__title {
        width: 70%;
    }
    
    #set-content .tab-pane__table {
        font-size: 14px;
        line-height: 16px;
    }
    
    #set-content table tbody tr:nth-child(odd) td {
        padding: 10px !important;
    }
    
    #set-content table tbody tr:nth-child(even) td {
        padding: 20px 10px !important;
    }
    
    .popup-form {
        padding: 15px !important;
    }
    
    .popup-window-close-icon:after {
        width: 15px !important;
        height: 15px !important;
    }
    
    .popup-form .title {
        margin-top: 20px !important;
        
    }
    
    #input-captcha {
        max-width: 130px !important;
    }
}

@media (max-width: 375px) {
    .nav-pills .nav-link {
        width: 155px;
    }
}