/* Paid Python course page. Page-only styles, so the shared site.css (and its cache version) stay untouched. */
/* No JS: show the full price, hide the offer */
html:not([data-pc-phase]) .pc-offer-only { display: none; }
html[data-pc-phase="offer"] .pc-regular-only { display: none; }
html[data-pc-phase="regular"] .pc-offer-only { display: none; }

.pc-bar { position: sticky; top: 0; z-index: 55; background: var(--inverse-bg); color: var(--inverse-text); border-bottom: 2px solid var(--accent); }
.pc-bar[hidden] { display: none; }
.pc-bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 1rem; padding-block: 0.4rem; }
.pc-bar__label { font-weight: 700; font-size: 0.875rem; }
.pc-bar__time { display: inline-flex; gap: 0.5rem; font-variant-numeric: tabular-nums; }
.pc-u { display: inline-flex; align-items: baseline; gap: 0.2rem; }
.pc-u b { font-size: 1.125rem; font-weight: 800; min-width: 1.4ch; text-align: end; }
.pc-u i { font-style: normal; font-size: 0.75rem; opacity: 0.8; }
.pc-bar__cta { color: var(--inverse-text); font-weight: 700; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; }
.pc-bar__cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* The nav sticks under the bar */
.nav { top: var(--pc-bar-h, 0px); }
@media (max-width: 40rem) { .pc-bar__cta { display: none; } .pc-bar__label { font-size: 0.8125rem; } .pc-u b { font-size: 1rem; } }

.pc-price { display: flex; align-items: baseline; gap: 0.75rem; margin: var(--space-2) 0; }
.pc-was { opacity: 0.6; font-size: 1.25rem; }
.pc-now { font-size: 2rem; font-weight: 800; color: var(--text); }
.pc-price--big .pc-now { font-size: 3rem; }
.pc-price--big .pc-was { font-size: 1.5rem; }
.pycourse__features h3 { font-size: 1.0625rem; }
.pycourse__det > summary { align-items: center; }

/* Roadmap: 4 steps and a goal (section #modules) */
.rm { list-style: none; margin: var(--space-3) 0 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: var(--space-4); --rm-node: 3rem; --rm-gap: var(--space-3); }
.rm::before { content: ""; position: absolute; inset-block: 1.5rem 1.5rem; inset-inline-start: calc(var(--rm-node) / 2 - 2px); width: 4px; background: repeating-linear-gradient(to bottom, var(--border) 0 10px, transparent 10px 18px); }
.rm__step { position: relative; display: grid; grid-template-columns: var(--rm-node) minmax(0, 1fr); column-gap: var(--rm-gap); align-items: start; }
.rm__node { position: relative; z-index: 1; display: grid; place-items: center; width: var(--rm-node); height: var(--rm-node); background: var(--accent-solid); color: var(--on-accent, #fff); border-radius: var(--radius-sm); font-size: 1.375rem; font-weight: 800; box-shadow: 4px -4px 0 color-mix(in srgb, var(--accent-solid) 55%, #111827); }
.rm__node b { font-variant-numeric: tabular-nums; }
.rm__node--goal .icon { width: 1.5rem; height: 1.5rem; }
.rm__card { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; border-inline-start: 4px solid var(--accent); }
.rm__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem var(--space-2); }
.rm__count { font-size: 0.875rem; font-weight: 700; color: var(--text-muted); padding: 0.15rem 0.6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.rm__card h3 { margin: 0; font-size: 1.5rem; }
.rm__promise { margin: 0; font-size: 1.0625rem; }
.rm__reach { margin: 0; padding: 0.55rem 0.8rem; background: var(--bg-alt); border: 1px dashed var(--accent); border-radius: var(--radius-sm); display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; align-items: baseline; }
.rm__reach-k { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.rm__tools { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rm__logo, .tool__img { display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 0.6rem; }
.rm__logo { width: 2.5rem; height: 2.5rem; }
.rm__logo img { width: 1.6rem; height: 1.6rem; display: block; }
.rm__det > summary { cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0; list-style: none; }
.rm__det > summary::-webkit-details-marker { display: none; }
.rm__det > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.rm__det > summary .icon { width: 1.1rem; height: 1.1rem; transition: transform 200ms ease; }
.rm__det[open] > summary .icon { transform: rotate(180deg); }
.rm__lessons { list-style: none; counter-reset: l; margin: var(--space-1) 0 0; padding: 0; display: grid; gap: 0.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.rm__lessons li { counter-increment: l; display: flex; gap: 0.5rem; align-items: baseline; padding: 0.4rem 0.7rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9375rem; }
.rm__lessons li::before { content: counter(l); flex: none; min-width: 1.4ch; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
@supports (interpolate-size: allow-keywords) {
  .rm__det { interpolate-size: allow-keywords; }
  .rm__det::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 300ms ease, opacity 300ms ease, content-visibility 300ms allow-discrete; }
  .rm__det[open]::details-content { block-size: auto; opacity: 1; }
}
.rm__goalcard { padding: 0; overflow: hidden; border-inline-start-color: var(--accent); }
.rm__goalcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.rm__goaltxt { padding: var(--space-3); display: flex; flex-direction: column; gap: 0.25rem; }
.rm__goaltxt p { margin: 0; }
/* Path fills as steps come into view (JS adds .rm--js) */
.rm--js .rm__node { transform: scale(0.8); background: var(--bg-alt); color: var(--text-muted); box-shadow: none; border: 2px solid var(--border); transition: transform 350ms cubic-bezier(.3,1.6,.5,1), background 250ms, color 250ms, box-shadow 250ms; }
.rm--js .rm__step.is-on .rm__node { transform: none; background: var(--accent-solid); color: var(--on-accent, #fff); border-color: var(--accent-solid); box-shadow: 4px -4px 0 color-mix(in srgb, var(--accent-solid) 55%, #111827); }
@media (min-width: 48rem) {
  .rm { --rm-node: 3.5rem; --rm-gap: var(--space-4); }
  .rm::before { inset-inline-start: calc(var(--rm-node) / 2 - 2px); }
  .rm__card h3 { font-size: 1.75rem; }
  .rm__goalcard { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
  .rm__goaltxt { padding: var(--space-4); }
}
@media (max-width: 30rem) { .rm { --rm-node: 2.5rem; --rm-gap: 0.75rem; } .rm__node { font-size: 1.125rem; } .rm__card { padding: var(--space-3) var(--space-2); } }
@media (prefers-reduced-motion: reduce) { .rm--js .rm__node, .rm__det > summary .icon { transition: none; } .rm__det::details-content { transition: none; } }

/* Tools grid (section #run) */
.tools { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.tool { display: flex; align-items: center; gap: var(--space-3); }
.tool h3 { margin: 0 0 0.15rem; font-size: 1.125rem; }
.tool p { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.tool__img { width: 4rem; height: 4rem; flex: none; border-radius: 0.9rem; box-shadow: 3px -3px 0 color-mix(in srgb, var(--accent-solid) 40%, transparent); }
.tool__img img { width: 2.6rem; height: 2.6rem; display: block; }
.tool__logo { flex: none; }
@media (min-width: 40rem) { .tools { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }

/* Platform section (#platform): what is inside + a drawn preview */
.pf-items { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.pf-item { display: flex; gap: var(--space-2); align-items: flex-start; }
.pf-item h3 { margin: 0 0 0.15rem; font-size: 1.0625rem; }
.pf-item p { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.pf-box { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); border: 2px solid var(--accent); border-radius: var(--radius-md); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); box-shadow: 6px -6px 0 color-mix(in srgb, var(--accent-solid) 35%, transparent); }
.pf-box h3 { margin: 0 0 0.25rem; font-size: 1.375rem; }
.pf-box p { margin: 0; }
.pf-box__ic { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: var(--radius-sm); background: var(--accent-solid); color: var(--on-accent, #fff); }
.pf-box__ic .icon { width: 1.6rem; height: 1.6rem; }
.pf-prev { margin: var(--space-3) 0 0; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.pf-prev__tag { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }

.pf-mock { --pf-dark: #0f172a; --pf-card: var(--surface, var(--bg)); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg); box-shadow: 0 30px 60px -25px rgb(0 0 0 / 0.45), 8px -8px 0 color-mix(in srgb, var(--accent-solid) 30%, transparent); font-size: 0.875rem; direction: ltr; text-align: start; user-select: none; }
html[dir="rtl"] .pf-mock { direction: rtl; }
.pf-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.9rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.pf-dots { display: inline-flex; gap: 0.35rem; direction: ltr; }
.pf-dots i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--border); }
.pf-dots i:first-child { background: #ef4444; } .pf-dots i:nth-child(2) { background: #f59e0b; } .pf-dots i:nth-child(3) { background: #22c55e; }
.pf-url { flex: 1; max-width: 22rem; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.75rem; }
.pf-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.pf-brand { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.pf-brand img { display: block; }
.pf-user { display: inline-flex; align-items: center; gap: 0.5rem; flex: none; }
.pf-lvl { padding: 0.15rem 0.55rem; border-radius: var(--radius-sm); background: var(--pf-dark); color: #fde68a; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.03em; box-shadow: 2px -2px 0 var(--accent-solid); white-space: nowrap; }
.pf-av { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent-solid); color: var(--on-accent, #fff); font-weight: 800; }
.pf-un { font-weight: 700; }
.pf-body { display: grid; grid-template-columns: 15rem minmax(0, 1fr); }
.pf-side { padding: 0.9rem; border-inline-end: 1px solid var(--border); background: var(--bg-alt); display: flex; flex-direction: column; gap: 0.5rem; }
.pf-sidet { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 800; }
.pf-ch { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); padding: 0.5rem 0.6rem; }
.pf-ch--cur { border-color: var(--accent); }
.pf-cht { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; line-height: 1.25; }
.pf-cht .icon { width: 1rem; height: 1rem; margin-inline-start: auto; color: var(--positive, #16a34a); flex: none; }
.pf-chn { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 0.4rem; background: var(--border); font-size: 0.75rem; font-weight: 800; }
.pf-ch--done .pf-chn { background: var(--positive, #16a34a); color: #fff; }
.pf-ch--cur .pf-chn { background: var(--accent-solid); color: var(--on-accent, #fff); }
.pf-ch li { min-width: 0; }
.pf-ch ul { min-width: 0; list-style: none; margin: 0.45rem 0 0; padding: 0; display: grid; gap: 0.2rem; }
.pf-l { min-width: 0; display: flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.35rem; border-radius: 0.35rem; font-size: 0.8125rem; color: var(--text-muted); line-height: 1.25; }
.pf-st { flex: none; display: grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 1.5px solid var(--border); }
.pf-st .icon { width: 0.7rem; height: 0.7rem; }
.pf-st i { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: transparent; }
.pf-l--done .pf-st { background: var(--positive, #16a34a); border-color: var(--positive, #16a34a); color: #fff; }
.pf-l--now { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); font-weight: 700; }
.pf-l--now .pf-st { border-color: var(--accent-solid); } .pf-l--now .pf-st i { background: var(--accent-solid); }
.pf-lt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-main { padding: 1rem; display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.pf-video { position: relative; aspect-ratio: 16 / 7.5; border-radius: var(--radius-sm); overflow: hidden; background: radial-gradient(120% 140% at 20% 10%, #1e293b 0%, var(--pf-dark) 60%), var(--pf-dark); color: #fff; display: grid; place-items: center; }
.pf-video::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle at center, #000 20%, transparent 75%); }
.pf-play { position: relative; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--accent-solid); box-shadow: 0 0 0 8px rgb(229 57 53 / 0.25); }
.pf-play .icon { width: 1.7rem; height: 1.7rem; fill: #fff; stroke: #fff; }
.pf-vt { position: absolute; inset-inline: 0.9rem; bottom: 1.5rem; font-weight: 700; font-size: 1rem; text-shadow: 0 1px 6px rgb(0 0 0 / 0.6); }
.pf-scrub { position: absolute; inset-inline: 0.9rem; bottom: 0.65rem; height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.25); }
.pf-scrub i { display: block; width: 34%; height: 100%; border-radius: 4px; background: var(--zakpy-red, #E53935); }
.pf-stats { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.9rem; align-items: stretch; }
.pf-prog, .pf-c, .pf-streak { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.65rem 0.8rem; background: var(--bg); }
.pf-progt { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-weight: 700; }
.pf-track { height: 0.65rem; border-radius: 999px; background: var(--border); overflow: hidden; }
.pf-fill { display: block; height: 100%; width: 38%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-solid), var(--accent)); }
.pf-mock.pf--js .pf-fill { width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1) 200ms; }
.pf-mock.pf--js.is-on .pf-fill { width: 38%; }
.pf-streak { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.pf-flame { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #fef3c7; color: #d97706; }
.pf-flame .icon { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.pf-mock.pf--js.is-on .pf-flame { animation: pf-pulse 2.4s ease-in-out 1.4s infinite; }
@keyframes pf-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.pf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.pf-c { display: flex; gap: 0.6rem; align-items: center; }
.pf-c > span { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pf-c .icon { width: 1.05rem; height: 1.05rem; }
.pf-c b { display: block; line-height: 1.2; } .pf-c small { display: block; color: var(--text-muted); line-height: 1.25; }
@media (max-width: 56rem) { .pf-body { grid-template-columns: 11.5rem minmax(0, 1fr); } .pf-cards { grid-template-columns: 1fr; } }
@media (max-width: 40rem) {
  .pf-side, .pf-url { display: none; }
  .pf-body { grid-template-columns: 1fr; }
  .pf-main { padding: 0.75rem; }
  .pf-stats { grid-template-columns: 1fr; }
  .pf-cards { grid-template-columns: 1fr 1fr; }
  .pf-cards .pf-c:last-child { display: none; }
  .pf-vt { font-size: 0.875rem; }
  .pf-box { flex-direction: column; align-items: flex-start; }
  .pf-un { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pf-mock.pf--js .pf-fill { transition: none; } .pf-mock.pf--js.is-on .pf-flame { animation: none; } }

/* Certificate example (#certificate) */
.ce-wrap { display: grid; gap: var(--space-4); align-items: center; margin-top: var(--space-2); }
.ce { container-type: inline-size; position: relative; aspect-ratio: 1.414 / 1; width: 100%; max-width: 46rem; margin-inline: auto; padding: 0.9rem; border-radius: 0.5rem; background: #fffdf8; color: #1f2937; box-shadow: 0 24px 50px -22px rgb(0 0 0 / 0.5); direction: ltr; }
html[dir="rtl"] .ce { direction: rtl; }
.ce::before { content: ""; position: absolute; inset: 0.55rem; border: 2px solid #E53935; border-radius: 0.3rem; pointer-events: none; }
.ce::after { content: ""; position: absolute; inset: calc(0.55rem + 5px); border: 1px solid #d9c9a8; border-radius: 0.2rem; pointer-events: none; }
.ce__in { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 3.2cqw 4cqw 2.4cqw; overflow: hidden; }
.ce__wm { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15cqw; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(229 57 53 / 0.12); transform: rotate(-24deg); pointer-events: none; z-index: 2; }
.ce__logo { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 2.4cqw; }
.ce__logo img { width: 5cqw; height: 5cqw; display: block; }
.ce__h { font-family: var(--font-display, inherit); font-size: 5.2cqw; font-weight: 800; letter-spacing: 0.01em; color: #111827; line-height: 1.1; }
.ce__s { font-size: 2cqw; color: #6b7280; }
.ce__name { font-size: 6cqw; font-weight: 800; color: #E53935; border-bottom: 2px solid #d9c9a8; padding: 0 3cqw 0.3cqw; line-height: 1.2; }
.ce__course { font-size: 3cqw; font-weight: 800; color: #111827; max-width: 80%; line-height: 1.25; }
.ce__foot { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 2cqw; }
.ce__meta, .ce__sig { display: flex; flex-direction: column; gap: 0.2rem; font-size: 2cqw; align-items: flex-start; text-align: start; }
.ce__sig { align-items: flex-end; text-align: end; }
.ce__meta small, .ce__sig small { font-size: 1.6cqw; color: #6b7280; }
.ce__line { display: block; width: 18cqw; border-bottom: 1.5px solid #374151; height: 3cqw; }
.ce__seal { display: grid; justify-items: center; gap: 0.15rem; }
.ce__seal > span { display: grid; place-items: center; width: 8cqw; height: 8cqw; border-radius: 50%; background: #E53935; color: #fff; box-shadow: 0 0 0 0.6cqw #fff, 0 0 0 1cqw #E53935; }
.ce__seal .icon { width: 4.2cqw; height: 4.2cqw; }
.ce__seal small { font-size: 1.5cqw; color: #E53935; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.6cqw; }
.ce-pts ul { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: var(--space-2); }
.ce-pts li { display: flex; gap: var(--space-2); align-items: center; }
.ce-pts li p { margin: 0; font-weight: 600; }
@media (min-width: 64rem) { .ce-wrap { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
@media (max-width: 30rem) { .ce { padding: 0.6rem; } .ce::before { inset: 0.35rem; } .ce::after { inset: calc(0.35rem + 4px); } .ce__s { font-size: 2.6cqw; } .ce__meta, .ce__sig { font-size: 2.6cqw; } .ce__meta small, .ce__sig small { font-size: 2.1cqw; } .ce__logo { font-size: 3cqw; } .ce__seal small { font-size: 2cqw; } }

@media (min-width: 64rem) { .pf-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pc-sub { margin-top: 0.5rem; font-family: var(--font-display, inherit); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: var(--accent-solid); }
