/* Public web only. Handoff palette is independent of the Vue application. */
.public-web { --primary: #5b3fe8; --primary-dark: #4323b8; --secondary: #cbef58; --surface: #fff; --background: #f8f7fc; --text-primary: #16141f; --text-secondary: #565063; --text-muted: #696375; --border: #dcd7ec; --border-soft: #e9e5f1; --terracotta: #5b3fe8; --soft-green: #eee9ff; --soft-ochre: #eff8d7; --green-deep: #242033; }
.public-skip { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px; background: white; color: var(--ink); }
.public-skip:focus { top: 12px; }
.public-top { position: fixed; bottom: 20px; right: 20px; z-index: 30; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--violet); color: white; text-decoration: none; box-shadow: 0 2px 12px #16141f33; }
.public-web :is(input, select, textarea, button) { font: inherit; }
.public-web :is(input, select, textarea) { min-width: 0; }
.public-web :is(a, button):focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.login-dialog { display: none; position: fixed; inset: 0; z-index: 100; background: #16141fbf; padding: 24px; overflow-y: auto; }
.login-dialog:target { display: grid; align-items: center; justify-items: center; }
.login-panel { position: relative; width: min(100%, 460px); background: white; color: var(--ink); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-sheet); display: grid; gap: 12px; }
.login-panel h2 { font-size: 28px; margin-right: 24px; }
.login-close { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 32px; height: 32px; }
.login-panel input:not([type=checkbox]), .application-form input:not([type=radio]):not([type=checkbox]), .application-form textarea { width: 100%; padding: 12px; border: 1px solid #8a83a6; border-radius: 10px; background: #faf9ff; color: var(--ink); }
.remember, .application-choice, .application-consent { display: flex; gap: 10px; align-items: baseline; }
.remember input, .application-form input:is([type=radio],[type=checkbox]) { width: 20px; height: 20px; accent-color: var(--violet); flex: none; }
:is(a,button).cta, .cta-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 22px; border: 2px solid var(--violet); border-radius: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
:is(a,button).cta { background: var(--violet); color: white; }
.cta-ghost { background: white; color: var(--violet-ink); }
.oauth-row { display: flex; justify-content: center; gap: 16px; }
.oauth-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #ddd; border-radius: 12px; font-size: 28px; font-weight: 700; text-decoration: none; }
.oauth-yandex { color: #d71920; }.oauth-mailru { color: #005ff9; }
.login-alt { text-align: center; }.login-error, .application-error { color: #9e2436; }
.public-application { background: white; color: var(--ink); border-radius: 20px; padding: clamp(20px,3vw,36px); scroll-margin-top: 24px; }
.public-application h2 { font-size: 28px; margin: 16px 0; }
.public-application .form { padding: 0; box-shadow: none; margin-top: 24px; }
.application-form { display: grid; gap: 12px; }.application-form fieldset { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.application-form legend { margin-bottom: 8px; }.application-form .application-consent { display: flex; }
.author-plans { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 24px; margin-top: 32px; }
.author-plan { background: white; border: 2px solid var(--ink); border-radius: var(--r-sheet); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.author-plan h3 { font-size: 26px; }.author-plan strong { font-size: 26px; }.author-plan__actions { display: grid; gap: 12px; margin-top: auto; }.author-offer-note { margin-top: 28px; }
#tariffs h2 { font-size: clamp(30px,4vw,48px); margin-bottom: 20px; }#tariffs .section-lead { max-width: 90ch; color: var(--ink-2); }#tariffs { scroll-margin-top: 24px; }
.public-catalog-head { background: var(--violet); color: white; }
.public-catalog-intro { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; padding-block: 36px 72px; }
.public-catalog-intro h1 { font-size: clamp(36px,4vw,52px); }.public-catalog-intro .mark { color: var(--ink); }.public-catalog-intro p { color: #e3ddff; font-size: 18px; }
.public-catalog { padding-block: 32px var(--section); }
.market-search { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }.market-search input { flex: 1 1 260px; }.market-search select { flex: 0 1 260px; }.market-search :is(input,select) { background: white; color: var(--ink); border: 1px solid #8a83a6; border-radius: 12px; padding: 14px; }.market-search button { background: var(--violet); border: 0; color: white; border-radius: 12px; padding: 14px 24px; font-weight: 700; cursor: pointer; }
.market-meta { margin-bottom: 20px; color: var(--ink-2); }.market-grid { display: grid; gap: 28px; scroll-margin-top: 24px; }
.market-course-card { display: grid; grid-template-columns: 7fr 5fr; overflow: hidden; background: white; border-radius: var(--r-sheet); box-shadow: var(--shadow-sheet); }
.market-cover { display: grid; background: var(--violet-soft); align-items: center; text-decoration: none; }.market-cover img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }.market-cover-empty { display: grid; place-content: center; aspect-ratio: 4/3; color: var(--violet); font-size: clamp(30px,4vw,60px); font-weight: 800; }
.market-card-body { padding: clamp(24px,3vw,40px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }.market-card-body h3 { font-size: clamp(26px,3vw,34px); line-height: 1.15; letter-spacing: -.02em; }.market-card-body h3 a { text-decoration: none; }.market-card-body p { color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }.market-card-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }.market-author { color: var(--violet-ink); font-weight: 600; }.market-card-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: auto; border-top: 1px solid var(--grid-line); padding-top: 20px; }.market-card-bottom a { background: var(--violet); color: white; border-radius: 12px; padding: 14px 20px; text-decoration: none; font-weight: 700; }
.market-more { margin-top: 32px; text-align: center; }.market-more a { display: inline-block; padding: 16px 24px; border: 2px solid var(--ink); border-radius: 12px; text-decoration: none; }.market-empty { padding: 40px 24px; border: 2px dashed var(--grid-line); border-radius: 20px; }
.public-catalog-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; border: 2px dashed #16141f55; border-radius: 20px; padding: 28px; margin-top: 32px; }.public-catalog-invite p { flex: 1 1 320px; }.public-catalog-invite a { flex: 0 1 auto; }
.public-author { padding-block: 40px var(--section); }.author-hero { display: grid; grid-template-columns: 5fr 7fr; border-radius: var(--r-sheet); overflow: hidden; box-shadow: var(--shadow-sheet); background: white; margin-bottom: 48px; }.author-avatar { display: grid; place-items: center; background: var(--violet-soft); font-size: 80px; color: var(--violet); }.author-avatar img { width: 100%; height: auto; max-height: 640px; object-fit: contain; }.author-hero > div:last-child { padding: clamp(24px,4vw,56px); }.author-hero h1 { font-size: clamp(32px,4vw,52px); }.author-achievements, .author-bio { white-space: pre-line; margin-top: 24px; }.author-achievements { font-weight: 600; }.author-bio { color: var(--ink-2); }.market-toolbar { margin-block: 32px; }.market-toolbar h2 { font-size: 36px; }
.climb { overflow: clip; }
.author-avatar .author-portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: none; object-fit: contain; }
@media(max-width:900px) { .public-catalog-intro, .market-course-card, .author-hero { grid-template-columns: minmax(0,1fr); }.public-catalog-intro { gap: 24px; padding-bottom: 40px; }.author-avatar img { max-height: 420px; }.market-search select { flex: 1 1 200px; } }
@media(max-width:480px) { .login-dialog { padding: 12px; }.login-panel { padding: 28px 20px; }.market-search > * { flex: 1 1 100%; width: 100%; }.market-card-body { padding: 24px 20px; }.public-catalog-invite { padding: 20px; }.public-catalog-invite .btn { width: 100%; }.public-top { bottom: 12px; right: 12px; } }
