/* Author Igor Veynik | Site: NexusLab.ru | Telegram: @thenexus | created 2026-08-04 | updated 2026-08-04 */
/* LS-10 (задача CRM 66): стили модальных форм «Онлайн-просмотр товара» и «Доставить образец».
   Вёрстка по макетам заказчицы. Все правила под префиксом .ls10- — остальной сайт не затрагивается. */

.ls10-overlay {
	--ls10-accent: #b0521c;
	--ls10-accent-dark: #8f4315;
	--ls10-beige: #fdf6ef;
	--ls10-beige-2: #faf3ec;
	--ls10-border: #ece2d6;
	--ls10-text: #23201d;
	--ls10-muted: #8a8279;
	--ls10-green: #2faa6a;
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 24px 16px;
	background: rgba(20, 16, 12, .55);
	overflow-y: auto;
	opacity: 0;
	transition: opacity .2s;
}
.ls10-overlay[hidden] { display: none; }
.ls10-overlay.is-open { opacity: 1; }

.ls10-dialog {
	position: relative;
	width: 100%;
	max-width: 1060px;
	background: #fff;
	border-radius: 20px;
	padding: 26px 32px 30px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	font-family: inherit;
	color: var(--ls10-text);
}

/* ---------- Шапка ---------- */
.ls10-topbar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ls10-brand { display: flex; align-items: center; gap: 10px; }
.ls10-brand__mark { width: 34px; height: 34px; flex: 0 0 auto; border: 2px solid var(--ls10-accent); border-radius: 6px; position: relative; }
.ls10-brand__mark:before { content: ''; position: absolute; left: 6px; top: 6px; right: 12px; bottom: 6px; border: 2px solid var(--ls10-accent); border-radius: 3px; }
.ls10-brand__text b { display: block; font-size: 17px; font-weight: 800; letter-spacing: .04em; color: var(--ls10-accent); }
.ls10-brand__text i { display: block; font-style: normal; font-size: 9px; letter-spacing: .14em; color: var(--ls10-muted); text-transform: uppercase; }
.ls10-phones { margin-left: auto; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ls10-phones a { color: var(--ls10-text); text-decoration: none; }
.ls10-phones a:hover { color: var(--ls10-accent); }
.ls10-close { flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ls10-beige-2); color: var(--ls10-text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.ls10-close:hover { background: var(--ls10-border); }
.ls10-close svg { width: 18px; height: 18px; }

/* ---------- Заголовок ---------- */
.ls10-head { text-align: center; margin: 18px 0 16px; }
.ls10-title { margin: 0; font-size: 30px; font-weight: 800; }
.ls10-subtitle { margin: 10px auto 0; max-width: 640px; color: var(--ls10-muted); font-size: 15px; line-height: 1.55; }

/* ---------- Плашка-предупреждение ---------- */
.ls10-notice { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--ls10-beige); border: 1px solid var(--ls10-border); border-radius: 12px; padding: 14px 18px; font-size: 15px; margin-bottom: 16px; text-align: center; }
.ls10-notice[hidden] { display: none; }
.ls10-notice__ico { flex: 0 0 auto; width: 26px; height: 26px; border: 2px solid var(--ls10-accent); border-radius: 50%; color: var(--ls10-accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ls10-notice b { color: var(--ls10-accent); }

/* ---------- Буллеты-преимущества ---------- */
.ls10-benefits { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ls10-border); border-radius: 12px; overflow: hidden; }
.ls10-benefits li { display: flex; align-items: center; gap: 12px; padding: 16px; font-size: 13px; line-height: 1.4; border-left: 1px solid var(--ls10-border); }
.ls10-benefits li:first-child { border-left: 0; }
.ls10-benefits__ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--ls10-beige); color: var(--ls10-accent); display: flex; align-items: center; justify-content: center; }
.ls10-benefits__ico svg { width: 20px; height: 20px; }

/* ---------- Тело: форма + правая колонка ---------- */
.ls10-body { display: flex; align-items: flex-start; gap: 24px; }
.ls10-form { flex: 1 1 auto; min-width: 0; }
.ls10-aside { flex: 0 0 320px; display: flex; flex-direction: column; gap: 14px; }

.ls10-field { margin-bottom: 16px; }
.ls10-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.ls10-req { color: var(--ls10-accent); }
.ls10-opt { font-weight: 400; color: var(--ls10-muted); }
.ls10-input { width: 100%; border: 1px solid var(--ls10-border); border-radius: 10px; padding: 13px 14px; font-size: 15px; font-family: inherit; color: var(--ls10-text); background: #fff; transition: border-color .15s; }
.ls10-input:focus { outline: none; border-color: var(--ls10-accent); }
.ls10-input::placeholder { color: #bdb5ab; }
.ls10-textarea { resize: vertical; min-height: 104px; }
.ls10-counter { text-align: right; font-size: 12px; color: var(--ls10-muted); margin-top: 4px; }
.ls10-hint { display: block; font-size: 12px; color: var(--ls10-muted); }
.ls10-hint--under { margin-top: 6px; }
.ls10-error { display: none; margin-top: 5px; font-size: 12px; color: #d0342c; }
.ls10-error.is-show { display: block; }
.ls10-input.is-invalid { border-color: #d0342c; }

.ls10-product { background: var(--ls10-beige); border: 1px solid var(--ls10-border); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.ls10-product[hidden] { display: none; }
.ls10-product a { color: var(--ls10-accent); }

/* honeypot */
.ls10-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Загрузка файлов ---------- */
.ls10-dropzone { display: flex; align-items: center; gap: 14px; border: 1px dashed var(--ls10-border); border-radius: 12px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.ls10-dropzone:hover, .ls10-dropzone.is-drag { border-color: var(--ls10-accent); background: var(--ls10-beige); }
.ls10-dz-ico { width: 30px; height: 30px; flex: 0 0 auto; color: var(--ls10-accent); }
.ls10-dz-title { display: block; font-size: 14px; font-weight: 600; }
.ls10-dz-note { display: block; font-size: 12px; color: var(--ls10-muted); margin-top: 2px; }
.ls10-filelist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ls10-filelist li { background: var(--ls10-beige); border: 1px solid var(--ls10-border); border-radius: 8px; padding: 6px 10px; font-size: 12px; }

/* ---------- Согласие и кнопка ---------- */
.ls10-consent { margin-top: 4px; }
.ls10-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; line-height: 1.4; }
.ls10-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.ls10-check-box { flex: 0 0 auto; width: 18px; height: 18px; border: 1px solid var(--ls10-border); border-radius: 4px; margin-top: 1px; position: relative; transition: background .15s, border-color .15s; }
.ls10-check input:checked + .ls10-check-box { background: var(--ls10-accent); border-color: var(--ls10-accent); }
.ls10-check input:checked + .ls10-check-box:after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ls10-check-text a { color: var(--ls10-accent); }

.ls10-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; background: var(--ls10-accent); color: #fff; border: 0; border-radius: 10px; padding: 15px 20px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .15s; }
.ls10-submit:hover { background: var(--ls10-accent-dark); }
.ls10-submit[disabled] { opacity: .65; cursor: default; }
.ls10-submit__ico svg { width: 20px; height: 20px; display: block; }
.ls10-submit__loading { display: none; }
.ls10-submit.is-loading .ls10-submit__text, .ls10-submit.is-loading .ls10-submit__ico { display: none; }
.ls10-submit.is-loading .ls10-submit__loading { display: inline; }

.ls10-guard { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 12px; color: var(--ls10-muted); }
.ls10-guard__ico { width: 14px; height: 14px; background: currentColor; -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.2-8 11-4.6-1.8-8-6-8-11V5l8-3z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.2-8 11-4.6-1.8-8-6-8-11V5l8-3z'/%3E%3C/svg%3E"); }
.ls10-formerror { margin: 10px 0 0; padding: 10px 14px; background: #fdecea; border: 1px solid #f5c2be; border-radius: 8px; color: #a3271f; font-size: 13px; }
.ls10-formerror[hidden] { display: none; }

/* ---------- Правая колонка ---------- */
.ls10-card { background: var(--ls10-beige-2); border: 1px solid var(--ls10-border); border-radius: 14px; padding: 20px; }
.ls10-card__title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.ls10-card__text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ls10-muted); }
.ls10-card--important .ls10-card__title { margin-bottom: 8px; }
.ls10-important__ico { width: 24px; height: 24px; flex: 0 0 auto; border: 2px solid var(--ls10-accent); border-radius: 50%; color: var(--ls10-accent); font-size: 14px; display: flex; align-items: center; justify-content: center; }

.ls10-steps { list-style: none; margin: 0; padding: 0; }
.ls10-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ls10-border); font-size: 13px; line-height: 1.45; }
.ls10-steps li:first-child { border-top: 0; padding-top: 0; }
.ls10-steps__ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--ls10-border); color: var(--ls10-accent); display: flex; align-items: center; justify-content: center; }
.ls10-steps__ico svg { width: 17px; height: 17px; }

/* ---------- Экран «спасибо» ---------- */
.ls10-success { text-align: center; padding: 30px 10px 10px; }
.ls10-success[hidden] { display: none; }
.ls10-success__ico { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; background: var(--ls10-green); color: #fff; display: flex; align-items: center; justify-content: center; }
.ls10-success__ico svg { width: 30px; height: 30px; }
.ls10-success__title { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.ls10-success__text { margin: 0 auto 20px; max-width: 520px; color: var(--ls10-muted); font-size: 15px; line-height: 1.55; }
.ls10-success__close { max-width: 260px; margin-left: auto; margin-right: auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
	.ls10-dialog { padding: 20px 18px 24px; border-radius: 16px; }
	.ls10-title { font-size: 24px; }
	.ls10-benefits { grid-template-columns: repeat(2, 1fr); }
	.ls10-benefits li:nth-child(3) { border-left: 0; }
	.ls10-benefits li:nth-child(n+3) { border-top: 1px solid var(--ls10-border); }
	.ls10-body { flex-direction: column; }
	.ls10-aside { flex-basis: auto; width: 100%; }
}
@media (max-width: 600px) {
	.ls10-overlay { padding: 0; }
	.ls10-dialog { border-radius: 0; min-height: 100%; padding: 16px 14px 24px; }
	.ls10-title { font-size: 21px; }
	.ls10-phones { width: 100%; margin-left: 0; flex-direction: row; gap: 14px; flex-wrap: wrap; font-size: 13px; }
	.ls10-close { position: absolute; right: 12px; top: 12px; }
	.ls10-benefits { grid-template-columns: 1fr; }
	.ls10-benefits li { border-left: 0; border-top: 1px solid var(--ls10-border); }
	.ls10-benefits li:first-child { border-top: 0; }
	.ls10-notice { flex-direction: column; gap: 8px; font-size: 14px; }
}
