/* Subject landing page with curated pitch (currently: język polski). */
.portal-kind-subject {
	--sj-ink: #0f2f24;
	--sj-body: #3c5a4f;
	--sj-green: #0e704e;
	--sj-green-dark: #07402e;
	--sj-cream: #f6f8f1;
	--sj-paper: #fffdf7;
	--sj-gold: #e9cf86;
	--sj-gold-soft: #f6e8bd;
	--sj-red: #b8322a;
	--sj-line: #dfe8de;
	font-variant-numeric: lining-nums;
}

/* Hero */
.subject-hero {
	position: relative;
	overflow: hidden;
	padding: 26px 0 clamp(64px, 8vw, 104px);
	background:
		radial-gradient(circle at 88% 18%, rgb(233 207 134 / 26%), transparent 34%),
		linear-gradient(180deg, #f1f6ee 0%, var(--sj-cream) 100%);
}
.subject-breadcrumbs { margin-bottom: clamp(30px, 5vw, 56px); }
.subject-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 84px); align-items: center; }
.subject-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--sj-green); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.subject-eyebrow span { width: 34px; height: 2px; background: var(--sj-gold); }
.subject-hero h1 { max-width: 17ch; margin: 0 0 24px; color: var(--sj-ink); font-family: "Playfair Display", Georgia, serif; font-size: clamp(38px, 4.7vw, 62px); font-weight: 600; line-height: 1.04; letter-spacing: -.015em; }
.subject-hero h1 em { padding: 0 .06em; color: var(--sj-green); font-style: italic; background: linear-gradient(180deg, transparent 64%, var(--sj-gold-soft) 64%, var(--sj-gold-soft) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.subject-lead { max-width: 54ch; margin: 0 0 32px; color: var(--sj-body); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; }
.subject-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.subject-price-link { display: inline-flex; align-items: baseline; gap: 6px; color: var(--sj-body); font-size: 14px; text-decoration: none; }
.subject-price-link strong { color: var(--sj-ink); font-family: "Playfair Display", Georgia, serif; font-size: 28px; font-weight: 600; }
.subject-price-link:hover strong { color: var(--sj-green); }
.subject-goal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--sj-line); }
.subject-goal-chips a { padding: 7px 14px; border: 1px solid #cfdfd2; border-radius: 999px; background: rgb(255 255 255 / 70%); color: var(--sj-green-dark); font-size: 13px; font-weight: 700; text-decoration: none; transition: background-color .18s ease, border-color .18s ease; }
.subject-goal-chips a:hover { border-color: var(--sj-green); background: #fff; }

/* Signature: a corrected essay draft */
.subject-sheet { position: relative; margin: 0; }
.subject-sheet-stack { position: relative; }
.subject-sheet-stack::before { position: absolute; inset: 18px -14px -14px 18px; border-radius: 4px; background: var(--sj-gold-soft); content: ""; transform: rotate(2.2deg); }
.subject-sheet-paper {
	position: relative;
	padding: 30px clamp(22px, 3vw, 36px) 32px clamp(48px, 5vw, 64px);
	border-radius: 4px;
	background:
		linear-gradient(90deg, transparent clamp(32px, 3.6vw, 44px), rgb(184 50 42 / 35%) clamp(32px, 3.6vw, 44px), rgb(184 50 42 / 35%) calc(clamp(32px, 3.6vw, 44px) + 1px), transparent calc(clamp(32px, 3.6vw, 44px) + 1px)),
		repeating-linear-gradient(180deg, transparent 0 31px, #e6ece4 31px 32px),
		var(--sj-paper);
	box-shadow: 0 24px 50px rgb(15 47 36 / 14%), 0 2px 6px rgb(15 47 36 / 6%);
	transform: rotate(-1.2deg);
}
.subject-sheet-label { margin: 0 0 4px; color: #7f948a; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.subject-sheet-topic { margin: 0 0 22px; color: var(--sj-ink); font-family: "Playfair Display", Georgia, serif; font-size: clamp(19px, 1.8vw, 23px); font-style: italic; line-height: 1.3; }
.subject-sheet-line { display: grid; gap: 6px; }
.subject-sheet-line + .subject-sheet-line { margin-top: 20px; }
.subject-sheet-line p { margin: 0; color: var(--sj-ink); font-size: 15px; line-height: 2; }
.subject-sheet-line del { color: #82918a; text-decoration: line-through 2px var(--sj-red); }
.subject-sheet-line.is-after p { padding-left: 12px; border-left: 3px solid var(--sj-green); }
.subject-sheet-note { justify-self: start; color: var(--sj-red); font-family: "Playfair Display", Georgia, serif; font-size: 16px; font-style: italic; transform: rotate(-1.5deg); }
.subject-sheet-line.is-after .subject-sheet-note { color: var(--sj-green); }
.subject-sheet-note::before { content: "↳ "; font-style: normal; }
.subject-sheet figcaption { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 34px; color: var(--sj-body); font-size: 13px; font-style: italic; }
.subject-sheet figcaption::before { width: 28px; height: 1px; background: var(--sj-gold); content: ""; }

/* Shared section header */
.subject-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(30px, 4vw, 46px); }
.subject-section-head h2 { margin: 0; color: var(--sj-ink); font-family: "Playfair Display", Georgia, serif; font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; line-height: 1.1; }
.subject-section-head p { max-width: 46ch; margin: 0; color: var(--sj-body); font-size: 16px; line-height: 1.6; }

/* Problems */
.subject-pains { padding: clamp(68px, 8vw, 104px) 0; background: #fff; }
.subject-pain-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sj-line); }
.subject-pain-list li { display: grid; align-content: start; gap: 14px; padding: 30px clamp(0px, 2vw, 28px) 34px 0; border-bottom: 1px solid var(--sj-line); }
.subject-pain-list li:nth-child(even) { padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--sj-line); }
.subject-pain-list blockquote { position: relative; margin: 0; padding-left: 34px; }
.subject-pain-list blockquote::before { position: absolute; top: -.18em; left: 0; color: var(--sj-gold); content: "„"; font-family: "Playfair Display", Georgia, serif; font-size: 52px; line-height: 1; }
.subject-pain-list blockquote p { margin: 0; color: var(--sj-ink); font-family: "Playfair Display", Georgia, serif; font-size: clamp(20px, 2vw, 25px); font-style: italic; line-height: 1.3; }
.subject-pain-answer { margin: 0; padding-left: 34px; color: var(--sj-body); font-size: 15px; line-height: 1.65; }

/* Goals & prices */
.subject-goals { padding: clamp(68px, 8vw, 104px) 0; background: linear-gradient(135deg, var(--sj-green-dark) 0%, #0a5a3f 100%); }
.subject-goals .subject-section-head h2 { color: #fff; }
.subject-goals .subject-section-head p { color: #cfe3d6; }
.subject-goal-grid { display: grid; grid-template-columns: repeat(var(--goal-cols, 5), minmax(0, 1fr)); gap: 12px; }
.subject-goal { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 24px 22px 22px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 4px; background: rgb(255 255 255 / 6%); color: #fff; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.subject-goal:hover, .subject-goal:focus-within { border-color: var(--sj-gold); background: rgb(255 255 255 / 11%); transform: translateY(-3px); }
.subject-goal-audience { margin: 0; color: var(--sj-gold); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.subject-goal h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 600; line-height: 1.2; }
.subject-goal h3 a { color: #fff; text-decoration: none; }
.subject-goal h3 a::after { position: absolute; inset: 0; content: ""; }
.subject-goal h3 a:focus-visible { outline: none; }
.subject-goal:focus-within { outline: 2px solid var(--sj-gold); outline-offset: 3px; }
.subject-goal-outcome { flex: 1; margin: 0; color: #d2e5d9; font-size: 14px; line-height: 1.55; }
.subject-goal-price { margin: 0; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 16%); color: #cfe3d6; font-size: 13px; }
.subject-goal-price strong { color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 32px; font-weight: 600; }
.subject-goal-more { color: var(--sj-gold); font-size: 13px; font-weight: 700; }

/* Steps */
.subject-steps { padding: clamp(68px, 8vw, 104px) 0; background: var(--sj-cream); }
.subject-steps-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 13px 24px; border: 1px solid #d7c17f; border-radius: 4px; background: var(--sj-gold-soft); color: var(--sj-ink); font-size: 15px; font-weight: 800; text-decoration: none; }
.subject-steps-cta svg { width: 18px; height: 18px; }
.subject-steps-cta:hover { background: #fff5d8; }
.subject-step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; counter-reset: subject-step; }
.subject-step-list li { position: relative; padding-top: 74px; counter-increment: subject-step; }
.subject-step-list li::before { position: absolute; top: 0; left: 0; color: var(--sj-green); content: counter(subject-step, decimal-leading-zero); font-family: "Playfair Display", Georgia, serif; font-size: 52px; font-variant-numeric: lining-nums; font-feature-settings: "lnum"; line-height: 1; }
.subject-step-list li::after { position: absolute; top: 26px; left: 84px; right: 0; height: 1px; background: #cddccf; content: ""; }
.subject-step-list li:last-child::after { display: none; }
.subject-step-list h3 { margin: 0 0 10px; color: var(--sj-ink); font-size: 18px; line-height: 1.3; }
.subject-step-list p { margin: 0; color: var(--sj-body); font-size: 15px; line-height: 1.65; }

/* Remaining editorial content below the pitch */
.portal-kind-subject .subject-steps + .portal-content { padding-top: clamp(56px, 7vw, 88px); }

@media (max-width: 1100px) {
	.subject-goal-grid { grid-template-columns: repeat(min(3, var(--goal-cols, 3)), minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.subject-hero-grid { grid-template-columns: 1fr; }
	.subject-hero h1 { max-width: 18ch; }
	.subject-sheet { max-width: 560px; }
	.subject-pain-list { grid-template-columns: 1fr; }
	.subject-pain-list li:nth-child(even) { padding-left: 0; border-left: 0; }
	.subject-step-list { grid-template-columns: 1fr; }
	.subject-step-list li { padding: 0 0 0 76px; min-height: 52px; }
	.subject-step-list li::after { display: none; }
}
@media (max-width: 720px) {
	.subject-goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.subject-goal { min-height: 0; }
}
@media (max-width: 520px) {
	.subject-sheet-stack::before { inset: 12px -6px -10px 10px; }
	.subject-sheet-paper { padding: 24px 18px 24px 42px; background-size: auto; }
	.subject-goal-grid { grid-template-columns: 1fr; }
	.subject-goal { gap: 6px; padding: 18px; }
	.subject-goal-price { padding-top: 10px; }
	.subject-goal-price strong { font-size: 26px; }
	.subject-sheet.is-code .subject-sheet-line p { font-size: 12.5px; }
	.subject-step-list li { padding-left: 62px; }
	.subject-step-list li::before { font-size: 42px; }
	.subject-hero-actions .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.subject-goal, .subject-goal-chips a { transition: none; }
	.subject-goal:hover, .subject-goal:focus-within { transform: none; }
}

/* Code variant of the sheet (informatyka) and formula subscripts */
.subject-sheet.is-code .subject-sheet-line p { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 14px; }
.subject-sheet sub, .subject-sheet sup { font-size: .7em; line-height: 0; }
