/* Карточка цифрового товара: правая колонка страницы товара на всех экранах.
   Телефон < 768 · планшет 768–991 · компьютер ≥ 992. Палитра — как в learning.css. */
.dlpc {
	--p: #4C5CF6; --p-dark: #3447D8; --p-soft: #EEF0FE;
	--ink: #172033; --ink-2: #687184; --ink-3: #9AA1B1;
	--line: #E5E8F0; --bg: #F7F8FC;
	--ok: #16A34A; --ok-ink: #15803D; --ok-soft: #EDF8F0; --ok-line: #BFE5CB;
	--r: 14px;
	color: var(--ink);
	text-align: left;
	padding: 4px 0 8px;
	container-type: inline-size;
}
.dlpc *, .dlpc *::before, .dlpc *::after { box-sizing: border-box; }
.dlpc svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.dlpc a { text-decoration: none; }
.dlpc button { font: inherit; -webkit-tap-highlight-color: transparent; }
.dlpc :focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }

/* верх */
.dlpc-top { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.dlpc-label { font-size: 12px; font-weight: 600; color: var(--p-dark); background: var(--p-soft); padding: 4px 9px; border-radius: 7px; }
.dlpc-icon-btn { width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; color: var(--ink-2); display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; }
.dlpc-icon-btn.is-on { color: #E11D48; }
.dlpc-icon-btn.is-on svg { fill: currentColor; }

.dlpc .dlpc-title { font-size: 25px !important; line-height: 1.15 !important; font-weight: 700; margin: 10px 0 0 !important; padding: 0 !important; text-align: left !important; color: var(--ink); letter-spacing: -0.01em; word-break: normal; overflow-wrap: anywhere; }
.dlpc-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

.dlpc-rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--ink-2); min-height: 28px; }
.dlpc-rating b { color: var(--ink); font-weight: 600; }
.dlpc-stars { display: inline-flex; gap: 1px; }
.dlpc-star svg { width: 15px; height: 15px; fill: #E5E7EB; }
.dlpc-star.is-on svg { fill: #F5A524; }
.dlpc-stars--sm .dlpc-star svg { width: 13px; height: 13px; }

/* цена */
.dlpc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 16px; }
.dlpc-price-now { font-size: 38px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.dlpc-price-old { font-size: 15px; color: var(--ink-3); white-space: nowrap; }
.dlpc-price-save { font-size: 13px; font-weight: 600; color: var(--ok-ink); white-space: nowrap; }

/* опции (лицензии) */
.dlpc-opt { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.dlpc-opt legend { border: 0; margin: 0 0 8px; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); width: auto; }
.dlpc-opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dlpc-opt-item { margin: 0; font-weight: 400; cursor: pointer; }
.dlpc-opt-item input { position: absolute; opacity: 0; pointer-events: none; }
.dlpc-opt-item span { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; background: #fff; }
.dlpc-opt-item input:checked + span { border-color: var(--p); box-shadow: inset 0 0 0 1px var(--p); color: var(--p-dark); font-weight: 600; }
.dlpc-opt-item input:focus-visible + span { outline: 2px solid var(--p); outline-offset: 2px; }

/* что внутри */
.dlpc-inside { margin-top: 18px; background: var(--p-soft); border-radius: var(--r); padding: 12px; }
.dlpc-inside-head { font-size: 12px; font-weight: 600; color: var(--p-dark); margin: 0 0 8px 2px; }
.dlpc-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dlpc-tile { background: #fff; border-radius: 10px; padding: 10px; display: flex; gap: 9px; align-items: center; min-height: 60px; }
.dlpc-tile-ic { color: var(--p); }
.dlpc-tile-tx { min-width: 0; display: flex; flex-direction: column; }
.dlpc-tile-tx b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.dlpc-tile-tx small { font-size: 12px; line-height: 1.3; color: var(--ink-2); margin-top: 1px; }

/* кнопка */
.dlpc-buy { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 16px; border: 0; border-radius: 12px; background: var(--p); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .15s; }
.dlpc-buy:active { background: var(--p-dark); }
.dlpc-buy[disabled] { opacity: .7; cursor: progress; }
.dlpc-buy-note { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.dlpc-buy-note.is-err { color: #DC2626; font-weight: 600; }

/* пробник */
.dlpc-trial { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 14px 14px 18px; border-radius: var(--r); background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ink); overflow: hidden; }
.dlpc-trial::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ok); }
.dlpc-trial-btn { width: 46px; height: 46px; border-radius: 50%; background: #22C55E; color: #14532D; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dlpc-trial-btn svg { width: 22px; height: 22px; }
.dlpc-trial-btn.is-play svg { margin-left: 3px; }
.dlpc-trial-btn.is-play { animation: dlpc-pulse 2.2s infinite; }
@keyframes dlpc-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) { .dlpc-trial-btn.is-play { animation: none; } }
.dlpc-trial-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dlpc-trial-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dlpc-trial-head b { font-size: 15px; font-weight: 600; color: var(--ok-ink); }
.dlpc-trial-head em { font-style: normal; font-size: 11px; color: var(--ok-ink); border: 1px solid var(--ok-line); padding: 1px 6px; border-radius: 5px; }
.dlpc-trial-name { font-size: 14px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlpc-trial-note { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.dlpc-trial-go { color: var(--ok-ink); }

/* отзыв */
.dlpc-review { margin: 14px 0 0; background: var(--bg); border-radius: 12px; padding: 14px; }
.dlpc-review blockquote { margin: 6px 0 0; padding: 0; border: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.dlpc-review figcaption { margin-top: 8px; font-size: 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.dlpc-review figcaption a { margin-left: auto; color: var(--p-dark); font-weight: 600; }
.dlpc-grad { color: var(--ok-ink); }

/* звонок */
.dlpc-call { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.dlpc-call[hidden] { display: none; }
.dlpc-call-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: 0; text-align: left; color: var(--ink); cursor: pointer; min-height: 60px; }
.dlpc-call-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--p-soft); color: var(--p); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dlpc-call-ic svg { width: 18px; height: 18px; }
.dlpc-call-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dlpc-call-tx b { font-size: 15px; font-weight: 600; }
.dlpc-call-tx small { font-size: 13px; color: var(--ink-2); }
.dlpc-call-chev { color: var(--ink-3); transition: transform .2s; }
.dlpc-call.is-open .dlpc-call-chev { transform: rotate(180deg); }
.dlpc-call-body { display: none; padding: 0 14px 14px; }
.dlpc-call.is-open .dlpc-call-body { display: block; }
/* перенесённый блок «Заказать в 1 клик»: прячем его заголовок, приводим поля к общему виду */
.dlpc-call-body h1, .dlpc-call-body h2, .dlpc-call-body h3, .dlpc-call-body h4 { display: none !important; }
.dlpc-call-body > * { margin-top: 0 !important; margin-bottom: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
/* поле и кнопка — друг под другом на всю ширину, что бы ни было в разметке модуля (input-group, flex, float) */
.dlpc-call-body .input-group, .dlpc-call-body .input-group-btn, .dlpc-call-body .input-group-addon { display: block !important; width: 100% !important; float: none !important; }
.dlpc-call-body *:has(> input[type="text"], > input[type="tel"]) { display: block !important; width: 100% !important; }
.dlpc-call-body input[type="text"], .dlpc-call-body input[type="tel"] { display: block !important; float: none !important; width: 100% !important; height: 48px !important; margin: 0 0 8px !important; padding: 0 14px !important; border: 1px solid var(--line) !important; border-radius: 12px !important; font-size: 16px !important; box-shadow: none !important; }
.dlpc-call-body button, .dlpc-call-body .btn, .dlpc-call-body input[type="submit"], .dlpc-call-body input[type="button"] { display: block !important; float: none !important; width: 100% !important; min-height: 48px !important; height: auto !important; margin: 0 !important; padding: 0 16px !important; border: 0 !important; border-radius: 12px !important; background: var(--p) !important; color: #fff !important; font-size: 16px !important; font-weight: 600 !important; line-height: 48px !important; white-space: nowrap !important; box-shadow: none !important; }
.dlpc-call-body p, .dlpc-call-body small, .dlpc-call-body .help-block { margin: 8px 0 0 !important; font-size: 13px !important; color: var(--ink-2) !important; }

/* поделиться */
.dlpc-share { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.dlpc-share > span { margin-right: auto; font-size: 13px; color: var(--ink-2); }
.dlpc-sh { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; font-size: 12px; font-weight: 700; border: 0; padding: 0; cursor: pointer; }
.dlpc-sh svg { width: 19px; height: 19px; }
.dlpc-sh--vk { background: #0077FF; }
.dlpc-sh--tg { background: #229ED9; }
.dlpc-sh--wa { background: #25D366; }
.dlpc-sh--link { background: #fff; color: var(--ink-2) !important; border: 1px solid var(--line); }
.dlpc-sh--link.is-done { color: var(--ok) !important; border-color: var(--ok-line); }

.dlpc-meta { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.dlpc-meta a { color: var(--p-dark); font-weight: 600; }

/* липкая панель: появляется, когда основная кнопка ушла за экран */
.dlpc-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(23,32,51,.06); transform: translateY(110%); transition: transform .22s ease; }
.dlpc-sticky.is-on { transform: none; }
.dlpc-sticky-price { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.dlpc-sticky-price b { font-size: 19px; font-weight: 700; white-space: nowrap; }
.dlpc-sticky-price s { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.dlpc-sticky-btn { min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--p); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .dlpc-sticky, .dlpc-call-chev { transition: none; } }

/* узкая карточка (маленький телефон, колонка планшета) */
@container (max-width: 319px) {
	.dlpc-price-now { font-size: 32px; }
	.dlpc-tiles { grid-template-columns: 1fr; gap: 2px; }
	.dlpc-tile { background: none; min-height: 0; padding: 6px 2px; }
	.dlpc-share { flex-wrap: wrap; }
	.dlpc-share > span { width: 100%; margin: 0 0 4px; }
}
@media (max-width: 359px) {
	.dlpc-price-now { font-size: 32px; }
	.dlpc-tiles { grid-template-columns: 1fr; }
}

/* телефон и планшет: нижняя панель с ценой */
@media (max-width: 991px) {
	html.dlpc-on body { padding-bottom: 76px; }
}

/* планшет: колонке покупки чуть больше места (5/12 вместо 4/12) */
@media (min-width: 768px) and (max-width: 991px) {
	.row:has(> .dlpc-host) > .col-sm-8 { width: 58.33333% !important; }
	.row > .dlpc-host { width: 41.66667% !important; }
}

/* компьютер */
@media (min-width: 992px) {
	/* панель превращается в плашку справа снизу — только если карточка не «едет» (не влезла в экран) */
	.dlpc-sticky { left: auto; right: 24px; bottom: 24px; width: 380px; max-width: calc(100vw - 48px); padding: 12px 12px 12px 18px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(23,32,51,.14); transform: translateY(calc(100% + 40px)); }
	html.dlpc-on body { padding-bottom: 0; }
	.dlpc { padding: 0 0 8px; }
	.dlpc .dlpc-title { font-size: 28px !important; }
	/* карточка едет за прокруткой, пока читают описание (включает JS, если карточка влезает в экран) */
	.dlpc-host.dlpc-stick { position: -webkit-sticky; position: sticky; top: var(--dlpc-top, 20px); align-self: flex-start; }
}

/* наведение мышью */
@media (hover: hover) {
	.dlpc-buy:hover, .dlpc-sticky-btn:hover { background: var(--p-dark); }
	.dlpc-trial { transition: border-color .15s, background .15s; }
	.dlpc-trial:hover { border-color: #86D19D; background: #E4F5E9; }
	.dlpc-call-head:hover .dlpc-call-tx b { color: var(--p-dark); }
	.dlpc-sh { transition: opacity .15s; }
	.dlpc-sh:hover { opacity: .85; }
	.dlpc-icon-btn:hover { color: #E11D48; background: #FFF1F3; }
	.dlpc-opt-item span:hover { border-color: #C7CCF9; }
	.dlpc-meta a:hover, .dlpc-review figcaption a:hover { text-decoration: underline; }
	.dlpc-call-body button:hover, .dlpc-call-body .btn:hover { background: var(--p-dark) !important; }
}
