.b-grid {
	--cols: 1;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: 20px;
}

@media(width>=768px) {
	.b-grid {
		--cols: 2;
	}
}

/* modal */
.modal {
	max-width: calc(100% - 24px);
	max-height: calc(100% - 24px);
	outline: none;
	border: none;
	border-radius: 5px;
	box-shadow: 0px 3px 38px 0px rgba(0, 0, 0, 0.35);
	background-color: #fff;
	color: #000;
	overflow-y: auto;
	overscroll-behavior: contain;
	margin: auto;
}

.modal::backdrop {
	background: rgba(0, 0, 0, 0.75);
}

.modal_close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	width: 40px;
	height: 40px;
	border: none;
	cursor: pointer;
	background-color: transparent;
	line-height: 1;
	font-size: 24px;
}

.modal_close::before {
	content: "\2715";
}

/* b-prod */
.b-prod__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 10px;
}

.b-prod__col>* {
	height: 100%;
}

/* swiper */
.swiper-slide {
	height: auto;
}

/* form-message */
.form-message {
	text-align: center;
	margin-top: 10px;
	padding: 5px 10px;
	border-radius: 4px;
	display: none;
	color: #fff;
	font-weight: 700;
}

.form-message_visible {
	display: block;
}

.form-message[data-theme="success"] {
	background-color: #00cc00;
}

.form-message[data-theme="error"] {
	background-color: #ff343a;
}

/* form honeypot */
.form-hp {
	display: none;
}

/* messengers */
.btn_max, .btn_phone {
    position: fixed;
    right: 15px;
    width: 60px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px 0;
}
.btn_max { bottom: 140px; }
.btn_phone { bottom: 70px; }

/* Полупрозрачная подложка */
.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    z-index: -1;
}

.btn_max svg, .btn_phone svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    position: relative;
    z-index: 1;
}

   .btn_max { color: #FF6B00; bottom: 145px;}
   .btn_phone { color: #4CAF50;bottom: 70px; }


.btn-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    margin-top: 4px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

#maxCaptchaOverlay {
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: Arial,Helvetica,sans-serif;
}
#maxCaptchaBox {
    background: #fff;
    color: #000;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,.3);
    position: relative;
}
#maxCaptchaClose {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #555;
    cursor: pointer;
}
#maxCaptchaBox h4{margin-top:0;font-size:20px;color: #000;}
#maxCaptchaBox input{
    padding: 8px 12px;
    font-size: 18px;
    width: 90px;
    text-align: center;
    margin: 10px 5px;
}
#maxCaptchaBox button{
    padding: 8px 18px;
    font-size: 16px;
    cursor: pointer;
}
#maxCaptchaMsg{
    margin-top: 12px;
    font-weight: 700;
    color: #e60000;
    text-transform: uppercase;
    font-size: 15px;
}
#maxCaptchaRefresh:hover{color:#000;transform:rotate(180deg);transition:transform .25s}