/*
Theme Name:   Bricks Child Theme
Theme URI:    https://bricksbuilder.io/
Description:  Use this child theme to extend Bricks.
Author:       Bricks
Author URI:   https://bricksbuilder.io/
Template:     bricks
Version:      1.0
Text Domain:  bricks
*/


/* Roots
====================================================
*/

:root {
	--transition: all 0.3s ease-in-out;
}


/* Common styles
====================================================
*/

::placeholder { color: #838f9b; }
::-webkit-input-placeholder { color: #838f9b; }
::-moz-placeholder { color: #838f9b; opacity: 1; }
:-ms-input-placeholder { color: #838f9b; }

a,
button,
input,
a:focus,
button:focus,
input:focus {
	outline: none;
	text-decoration: none;
	transition: var(--transition);
}


/* Квизы CF7
====================================================
*/

.quizform__progress {
    background-color: var(--gray-light);
    border-radius: 40px;
    overflow: visible;
    height: 18px;
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 45px auto 20px;
}

.quizform__progress__bar {
    background-color: var(--green);
    height: 100%;
    width: 0%;
    border-radius: 40px;
}

.quizform__progress__text {
    position: absolute;
    top: -42px;
    left: 0;
    transform: translateX(-50%);
    
    width: 46px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;
    background: var(--green);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    z-index: 2;
}

.quizform__progress__text::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--green);
}

/* Заголовки шагов */

.quizform__step__title {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 40px;
    color: var(--blue-dark);
    text-align: center;
	line-height: 1.3;
}

/* Шаги */

.quizform__step {
	display: none;
}

.quizform__step.active {
	display: block;
}

/* Радио кнопки (обычные) */

.quizform .wpcf7-radio {
	display: flex;
	gap: 25px;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
}

.quizform .wpcf7-radio > span {
    display: flex;
    width: 100%;
    max-width: 200px;
}

.quizform .quizform__step__last .wpcf7-radio > span {
	width: calc(33% - 10px);
}

.step-radio-image label {
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition: var(--transition);
	font-weight: 500;
	color: #fff;
}

.step-radio-default input[type="radio"],
.step-radio-image input[type="radio"] {
	display: none;
}

.step-radio-image label:hover img,
.step-radio-image input:checked + span img {
	opacity: .8;
}

.step-radio-image label > span {
	display: flex;
	flex-direction: column-reverse;
	text-align: center;
	position: relative;
}

.step-radio-image label > span::after {
	position: absolute;
	content: '';
	width: 50px;
	height: 50px;
	background-image: url('/wp-content/uploads/2025/09/quiz-check.svg');
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	top: calc(50% - 45px);
	left: calc(50% - 25px);
	display: flex;
	transition: var(--transition);
	opacity: 0;
}

.step-radio-image label > input:checked + span::after {
	opacity: 1;
}

.step-radio-image label > span img {
	width: 100%;
	height: auto;
	margin: 0 0 14px 0;
	transition: var(--transition);
	border-radius: 10px;
	overflow: hidden;
}

.quizform .step-radio-default label {
	width: 100%;
	cursor: pointer;
	margin: 0;
}

.quizform .step-radio-default .wpcf7-radio > span label > span {
    display: flex;
    width: 100%;
    padding: 27px 20px;
    justify-content: center;
    font-weight: 400;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: var(--transition);
    text-align: center;
    line-height: 1.3;
    color: var(--blue-dark);
    background-color: var(--gray-light);
    font-size: 15px;
    position: relative;
    flex-direction: column;
    align-items: center;
	height: 100%;
}

.quizform .step-radio-default .wpcf7-radio > span label > span:before {
	content: '';
	position: absolute;
	top: 6px;
    right: 6px;
    width: 25px;
    height: 25px;
	background-image: url(/wp-content/uploads/2026/07/check-icon.svg);
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0;
}

.quizform .step-radio-default.radio-image .wpcf7-radio > span label > span {
    padding: 16px 14px 14px;
}

.quizform .step-radio-default.radio-image .wpcf7-radio > span label > span > img {
    width: 100%;
	height: auto;
}

.quizform .step-radio-default .wpcf7-radio > span label > span:hover,
.quizform .step-radio-default label > input:checked + span {
	border: 2px solid var(--green);
}

.quizform .step-radio-default label > input:checked + span:before {
	opacity: 1;
}

.step-inputs *,
.smallform * {
	width: 100%;
}

.step-inputs {
	margin: 30px auto 0;
	max-width: 570px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}

.step-inputs .step-in input {
	background-color: transparent;
	border-radius: 10px;
	border: 2px solid #fff;
	padding: 16px 22px;
	line-height: 1.3;
	color: #fff;
}

.open-form__row {
    display: flex;
    column-gap: 25px;
    row-gap: 25px;
}

.popup__form__short .open-form__row {
	flex-direction: column;
	align-items: center;
}

.open-form__input input {
    border-radius: var(--radius-10);
    font-size: 15px;
    padding: 10px 25px;
    line-height: 1.2;
	color: var(--blue-dark);
	border: 0;
	background-color: var(--white);
	height: 50px;
}

.formlight__short .open-form__input input,
.popup__form__short .open-form__input input {
	background-color: var(--blue-light);
}

.invalid .open-form__input input[type="tel"] {
	box-shadow: 0px 0px 0px 2px #ff0000;
}

.wpcf7-submit {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 26px;
    background-color: var(--green);
    border-radius: var(--radius-10);
    transition: var(--transition);
    border: 1px solid transparent;
	height: 50px;
}

.formlight__short .wpcf7-submit:hover,
.popup__form__short .wpcf7-submit:hover,
.wpcf7-submit:hover {
	background-color: transparent;
	border: 1px solid var(--green);
	color: var(--green);
}

.open-form__accept {
    font-size: 15px;
    color: var(--white);
	margin-top: 25px;
}

.popup__form__short .open-form__accept {
    font-size: 13px;
    margin-top: 20px;
    line-height: 1.4;
    text-align: center;
	color: var(--blue-dark);
}

.formlight__short .open-form__accept {
    color: var(--blue-dark);
}

.open-form__accept a {
	color: var(--green);
}

.open-form__accept a:hover {
	text-decoration: underline;
}

.wpcf7-not-valid-tip,
.wpcf7-spinner,
.wpcf7 form.invalid .wpcf7-response-output {
	display: none !important
}

.formdark__short .wpcf7 form.sent .wpcf7-response-output {
	border: 0;
	text-align: left;
	color: var(--white);
	font-size: 13px;
	padding: 0;
	margin: 10px 0 0 0;
}

/* Кнопки */

.quizform__buttons {
    display: flex;
    justify-content: space-between;
    column-gap: 20px;
    width: 100%;
    max-width: 602px;
    margin: 35px auto 0;
}

.quizform__button {
    background-color: var(--green);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 25px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.2;
}

.quizform__button:hover {
	background-color: var(--blue-dark);
}

.quizform__next {
    width: 100%;
    max-width: 184px;
    background-image: url(/wp-content/uploads/2026/07/arrow-icon.svg);
    background-position: 86% 48%;
    background-repeat: no-repeat;
}

/* Кнопка Назад */

.quizform__prev {
    color: #808c98;
    display: flex;
    opacity: 0;
    background-color: transparent;
    width: 100%;
    max-width: 82px;
    background-image: url(/wp-content/uploads/2026/07/arrow-icon-left.svg);
    background-position: 0% 49%;
    background-repeat: no-repeat;
    padding: 15px 0;
    text-align: right;
    justify-content: flex-end;
}

.quizform__prev.active {
	opacity: 1;
}

.quizform__prev:hover {
	background-color: transparent;
	color: var(--blue-dark);
}

.quizform__fake {
    display: flex;
    opacity: 0;
	visibility: hidden;
    width: 100%;
    max-width: 82px;
    padding: 15px 0;
}

.quizform .wpcf7-list-item,
.smallform .wpcf7-list-item {
  margin: 0;
}

/* All Styles
====================================================
*/

.site__menu .sub-menu {
  overflow: hidden;
}

.title-section span {
  color: var(--green);
}

/* Кейсы (слайдер) */

.cases__item__info strong {
	font-weight: 600;
}

.cases__item__info p {
	margin-bottom: 10px;
}

.cases__item__info ul {
    margin: 0 0 10px 0;
    padding: 0 0 0 18px;
    list-style: none;    
}

.cases__item__info li {
    position: relative;
	margin: 4px 0;
}

.cases__item__info li:before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--green);
    display: flex;
    position: absolute;
    border-radius: 100px;
    top: 9px;
    left: -18px;
}

.cases__button {
	margin-top: 15px;
}


/* Каталог на главной */

.homecatalog__category{
    display:grid;
}

.homecatalog__panel{
    display:none;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(20px);
    transition:
        opacity .35s ease,
        transform .35s ease,
        visibility .35s ease;
}

.homecatalog__panel.is-active{
    display:block;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
}

.homecatalog__category.is-hidden{
    display: none !important;
}


/* Галерея в карточке товара */

.product-gallery {
	width: 100%;
}

.product-gallery__main {
	overflow: hidden;
	border-radius: var(--radius-20);
}

.product-gallery__main img {
	width: 100%;
	height: 100%;
	display: flex;
	object-fit: contain;
}

.product-gallery__thumbs {
	display: flex;
	gap: 14px;
	margin-top: 14px;
	justify-content: center;
}

.product-gallery__thumb {
    width: 100%;
    height: auto;
    border: 0;
    border-radius: var(--radius-10);
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    transition: .2s;
    max-width: 110px;
}

.product-gallery__thumb:hover{
	box-shadow: 0 0 0 2px var(--green);
}

.product-gallery__thumb.is-active{
	box-shadow: 0 0 0 2px var(--green);
}

.product-gallery__thumb img{
	width: 100%;
	height: 100%;
	display: flex;
	object-fit: cover;
}


/* Карточка товара (полная) */

.single-product {
    background-color: #f9f9f9;
}

.sproduct__desc p {
	margin: 0 0 14px 0;
}

.sproduct__desc strong {
	font-weight: 600;
}


/* Карточка товара (калькулятор) */

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

.calc-number {
    display: flex;
    align-items: center;
    column-gap: 30px;
    justify-content: flex-start;
}

.calc-number span {
	color: var(--blue-dark);
	font-weight: 600;
	font-size: 24px;
}

.calc-row {
    display: flex;
    gap: 15px;
    flex-direction: column;
	align-items: flex-start;
}

.calc-label {
	width: 100%;
	font-weight: 600;
}

.sproduct .qty {
    display: flex;
    align-items: center;
    border-radius: var(--radius-10);
    box-shadow: 0 0 0 1px var(--green);
    overflow: hidden;
}

.sproduct .qty input {
    width: 50px;
    height: 50px;
    text-align: center;
    border: 0;
    font-size: 20px;
    background: transparent;
    font-weight: 500;
    padding: 0;
}

/* Chrome, Edge, Safari, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.sproduct .qty-btn {
    width: 50px;
    height: 50px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sproduct .qty-btn:hover {
    background: transparent;
    color: var(--blue-dark);
}

.sproduct .option {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.order-table__wrapp {
    width: 100%;
}

#orderTableBody > tr > td:nth-child(3) {
    text-align: right;
    color: #5e6974;
	white-space: nowrap;
}

#orderTableBody > tr > td:nth-child(2) {
    padding: 5px;
}

.order-table__title {
    font-size: 15px;
    font-weight: 600;
}

.order-table__block {
    background-color: var(--gray-light);
    border-radius: var(--radius-10);
    overflow: hidden;
    padding: 8px 20px;
    margin: 10px 0 30px 0;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
}

.order-table td {
	border: 0;
	padding: 5px 0;
	vertical-align: top;
}

.order-table strong {
	font-weight: 600;
	color: var(--blue-dark);
}

/*  */

.sproduct .option {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.sproduct .option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sproduct .option span {
    position: relative;
    padding-left: 28px;
    line-height: 1.1;
    font-size: 15px;
    color: var(--blue-dark);
}

.sproduct .option span::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 18px;
	height: 18px;
	border: 1px solid var(--green);
	border-radius: 50%;
	transform: translateY(-50%);
	box-sizing: border-box;
}

.sproduct .option span::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green);
	transform: translateY(-50%) scale(0);
	transition: var(--transition);
}

.sproduct .option input:checked + span::after {
	transform: translateY(-50%) scale(1);
}



/* Media styles
====================================================
*/

@media (max-width: 1299px) {

	

}

@media (max-width: 991px) {

	

}

@media (max-width: 767px) {
	
	.quizform {
		margin: 0 10px;
	}

	.quizform__step__title {
		font-size: 21px;
	}

	.quizform .wpcf7-radio {
		gap: 15px;
	}
	
	.quizform .wpcf7-radio > span {
		max-width: 160px;
	}
	
	.quizform .step-radio-default .wpcf7-radio > span label > span {
		padding: 22px 30px;
		font-size: 15px;
	}
	
	.quizform .step-radio-default .wpcf7-radio > span label > span:before {
		top: 4px;
		right: 4px;
		width: 22px;
		height: 22px;
	}
	
}

@media (max-width: 575px) {

	.open-form__row {
		flex-wrap: wrap;
		justify-content: center;
	}
	
	.open-form__accept {
		font-size: 14px;
		margin-top: 20px;
		text-align: center;
	}
	
	.sproduct__desc p {
		margin: 0 0 10px 0;
	}
	
	.calc-row {
		gap: 10px;
	}
	
	.sproduct .option span {
		font-size: 14px;
	}
	
	.sproduct .qty input {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
	
	.sproduct .qty-btn {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.calc-number {
		column-gap: 20px;
	}
	
	.calc-number span {
		font-size: 20px;
	}

}