/* /korepetycje/ landing page. Shares tokens and sheet styles with subject.css. */
.portal-kind-subjects {
	--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-gold-ink: #9a7a2c;
	--sj-red: #b8322a;
	--sj-line: #dfe8de;
	font-variant-numeric: lining-nums;
}

/* Hero */
.hub-hero { padding: 26px 0 clamp(60px, 7vw, 96px); background: radial-gradient(circle at 90% 12%, rgb(233 207 134 / 24%), transparent 36%), linear-gradient(180deg, #f1f6ee 0%, var(--sj-cream) 100%); }
.hub-hero .breadcrumbs { margin-bottom: clamp(30px, 5vw, 54px); }
.hub-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.hub-title { max-width: 16ch; margin: 0 0 24px; color: var(--sj-ink); font-family: "Playfair Display", Georgia, serif; font-size: clamp(38px, 4.8vw, 62px); font-weight: 600; line-height: 1.05; letter-spacing: -.015em; }
.hub-title 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; }
.hub-lead { max-width: 52ch; margin: 0 0 24px; color: var(--sj-body); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; }
.hub-facts { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0 0 30px; padding: 0; list-style: none; color: var(--sj-body); font-size: 14px; }
.hub-facts li { margin: 0; padding: 0 14px; border-left: 1px solid #cddccf; }
.hub-facts li:first-child { padding-left: 0; border-left: 0; }
.hub-facts strong { color: var(--sj-ink); font-family: "Playfair Display", Georgia, serif; font-size: 18px; }
.hub-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.hub-goals { padding: 24px; border: 1px solid var(--sj-line); border-radius: 6px; background: #fff; box-shadow: 0 24px 50px rgb(15 47 36 / 10%); }
.hub-goals-title { margin: 0 0 12px; color: var(--sj-gold-ink); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hub-goals ul { margin: 0; padding: 0; list-style: none; }
.hub-goals li { margin: 0; border-top: 1px solid #edf1ea; }
.hub-goals li:first-child { border-top: 0; }
.hub-goals a { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 16px; align-items: center; padding: 14px 6px; color: inherit; text-decoration: none; transition: background-color .18s ease; }
.hub-goals a:hover { background: var(--sj-cream); }
.hub-goal-main { display: grid; gap: 2px; }
.hub-goal-main strong { color: var(--sj-ink); font-family: "Playfair Display", Georgia, serif; font-size: 19px; font-weight: 600; }
.hub-goal-main span { color: #5f786c; font-size: 13px; }
.hub-goal-meta { display: grid; justify-items: end; gap: 1px; color: var(--sj-ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.hub-goal-meta small { color: #7f948a; font-size: 12px; font-weight: 600; }
.hub-goal-arrow { color: var(--sj-green); font-weight: 800; transition: transform .18s ease; }
.hub-goals a:hover .hub-goal-arrow { transform: translateX(3px); }

/* Subjects */
.hub-subjects { padding: clamp(68px, 8vw, 104px) 0; background: #fff; }
.hub-subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hub-subject-grid + .hub-subject-grid { margin-top: 18px; }
.hub-subject { position: relative; display: flex; gap: 18px; padding: 24px; border: 1px solid #e1e9e2; border-radius: 6px; background: #fbfdfb; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.hub-subject:hover, .hub-subject:focus-within { border-color: #a9c6b2; box-shadow: 0 16px 34px rgb(15 47 36 / 9%); transform: translateY(-2px); }
.hub-subject:focus-within { outline: 2px solid var(--sj-green); outline-offset: 3px; }
.hub-subject-art { flex: none; width: 60px; height: 60px; color: #0e4a36; }
.hub-subject-art svg { width: 100%; height: 100%; stroke-width: 1.15; }
.hub-subject-body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.hub-subject h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 23px; font-weight: 600; line-height: 1.15; }
.hub-subject h3 a { color: var(--sj-ink); text-decoration: none; }
.hub-subject h3 a::after { position: absolute; inset: 0; content: ""; }
.hub-subject h3 a:focus-visible { outline: none; }
.hub-subject-range { margin: 0; color: var(--sj-gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hub-subject-pitch { margin: 2px 0 0; color: var(--sj-body); font-family: "Playfair Display", Georgia, serif; font-size: 16px; font-style: italic; line-height: 1.4; }
.hub-subject-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin: auto 0 0; padding-top: 14px; color: #5f786c; font-size: 13px; }
.hub-subject-foot strong { color: var(--sj-ink); font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 600; }
.hub-subject-more { color: var(--sj-green); font-weight: 800; }
.hub-subject-grid.is-featured .hub-subject { flex-direction: column; gap: 16px; padding: 30px 28px 26px; background: var(--sj-cream); }
.hub-subject-grid.is-featured .hub-subject-art { width: 84px; height: 84px; }
.hub-subject-grid.is-featured h3 { font-size: 30px; }
.hub-subject-grid.is-featured .hub-subject-pitch { font-size: 19px; }
.hub-subject-grid.is-featured .hub-subject-foot strong { font-size: 26px; }
.hub-subject-grid.is-featured .hub-subject-foot { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--sj-line); }

/* Method */
.hub-method { padding: clamp(68px, 8vw, 104px) 0; background: linear-gradient(135deg, var(--sj-green-dark) 0%, #0a5a3f 100%); color: #fff; }
.hub-method .subject-section-head h2 { color: #fff; }
.hub-method .subject-section-head p { color: #cfe3d6; }
.hub-method .subject-section-head a { color: var(--sj-gold); font-weight: 800; white-space: nowrap; }
.hub-method-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: hub-method; }
.hub-method-list li { position: relative; padding: 70px 26px 0 0; counter-increment: hub-method; }
.hub-method-list li + li { padding-left: 26px; border-left: 1px solid rgb(255 255 255 / 14%); }
.hub-method-list li::before { position: absolute; top: 0; color: var(--sj-gold); content: counter(hub-method, upper-roman) "."; font-family: "Playfair Display", Georgia, serif; font-size: 40px; line-height: 1; }
.hub-method-list h3 { margin: 0 0 10px; color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 23px; font-weight: 600; }
.hub-method-list p { margin: 0; color: #d2e5d9; font-size: 15px; line-height: 1.6; }

/* Example sheets */
.hub-sheets { padding: clamp(68px, 8vw, 104px) 0; background: var(--sj-cream); }
.hub-sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 44px); align-items: start; }
.hub-sheet-subject { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hub-sheet-subject a { color: var(--sj-green); text-decoration: none; }
.subject-sheet.is-mini .subject-sheet-paper { padding: 22px 20px 22px 44px; background: linear-gradient(90deg, transparent 32px, rgb(184 50 42 / 35%) 32px, rgb(184 50 42 / 35%) 33px, transparent 33px), repeating-linear-gradient(180deg, transparent 0 27px, #e6ece4 27px 28px), var(--sj-paper); transform: rotate(-.8deg); }
.hub-sheet:nth-child(2) .subject-sheet.is-mini .subject-sheet-paper { transform: rotate(.9deg); }
.subject-sheet.is-mini .subject-sheet-stack::before { inset: 12px -8px -9px 12px; }
.subject-sheet.is-mini .subject-sheet-topic { margin-bottom: 14px; font-size: 17px; }
.subject-sheet.is-mini .subject-sheet-line p { font-size: 13.5px; line-height: 1.85; }
.subject-sheet.is-mini .subject-sheet-note { font-size: 14px; }
.subject-sheet.is-mini figcaption { display: none; }

/* Chooser */
.hub-quiz { padding: clamp(68px, 8vw, 104px) 0; background: #fff; }
.hub-quiz-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.hub-quiz-head h2 { margin: 0 0 12px; color: var(--sj-ink); font-family: "Playfair Display", Georgia, serif; font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; line-height: 1.1; }
.hub-quiz-head p { margin: 0; color: var(--sj-body); line-height: 1.6; }
.hub-quiz-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-quiz-form fieldset { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--sj-line); border-radius: 6px; background: var(--sj-cream); transition: opacity .2s ease; }
.hub-quiz-form fieldset:disabled { opacity: .55; }
.hub-quiz-form legend { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin: 0 0 14px; padding: 0; color: var(--sj-ink); font-weight: 800; }
.hub-quiz-form legend span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sj-green); color: #fff; font-size: 13px; }
.hub-quiz-options { clear: both; display: grid; gap: 8px; }
.hub-quiz-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #d8e4da; border-radius: 4px; background: #fff; color: var(--sj-ink); font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.hub-quiz-option:hover { border-color: #a9c6b2; }
.hub-quiz-option input { accent-color: var(--sj-green); margin: 0; }
.hub-quiz-option:has(input:checked) { border-color: var(--sj-green); background: #eef7f1; }
.hub-quiz-wait { margin: 0; color: #7f948a; font-size: 13px; }
.hub-quiz-result { grid-column: 1 / -1; }
.hub-quiz-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 30px; align-items: center; padding: 24px 28px; border-radius: 6px; background: linear-gradient(110deg, var(--sj-green-dark), #0e704e); color: #fff; }
.hub-quiz-card-kicker { grid-column: 1 / -1; margin: 0; color: var(--sj-gold); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hub-quiz-card h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 600; }
.hub-quiz-card h3 a { color: #fff; text-decoration: none; }
.hub-quiz-card-price { grid-row: 2 / 4; grid-column: 2; margin: 0; color: #cfe3d6; text-align: right; }
.hub-quiz-card-price strong { display: block; color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 36px; font-weight: 600; line-height: 1; }
.hub-quiz-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 10px; }
.hub-quiz-card-actions .button { border: 1px solid #d7c17f; background: var(--sj-gold-soft); color: var(--sj-ink); }
.hub-quiz-card-actions .text-link { color: #fff; }

/* FAQ */
.hub-faq { padding: clamp(60px, 7vw, 92px) 0; background: var(--sj-cream); border-top: 1px solid var(--sj-line); }
.hub-faq h2 { margin: 0 0 26px; color: var(--sj-ink); font-family: "Playfair Display", Georgia, serif; font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; }
.hub-faq .portal-faq { max-width: 860px; }

@media (max-width: 1080px) {
	.hub-subject-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hub-method-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.hub-method-list li:nth-child(3) { padding-left: 0; border-left: 0; }
	.hub-quiz-inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.hub-hero-grid { grid-template-columns: 1fr; }
	.hub-subject-grid.is-featured, .hub-sheet-grid { grid-template-columns: 1fr; }
	.hub-sheet-grid { max-width: 520px; }
	.hub-quiz-form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.hub-subject-grid.is-compact { grid-template-columns: 1fr; }
	.hub-subject-grid + .hub-subject-grid { margin-top: 12px; }
	.hub-subject-grid { gap: 12px; }
	.hub-subject { gap: 14px; padding: 18px; }
	.hub-subject-art { width: 50px; height: 50px; }
	.hub-subject-grid.is-featured .hub-subject { flex-direction: row; gap: 14px; padding: 20px 18px; }
	.hub-subject-grid.is-featured .hub-subject-art { width: 58px; height: 58px; }
	.hub-subject-grid.is-featured h3 { font-size: 25px; }
	.hub-subject-grid.is-featured .hub-subject-pitch { font-size: 17px; }
	.hub-subject-grid.is-featured .hub-subject-foot strong { font-size: 22px; }
	.hub-subject-grid.is-featured .hub-subject-foot { margin-top: 4px; padding-top: 12px; }
	.hub-subject-foot { padding-top: 10px; }
	.hub-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
	.hub-facts li, .hub-facts li:first-child { padding: 0; border-left: 0; }
	.hub-method-list { grid-template-columns: 1fr; }
	.hub-method-list li, .hub-method-list li + li { padding: 58px 0 0; border-left: 0; }
	.hub-goals { padding: 16px; }
	.hub-goals a { grid-template-columns: minmax(0, 1fr) auto; }
	.hub-goal-arrow { display: none; }
	.hub-quiz-card { grid-template-columns: 1fr; }
	.hub-quiz-card-price { grid-row: auto; grid-column: auto; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	.hub-subject, .hub-goal-arrow, .hub-quiz-form fieldset { transition: none; }
	.hub-subject:hover, .hub-subject:focus-within { transform: none; }
}
