/* Karta produktu licencji – wygląd daneotwartegov.pl (niezależny od motywu sklepu). */

body.dogp {
	--ink: #101c19; --muted: #5f6b66; --line: #e1e9e4; --bg: #ffffff; --tint: #f1f5ed;
	--g: #0c9256; --g-dark: #0a7a48; --g-soft: #e5f5e9; --warn: #e8590c;
	--r: 24px; --shadow: 0 1px 2px rgba(16, 28, 25, .04), 0 12px 40px rgba(16, 28, 25, .06);
	margin: 0; background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
/* Własne elementy karty – krój i reset tylko dla nich, żeby sekcje ze strony głównej wyglądały 1:1 jak na landingu */
.dogp-hero, .dogp-notices, .dogp-sticky, .dogp-section { font: 400 16px/1.55 'Inter', 'Inter Fallback', Arial, sans-serif; color: var(--ink); }
.dogp *, .dogp *::before, .dogp *::after { box-sizing: border-box; }
:where(.dogp-hero, .dogp-section, .dogp-sticky) a { color: var(--g-dark); }
:where(.dogp-hero, .dogp-section, .dogp-sticky) :where(h1, h2, h3, p) { margin: 0; }
:where(.dogp-hero, .dogp-section, .dogp-sticky) svg { flex: none; }

/* ---------- Przyciski ---------- */
.dogp-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 6px 0 22px; border-radius: 999px; border: 0; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.dogp-btn-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.dogp-btn-ico svg { width: 14px; height: 14px; transition: transform .25s; }
.dogp-btn:hover .dogp-btn-ico svg { transform: translateX(2px); }
.dogp-btn-dark { background: var(--ink); color: #fff !important; }
.dogp-btn-dark .dogp-btn-ico { background: #fff; color: var(--ink); }
.dogp-btn-dark:hover { background: var(--g-dark); }
.dogp-btn-light { background: #fff; color: var(--ink) !important; }
.dogp-btn-light .dogp-btn-ico { background: var(--ink); color: #fff; }
.dogp-btn-wide { width: 100%; height: 56px; font-size: 16px; padding-left: 26px; }
.dogp-btn-wide .dogp-btn-ico { width: 44px; height: 44px; }

/* ---------- Komunikaty WooCommerce ---------- */
.dogp-notices { max-width: 1200px; margin: 16px auto 0; padding: 0 20px; }
.dogp-notices ul, .dogp-notices .woocommerce-error, .dogp-notices .woocommerce-message, .dogp-notices .woocommerce-info { list-style: none; margin: 0 0 8px; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #7a1a12; font-size: 14px; }
.dogp-notices .woocommerce-message, .dogp-notices .woocommerce-info { background: var(--g-soft); color: var(--g-dark); }

/* ---------- Nagłówek i zakup ---------- */
.dogp-hero { max-width: 1240px; margin: 0 auto; padding: 144px 20px 100px; display: grid; grid-template-columns: minmax(0, 1fr) 460px; grid-template-areas: 'intro buy' 'show buy'; column-gap: 56px; row-gap: 32px; align-items: start; }
.dogp-intro { grid-area: intro; }
.dogp-show { grid-area: show; }
.dogp-buy { grid-area: buy; position: sticky; top: 110px; }
.dogp-card { scroll-margin-top: 110px; }
/* Nagłówek, akapit i lista jak w sekcjach strony głównej (.heading-two, .paragraph, .assure) */
.dogp-intro .dogp-lead { color: inherit; max-width: 640px; }
.dogp-intro .dogp-lead p { margin: 0; font: inherit; }
.dogp-intro .dogp-ticks { margin-top: 20px; }
.dogp-intro .dogp-ticks li { font-size: 15px; }
/* Karta zakupu = karta „Licencja roczna” z cennika na stronie głównej */
.dogp-card.pricing-card { gap: 0; }
.dogp-card .pricing-month { margin-bottom: 4px; }
.dogp-card > .dogp-field, .dogp-card > .dogp-addon, .dogp-card > .dogp-total { margin-top: 18px; }
.dogp-card .dogp-submit { width: 100%; margin-top: 18px; height: 52px; cursor: pointer; }
.dogp-card .dogp-submit .button-spacer { flex: 1; }
.dogp-card > .assure { margin-top: 14px; }

.dogp-main { overflow: clip; }
.dogp-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--g); }
.dogp-lead { margin-top: 18px; font-size: 18px; color: #2f3d38; max-width: 620px; }
.dogp-lead p + p { margin-top: 10px; }
.dogp-ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.dogp-ticks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.dogp-ticks svg, .dogp-features svg { width: 20px; height: 20px; color: var(--g); }



.dogp-field { display: grid; gap: 6px; }
.dogp-field > span { font-size: 14px; font-weight: 600; }
.dogp-field input { height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid #cfdcd4; background: #fff; font: inherit; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.dogp-field input:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(12, 146, 86, .15); }
.dogp-field.is-error input, .dogp-field input:user-invalid { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.dogp-field small { font-size: 12px; color: var(--muted); line-height: 1.45; }

.dogp-addon { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fafcfb; cursor: pointer; transition: border-color .15s, background .15s; }
.dogp-addon:has(input:checked) { border-color: var(--g); background: var(--g-soft); }
.dogp-addon input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--g); flex: none; }
.dogp-addon-box { display: grid; gap: 4px; }
.dogp-addon-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.dogp-addon-head b { font-size: 15px; font-weight: 600; }
.dogp-addon-head em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--g-dark); }
.dogp-addon-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }

.dogp-total { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.dogp-total span { font-weight: 600; }
.dogp-total b { margin-left: auto; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.dogp-total small { font-size: 12px; color: var(--muted); }
.dogp-assure { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.dogp-assure li::before { content: "✓"; margin-right: 6px; color: var(--g); font-weight: 700; }
.dogp-foot { font-size: 13px; color: var(--muted); text-align: center; }
.dogp-unavailable { padding: 14px; border-radius: 12px; background: #fdecea; color: #7a1a12; font-size: 14px; }

/* ---------- Sekcje ---------- */
.dogp-section { padding: 88px 20px; }
.dogp-section > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.dogp-tint { background: var(--tint); }
.dogp-head { text-align: center; max-width: 760px; margin-bottom: 44px; }
.dogp-head h2 { margin-top: 10px; font-size: 40px; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; }
.dogp-head > p:not(.dogp-eyebrow) { margin-top: 14px; color: var(--muted); font-size: 17px; }
.dogp-head-left { text-align: left; margin: 0; }

.dogp-features { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dogp-features li { display: flex; gap: 12px; align-items: flex-start; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-weight: 500; line-height: 1.45; }
.dogp-features-one { grid-template-columns: 1fr; }

.dogp-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.dogp-steps li { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.dogp-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: #fff; font-weight: 600; }
.dogp-steps h3 { margin-top: 18px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.dogp-steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.dogp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.dogp-terms { margin: 0; border-top: 1px solid var(--line); }
.dogp-terms div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dogp-terms dt { font-weight: 600; }
.dogp-terms dd { margin: 0; color: #2f3d38; }

.dogp-prose { max-width: 760px; color: #2f3d38; font-size: 17px; }
.dogp-prose p + p { margin-top: 12px; }

.dogp-faq { max-width: 820px; display: grid; gap: 10px; }
.dogp-faq details { border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.dogp-faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-size: 17px; font-weight: 500; position: relative; }
.dogp-faq summary::-webkit-details-marker { display: none; }
.dogp-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--g); transition: transform .2s; }
.dogp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.dogp-faq details p { padding: 0 22px 20px; color: #2f3d38; }

.dogp-cta { max-width: 1160px; margin: 0 auto 72px; padding: 44px 48px; border-radius: 28px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.dogp-cta h2 { font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; max-width: 620px; }
.dogp-cta p { margin-top: 10px; color: rgba(255, 255, 255, .72); }


.dogp-sticky { display: none; }

/* Realizacje obok formularza */
.dogp-cases { padding: 14px; border-radius: 28px; background: var(--tint); border: 1px solid #e3ebe0; }
.dogp-cases-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 14px; }
.dogp-cases-head p { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--g); }
.dogp-cases-nav { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dogp-cases-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d6e2d9; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.dogp-cases-nav button:hover { border-color: var(--g); color: var(--g); }
.dogp-cases-nav svg { width: 14px; height: 14px; }
.dogp-case { display: none; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(16, 28, 25, .04), 0 12px 32px rgba(16, 28, 25, .06); }
.dogp-case.is-on { display: block; animation: dogp-in .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes dogp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dogp-case-media { position: relative; aspect-ratio: 16 / 10; background: #dfe9e2; }
.dogp-case-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dogp-case-kicker { position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 600; color: var(--ink); }
.dogp-case-live { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; }
.dogp-case-live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
.dogp-case-body { padding: 20px 22px 22px; }
.dogp-case-dev { font-size: 13px; color: var(--muted); }
.dogp-case-body h3 { margin-top: 4px; font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.dogp-case-body > p:not(.dogp-case-dev) { margin-top: 10px; font-size: 15px; color: #2f3d38; line-height: 1.55; }
.dogp-case-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.dogp-case-stats { display: flex; gap: 28px; }
.dogp-case-stats b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.dogp-case-stats span { font-size: 12px; color: var(--muted); }
.dogp-case-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--g-dark) !important; text-decoration: none; white-space: nowrap; }
.dogp-case-link svg { width: 13px; height: 13px; }
.dogp-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.dogp-thumbs button { position: relative; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #dfe9e2; cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.dogp-thumbs button.is-on { border-color: var(--g); opacity: 1; }
.dogp-thumbs button:hover { opacity: 1; }
.dogp-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dogp-thumbs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--g); }
.dogp-thumbs button.is-on.is-run::after { animation: dogp-progress 6s linear forwards; }
@keyframes dogp-progress { to { width: 100%; } }
.dogp-cases-note { margin-top: 12px !important; padding: 0 8px 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 820px) {
	.dogp-cases { padding: 10px; border-radius: 22px; }
	.dogp-case-body { padding: 16px; }
	.dogp-case-body h3 { font-size: 21px; }
	.dogp-case-foot { flex-direction: column; align-items: flex-start; }
	.dogp-thumbs { grid-template-columns: repeat(6, 1fr); gap: 6px; }
	.dogp-thumbs button { border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) { .dogp-case.is-on, .dogp-thumbs button.is-on.is-run::after { animation: none; } }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.dogp-hero { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 32px; }
	.dogp-show { position: static; }
	.dogp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dogp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Telefon ---------- */
@media (max-width: 820px) {
	.dogp-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'buy' 'show'; padding: 120px 16px 60px; row-gap: 28px; }
	.dogp-buy { position: static; }
	.dogp-lead { font-size: 16px; }
	.dogp-card.pricing-card { padding: 22px 18px; }
		.dogp-section { padding: 56px 16px; }
	.dogp-head { margin-bottom: 28px; }
	.dogp-head h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
	.dogp-head > p:not(.dogp-eyebrow) { margin-top: 10px; font-size: 15px; }
	.dogp-features, .dogp-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.dogp-features li { padding: 16px; }
	.dogp-steps li { padding: 20px; }
	.dogp-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.dogp-terms div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
	.dogp-faq summary { font-size: 16px; padding: 18px 48px 18px 18px; }
	.dogp-faq details p { padding: 0 18px 18px; font-size: 15px; }
	.dogp-cta { margin: 0 16px 48px; padding: 28px 22px; flex-direction: column; align-items: stretch; border-radius: 24px; }
	.dogp-cta h2 { font-size: 24px; }
	.ft { padding-bottom: 96px; }

	.dogp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 28, 25, .08); transform: translateY(110%); transition: transform .25s; }
	.dogp-sticky.is-on { transform: none; }
	.dogp-sticky b { font-size: 20px; font-weight: 600; }
	.dogp-sticky span { margin-left: 6px; font-size: 12px; color: var(--muted); }
}

/* Krój Inter dla sekcji ze strony głównej (ich style używają nazwy „Inter”) */
@font-face { font-family: 'Inter'; src: url('fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Sekcja „Integracja” na karcie produktu – odstęp od sekcji powyżej */
.dogp-home .tools-section { padding-top: 96px; }
@media (max-width: 640px) { .dogp-home .tools-section { padding-top: 56px; } }

/* „W cenie licencji” – ostatnia karta z przyciskiem zamówienia wypełnia rząd */
.dogp-incl .dogp-incl-cta { font-family: 'Inter', 'Inter Fallback', Arial, sans-serif; grid-column: span 3; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink, #101c19); border-color: var(--ink, #101c19); color: #fff; text-decoration: none; }
.dogp-incl-cta-text b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.dogp-incl-cta-text > span { display: block; margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.dogp-incl-cta-btn { display: inline-flex; align-items: center; gap: 12px; flex: none; height: 48px; padding: 0 6px 0 22px; border-radius: 999px; background: #fff; color: #101c19; font-weight: 500; }
.dogp-incl-cta-btn .dogp-btn-ico { background: #101c19; color: #fff; }
.dogp-incl-cta:hover .dogp-btn-ico svg { transform: translateX(2px); }
@media (max-width: 1024px) { .dogp-incl .dogp-incl-cta { grid-column: auto; flex-direction: column; align-items: flex-start; } }
@media (max-width: 640px) {
	.dogp-incl .dogp-incl-cta { padding: 14px; gap: 12px; }
	.dogp-incl-cta-text b { font-size: 15px; }
	.dogp-incl-cta-text > span { font-size: 12.5px; }
	.dogp-incl-cta-btn { height: 40px; padding-left: 14px; font-size: 14px; }
	.dogp-incl-cta-btn .dogp-btn-ico { width: 30px; height: 30px; }
}
.dogp-home #zgodnosc { padding-top: 96px; }
@media (max-width: 640px) { .dogp-home #zgodnosc { padding-top: 56px; } }

/* Dodatek „Obsługa roczna” – rozwijana lista zakresu */
.dogp-card > .dogp-addon-more { margin-top: 8px; padding: 0 4px; }
.dogp-addon-more summary { cursor: pointer; list-style: none; font: 500 13px/1.4 'Inter', 'Inter Fallback', Arial, sans-serif; color: #087443; }
.dogp-addon-more summary::-webkit-details-marker { display: none; }
.dogp-addon-more summary::after { content: " +"; }
.dogp-addon-more[open] summary::after { content: " –"; }
.dogp-addon-more .assure { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; font-size: 13px; }
