/* Стерегун (бывш. ПолеСтраж), правки 26.10: меню разделов, карточки без пустого места, подвал на абстрактном фоне */
:root { --ps-navy: #1f5a28; --ps-navy-d: #133a19; --ps-orange: #f5b400; --ps-orange-d: #2e7d32; --ps-green: #2e7d32; }

/* --- меню разделов: одна строка, значок + короткое название, у комплектов — панель по видам животных */
#menu { background: var(--ps-navy) !important; padding: 0 6px; border-radius: 8px; box-shadow: 0 6px 16px rgba(31, 90, 40, .2); }
#menu > ul { flex-wrap: nowrap; justify-content: space-between; }
#menu > ul > li { padding: 6px 0; flex: 1 1 auto; }
#menu > ul > li > a { display: flex !important; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 12px !important; color: #fff !important; font-size: 14px !important; font-weight: 600; white-space: nowrap; border-radius: 6px; box-shadow: none !important; }
#menu > ul > li > a .fa { font-size: 15px; color: var(--ps-orange); width: auto; }
#menu > ul > li > a .js-caret { color: #b7d3ba; font-size: 13px; transition: transform .2s; }
#menu > ul > li:hover > a, #menu > ul > li > a.active { background: rgba(255, 255, 255, .1); color: #fff !important; }
#menu > ul > li:hover > a .js-caret { transform: rotate(180deg); }
#menu > ul > li + li { border-left: 1px solid rgba(255, 255, 255, .08); }
#menu > ul > li > div.js-mega { display: none; left: 0; top: 100%; min-width: 480px; padding: 18px 18px 14px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(19, 58, 25, .22); }
#menu > ul > li:hover > div.js-mega { display: block; }
.js-mega-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8a94a6; }
#menu .js-mega-list { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; list-style: none; margin: 0; padding: 0; }
#menu .js-mega-list li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 9px 12px; border: 1px solid #edf0f5; border-radius: 8px; color: #1b4d22; font-size: 14px; font-weight: 600; white-space: normal; text-decoration: none; transition: border-color .2s, background .2s; }
#menu .js-mega-list li a:hover { border-color: var(--ps-orange); background: #fffbe8; }
.js-mega-name small { display: block; font-size: 11px; font-weight: 500; color: #8a94a6; }
.js-mega-count { flex: none; min-width: 26px; padding: 2px 7px; border-radius: 11px; background: #eef6ee; color: #1b4d22; font-size: 12px; text-align: center; }
#menu a.js-mega-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--ps-orange-d); font-weight: 700; font-size: 14px; }
@media (max-width: 1199px) { #menu > ul > li > a { padding: 0 8px !important; font-size: 13px !important; gap: 6px; } }
@media (max-width: 991px) { #menu > ul { flex-wrap: wrap; } #menu > ul > li { flex: 0 0 auto; } }

/* --- шапка: «Новость дня» в одну строку */
.header-news { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- карточки товаров: без пустого места под ценой */
.product-thumb { display: flex; flex-direction: column; }
.product-thumb .caption { min-height: 0 !important; padding-bottom: 0; }
.product-thumb h4 { height: auto !important; min-height: 3.75em; margin: 8px 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-thumb .price { margin: 4px 0 8px; }
.product-thumb .button-group { margin-top: auto; padding-top: 0; }
.product-list .product-thumb { flex-direction: row; }
.product-list .product-thumb h4 { min-height: 0; -webkit-line-clamp: unset; display: block; }

/* --- подвал на абстрактном фоне */
#footer-wrap.js-foot { position: relative; margin-top: 40px; border: 0; background: var(--ps-navy-d) url(../../../../../image/catalog/brand/footer-bg.jpg) center / cover no-repeat; color: #d3e6d5; }
.js-foot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 58, 25, .55), rgba(19, 58, 25, .85)); pointer-events: none; }
.js-foot > * { position: relative; }
.js-foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; transform: translateY(-34px); margin-bottom: -10px; padding: 22px 28px; border-radius: 14px; background: linear-gradient(100deg, #2e7d32, #43a047); box-shadow: 0 12px 30px rgba(46, 125, 50, .3); color: #fff; }
.js-foot-cta-text { flex: 1 1 380px; }
.js-foot-cta-text b { display: block; font-size: 20px; font-weight: 800; margin-bottom: 4px; color: #fff; }
.js-foot-cta-text span { font-size: 14px; color: #e3f2e4; }
.js-foot-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.js-foot a.js-foot-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 26px; border: 2px solid #fff; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.js-foot a.js-foot-btn:hover { background: #fff; color: var(--ps-orange-d); }
.js-foot a.js-foot-btn--main { background: #f5b400; border-color: #f5b400; color: #1b2f12; }
.js-foot a.js-foot-btn--main:hover { background: var(--ps-navy); border-color: var(--ps-navy); color: #fff; }
.js-foot #footer { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr 1.4fr; gap: 28px; padding: 10px 0 34px; }
.js-foot #footer .column { min-height: 0; }
.js-foot #footer h3 { margin: 0 0 14px; color: #fff; font-size: 16px; font-weight: 700; }
.js-foot #footer .column ul { list-style: none; margin: 0; padding: 0; }
.js-foot #footer .column ul li { margin-bottom: 8px; }
.js-foot #footer .column a { color: #d3e6d5; font-size: 14px; transition: color .2s; }
.js-foot #footer .column a:hover { color: var(--ps-orange); text-decoration: none; }
.js-foot .column-brand p { margin: 14px 0; font-size: 14px; line-height: 1.6; color: #b9d3bc; }
.js-foot-logo { display: inline-block; padding: 10px 14px; border-radius: 10px; background: #fff; }
.js-foot-logo img { display: block; width: 170px; height: auto; }
.js-foot-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.js-foot-pay span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 12px; color: #dfe6f1; }
.js-foot-pay .fa { color: var(--ps-orange); }
.js-foot .footer-contacts li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px !important; }
#footer-wrap.js-foot .footer-contacts .fa { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(245, 180, 0, .15); color: var(--ps-orange); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.js-foot .footer-contacts span { display: flex; flex-direction: column; color: #fff; font-weight: 600; line-height: 1.35; font-size: 14px; }
.js-foot .footer-contacts span a { color: #fff !important; }
.js-foot .footer-contacts small { margin-top: 2px; font-weight: 400; font-size: 12px; color: #a3c2a7; }
.js-foot .footer-map { border: 0; border-radius: 10px; height: 150px; }
.js-foot #powered { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .2); text-align: left; color: #a3c2a7; font-size: 13px; }
.js-foot #powered .js-wrap { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.js-foot #powered a { color: #d3e6d5; }
@media (max-width: 1199px) { .js-foot #footer { grid-template-columns: 1fr 1fr 1fr; } .js-foot .column-brand, .js-foot .column-contacts { grid-column: span 3; } }
@media (max-width: 767px) {
	.js-foot #footer { grid-template-columns: 1fr 1fr; gap: 22px; }
	.js-foot .column-brand, .js-foot .column-contacts { grid-column: span 2; }
	.js-foot-cta { transform: translateY(-24px); padding: 18px; }
	.js-foot-cta-text b { font-size: 17px; }
	.js-foot #powered .js-wrap { flex-direction: column; }
}

/* --- телефон: карточка товара — фото, затем название, цена и «Купить», потом вкладки с описанием */
@media (max-width: 767px) {
	#content > .row:has(> .product-gallery) { display: flex; flex-direction: column; }
	#content > .row:has(> .product-gallery)::before, #content > .row:has(> .product-gallery)::after { display: none; }
	.product-gallery { display: contents; }
	.product-gallery > .thumbnails { order: 1; padding: 0 15px; }
	#content > .row > .product-info { order: 2; width: 100%; margin-bottom: 18px; }
	.product-gallery > .nav-tabs { order: 3; margin: 0 15px; }
	.product-gallery > .tab-content { order: 4; margin: 0 15px; }
	.product-gallery > .thumbnails { margin: 0 0 14px; }
	.product-gallery > .nav-tabs { display: flex; flex-wrap: nowrap; gap: 4px; border-bottom: 1px solid #ddd; }
	.product-gallery > .nav-tabs > li { float: none; flex: 1 1 auto; margin-bottom: -1px; }
	.product-gallery > .nav-tabs > li > a { margin: 0; padding: 10px 6px; text-align: center; font-size: 14px; white-space: nowrap; }
	/* хлебные крошки с длинным названием товара переносятся, а не растягивают страницу */
	.breadcrumb > li { white-space: normal !important; max-width: 100%; overflow-wrap: anywhere; }
}

/* --- телефон: корзина — строка товара карточкой вместо широкой таблицы (фото | название, количество, сумма) */
@media (max-width: 767px) {
	#checkout-cart .table-responsive { border: 0; overflow: visible; }
	#checkout-cart .table-responsive > table, #checkout-cart .table-responsive > table > tbody { display: block; width: 100%; border: 0; }
	#checkout-cart .table-responsive > table > thead { display: none; }
	#checkout-cart .table-responsive > table > tbody > tr { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid #e3ebe1; }
	#checkout-cart .table-responsive > table > tbody > tr > td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; white-space: normal; }
	#checkout-cart .table-responsive > table > tbody > tr > td:nth-child(1) { grid-row: 1 / span 4; }
	#checkout-cart .table-responsive > table > tbody > tr > td:nth-child(1) img { width: 72px; height: auto; }
	#checkout-cart .table-responsive > table > tbody > tr > td:nth-child(2) a { font-weight: 600; }
	#checkout-cart .table-responsive > table > tbody > tr > td:nth-child(3) { font-size: 12px; color: #6b766d; }
	#checkout-cart .table-responsive > table > tbody > tr > td:nth-child(3)::before { content: "Модель: "; }
	#checkout-cart .table-responsive > table > tbody > tr > td:nth-child(5) { display: none; }
	#checkout-cart .table-responsive > table > tbody > tr > td:nth-child(6) { font-weight: 700; font-size: 16px; }
	#checkout-cart .table-responsive .input-group { max-width: 190px !important; }
	/* кнопки внизу корзины — во всю ширину друг под другом */
	#checkout-cart .buttons .pull-left, #checkout-cart .buttons .pull-right { float: none !important; }
	#checkout-cart .buttons .btn { display: block; width: 100%; margin-bottom: 8px; padding: 12px; }
}

/* --- кнопки-ссылки: посещённая ссылка не перекрашивает текст в цвет кнопки (был зелёный текст на зелёном) */
a.btn-primary, a.btn-primary:visited, a.btn-primary:hover, a.btn-primary:focus, a.btn-primary:active,
a.button, a.button:visited, a.js-btn, a.js-btn:visited { color: #fff !important; text-decoration: none; }
a.btn-default:visited { color: #333; }

/* --- согласие на обработку данных: флажок с подписью слева, кнопка справа */
.buttons.js-agree-row { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin: 24px 0 10px; padding: 16px 20px; border: 1px solid #e3ebe1; border-radius: 10px; background: #f6faf6; }
.js-agree { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 400; font-size: 14px; line-height: 1.45; color: #3a4a3c; cursor: pointer; flex: 1 1 320px; }
.js-agree input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #2e7d32; cursor: pointer; }
.js-agree a, .js-agree a b { color: #2e7d32; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.js-agree-row .btn-primary { flex: none; min-width: 180px; height: 44px; padding: 0 26px; border-radius: 22px; font-size: 15px; font-weight: 600; }
@media (max-width: 600px) { .js-agree-row .btn-primary { width: 100%; } }
/* то же для остальных форм с согласием (оформление заказа, возврат, сертификат) */
.buttons .pull-right:has(input[name="agree"]) { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; float: none !important; }

/* --- 27.10: подвал на фото пастбища в светлом стиле; верх фото плавно переходит в белый фон страницы,
       колонки и нижняя строка — на матовой белой подложке, чтобы текст читался */
#footer-wrap.js-foot { margin-top: 70px; background: #fff url(../../../../../image/catalog/brand/footer-pasture.jpg) center bottom / cover no-repeat; color: #3d4b3f; }
.js-foot::before { display: none; }
.js-foot #footer { margin-top: 90px; padding: 30px 28px 18px; border-radius: 18px; background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(19, 58, 25, .12); }
.js-foot #footer h3 { color: #1b2f12; }
.js-foot #footer .column a { color: #2b3a2d; }
.js-foot #footer .column a:hover { color: #2e7d32; }
.js-foot .column-brand p { color: #4a5a4c; }
.js-foot-logo { padding: 0; background: none; }
.js-foot-pay span { background: #fff; border-color: #dfe8dc; color: #3d4b3f; }
.js-foot-pay .fa { color: #2e7d32; }
#footer-wrap.js-foot .footer-contacts .fa { background: #eef6ee; color: #2e7d32; }
.js-foot .footer-contacts span, .js-foot .footer-contacts span a { color: #1b2f12 !important; }
.js-foot .footer-contacts small { color: #6b7a6d; }
.js-foot #powered { margin-top: 40px; border-top: 0; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #4a5a4c; }
.js-foot #powered a { color: #2e7d32; }
@media (max-width: 767px) { .js-foot #footer { margin: 50px 12px 0; padding: 22px 16px 8px; } .js-foot #powered { margin-top: 24px; } }

/* --- 27.10: квиз «Рассчитаем электроизгородь» на главной (модуль «Главная — квиз», скрипт js-quiz.js).
       Специалист слева, справа карточка: заголовок и полоса прогресса сверху, ответы плитками, внизу зелёная полоса с тем, что получит клиент */
.jsq { --g: #2e7d32; --gd: #1f5a28; --y: #f5b400; --ink: #1b2f12; --mut: #66745f; position: relative; margin: 34px 0 40px; padding: 26px 26px 0; border-radius: 22px; background: #eef6ec; background-image: repeating-linear-gradient(-12deg, transparent 0 46px, rgba(46, 125, 50, .05) 46px 48px); scroll-margin-top: 20px; }
.jsq-stage { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: end; }
.jsq-expert { position: relative; align-self: end; }
.jsq-expert img { display: block; width: 100%; height: auto; }
.jsq-expert-cap { position: absolute; left: 10px; right: 10px; bottom: 18px; padding: 10px 14px; border-left: 4px solid var(--y); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.jsq-expert-cap b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.jsq-expert-cap span { display: block; font-size: 12px; line-height: 1.35; color: var(--mut); }
.jsq-card { display: flex; flex-direction: column; margin-bottom: 26px; border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(31, 90, 40, .14); overflow: hidden; }
.jsq-top { padding: 24px 28px 18px; border-bottom: 1px solid #edf2ea; }
.jsq-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 14px; background: #fff6d6; color: #7a5a00; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.jsq-kicker .fa { color: var(--y); }
.jsq .jsq-h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--ink); text-transform: none; }
.jsq-h2 em { font-style: normal; text-decoration: none; color: var(--g); background: none; }
.jsq-sub { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--mut); }
.jsq-progress { display: flex; align-items: center; gap: 14px; }
.jsq-progress-label { flex: none; font-size: 13px; color: var(--mut); }
.jsq-progress-label b { color: var(--ink); }
.jsq-progress-track { flex: 1; height: 8px; border-radius: 4px; background: #e8efe5; overflow: hidden; }
.jsq-progress-fill { display: block; width: 20%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--g), var(--y)); transition: width .35s ease; }
.jsq-body { display: flex; flex-direction: column; min-height: 260px; margin: 0; padding: 22px 28px 16px; }
.jsq-step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; animation: jsq-in .3s ease; }
.jsq-step.is-on { display: block; }
@keyframes jsq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.jsq-q { margin: 0 0 14px; padding: 0; border: 0; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.jsq-q .fa { color: var(--g); }
.jsq-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jsq-opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jsq-opt { position: relative; display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 2px solid #e3eadf; border-radius: 12px; background: #fff; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.jsq-opt:hover { border-color: var(--y); background: #fffdf3; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(31, 90, 40, .18); }
/* ответы с фото: картинка сверху, подпись с галочкой снизу */
.jsq-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef3ec; }
.jsq-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.jsq-opt:hover .jsq-pic img { transform: scale(1.05); }
.jsq-cap { display: flex; flex: 1; align-items: center; gap: 10px; padding: 10px 12px; }
.jsq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.jsq-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid #b8c6b3; border-radius: 6px; background: #fff; color: transparent; font-size: 12px; transition: all .2s; }
.jsq-opt:has(input:checked) { border-color: var(--g); background: #f0f7ef; }
.jsq-opt input:checked ~ .jsq-ico, .jsq-opt input:checked ~ .jsq-cap .jsq-ico { border-color: var(--g); background: var(--g); color: #fff; }
.jsq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.jsq-in { width: 100%; height: 48px; padding: 0 14px; border: 2px solid #e3eadf; border-radius: 12px; background: #fff; font-size: 15px; }
.jsq-in:focus { outline: none; border-color: var(--g); }
.jsq-ch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.jsq-ch label { margin: 0; cursor: pointer; }
.jsq-ch input { position: absolute; opacity: 0; }
.jsq-ch span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 2px solid #e3eadf; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--ink); transition: all .2s; }
.jsq-ch input:checked + span { border-color: var(--g); background: var(--g); color: #fff; }
.jsq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.jsq-agree { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--mut); }
.jsq-agree input { margin-top: 2px; accent-color: var(--g); }
.jsq-agree a { color: var(--g); text-decoration: underline; }
.jsq-send { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--g); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; }
.jsq-send:hover { background: var(--gd); }
.jsq-send .fa { color: var(--y); }
.jsq-send:disabled { opacity: .6; cursor: wait; }
.jsq-err { min-height: 1em; margin: 8px 0 0; font-size: 13px; color: #c62828; }
.jsq-done-text { font-size: 15px; line-height: 1.55; color: var(--mut); }
.jsq-done-text a { color: var(--g); text-decoration: underline; }
.jsq-nav { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.jsq-back { padding: 6px 0; border: 0; background: none; font-size: 14px; color: var(--mut); cursor: pointer; }
.jsq-back:hover { color: var(--g); }
.jsq-hint { font-size: 12px; color: #98a393; }
.jsq.is-form .jsq-hint, .jsq.is-done .jsq-nav { display: none; }
.jsq-perks { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin: 0; padding: 14px 28px; list-style: none; background: var(--gd); }
.jsq-perks li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #e3f0e1; }
.jsq-perks .fa { color: var(--y); font-size: 15px; }
@media (max-width: 1199px) { .jsq-opts, .jsq-opts--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .jsq-opts--4 { grid-template-columns: 1fr 1fr; } .jsq-stage { grid-template-columns: 240px minmax(0, 1fr); } }
/* телефон: инженер над карточкой квиза, показывает вниз */
.jsq-expert-mob { display: none; }
@media (max-width: 991px) { .jsq-stage { grid-template-columns: 1fr; } .jsq-expert { display: none; } .jsq { padding: 16px 16px 0; }
	.jsq-expert-mob { display: block; max-width: 280px; margin: 0 auto -8px; } .jsq-expert-mob img { display: block; width: 100%; height: auto; } }
@media (max-width: 600px) {
	.jsq { margin: 24px -5px 30px; padding: 12px 10px 0; border-radius: 16px; }
	.jsq-card { margin-bottom: 12px; }
	.jsq-top { padding: 18px 16px 14px; }
	.jsq .jsq-h2 { font-size: 22px; }
	.jsq-sub { font-size: 14px; }
	.jsq-body { padding: 16px; }
	.jsq-q { font-size: 17px; }
	.jsq-fields { grid-template-columns: 1fr; }
	.jsq-opts, .jsq-opts--4 { grid-template-columns: 1fr 1fr; gap: 8px; }
	.jsq-opt { font-size: 14px; }
	.jsq-cap { align-items: flex-start; gap: 7px; padding: 8px; }
	.jsq-cap .jsq-ico { width: 20px; height: 20px; }
	.jsq-hint { display: none; }
	.jsq-perks { flex-direction: column; padding: 14px 16px; }
}

/* --- оформление заказа на одной странице (checkout/quick.twig) */
.qc { --g: #2e7d32; --gd: #1f5a28; --ink: #1b2f12; --mut: #66745f; --line: #d9e2d5; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; margin-bottom: 40px; }
.qc-form, .qc-sum { padding: 26px 28px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(31, 90, 40, .08); }
.qc-sum { position: sticky; top: 90px; }
.qc .qc-h { margin: 26px 0 14px; padding: 0; border: 0; font-size: 20px; font-weight: 600; color: var(--ink); text-transform: none; }
.qc .qc-h:first-child { margin-top: 0; }
.qc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qc-wide { grid-column: 1 / -1; }
.qc-f { position: relative; }
.qc-f[hidden] { display: none; }
.qc-in { display: block; width: 100%; height: 52px; padding: 20px 14px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; color: var(--ink); box-shadow: none; transition: border-color .2s; }
textarea.qc-in { height: auto; padding: 12px 14px; resize: vertical; }
.qc-in:focus { outline: none; border-color: var(--g); }
.qc-f label { position: absolute; left: 15px; top: 16px; margin: 0; font-size: 15px; font-weight: 400; color: var(--mut); pointer-events: none; transition: all .15s; }
.qc-in:focus + label, .qc-in:not(:placeholder-shown) + label { top: 6px; font-size: 11px; }
.qc-f.is-bad .qc-in { border-color: #c62828; }
.qc-f.is-bad::after { content: attr(data-err); display: block; margin-top: 4px; font-size: 12px; color: #c62828; }
.qc-opts { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qc-opt { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 4px 12px; margin: 0; padding: 15px 16px; font-weight: 400; cursor: pointer; transition: background .2s; }
.qc-opt + .qc-opt { border-top: 1px solid var(--line); }
.qc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qc-radio { width: 20px; height: 20px; border: 2px solid #9aa894; border-radius: 50%; transition: all .2s; }
.qc-opt input:checked + .qc-radio { border: 6px solid var(--g); }
.qc-opt:has(input:checked) { background: #f3f8f1; }
.qc-opt-t { font-size: 15px; font-weight: 500; color: var(--ink); }
.qc-opt-p { font-size: 13px; font-weight: 600; color: var(--g); text-transform: uppercase; }
.qc-opt-d { grid-column: 2 / -1; display: none; font-size: 13px; color: var(--mut); }
.qc-opt:has(input:checked) .qc-opt-d { display: block; }
.qc-check { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-weight: 400; font-size: 15px; color: var(--ink); cursor: pointer; }
.qc-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--g); }
.qc-note { margin-top: 10px; }
.qc-note[hidden] { display: none; }
.qc-agree { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #edf2ea; font-size: 13px; color: var(--mut); }
.qc-agree a { color: var(--g); text-decoration: underline; }
.qc-err { min-height: 1em; margin: 8px 0; font-size: 14px; color: #c62828; }
.qc-send { display: block; width: 100%; height: 54px; border: 0; border-radius: 12px; background: var(--g); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .2s; }
.qc-send:hover { background: var(--gd); }
.qc-send:disabled { opacity: .6; cursor: wait; }
.qc-items { margin: 0 0 14px; padding: 0 0 14px; list-style: none; border-bottom: 1px solid #edf2ea; }
.qc-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; }
.qc-thumb { position: relative; display: block; width: 64px; height: 64px; border: 1px solid #edf2ea; border-radius: 10px; background: #fff; }
.qc-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.qc-thumb b { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--g); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.qc-name { font-size: 14px; line-height: 1.35; color: var(--ink); }
.qc-price { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.qc-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--mut); }
.qc-row-note { padding-top: 0; font-size: 12px; }
.qc-free { font-weight: 600; color: var(--g); text-transform: uppercase; }
.qc-total { margin-top: 8px; padding-top: 14px; border-top: 1px solid #edf2ea; font-size: 22px; font-weight: 700; color: var(--ink); }
.qc-back { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--g); }
@media (max-width: 991px) {
	.qc { grid-template-columns: 1fr; gap: 18px; }
	.qc-sum { position: static; order: -1; }
}
@media (max-width: 575px) {
	.qc-form, .qc-sum { padding: 18px 16px; }
	.qc-grid { grid-template-columns: 1fr; }
	.qc .qc-h { font-size: 18px; }
	.qc-opt { padding: 13px 12px; }
}

/* --- сообщение «товар добавлен в корзину» внизу экрана (jsCartToast в common.js) */
.js-toast { position: fixed; left: 50%; bottom: 24px; z-index: 10050; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 24px); padding: 14px 16px 14px 18px; border-radius: 14px; background: #1f5a28; color: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 14px 36px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translate(-50%, 20px); transition: opacity .25s, transform .25s, visibility .25s; }
.js-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.js-toast > .fa { flex: none; font-size: 22px; color: #f5b400; }
.js-toast-text a { color: #fff; text-decoration: underline; }
.js-toast-btn { flex: none; padding: 7px 14px; border-radius: 10px; background: #f5b400; color: #1b2f12 !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.js-toast-btn:hover { background: #ffc61a; }
.js-toast-close { flex: none; padding: 0 2px; border: 0; background: none; color: rgba(255, 255, 255, .7); font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 767px) {
	.js-toast { bottom: 76px; width: calc(100% - 24px); font-size: 13px; }
	.js-toast-btn { padding: 6px 10px; }
}
