/* ПереСтор: cookie-баннер, настройки cookie, форма обратного звонка.
   Использует переменные и классы темы (.btn, .modal, .eyebrow); есть запасные значения. */

.ckb[hidden] { display: none; }
.ckb {
	position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 190;
	display: flex; justify-content: center;
}
.ckb__inner {
	display: flex; align-items: center; gap: 24px; width: 100%; max-width: 1180px;
	padding: 18px 22px; border-radius: 20px; background: #fff; color: #141416;
	box-shadow: 0 24px 60px -20px rgba(12, 12, 13, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05);
	animation: ckbIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes ckbIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.ckb__text { flex: 1; font-size: 14px; line-height: 1.45; color: #6d6a66; }
.ckb__text p { margin: 0; }
.ckb__title { font-weight: 800; color: #141416; margin-bottom: 4px !important; }
.ckb__text a { color: #d94b00; text-decoration: underline; text-underline-offset: 3px; }
.ckb__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ckb__actions .btn { padding: 12px 18px; font-size: 14px; }

.modal__panel--sm { width: min(560px, 100%); }
.modal__content--pad { padding: clamp(24px, 4vw, 40px); }
.modal__content--pad .h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.cbform__intro { color: #6d6a66; margin-bottom: 20px; }

.ckcat { padding: 18px 0; border-top: 1px solid #e3ded6; }
.ckcat p { margin: 8px 0 0; font-size: 14px; color: #6d6a66; }
.ckcat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ckcat__always { font-size: 13px; font-weight: 700; color: #1f9d55; }
.ckcat__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ckcat__note { margin-top: 14px; font-size: 12px; color: #6d6a66; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 700; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #e3ded6; transition: background 0.25s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s; }
.switch input:checked + .switch__track { background: #ff5c00; }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.2); }

.cbform { display: flex; flex-direction: column; gap: 14px; }
.cbform__row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.cbform__row input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #e3ded6; font: inherit; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.cbform__row input:focus { outline: 0; border-color: #ff5c00; box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.15); }
.cbform__row.is-error input { border-color: #d33; }
.cbform__row--hp { position: absolute; left: -9999px; }
.cbform__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #6d6a66; cursor: pointer; padding: 12px 14px; border-radius: 12px; border: 1.5px solid transparent; }
.cbform__consent.is-error { border-color: #d33; background: #fdecec; }
.cbform__consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: #ff5c00; flex: none; }
.cbform__consent a { color: #d94b00; text-decoration: underline; text-underline-offset: 3px; }
.cbform__submit { align-self: flex-start; }
.cbform__msg { margin: 0; font-size: 14px; min-height: 1em; }
.cbform__msg.is-ok { color: #1f9d55; font-weight: 700; }
.cbform__msg.is-error { color: #b91c1c; }

@media (max-width: 760px) {
	.ckb { left: 8px; right: 8px; bottom: 8px; }
	.ckb__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
	.ckb__actions { justify-content: stretch; }
	.ckb__actions .btn { flex: 1 1 auto; }
	.cbform__submit { align-self: stretch; }
}
