/* Малки обяви: форма, преглед, „Моите обяви“, демо, галерия. Цветовете са тези на сайта. */
.dm-oby, .dm-oby-tour, .dm-oby-modal, .dm-oby-toast {
	--oby-blue: #2d4b9b;
	--oby-blue-dark: #1f356f;
	--oby-lav: #7c80f2;
	--oby-lav-soft: #eef0ff;
	--oby-gold: #ffd700;
	--oby-text: #1d2433;
	--oby-muted: #667085;
	--oby-line: #e4e8f1;
	--oby-bg: #f5f7fc;
	--oby-red: #c0392b;
	--oby-green: #1f8a4c;
	--oby-radius: 16px;
	--oby-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px rgba(31, 53, 111, .07);
	--oby-font: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}
.dm-oby { max-width: 1160px; margin: 0 auto; padding: 8px 16px 56px; color: var(--oby-text); font-family: var(--oby-font); font-size: 16px; line-height: 1.5; }
.dm-oby *, .dm-oby *::before, .dm-oby *::after { box-sizing: border-box; }
.dm-oby [hidden] { display: none !important; }
.dm-oby .dm-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.dm-oby button, .dm-oby input, .dm-oby select, .dm-oby textarea { font-family: var(--oby-font); }
/* Темата слага сериф на етикетите и удебеления текст; във формата всичко освен заглавията е в шрифта на текста. */
.dm-oby label, .dm-oby label *, .dm-oby-kind-card *, .dm-oby-pills span, .dm-oby-drop *, .dm-oby-item-main strong, .dm-oby-done-card strong, .dm-oby-pcard-title, .dm-oby-checklist li { font-family: var(--oby-font) !important; }

/* Заглавие */
.dm-oby-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin: 10px 0 18px; }
.dm-oby-hero h2 { margin: 0 0 4px; font-size: 34px; line-height: 1.15; color: var(--oby-blue); letter-spacing: -.01em; }
.dm-oby-hero p { margin: 0; color: var(--oby-muted); }
.dm-oby-howto { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--oby-blue) !important; text-decoration: none !important; background: #fff; border: 1.5px solid #c9d2ec; border-radius: 999px; padding: 8px 16px; font-size: 14px; white-space: nowrap; transition: border-color .15s, background .15s; }
.dm-oby-howto:hover { border-color: var(--oby-blue); background: var(--oby-lav-soft); }

/* Стъпки */
.dm-oby-stepper { display: flex; gap: 0; list-style: none; margin: 0 0 22px; padding: 0; counter-reset: s; }
.dm-oby-stepper li { flex: 1; position: relative; margin: 0; }
.dm-oby-stepper li + li::before { content: ""; position: absolute; left: -50%; right: 50%; top: 17px; height: 3px; background: var(--oby-line); z-index: 0; transition: background .3s; }
.dm-oby-stepper li.is-done + li::before { background: var(--oby-blue); }
.dm-oby-stepper a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none !important; color: var(--oby-muted) !important; font-size: 14px; font-weight: 700; }
.dm-oby-stepper-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--oby-line); color: var(--oby-muted); font-weight: 800; transition: all .25s; }
.dm-oby-stepper li.is-active .dm-oby-stepper-num { border-color: var(--oby-blue); color: var(--oby-blue); box-shadow: 0 0 0 5px rgba(45, 75, 155, .12); }
.dm-oby-stepper li.is-active a { color: var(--oby-blue) !important; }
.dm-oby-stepper li.is-done .dm-oby-stepper-num { background: var(--oby-blue); border-color: var(--oby-blue); color: transparent; }
.dm-oby-stepper li.is-done .dm-oby-stepper-num::after { content: "✓"; position: absolute; color: #fff; font-size: 17px; }
.dm-oby-stepper li.is-done a { color: var(--oby-text) !important; }

/* Съобщения */
.dm-oby-alert { padding: 14px 16px; border-radius: 12px; margin: 0 0 18px; font-weight: 600; }
.dm-oby-alert.is-error { background: #fdecea; color: var(--oby-red); border: 1px solid #f5c2bc; }
.dm-oby-alert.is-ok { background: #e8f6ee; color: var(--oby-green); border: 1px solid #b9e2c8; }
.dm-oby-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; background: var(--oby-lav-soft); border: 1px solid #d9ddff; color: #33388a; font-weight: 600; }
.dm-oby-draft span { flex: 1; min-width: 200px; }
.dm-oby-draft button { border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 700; cursor: pointer; background: var(--oby-blue); color: #fff; }
.dm-oby-draft button.is-ghost { background: transparent; color: #33388a; text-decoration: underline; padding-inline: 4px; }

/* Оформление: форма + преглед */
.dm-oby-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1080px) { .dm-oby-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; } }

/* Стъпки (карти) */
.dm-oby-step { background: #fff; border: 1px solid var(--oby-line); border-radius: var(--oby-radius); padding: 24px; margin: 0 0 18px; box-shadow: var(--oby-shadow); scroll-margin-top: 110px; transition: border-color .2s, box-shadow .2s; }
.dm-oby-step:focus-within { border-color: #c9d2ec; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 34px rgba(31, 53, 111, .1); }
.dm-oby-step h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 21px; color: var(--oby-text); }
.dm-oby-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #3d5fc0, var(--oby-blue)); color: #fff; font-size: 15px; font-weight: 800; flex: none; box-shadow: 0 4px 10px rgba(45, 75, 155, .25); font-family: var(--oby-font); }

/* Видове */
.dm-oby-kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .dm-oby-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dm-oby-kind { position: relative; cursor: pointer; margin: 0; }
.dm-oby-kind input { position: absolute; opacity: 0; pointer-events: none; }
.dm-oby-kind-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; height: 100%; padding: 16px 10px 14px; border: 2px solid var(--oby-line); border-radius: 14px; background: #fff; transition: border-color .18s, box-shadow .18s, transform .18s, background .18s; }
.dm-oby-kind-img { width: 72px; height: 72px; object-fit: contain; margin: 2px 0 6px; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); filter: drop-shadow(0 8px 12px rgba(91, 96, 220, .18)); }
.dm-oby-kind-card strong { font-size: 15.5px; line-height: 1.25; }
.dm-oby-kind-card small { color: var(--oby-muted); font-size: 12.5px; line-height: 1.35; }
.dm-oby-kind-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--oby-blue); color: #fff; font-size: 13px; line-height: 22px; font-weight: 800; transform: scale(0); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.dm-oby-kind:hover .dm-oby-kind-card { border-color: #c3cbea; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(31, 53, 111, .09); }
.dm-oby-kind:hover .dm-oby-kind-img { transform: scale(1.06) rotate(-3deg); }
.dm-oby-kind input:checked + .dm-oby-kind-card { border-color: var(--oby-blue); background: linear-gradient(180deg, #f2f4ff 0%, #fff 70%); box-shadow: 0 0 0 4px rgba(45, 75, 155, .1), 0 12px 24px rgba(31, 53, 111, .1); }
.dm-oby-kind input:checked + .dm-oby-kind-card .dm-oby-kind-check { transform: scale(1); }
.dm-oby-kind input:checked + .dm-oby-kind-card .dm-oby-kind-img { transform: scale(1.1); }
.dm-oby-kind input:focus-visible + .dm-oby-kind-card { outline: 3px solid var(--oby-gold); outline-offset: 2px; }

/* Полета */
.dm-oby-field { margin: 0 0 20px; }
.dm-oby-field:last-child { margin-bottom: 0; }
.dm-oby-field > label, .dm-oby-days > label { display: flex; align-items: center; gap: 6px; font-weight: 700; margin: 0 0 7px; font-size: 15px; font-family: var(--oby-font); color: var(--oby-text); }
.dm-oby-field label em { color: var(--oby-red); font-style: normal; }
.dm-oby-optional { font-weight: 500; color: var(--oby-muted); font-size: 13px; }
.dm-oby-sub { margin-top: 14px !important; }
.dm-oby input[type=text], .dm-oby input[type=tel], .dm-oby input[type=email], .dm-oby textarea, .dm-oby select {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #d3d9e8; border-radius: 12px; background: #fff;
	font-size: 16px; color: var(--oby-text); transition: border-color .15s, box-shadow .15s, background .15s; box-shadow: none; margin: 0;
}
.dm-oby textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.dm-oby input::placeholder, .dm-oby textarea::placeholder { color: #9aa3b5; }
.dm-oby input:hover, .dm-oby textarea:hover, .dm-oby select:hover { border-color: #b9c2da; }
.dm-oby input:focus, .dm-oby textarea:focus, .dm-oby select:focus { outline: none; border-color: var(--oby-blue); box-shadow: 0 0 0 4px rgba(45, 75, 155, .12); }
.dm-oby input:disabled { background: #f1f3f7; color: #9aa3b5; }
.dm-oby-input { position: relative; }
.dm-oby-input.has-icon input { padding-left: 44px; }
.dm-oby-input .dm-oby-input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #8b94ab; pointer-events: none; transition: color .15s; }
.dm-oby-input:focus-within .dm-oby-input-ico { color: var(--oby-blue); }
.dm-oby-input.has-suffix input { padding-right: 40px; }
.dm-oby-suffix { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--oby-muted); font-weight: 800; }
.dm-oby-help { display: block; margin-top: 7px; color: var(--oby-muted); font-size: 13px; line-height: 1.4; }
.dm-oby-count { float: right; font-variant-numeric: tabular-nums; }
.dm-oby-err { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--oby-red); font-size: 14px; font-weight: 600; }
.dm-oby-err::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--oby-red); color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.dm-oby-err[hidden] { display: none; }
.has-error input, .has-error textarea { border-color: var(--oby-red) !important; background: #fffafa; }
.dm-oby-step.has-error .dm-oby-kind-card { border-color: #f0b4ad; }
.dm-oby-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.dm-oby-grid > .dm-oby-field { margin-bottom: 20px; }

/* Подсказки за описанието */
.dm-oby-tips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.dm-oby-tips-label { font-size: 13px; color: var(--oby-muted); margin-right: 2px; }
.dm-oby-tip { border: 1px dashed #b9c2e6; background: #f7f8ff; color: #3b4594; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.dm-oby-tip:hover { background: var(--oby-lav-soft); border-style: solid; transform: translateY(-1px); }
.dm-oby-tip.is-used { opacity: .45; }

/* Превключвател „По договаряне“ */
.dm-oby-switch { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; cursor: pointer; user-select: none; font-family: var(--oby-font); }
.dm-oby-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dm-oby-switch-ui { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #cfd5e3; transition: background .2s; flex: none; }
.dm-oby-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.dm-oby-switch input:checked + .dm-oby-switch-ui { background: var(--oby-blue); }
.dm-oby-switch input:checked + .dm-oby-switch-ui::after { transform: translateX(18px); }
.dm-oby-switch input:focus-visible + .dm-oby-switch-ui { outline: 3px solid var(--oby-gold); outline-offset: 2px; }

/* Снимки */
.dm-oby-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.dm-oby-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; margin: 0; background: var(--oby-bg); box-shadow: 0 4px 12px rgba(31, 53, 111, .1); animation: dm-oby-pop .25s ease-out; }
@keyframes dm-oby-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.dm-oby-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-oby-photo:first-child::after { content: "Главна"; position: absolute; left: 7px; bottom: 7px; background: var(--oby-gold); color: var(--oby-blue-dark); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.dm-oby-photo-del, .dm-oby-photo-main { position: absolute; top: 7px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .62); color: #fff; font-size: 16px; line-height: 28px; text-align: center; cursor: pointer; padding: 0; backdrop-filter: blur(4px); transition: background .15s, transform .15s; }
.dm-oby-photo-del:hover, .dm-oby-photo-main:hover { background: rgba(15, 23, 42, .85); transform: scale(1.08); }
.dm-oby-photo-del { right: 7px; }
.dm-oby-photo-main { left: 7px; font-size: 13px; }
.dm-oby-photo:first-child .dm-oby-photo-main { display: none; }
.dm-oby-photo.is-loading { display: flex; align-items: center; justify-content: center; }
.dm-oby-spin { width: 26px; height: 26px; border: 3px solid #cfd6e4; border-top-color: var(--oby-blue); border-radius: 50%; animation: dm-oby-spin .8s linear infinite; }
@keyframes dm-oby-spin { to { transform: rotate(360deg); } }
.dm-oby-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 112px; padding: 14px 10px; border: 2px dashed #b9c0ea; border-radius: 12px; background: linear-gradient(180deg, #f8f9ff, #f1f3ff); color: #3b4594; cursor: pointer; margin: 0; transition: border-color .15s, background .15s, transform .15s; }
.dm-oby-photos .dm-oby-photo ~ .dm-oby-drop { aspect-ratio: 1 / 1; }
.dm-oby-photos:not(:has(.dm-oby-photo)) .dm-oby-drop { grid-column: 1 / -1; min-height: 150px; }
.dm-oby-drop:hover, .dm-oby-drop.is-over { border-color: var(--oby-blue); background: var(--oby-lav-soft); }
.dm-oby-drop.is-over { transform: scale(1.01); }
.dm-oby-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dm-oby-drop-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px rgba(91, 96, 220, .18); color: var(--oby-lav); margin-bottom: 4px; }
.dm-oby-drop-ico .dm-ico { width: 24px; height: 24px; }
.dm-oby-drop strong { font-size: 15px; }
.dm-oby-drop small { color: var(--oby-muted); font-size: 12.5px; line-height: 1.35; }
.dm-oby-photos .dm-oby-photo ~ .dm-oby-drop small { display: none; }
.dm-oby-drop-mob { display: none; }
@media (hover: none) { .dm-oby-drop-desk { display: none; } .dm-oby-drop-mob { display: block; } }

/* Срок */
.dm-oby-days { margin-top: 20px; }
.dm-oby-days .dm-ico { color: var(--oby-lav); }
.dm-oby-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-oby-pills label { margin: 0; cursor: pointer; }
.dm-oby-pills input { position: absolute; opacity: 0; }
.dm-oby-pills span { display: inline-block; padding: 10px 18px; border: 2px solid var(--oby-line); border-radius: 999px; font-weight: 700; background: #fff; transition: all .15s; }
.dm-oby-pills label:hover span { border-color: #c3cbea; }
.dm-oby-pills input:checked + span { border-color: var(--oby-blue); background: var(--oby-blue); color: #fff; box-shadow: 0 6px 14px rgba(45, 75, 155, .25); }
.dm-oby-pills input:focus-visible + span { outline: 3px solid var(--oby-gold); }

/* Бутони: темата слага свой шрифт на бутоните, затова го задаваме изрично. */
.dm-oby-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; border: 2px solid transparent; font-family: var(--oby-font) !important; font-size: 16px; font-weight: 800 !important; letter-spacing: 0; text-transform: none; text-decoration: none !important; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s, border-color .15s; line-height: 1.2; }
.dm-oby-btn.is-primary { background: var(--oby-blue); color: #fff !important; box-shadow: 0 6px 16px rgba(45, 75, 155, .25); }
.dm-oby-btn.is-primary:hover { background: var(--oby-blue-dark); transform: translateY(-1px); }
.dm-oby-btn.is-ghost { background: #fff; color: var(--oby-blue) !important; border-color: #c9d2ec; }
.dm-oby-btn.is-ghost:hover { border-color: var(--oby-blue); background: var(--oby-lav-soft); }
.dm-oby-btn.is-gold { background: linear-gradient(180deg, #ffe14d, var(--oby-gold)); color: var(--oby-blue-dark) !important; box-shadow: 0 10px 24px rgba(240, 190, 0, .35); }
.dm-oby-btn.is-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(240, 190, 0, .45); }
.dm-oby-btn.is-big { width: 100%; padding: 18px; font-size: 18px; }
.dm-oby-btn.is-big span { transition: transform .2s; }
.dm-oby-btn.is-big:hover span { transform: translateX(4px); }
.dm-oby-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.dm-oby-btn .dm-ico { width: 18px; height: 18px; }

/* Изпращане */
.dm-oby-submit { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 4px; }
.dm-oby-submit-progress { display: flex; align-items: center; gap: 12px; }
.dm-oby-submit-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--oby-line); overflow: hidden; }
.dm-oby-submit-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--oby-lav), var(--oby-blue)); transition: width .35s ease; }
.dm-oby-submit-progress small { color: var(--oby-muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.dm-oby-submit.is-ready .dm-oby-submit-progress small { color: var(--oby-green); }
.dm-oby-cancel { align-self: center; color: var(--oby-muted) !important; }
.dm-oby-progress { margin-top: 14px; text-align: center; }
.dm-oby-progress-bar { height: 8px; background: var(--oby-line); border-radius: 999px; overflow: hidden; }
.dm-oby-progress-bar span { display: block; height: 100%; width: 0; background: var(--oby-blue); transition: width .2s; }
.dm-oby-progress p { margin: 8px 0 0; color: var(--oby-muted); font-weight: 600; }

/* Преглед на живо */
.dm-oby-aside { display: none; }
@media (min-width: 1080px) { .dm-oby-aside { display: block; position: sticky; top: 110px; } }
.dm-oby-preview { background: #fff; border: 1px solid var(--oby-line); border-radius: var(--oby-radius); padding: 16px; box-shadow: var(--oby-shadow); }
.dm-oby-preview-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--oby-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.dm-oby-pcard { border: 1px solid var(--oby-line); border-radius: 12px; overflow: hidden; }
.dm-oby-pcard-img { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 40%, #f3f4ff, #e7eafb); display: flex; align-items: center; justify-content: center; }
.dm-oby-pcard-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-oby-pcard-kind { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(91, 96, 220, .2)); transition: transform .3s; }
.dm-oby-pcard-badge { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--oby-blue); font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.dm-oby-pcard-body { padding: 12px 14px 14px; }
.dm-oby-pcard-title { margin: 0 0 6px; font-size: 16px; line-height: 1.3; color: var(--oby-text); word-break: break-word; }
.dm-oby-pcard-title.is-empty, .dm-oby-pcard-city.is-empty { color: #b0b7c8; }
.dm-oby-pcard-meta { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--oby-muted); font-size: 13px; }
.dm-oby-pcard-price { margin: 8px 0 0; font-weight: 800; color: #e07b00; font-size: 17px; }
.dm-oby-pcard-price:empty { display: none; }
.dm-oby-checklist { list-style: none; margin: 14px 0 0; padding: 14px 16px; background: #fff; border: 1px solid var(--oby-line); border-radius: var(--oby-radius); }
.dm-oby-checklist li { position: relative; padding: 5px 0 5px 28px; font-size: 14px; color: var(--oby-muted); font-weight: 600; transition: color .2s; }
.dm-oby-checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfd5e3; transition: all .2s; }
.dm-oby-checklist li.is-done { color: var(--oby-text); }
.dm-oby-checklist li.is-done::before { background: var(--oby-green); border-color: var(--oby-green); }
.dm-oby-checklist li.is-done::after { content: "✓"; position: absolute; left: 4px; top: 5px; color: #fff; font-size: 12px; font-weight: 800; }
.dm-oby-checklist li.is-optional { font-weight: 500; }

/* Вход */
.dm-oby-gate { position: relative; max-width: 600px; margin: 24px auto; text-align: center; background: radial-gradient(120% 90% at 50% 0%, #f1f3ff 0%, #fff 55%); border: 1px solid var(--oby-line); border-radius: 22px; padding: 30px 26px 34px; box-shadow: 0 20px 50px rgba(31, 53, 111, .1); }
.dm-oby-gate-art { width: 128px; height: 128px; margin: -6px auto 6px; display: block; filter: drop-shadow(0 16px 22px rgba(91, 96, 220, .25)); animation: dm-oby-float 4s ease-in-out infinite; }
@keyframes dm-oby-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
.dm-oby-gate h2 { margin: 0 0 10px; font-size: 30px; color: var(--oby-blue); }
.dm-oby-gate > p { color: var(--oby-muted); margin: 0 auto 18px; max-width: 460px; }
.dm-oby-gate-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; list-style: none; padding: 0; margin: 0 0 22px; }
.dm-oby-gate-points li { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; margin: 0; }
.dm-oby-gate-points span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #e3f5ea; color: var(--oby-green); font-size: 13px; font-weight: 800; }
.dm-oby-gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.dm-oby-gate-actions .dm-oby-btn { min-width: 160px; }
.dm-oby-gate-note { font-size: 14px; color: var(--oby-muted); margin: 0 0 12px; }
.dm-oby-demo-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--oby-blue) !important; text-decoration: none !important; padding: 8px 14px; border-radius: 999px; background: var(--oby-lav-soft); }
.dm-oby-demo-link:hover { background: #e2e5ff; }

/* Готово */
.dm-oby-done { position: relative; overflow: hidden; text-align: center; background: radial-gradient(120% 80% at 50% 0%, #effaf3 0%, #fff 60%); border: 1px solid var(--oby-line); border-radius: 22px; padding: 30px 22px 32px; margin: 10px auto 34px; max-width: 760px; box-shadow: 0 20px 50px rgba(31, 53, 111, .1); }
.dm-oby-done-art { width: 120px; height: 120px; display: block; margin: 0 auto 4px; animation: dm-oby-bounce .7s cubic-bezier(.34, 1.56, .64, 1) both; filter: drop-shadow(0 14px 20px rgba(91, 96, 220, .25)); }
@keyframes dm-oby-bounce { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.dm-oby-done h2 { margin: 6px 0 8px; color: var(--oby-blue); font-size: 30px; }
.dm-oby-done > p { color: var(--oby-muted); margin: 0 0 20px; }
.dm-oby-done-card { display: flex; align-items: center; gap: 14px; text-align: left; max-width: 480px; margin: 0 auto 22px; padding: 12px; border: 1px solid var(--oby-line); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(31, 53, 111, .07); }
.dm-oby-done-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; }
.dm-oby-done-card img.is-icon, .dm-oby-item-thumb img.is-icon { object-fit: contain; padding: 8px; background: var(--oby-lav-soft); }
.dm-oby-done-card div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dm-oby-done-card small { color: var(--oby-muted); display: flex; align-items: center; gap: 4px; }
.dm-oby-badge { align-self: flex-start; background: #e6ecff; color: var(--oby-blue); font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.dm-oby-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dm-oby-confetti { position: absolute; inset: 0; pointer-events: none; }
.dm-oby-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: dm-oby-fall 2.6s ease-in forwards; }
@keyframes dm-oby-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(520px) rotate(540deg); } }

/* Моите обяви */
.dm-oby-mine { margin-top: 48px; scroll-margin-top: 110px; max-width: 860px; }
.dm-oby-mine h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; margin: 0 0 16px; color: var(--oby-text); }
.dm-oby-mine h2 span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--oby-lav-soft); color: var(--oby-blue); font-size: 15px; font-family: var(--oby-font); }
.dm-oby-empty { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px dashed #c9d2ec; border-radius: 14px; color: var(--oby-muted); background: #fbfbff; }
.dm-oby-empty img { width: 64px; height: 64px; }
.dm-oby-empty p { margin: 0; }
.dm-oby-item { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--oby-line); border-radius: 14px; margin-bottom: 12px; background: #fff; box-shadow: 0 2px 8px rgba(31, 53, 111, .04); transition: box-shadow .15s, transform .15s; }
.dm-oby-item:hover { box-shadow: 0 10px 24px rgba(31, 53, 111, .08); }
.dm-oby-item-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--oby-bg); flex: none; }
.dm-oby-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-oby-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dm-oby-item-main strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-oby-item-main small { color: var(--oby-muted); display: block; }
.dm-oby-item-main small .dm-ico { margin-right: 3px; }
.dm-oby-state { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #e3f5ea; color: var(--oby-green); }
.dm-oby-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.is-expired .dm-oby-state { background: #fff1de; color: #b26a00; }
.is-pending .dm-oby-state { background: #e6ecff; color: var(--oby-blue); }
.is-closed .dm-oby-state { background: #eef0f3; color: #6b7280; }
.is-closed .dm-oby-item-thumb, .is-expired .dm-oby-item-thumb { filter: grayscale(.6); opacity: .8; }
.dm-oby-item-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.dm-oby-item-actions a, .dm-oby-item-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--oby-line); background: #fff; color: var(--oby-blue) !important; font-size: 14px; font-weight: 700; text-decoration: none !important; cursor: pointer; transition: border-color .15s, background .15s; font-family: var(--oby-font); line-height: 1.2; }
.dm-oby-item-actions a:hover, .dm-oby-item-actions button:hover { border-color: var(--oby-blue); background: var(--oby-lav-soft); }
.dm-oby-item-actions .dm-ico { width: 17px; height: 17px; }
.dm-oby-item-actions .is-accent { background: var(--oby-blue); color: #fff !important; border-color: var(--oby-blue); }
.dm-oby-item-actions .is-accent:hover { background: var(--oby-blue-dark); }
.dm-oby-item-actions .is-danger { color: var(--oby-red) !important; }
.dm-oby-item-actions .is-danger:hover { border-color: var(--oby-red); background: #fdecea; }
.dm-oby-inline { display: inline; margin: 0; }

/* Демо */
.dm-oby-demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: linear-gradient(90deg, #fff8d6, #fffbe9); border: 1px solid #f2dc7a; color: #5c4a00; border-radius: 14px; padding: 12px 16px; margin: 6px 0 18px; }
.dm-oby-demo-bar > span:nth-child(2) { flex: 1; min-width: 220px; }
.dm-oby-demo-tag { background: var(--oby-gold); color: var(--oby-blue-dark); padding: 3px 9px; border-radius: 6px; font-weight: 800; font-size: 13px; }
.dm-oby-tour-start { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--oby-blue); color: #fff; font-weight: 800; padding: 10px 16px; border-radius: 10px; cursor: pointer; font-family: var(--oby-font) !important; }
.dm-oby-tour { position: fixed; inset: 0; z-index: 100000; pointer-events: none; font-family: var(--oby-font); }
.dm-oby-tour-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .58), 0 0 0 3px rgba(255, 215, 0, .9); transition: all .3s ease; pointer-events: none; }
.dm-oby-tour-card { position: fixed; width: 350px; max-width: calc(100vw - 24px); background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); pointer-events: auto; transition: top .3s ease, left .3s ease; }
.dm-oby-tour-card.is-sheet { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; }
.dm-oby-tour-step { font-size: 12px; font-weight: 800; color: #2d4b9b; text-transform: uppercase; letter-spacing: .05em; }
.dm-oby-tour-card h4 { margin: 4px 0 6px; font-size: 19px; color: #1d2433; }
.dm-oby-tour-card p { margin: 0 0 14px; color: #475467; font-size: 15px; line-height: 1.5; }
.dm-oby-tour-dots { display: flex; gap: 5px; margin: 0 0 14px; }
.dm-oby-tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d5daea; }
.dm-oby-tour-dots i.is-on { background: #2d4b9b; width: 18px; border-radius: 4px; }
.dm-oby-tour-nav { display: flex; align-items: center; gap: 8px; }
.dm-oby-tour-nav span { flex: 1; }
.dm-oby-tour-nav button { border: 0; border-radius: 10px; padding: 10px 15px; font-weight: 800; cursor: pointer; font-family: var(--oby-font) !important; }
.dm-oby-tour-close { background: none; color: #667085; padding-left: 0 !important; }
.dm-oby-tour-prev { background: #eef1f6; color: #1d2433; }
.dm-oby-tour-prev:disabled { opacity: .4; cursor: default; }
.dm-oby-tour-next { background: #2d4b9b; color: #fff; }
.dm-oby-modal { position: fixed; inset: 0; z-index: 100001; background: rgba(15, 23, 42, .6); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--oby-font); animation: dm-oby-fade .2s; }
@keyframes dm-oby-fade { from { opacity: 0; } }
.dm-oby-modal-box { position: relative; overflow: hidden; background: #fff; border-radius: 22px; padding: 28px 22px; max-width: 520px; width: 100%; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.dm-oby-modal .dm-oby-done-art { width: 110px; height: 110px; display: block; margin: 0 auto 4px; animation: dm-oby-bounce .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.dm-oby-modal h3 { color: #2d4b9b; margin: 6px 0 8px; font-size: 24px; }
.dm-oby-modal p { color: #667085; margin: 0 0 18px; }
.dm-oby-modal .dm-oby-done-card { display: flex; align-items: center; gap: 14px; text-align: left; margin: 0 auto 20px; padding: 12px; border: 1px solid #e4e8f1; border-radius: 14px; background: #fff; }
.dm-oby-modal .dm-oby-done-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.dm-oby-modal .dm-oby-done-card div { display: flex; flex-direction: column; gap: 3px; }
.dm-oby-modal .dm-oby-badge { align-self: flex-start; background: #e6ecff; color: #2d4b9b; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.dm-oby-modal .dm-oby-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dm-oby-modal .dm-oby-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 12px; border: 2px solid #2d4b9b; background: #2d4b9b; color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; font-family: var(--oby-font) !important; }
.dm-oby-modal .dm-oby-btn.is-ghost { background: #fff; color: #2d4b9b; border-color: #c9d2ec; }
.dm-oby-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100002; background: #1d2433; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-family: var(--oby-font); animation: dm-oby-fade .2s; }

/* Бутонът в другите страници (компактен) */
.dm-oby-cta-compact { display: inline-block; background: #ffd700; color: #1f356f !important; font-weight: 800; padding: 8px 14px; border-radius: 8px; text-decoration: none !important; }

/* Галерия в единичната обява */
.dm-ad-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 30px; }
.dm-ad-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.dm-ad-gallery a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.dm-ad-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.dm-ad-gallery a:hover img { transform: scale(1.03); }
.dm-ad-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.dm-ad-lightbox[hidden] { display: none; }
.dm-ad-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.dm-ad-lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 48px; cursor: pointer; padding: 0; }
.dm-ad-lb-close { top: 16px; right: 16px; }
.dm-ad-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.dm-ad-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.dm-ad-lightbox.is-single .dm-ad-lb-prev, .dm-ad-lightbox.is-single .dm-ad-lb-next, .dm-ad-lightbox.is-single .dm-ad-lb-count { display: none; }
.dm-ad-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; opacity: .8; }

/* Телефон */
@media (max-width: 640px) {
	.dm-oby { padding: 4px 12px 40px; }
	.dm-oby-hero h2 { font-size: 27px; }
	.dm-oby-hero { align-items: center; }
	.dm-oby-stepper-label { font-size: 12.5px; }
	.dm-oby-step { padding: 18px 16px; border-radius: 14px; }
	.dm-oby-step h3 { font-size: 19px; margin-bottom: 16px; }
	.dm-oby-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.dm-oby-kind:last-child { grid-column: 1 / -1; }
	.dm-oby-kind:last-child .dm-oby-kind-card { flex-direction: row; justify-content: center; gap: 12px; text-align: left; }
	.dm-oby-kind:last-child .dm-oby-kind-img { width: 52px; height: 52px; margin: 0; }
	.dm-oby-kind-img { width: 60px; height: 60px; }
	.dm-oby-kind-card small { display: none; }
	.dm-oby-grid { grid-template-columns: 1fr; }
	.dm-oby-submit { position: sticky; bottom: 0; z-index: 20; margin: 0 -12px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--oby-line); box-shadow: 0 -8px 24px rgba(31, 53, 111, .08); }
	.dm-oby-btn.is-big { padding: 15px; font-size: 17px; }
	.dm-oby-item { flex-wrap: wrap; }
	.dm-oby-item-actions { width: 100%; justify-content: flex-start; }
	.dm-oby-item-actions span { display: none; }
	.dm-oby-item-actions a, .dm-oby-item-actions button { padding: 10px 12px; }
	.dm-oby-gate h2, .dm-oby-done h2 { font-size: 25px; }
	.dm-oby-gate-art { width: 104px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
	.dm-oby *, .dm-oby-tour *, .dm-oby-modal * { animation: none !important; transition: none !important; }
}
