/* Prodev blokų stiliai. Spalvos imamos iš temos (theme.json), su atsarginėmis reikšmėmis. */
.pd-ba,
.pd-vis,
.pd-projects,
.pd-details,
.pd-form {
	--pd-accent: var(--wp--preset--color--accent, #2456f5);
	--pd-ink: var(--wp--preset--color--ink, #ffffff);
	--pd-text: var(--wp--preset--color--contrast, #f2f3f5);
	--pd-muted: var(--wp--preset--color--muted, #a9b0bc);
	--pd-line: var(--wp--preset--color--line, #2a303c);
	--pd-field: var(--wp--preset--color--field, #5b6474);
	--pd-surface: var(--wp--preset--color--surface, #151922);
	--pd-bg: var(--wp--preset--color--base, #0c0e12);
	--pd-danger: var(--wp--preset--color--danger, #ff9a8a);
	--pd-r: 12px;
}

/* Prieš / po slankiklis: rėmelis kaip naršyklės langas */
.pd-ba { margin: 0; border: 1px solid var(--pd-line); border-radius: 18px; overflow: hidden; background: var(--pd-surface); }
.pd-ba__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 16px; font-size: 13px; line-height: 1; border-bottom: 1px solid var(--pd-line); }
.pd-ba__tag { justify-self: start; font-weight: 600; letter-spacing: 0.01em; color: var(--pd-text); }
.pd-ba__tag--after { justify-self: end; }
.pd-ba__hint { color: var(--pd-muted); }
.pd-ba__frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pd-bg); }
.pd-ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.pd-ba__before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.pd-ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--pd-accent); }
.pd-ba__handle { position: absolute; top: 50%; left: var(--pos, 50%); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 999px; background: var(--pd-accent); color: var(--pd-ink); box-sizing: border-box; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--pd-accent) 70%, transparent); transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.pd-ba__frame:hover .pd-ba__handle { transform: scale(1.08); }
.pd-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.pd-ba:focus-within { outline: 3px solid var(--pd-accent); outline-offset: 3px; }
.pd-ba--single .pd-ba__frame { aspect-ratio: auto; }
.pd-ba--single img { position: static; height: auto; }
@media (max-width: 599px) { .pd-ba__bar { gap: 8px; font-size: 12px; } }

/* Projektų sąrašas */
.pd-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.pd-filter__btn { min-height: 44px; padding: 0 18px; border-radius: var(--pd-r); border: 1px solid var(--pd-line); background: transparent; color: var(--pd-text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color 0.2s; }
.pd-filter__btn:hover { border-color: var(--pd-text); }
.pd-filter__btn.is-active { background: var(--pd-accent); border-color: var(--pd-accent); color: var(--pd-ink); }
.pd-projects__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 72px 40px; }
.pd-project { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pd-project[hidden] { display: none; }
.pd-project__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; }
.pd-project__title { margin: 0; font-size: 1.75rem; line-height: 1.1; }
.pd-project__title a { color: inherit; text-decoration: none; }
.pd-project__title a:hover { text-decoration: underline; text-underline-offset: 6px; }
.pd-project__type { color: var(--pd-muted); font-size: 15px; }
.pd-project__excerpt { margin: 0; color: var(--pd-muted); max-width: 60ch; }
.pd-project__links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pd-project__links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: inherit; text-underline-offset: 6px; }
.pd-projects__empty { color: var(--pd-muted); padding: 48px 0; border-top: 1px solid var(--pd-line); }

/* Projekto aprašymas */
.pd-details { display: flex; flex-direction: column; gap: 48px; }
.pd-details__meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; padding: 24px 0; border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); }
.pd-details__meta dt { font-size: 14px; color: var(--pd-muted); }
.pd-details__meta dd { margin: 4px 0 0; font-weight: 600; font-size: 18px; }
.pd-details__meta a { color: inherit; text-underline-offset: 5px; }
.pd-details__story { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.pd-details__story h2 { margin: 0 0 12px; font-size: 1.5rem; }
.pd-details__story p, .pd-details__story li { color: var(--pd-muted); }
.pd-details__story ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Klausimynas */
.pd-form__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.pd-form__layout[hidden], .pd-form__form[hidden], .pd-form__done[hidden], .pd-form__rail[hidden] { display: none; }
.pd-form__rail { display: none; }
@media (min-width: 960px) {
	.pd-form__layout { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); }
	.pd-form__rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 112px; margin: 0; padding: 0; list-style: none; counter-reset: pd-rail; }
	.pd-form__progress { display: none; }
}
.pd-form__rail li { counter-increment: pd-rail; display: flex; align-items: center; gap: 14px; min-height: 44px; color: var(--pd-muted); font-size: 15px; transition: color 0.2s; }
.pd-form__rail li[hidden] { display: none; }
.pd-form__rail li::before { content: counter(pd-rail); width: 30px; height: 30px; flex: none; border-radius: 999px; border: 1px solid var(--pd-line); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.pd-form__rail li.is-done { color: var(--pd-text); }
.pd-form__rail li.is-done::before { background: var(--pd-text); border-color: var(--pd-text); color: var(--pd-bg); }
.pd-form__rail li.is-current { color: var(--pd-text); font-weight: 600; }
.pd-form__rail li.is-current::before { background: var(--pd-accent); border-color: var(--pd-accent); color: var(--pd-ink); }
.pd-form__form { display: flex; flex-direction: column; gap: 36px; min-width: 0; max-width: 920px; }
.pd-form__bars { display: flex; gap: 6px; max-width: 360px; }
.pd-form__bars span { flex: 1; height: 4px; border-radius: 999px; background: var(--pd-line); }
.pd-form__bars span.is-on { background: var(--pd-accent); }
.pd-form__count { margin: 10px 0 0; font-size: 15px; color: var(--pd-muted); }
.pd-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.pd-step[hidden], .pd-field[hidden] { display: none; }
.pd-step__title { padding: 0; margin: 0 0 28px; font-family: var(--wp--preset--font-family--display, inherit); font-weight: 600; font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; outline: none; }
.pd-step__intro { margin: -12px 0 0; color: var(--pd-muted); max-width: 52ch; }
.pd-field { display: flex; flex-direction: column; gap: 10px; }
.pd-field__label { margin: 0; font-weight: 600; font-size: 1.0625rem; }
.pd-field__help { margin: -4px 0 0; font-size: 15px; color: var(--pd-muted); }
.pd-field__error, .pd-form__error { margin: 0; font-size: 15px; color: var(--pd-danger); }
.pd-form input[type="text"], .pd-form input[type="email"], .pd-form input[type="tel"], .pd-form input[type="url"], .pd-form textarea { width: 100%; max-width: 560px; box-sizing: border-box; min-height: 54px; padding: 14px 16px; border-radius: var(--pd-r); border: 1px solid var(--pd-field); background: var(--pd-surface); color: var(--pd-text); font: inherit; transition: border-color 0.2s; }
.pd-form textarea { max-width: none; resize: vertical; }
.pd-form input:hover, .pd-form textarea:hover { border-color: var(--pd-text); }
.pd-form input:focus-visible, .pd-form textarea:focus-visible, .pd-btn:focus-visible, .pd-filter__btn:focus-visible { outline: 3px solid var(--pd-accent); outline-offset: 2px; }
.pd-field.has-error input:not([type="checkbox"]):not([type="radio"]), .pd-field.has-error textarea { border-color: var(--pd-danger); }
.pd-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.pd-chip, .pd-cardopt { position: relative; cursor: pointer; }
.pd-chip input, .pd-cardopt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pd-chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: var(--pd-r); border: 1px solid var(--pd-field); font-size: 16px; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.pd-cardopt span { display: flex; flex-direction: column; gap: 6px; min-height: 104px; box-sizing: border-box; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--pd-field); transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.pd-chip:hover span, .pd-cardopt:hover span { border-color: var(--pd-text); }
.pd-cardopt:active span { transform: scale(0.99); }
.pd-cardopt strong { font-family: var(--wp--preset--font-family--display, inherit); font-size: 1.3125rem; letter-spacing: -0.02em; line-height: 1.15; }
.pd-cardopt small { font-size: 15px; opacity: 0.8; }
.pd-chip strong { font-weight: 500; }
.pd-chip input:checked + span, .pd-cardopt input:checked + span { background: var(--pd-accent); border-color: var(--pd-accent); color: var(--pd-ink); }
.pd-chip input:focus-visible + span, .pd-cardopt input:focus-visible + span { outline: 3px solid var(--pd-accent); outline-offset: 2px; }
.pd-consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; max-width: 60ch; }
.pd-consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--pd-accent); }
.pd-consent a { color: inherit; }
.pd-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pd-form__nav { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--pd-line); }
.pd-btn { min-height: 54px; padding: 0 28px; border-radius: var(--pd-r); border: 1px solid var(--pd-accent); background: var(--pd-accent); color: var(--pd-ink); font: inherit; font-weight: 600; cursor: pointer; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s; }
.pd-btn[hidden] { display: none; }
.pd-btn:hover { filter: brightness(1.06); }
.pd-btn:disabled { opacity: 0.6; cursor: progress; }
.pd-btn--ghost { background: transparent; border-color: var(--pd-line); color: var(--pd-text); }
.pd-btn--ghost:hover { border-color: var(--pd-text); filter: none; }
.pd-btn:active { transform: scale(0.98); }
.pd-form__done { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; outline: none; max-width: 760px; }
.pd-form__done h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.04; }
.pd-form__done p { margin: 0; color: var(--pd-muted); font-size: 19px; max-width: 56ch; }
.pd-form__check { width: 64px; height: 64px; border-radius: 999px; background: var(--pd-accent); color: var(--pd-ink); display: flex; align-items: center; justify-content: center; }
.pd-form__seo { border-top: 1px solid var(--pd-line); padding-top: 20px; margin-top: 12px !important; font-size: 17px !important; }
.pd-form__seo a { color: var(--pd-text); font-weight: 600; text-underline-offset: 5px; }
.pd-form .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Iliustracijos paslaugų kortelėms */
.pd-vis { position: relative; height: 220px; border-radius: 16px; overflow: hidden; border: 1px solid var(--pd-line); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--pd-accent) 14%, transparent), transparent 60%), var(--pd-bg); display: flex; align-items: center; justify-content: center; gap: 18px; padding: 22px; box-sizing: border-box; font-size: 13px; line-height: 1.2; color: var(--pd-text); --sk: color-mix(in srgb, var(--pd-text) 12%, transparent); }
.pd-vis span, .pd-vis i, .pd-vis b, .pd-vis em, .pd-vis u { display: block; font-style: normal; text-decoration: none; }
.pd-vis__win, .pd-vis__product, .pd-vis__editor, .pd-vis__list, .pd-vis__search, .pd-vis__results, .pd-vis__split { background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 12px; box-shadow: 0 16px 30px -20px rgb(0 0 0 / 0.7); }

/* Nauja svetainė: blokai susidėlioja į puslapį */
.pd-vis__win { width: min(100%, 320px); align-self: flex-end; margin-bottom: -40px; }
.pd-vis__bar { display: flex; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--pd-line); }
.pd-vis__bar i { width: 7px; height: 7px; border-radius: 9px; background: var(--sk); }
.pd-vis__build { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.pd-vis__build span { height: 12px; border-radius: 4px; background: var(--sk); animation: pd-build 7s cubic-bezier(0.16, 1, 0.3, 1) infinite both; }
.pd-vis__build .b1 { grid-column: 1 / -1; height: 18px; width: 70%; background: var(--pd-text); }
.pd-vis__build .b2 { grid-column: 1 / -1; animation-delay: 0.25s; }
.pd-vis__build .b3 { width: 46%; height: 24px; background: var(--pd-accent); animation-delay: 0.5s; }
.pd-vis__build .b4 { grid-column: 1; height: 70px; animation-delay: 0.75s; }
.pd-vis__build .b5 { grid-column: 2; grid-row: 3 / 5; height: 102px; animation-delay: 1s; background: color-mix(in srgb, var(--pd-accent) 22%, var(--pd-surface)); }
@keyframes pd-build { 0% { opacity: 0; transform: translateY(14px); } 12%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

/* Atnaujinimas: sena ir nauja pusė */
.pd-vis__split { position: relative; width: min(100%, 320px); height: 150px; overflow: hidden; }
.pd-vis__old, .pd-vis__new { position: absolute; inset: 0; padding: 14px; box-sizing: border-box; }
.pd-vis__old { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: color-mix(in srgb, var(--pd-text) 8%, var(--pd-surface)); clip-path: inset(0 50% 0 0); animation: pd-clip 6s ease-in-out infinite alternate; }
.pd-vis__old span { border: 1px dashed color-mix(in srgb, var(--pd-text) 35%, transparent); border-radius: 2px; }
.pd-vis__new { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; text-align: right; }
.pd-vis__new .h { width: 52%; height: 16px; border-radius: 4px; background: var(--pd-text); }
.pd-vis__new .t { width: 40%; height: 9px; border-radius: 4px; background: var(--sk); }
.pd-vis__new .c { width: 34%; height: 26px; border-radius: 7px; background: var(--pd-accent); margin-top: auto; }
.pd-vis__sweep { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--pd-accent); animation: pd-sweep 6s ease-in-out infinite alternate; }
@keyframes pd-clip { from { clip-path: inset(0 68% 0 0); } to { clip-path: inset(0 30% 0 0); } }
@keyframes pd-sweep { from { left: 32%; } to { left: 70%; } }

/* El. parduotuvė */
.pd-vis__product { width: 168px; padding: 12px; display: grid; gap: 8px; }
.pd-vis__product .img { height: 78px; border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--pd-accent) 30%, var(--pd-surface)), color-mix(in srgb, var(--pd-accent) 8%, var(--pd-surface))); }
.pd-vis__product .t1 { height: 9px; width: 80%; border-radius: 4px; background: var(--pd-text); }
.pd-vis__product .t2 { height: 8px; width: 50%; border-radius: 4px; background: var(--sk); }
.pd-vis__product .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.pd-vis__product .row b { font-size: 15px; font-weight: 600; }
.pd-vis__product .row em { padding: 7px 10px; border-radius: 7px; background: var(--pd-text); color: var(--pd-bg); font-size: 11px; font-weight: 600; animation: pd-press 4s ease-in-out infinite; }
.pd-vis__cart { position: relative; width: 52px; height: 52px; border-radius: 14px; background: var(--pd-surface); border: 1px solid var(--pd-line); display: flex; align-items: center; justify-content: center; }
.pd-vis__cart b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--pd-accent); color: var(--pd-ink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; animation: pd-pop 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
@keyframes pd-press { 0%, 20%, 34%, 100% { transform: none; } 27% { transform: scale(0.92); } }
@keyframes pd-pop { 0%, 28% { transform: scale(0); } 38%, 90% { transform: scale(1); } 100% { transform: scale(0); } }

/* Perkėlimas */
.pd-vis__from, .pd-vis__to { display: grid; gap: 8px; }
.pd-vis__from span, .pd-vis__to span { padding: 9px 14px; border-radius: 9px; background: var(--pd-surface); border: 1px solid var(--pd-line); font-weight: 500; }
.pd-vis__from span { color: var(--pd-muted); }
.pd-vis__to span { background: var(--pd-text); border-color: var(--pd-text); color: var(--pd-bg); padding: 14px 18px; font-size: 15px; font-weight: 600; }
.pd-vis__flow { position: relative; flex: 0 1 110px; height: 2px; background: repeating-linear-gradient(90deg, var(--pd-line) 0 6px, transparent 6px 12px); }
.pd-vis__flow i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 99px; background: var(--pd-accent); animation: pd-flow 2.7s linear infinite; }
.pd-vis__flow i:nth-child(2) { animation-delay: 0.9s; }
.pd-vis__flow i:nth-child(3) { animation-delay: 1.8s; }
@keyframes pd-flow { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(100px); opacity: 0; } }

/* Mokymai: redaktorius */
.pd-vis__editor { width: min(100%, 320px); padding: 12px 14px 14px; display: grid; gap: 10px; }
.pd-vis__tools { display: flex; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--pd-line); }
.pd-vis__tools > * { width: 24px; height: 24px; border-radius: 6px; background: var(--sk); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.pd-vis__type { margin: 0; font-size: 15px; font-weight: 600; }
.pd-vis__type span { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 100%; border-right: 2px solid var(--pd-accent); animation: pd-type 6s steps(24, end) infinite; }
.pd-vis__lines { display: grid; gap: 6px; }
.pd-vis__lines span { height: 8px; border-radius: 4px; background: var(--sk); }
.pd-vis__lines span:last-child { width: 62%; }
.pd-vis__editor em { justify-self: end; padding: 7px 12px; border-radius: 7px; background: var(--pd-accent); color: var(--pd-ink); font-size: 12px; font-weight: 600; }
@keyframes pd-type { 0% { width: 0; } 45%, 85% { width: 100%; } 100% { width: 0; } }

/* Priežiūra */
.pd-vis__list { list-style: none; margin: 0; padding: 6px 14px; width: min(100%, 280px); }
.pd-vis__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-weight: 500; }
.pd-vis__list li + li { border-top: 1px solid var(--pd-line); }
.pd-vis__list b { width: 22px; height: 22px; border-radius: 99px; background: var(--pd-accent); color: var(--pd-ink); display: flex; align-items: center; justify-content: center; animation: pd-check 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite both; }
.pd-vis__list li:nth-child(2) b { animation-delay: 0.5s; }
.pd-vis__list li:nth-child(3) b { animation-delay: 1s; }
@keyframes pd-check { 0%, 8% { transform: scale(0); } 18%, 92% { transform: scale(1); } 100% { transform: scale(0); } }

/* Paieška ir AI */
.pd-vis--seo { flex-direction: column; gap: 10px; }
.pd-vis__search { width: min(100%, 340px); display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 99px; box-sizing: border-box; color: var(--pd-muted); }
.pd-vis__search .pd-vis__type { font-weight: 500; font-size: 14px; color: var(--pd-text); min-width: 0; }
.pd-vis__results { list-style: none; margin: 0; padding: 4px 14px; width: min(100%, 340px); box-sizing: border-box; }
.pd-vis__results li { display: grid; gap: 6px; padding: 10px 0; }
.pd-vis__results li + li { border-top: 1px solid var(--pd-line); }
.pd-vis__results span { height: 7px; border-radius: 4px; background: var(--sk); }
.pd-vis__results span:last-child { width: 58%; }
.pd-vis__results .is-you b { font-size: 14px; font-weight: 600; color: var(--pd-accent); }

@media (prefers-reduced-motion: reduce) { .pd-vis *, .pd-vis *::before, .pd-vis *::after { animation: none !important; } .pd-vis__type span { width: auto; } }

.pd-chip span, .pd-cardopt span, .pd-form__rail li::before { background-color: var(--pd-surface); }
.pd-chip input:checked + span, .pd-cardopt input:checked + span { background-color: var(--pd-accent); }
