:root {
  --ink: #1d1d1b;
  --paper: #f5f2eb;
  --warm: #e6b3a6;
  --red: #a85747;
  --green: #2d7857;
  --soft-green: #dcebe3;
  --line: rgba(29, 29, 27, .14);
  --muted: #77736e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, a { font: inherit; }
button { cursor: pointer; }
.app-shell { max-width: 720px; margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 20px 114px; }
.topbar, .section-heading { display: flex; align-items: center; justify-content: space-between; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.star-balance { display: flex; align-items: center; gap: 4px; color: var(--ink); font-size: 13px; font-weight: 800; }
.star-balance b { color: #d19d24; font-size: 17px; }
.topbar { margin-bottom: 48px; }
.brand { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.avatar { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: Georgia, serif; }
.eyebrow { margin: 0 0 11px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.3; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
h1 { max-width: 600px; margin-bottom: 17px; font-size: clamp(42px, 10vw, 68px); line-height: .98; }
h2 { margin-bottom: 0; font-size: 30px; line-height: 1.05; }
.lead { max-width: 470px; margin-bottom: 46px; color: #57534f; font-size: 15px; line-height: 1.48; }
.app-page[hidden] { display: none; }
.home-course-link { width: 100%; margin-top: 2px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font-weight: 750; text-align: left; }
.home-course-link span { float: right; font-size: 19px; line-height: .75; }
.course-intro { padding: 13px 0 27px; }
.course-intro h1 { margin-bottom: 14px; font-size: clamp(43px, 10vw, 63px); }
.course-intro p:not(.eyebrow) { max-width: 490px; margin: 0; color: #57534f; font-size: 15px; line-height: 1.45; }
.value-section { margin-bottom: 48px; }
.value-section > h2 { max-width: 420px; margin-bottom: 20px; font-size: clamp(36px, 8vw, 52px); }
.value-grid { display: grid; gap: 2px; background: var(--line); }
.value-grid article { min-height: 148px; padding: 18px; background: #ebe6dc; }
.value-grid b { color: var(--red); font: 700 12px/1 Georgia, serif; }
.value-grid h3 { margin: 17px 0 7px; font: 400 23px/1 Georgia, serif; letter-spacing: -.03em; }
.value-grid p { margin: 0; color: #5e5954; font-size: 13px; line-height: 1.4; }
.featured { overflow: hidden; border-radius: 4px; background: var(--ink); color: #fffdf8; box-shadow: 0 18px 34px rgba(47, 37, 31, .12); }
.featured-image { min-height: 220px; background: #e8e2d9 url("../assets/renoir-moulin.webp") center / contain no-repeat; }
.featured-content { padding: 26px 24px 25px; }
.featured .eyebrow { color: var(--warm); }
.featured h2 { font-size: 42px; }
.period { margin: 8px 0 23px; color: rgba(255,255,255,.66); font-size: 13px; }
.formula { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; color: var(--warm); font-size: 13px; }
.formula i { width: 3px; height: 3px; border-radius: 50%; background: var(--warm); }
.primary-button, .secondary-button { border: 0; border-radius: 2px; transition: transform .2s ease, background .2s ease; }
.primary-button { width: 100%; padding: 15px 16px; background: var(--warm); color: var(--ink); font-weight: 750; text-align: left; }
.lesson-link { display: block; text-decoration: none; }
.primary-button span, .secondary-button span { float: right; font-size: 20px; line-height: .75; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.progress-section { padding: 49px 0 38px; }
.progress-section h2 { font-size: 35px; }
.progress-count { color: var(--muted); font-size: 12px; }
.progress-track { height: 5px; margin-top: 18px; overflow: hidden; background: #ddd8cf; border-radius: 10px; }
.progress-track span { display: block; width: 4%; height: 100%; border-radius: inherit; background: var(--green); }
.section-heading.compact { margin-bottom: 14px; }
.section-heading.compact h2 { font-size: 35px; }
.text-button { border: 0; background: transparent; color: var(--red); font-size: 13px; font-weight: 700; }
.epoch-list { border-top: 1px solid var(--line); }
.epoch-card { display: flex; width: 100%; align-items: center; gap: 15px; padding: 20px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; }
.epoch-card:hover .epoch-copy strong { color: var(--red); }
.epoch-number { color: var(--red); font: 600 12px/1 Georgia, serif; }
.epoch-copy { flex: 1; }
.epoch-copy strong { display: block; margin-bottom: 5px; font: 400 24px/1 Georgia, serif; letter-spacing: -.03em; transition: color .2s ease; }
.epoch-copy small { color: var(--muted); font-size: 12px; }
.round-arrow { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 17px; }
.lock { color: #aaa6a0; font-size: 22px; }
.daily-art { margin-top: 47px; padding: 25px 23px; background: var(--soft-green); }
.daily-art h2 { margin-bottom: 15px; font-size: 34px; }
.daily-figure { margin: 0; overflow: hidden; background: #e8e2d9; }
.daily-figure img { display: block; width: 100%; aspect-ratio: auto; object-fit: contain; object-position: center; }
.daily-figure figcaption { padding: 10px 12px; color: #6d665e; font-size: 11px; line-height: 1.35; }
.daily-story { max-width: 390px; margin: 17px 0 0; color: #46544c; font-size: 14px; line-height: 1.45; }
.secondary-button { width: 100%; margin-top: 10px; padding: 13px 0; border-bottom: 1px solid #779283; border-radius: 0; background: transparent; color: #285d45; font-weight: 750; text-align: left; }
.exhibitions { padding: 48px 0 12px; }
.fresh-note { color: var(--muted); font-size: 11px; }
.exhibitions-lead { max-width: 480px; margin: 0 0 19px; color: #57534f; font-size: 14px; line-height: 1.45; }
.exhibition-list { border-top: 1px solid var(--line); }
.exhibition-list a { position: relative; display: block; padding: 18px 35px 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.exhibition-list span, .exhibition-list small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.exhibition-list strong { display: block; margin: 5px 0 8px; font: 400 23px/1.05 Georgia, serif; letter-spacing: -.03em; }
.exhibition-list i { position: absolute; top: 50%; right: 3px; color: var(--red); font-size: 21px; font-style: normal; transform: translateY(-50%); }
.bottom-nav { position: fixed; z-index: 3; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: min(9vw, 68px); padding: 13px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(29,29,27,.08); background: rgba(250,248,243,.93); backdrop-filter: blur(12px); }
.nav-item { display: grid; gap: 4px; min-width: 49px; border: 0; background: transparent; color: #8b8780; font-size: 10px; place-items: center; }
.nav-item span { font-size: 20px; line-height: 1; }
.nav-item.active { color: var(--ink); font-weight: 700; }
.lesson-dialog { width: min(calc(100% - 38px), 440px); padding: 33px 26px 25px; border: 0; border-radius: 4px; background: var(--ink); color: white; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.lesson-dialog::backdrop { background: rgba(15, 14, 13, .55); backdrop-filter: blur(3px); }
.lesson-dialog h2 { margin-bottom: 15px; font-size: 43px; }
.lesson-dialog p:not(.eyebrow) { color: rgba(255,255,255,.75); line-height: 1.45; }
.lesson-dialog .eyebrow { color: var(--warm); }
.dialog-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: white; font-size: 30px; line-height: 1; }
.dialog-meta { display: flex; gap: 10px; margin: 24px 0; color: var(--warm); font-size: 12px; }
.dialog-meta span + span::before { margin-right: 10px; content: "·"; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 91px; width: max-content; max-width: calc(100% - 40px); padding: 12px 16px; border-radius: 99px; background: var(--ink); color: white; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .25s ease, transform .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 620px) { .app-shell { padding-right: 34px; padding-left: 34px; } .featured { display: grid; grid-template-columns: .88fr 1fr; } .featured-image { min-height: 100%; } .featured-content { padding: 37px 34px; } }
@media (min-width: 620px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Home — quiet, tactile editorial direction */
.maison-home { --maison-ink: #312b25; --maison-espresso: #26211d; --maison-ivory: #f5f1e9; --maison-stone: #dfd6c8; --maison-taupe: #978675; --maison-olive: #687162; --maison-copper: #a56852; --maison-sand: #e9e0d3; padding-top: 2px; color: var(--maison-ink); }
.maison-home h1, .maison-home h2, .maison-home h3 { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; }
.maison-home h1 { margin: 0; font-size: clamp(56px, 13.2vw, 94px); font-weight: 500; letter-spacing: -.065em; line-height: .82; }
.maison-home h2 { font-size: clamp(42px, 10vw, 66px); font-weight: 500; letter-spacing: -.06em; line-height: .88; }
.maison-kicker { margin: 0; color: var(--maison-copper); font-size: 10px; font-weight: 800; letter-spacing: .16em; line-height: 1.4; }
.maison-hero { display: grid; gap: 28px; padding-bottom: 62px; }
.maison-hero__intro { padding: 18px 2px 0; }
.maison-hero__intro .maison-kicker { margin-bottom: 20px; }
.maison-hero__intro > p:not(.maison-kicker) { max-width: 404px; margin: 26px 0 25px; color: #625a51; font-size: 15px; line-height: 1.58; }
.maison-route { display: grid; gap: 10px; max-width: 404px; }
.maison-route > p { margin: 0 0 0 18px; color: var(--maison-taupe); font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.maison-primary { display: flex; width: 100%; min-height: 68px; align-items: center; justify-content: space-between; padding: 10px 11px 10px 19px; border: 1px solid var(--maison-espresso); border-radius: 999px; background: var(--maison-espresso); color: #fffdfa; font-size: 15px; font-weight: 700; letter-spacing: .015em; text-align: left; transition: background .24s ease, color .24s ease, transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease; }
.maison-primary span { display: grid; gap: 3px; }
.maison-primary small { color: #c8a490; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.maison-primary i { display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; border-radius: 50%; background: #e4d7c8; color: var(--maison-espresso); font-size: 24px; font-style: normal; font-weight: 400; transition: transform .24s cubic-bezier(.2,.8,.2,1), background .24s ease; }
.maison-primary:hover, .maison-primary:focus-visible { background: transparent; color: var(--maison-espresso); box-shadow: 0 10px 22px rgba(48,38,29,.11); transform: translate3d(var(--magnet-x, 0), calc(var(--magnet-y, 0) - 2px), 0); }
.maison-primary:hover i, .maison-primary:focus-visible i { background: var(--maison-copper); color: white; transform: rotate(-25deg); }
.maison-primary:active, .maison-quiet-button:active { transform: translateY(0); opacity: .78; }
.maison-hero__art { position: relative; margin: 0; overflow: hidden; background: var(--maison-espresso); box-shadow: 0 18px 42px rgba(48, 38, 29, .14); }
.maison-hero__art::after { display: none; }
.maison-hero__art img { display: block; width: 100%; height: auto; max-height: min(112vw, 530px); object-fit: contain; object-position: center; }
.daily-figure.maison-hero__art { background: #e8e2d9; }
.daily-figure.maison-hero__art img { max-height: none; }
.maison-hero__art:hover img { transform: none; }
.maison-hero__art figcaption { position: relative; z-index: 1; display: grid; gap: 6px; padding: 15px 18px 17px; background: #eee6d9; color: #312b25; }
.maison-hero__art figcaption span { color: #965840; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.maison-hero__art figcaption strong { max-width: 420px; color: #312b25; font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
.maison-manifesto { position: relative; margin: 0 -20px; padding: 49px 22px 53px; overflow: hidden; background: var(--maison-espresso); color: #faf5ed; }
.maison-manifesto::before { position: absolute; top: -76px; right: -59px; width: 210px; height: 210px; border: 1px solid rgba(234,222,206,.18); border-radius: 50%; content: ""; }
.maison-manifesto .maison-kicker { position: relative; color: #cfae9d; margin-bottom: 22px; }
.maison-manifesto h2 { position: relative; max-width: 630px; margin-bottom: 22px; font-size: clamp(46px, 10.8vw, 70px); line-height: .9; }
.maison-manifesto > p:last-child { position: relative; max-width: 450px; margin: 0; color: #d9d0c6; font-size: 17px; line-height: 1.56; }
.maison-ritual { margin: 0 -20px; padding: 46px 22px 48px; background: var(--maison-sand); }
.maison-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.maison-ritual .maison-section-heading { margin-bottom: 25px; }
.maison-ritual .maison-section-heading .maison-kicker { color: #874d39; font-size: clamp(19px, 5vw, 23px); letter-spacing: .14em; }
.maison-section-heading > span { color: var(--maison-taupe); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.maison-steps { border-top: 1px solid rgba(49,43,37,.2); }
.maison-steps article { display: grid; grid-template-columns: 54px 1fr; gap: 15px; min-height: 132px; padding: 23px 0; border-bottom: 1px solid rgba(49,43,37,.2); }
.maison-steps article > span { padding-top: 0; color: #995840; font: 500 29px/.95 "Cormorant Garamond", Georgia, serif; letter-spacing: -.04em; }
.maison-steps h3 { margin: -2px 0 8px; color: #302820; font-size: 32px; font-weight: 600; letter-spacing: -.035em; line-height: .98; }
.maison-steps p { max-width: 440px; margin: 0; color: #51483f; font-size: 15px; line-height: 1.52; }
.maison-daily { margin: 0 -20px; padding: 48px 22px 45px; background: #d9ded4; }
.maison-daily h2 { max-width: 420px; margin: 0 0 20px; color: #283029; }
.maison-daily .daily-story { max-width: 430px; margin: 0; color: #4e594d; font-size: 15px; line-height: 1.57; }
.maison-quiet-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; margin-top: 30px; padding: 11px 0; border: 0; border-top: 1px solid rgba(42, 53, 43, .36); border-bottom: 1px solid rgba(42, 53, 43, .36); background: transparent; color: #283029; font-size: 13px; font-weight: 750; text-align: left; transition: opacity .2s ease, transform .2s ease; }
.maison-quiet-button span { font-size: 19px; font-weight: 400; }
.maison-exhibitions { padding: 65px 0 16px; }
.maison-exhibitions__topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.maison-exhibitions__topline .maison-kicker { margin: 0; color: var(--maison-copper); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.maison-city-picker { display: flex; align-items: center; gap: 9px; color: #71675d; font-size: 10px; font-weight: 700; }
.maison-city-picker select { max-width: min(58vw, 220px); min-height: 40px; padding: 0 30px 0 12px; border: 1px solid var(--maison-stone); border-radius: 3px; background: #f5f0e7; color: var(--maison-ink); font: inherit; font-size: 12px; }
.maison-city-picker select:focus-visible { outline: 2px solid var(--maison-copper); outline-offset: 3px; }
.maison-exhibitions > h2 { margin-bottom: 19px; }
.maison-exhibitions .exhibitions-lead { max-width: 415px; margin-bottom: 29px; color: #6b6259; font-size: 14px; line-height: 1.55; }
.maison-exhibitions .fresh-note { color: var(--maison-olive); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.maison-exhibitions .exhibition-list { border-color: var(--maison-stone); }
.maison-exhibitions .exhibition-list a { padding: 22px 39px 22px 0; border-color: var(--maison-stone); transition: padding .22s ease, background .22s ease; }
.maison-exhibitions .exhibition-list a:hover, .maison-exhibitions .exhibition-list a:focus-visible { padding-right: 31px; padding-left: 10px; background: rgba(220, 211, 196, .3); }
.maison-exhibitions .exhibition-list span { color: var(--maison-copper); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.maison-exhibitions .exhibition-list strong { margin: 7px 0 9px; color: var(--maison-ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; font-weight: 500; letter-spacing: -.04em; line-height: .95; }
.maison-exhibitions .exhibition-list small { color: #71675d; font-size: 11px; }
.maison-exhibitions .exhibition-list i { right: 8px; color: var(--maison-copper); }
.maison-exhibitions__note { max-width: 430px; margin: 16px 0 0; color: #71675d; font-size: 10px; line-height: 1.5; }
.maison-exhibitions .exhibition-empty { margin: 0; padding: 19px 0; color: #71675d; font-size: 13px; line-height: 1.5; }
.maison-home button:focus-visible, .maison-home a:focus-visible { outline: 2px solid var(--maison-copper); outline-offset: 4px; }
@media (min-width: 620px) { .maison-home { padding-top: 16px; } .maison-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 34px; padding-bottom: 83px; } .maison-hero__intro { min-width: 0; padding-bottom: 18px; } .maison-home h1 { font-size: clamp(58px, 7.1vw, 72px); } .maison-hero__art img { height: min(61vw, 525px); } .maison-manifesto, .maison-daily, .maison-ritual { margin-right: -34px; margin-left: -34px; padding-right: 40px; padding-left: 40px; } .maison-ritual { padding-top: 54px; padding-bottom: 56px; } .maison-steps article { grid-template-columns: 68px 1fr; min-height: 144px; padding-top: 27px; padding-bottom: 27px; } .maison-steps article > span { font-size: 36px; } .maison-steps h3 { font-size: 38px; } .maison-steps p { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .maison-hero__art img, .maison-primary, .maison-quiet-button, .maison-exhibitions .exhibition-list a { transition: none; } }

/* Floating atelier dock and purposeful motion */
.atelier-dock { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: flex; height: calc(78px + env(safe-area-inset-bottom)); align-items: flex-start; justify-content: center; gap: clamp(12px, 5.7vw, 48px); padding: 9px 16px max(10px, env(safe-area-inset-bottom)); border: 0; background: transparent; pointer-events: none; }
.atelier-dock::before { position: absolute; z-index: -1; bottom: max(10px, env(safe-area-inset-bottom)); width: min(510px, calc(100% - 28px)); height: 61px; border: 1px solid rgba(91, 75, 60, .12); border-radius: 32px; background: rgba(250,248,243,.88); box-shadow: 0 15px 34px rgba(55,42,29,.16); backdrop-filter: blur(18px) saturate(125%); content: ""; }
.atelier-dock .nav-item { position: relative; z-index: 1; display: grid; width: 62px; min-width: 62px; min-height: 60px; align-content: center; justify-items: center; gap: 3px; padding: 3px 0; border: 0; border-radius: 20px; background: transparent; color: #938a80; pointer-events: auto; transition: color .2s ease, transform .2s cubic-bezier(.2,.8,.2,1), background .2s ease; }
.atelier-dock .nav-icon { display: grid; width: 25px; height: 25px; place-items: center; }
.atelier-dock .nav-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.atelier-dock .nav-item b { font-size: 9px; font-weight: 800; letter-spacing: .015em; }
.atelier-dock .nav-item:hover, .atelier-dock .nav-item:focus-visible { color: #3c332b; transform: translateY(-3px); }
.atelier-dock .nav-item.active { color: #2b2621; }
.atelier-dock .nav-item.active::after { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #a56852; content: ""; }
.atelier-dock .nav-item--course { width: 72px; min-width: 72px; height: 72px; min-height: 72px; margin-top: -26px; border: 5px solid var(--paper); border-radius: 50%; background: #2a2520; color: #fffaf4; box-shadow: 0 11px 23px rgba(46,36,27,.28); animation: atelier-breathe 3.8s ease-in-out infinite; }
.atelier-dock .nav-item--course .nav-icon { width: 27px; height: 27px; }
.atelier-dock .nav-item--course .nav-icon svg { width: 24px; height: 24px; stroke-width: 1.55; }
.atelier-dock .nav-item--course:hover, .atelier-dock .nav-item--course:focus-visible { color: white; transform: translateY(-5px) rotate(-3deg); }
.atelier-dock .nav-item--course.active { background: #a56852; }
.atelier-dock .nav-item--course.active::after { display: none; }
.app-page { transform-origin: 50% 0; }
.app-page.is-page-entering { animation: maison-page-in .36s cubic-bezier(.2,.8,.2,1) both; }
.maison-home [data-reveal] { transition: opacity .48s cubic-bezier(.2,.8,.2,1), transform .48s cubic-bezier(.2,.8,.2,1), filter .48s ease; }
.maison-home [data-reveal].is-reveal-ready { opacity: 0; filter: blur(1.5px); transform: translate3d(0,18px,0); }
.maison-home [data-reveal].is-revealed { opacity: 1; filter: blur(0); transform: translate3d(0,0,0); }
.maison-home .maison-steps article.is-reveal-ready { transform: translate3d(-11px,0,0); }
@keyframes maison-page-in { from { opacity: 0; transform: translate3d(0,12px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes atelier-breathe { 0%,100% { box-shadow: 0 11px 23px rgba(46,36,27,.28), 0 0 0 0 rgba(165,104,82,.12); } 50% { box-shadow: 0 14px 29px rgba(46,36,27,.31), 0 0 0 8px rgba(165,104,82,0); } }

/* Home choreography — deliberate movement, not decoration */
.maison-home { isolation: isolate; }
.maison-home::before { position: absolute; z-index: -1; top: 122px; right: -13vw; width: 38vw; min-width: 230px; max-width: 430px; aspect-ratio: 1; border: 1px solid rgba(165,104,82,.14); border-radius: 50%; content: ""; animation: maison-drift 16s ease-in-out infinite; pointer-events: none; }
.maison-hero__intro > * { animation: maison-rise .75s cubic-bezier(.2,.8,.2,1) both; }
.maison-hero__intro .maison-kicker { animation-delay: .04s; }
.maison-hero__intro h1 { animation-delay: .11s; }
.maison-hero__intro > p:not(.maison-kicker) { animation-delay: .19s; }
.maison-route { animation-delay: .27s; }
.maison-hero__art { isolation: isolate; overflow: visible; border-radius: 0; transform: translate3d(var(--art-x, 0), var(--art-y, 0), 0); transition: transform .65s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease; will-change: transform; }
.maison-hero__art::before { position: absolute; z-index: 2; top: 15px; right: 15px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; content: ""; opacity: .85; transform: scale(.72); animation: maison-orbit-pulse 3.5s ease-in-out infinite; pointer-events: none; }
.maison-hero__art::after { z-index: 1; }
.maison-hero__art img { transform: none; }
.maison-hero__art:hover { border-radius: 0; box-shadow: 0 28px 54px rgba(48,38,29,.21); }
.maison-hero__art:hover img { transform: none; }
.art-orbit { position: absolute; z-index: 2; bottom: 49px; left: -29px; width: 86px; height: 86px; border: 1px solid rgba(227,202,180,.72); border-radius: 50%; transform: rotate(0); animation: maison-orbit 13s linear infinite; pointer-events: none; }
.art-orbit::after { position: absolute; top: 11px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #e6b3a6; box-shadow: 0 0 0 5px rgba(230,179,166,.14); content: ""; }
.art-glint { position: absolute; z-index: 2; top: 0; right: 0; width: 42%; height: 80%; background: linear-gradient(118deg, transparent 15%, rgba(255,255,255,.15) 49%, transparent 63%); opacity: .35; transform: translateX(105%); animation: maison-glint 7s ease-in-out infinite; pointer-events: none; }
.maison-primary { position: relative; overflow: hidden; transform: translate3d(var(--magnet-x, 0), var(--magnet-y, 0), 0); will-change: transform; }
.maison-primary::before { position: absolute; top: -100%; left: -35%; width: 35%; height: 300%; background: rgba(255,255,255,.18); content: ""; transform: rotate(21deg) translateX(-390%); transition: transform .55s ease; }
.maison-primary:hover::before, .maison-primary:focus-visible::before { transform: rotate(21deg) translateX(560%); }
.maison-primary:active { transform: translate3d(0, 1px, 0) scale(.985); }
.maison-steps article { position: relative; overflow: hidden; transition: padding-left .28s cubic-bezier(.2,.8,.2,1), background .28s ease; }
.maison-steps article::after { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--maison-copper); content: ""; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.maison-steps article:hover { padding-left: 12px; background: rgba(233,224,211,.38); }
.maison-steps article:hover::after { width: 100%; }
.maison-daily { position: relative; overflow: hidden; }
.maison-daily::after { position: absolute; top: -107px; right: -80px; width: 207px; height: 207px; border: 1px solid rgba(40,48,41,.18); border-radius: 50%; content: ""; animation: maison-drift 13s ease-in-out infinite reverse; pointer-events: none; }
.maison-daily > * { position: relative; z-index: 1; }
.maison-quiet-button span { display: inline-grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(40,48,41,.4); border-radius: 50%; transition: transform .28s cubic-bezier(.2,.8,.2,1), background .28s ease, color .28s ease; }
.maison-quiet-button:hover span, .maison-quiet-button:focus-visible span { background: #283029; color: #d9ded4; transform: rotate(45deg) scale(1.08); }
.maison-exhibitions .exhibition-list a { transform: translateZ(0); }
.maison-exhibitions .exhibition-list a:hover i, .maison-exhibitions .exhibition-list a:focus-visible i { transform: translateY(-50%) rotate(45deg); }
@keyframes maison-rise { from { opacity: 0; filter: blur(2px); transform: translate3d(0,18px,0); } to { opacity: 1; filter: blur(0); transform: translate3d(0,0,0); } }
@keyframes maison-drift { 0%,100% { transform: translate3d(0,0,0) rotate(0); } 50% { transform: translate3d(-13px,17px,0) rotate(9deg); } }
@keyframes maison-orbit { to { transform: rotate(360deg); } }
@keyframes maison-orbit-pulse { 0%,100% { opacity: .42; transform: scale(.7); } 50% { opacity: .9; transform: scale(1); } }
@keyframes maison-glint { 0%,30% { transform: translateX(110%); } 49%,100% { transform: translateX(-290%); } }
@media (max-width: 420px) { .atelier-dock { gap: 3.3vw; } .atelier-dock .nav-item { width: 58px; min-width: 58px; } .atelier-dock .nav-item--course { width: 70px; min-width: 70px; } }
@media (max-height: 760px) and (min-width: 620px) { .maison-route > p { display: none; } }
@media (prefers-reduced-motion: reduce) { .atelier-dock .nav-item, .maison-primary, .maison-primary i, .maison-home [data-reveal], .maison-hero__art, .maison-hero__art img, .maison-steps article, .maison-quiet-button span { transition: none; } .atelier-dock .nav-item--course, .app-page.is-page-entering, .maison-home::before, .maison-hero__intro > *, .maison-hero__art::before, .art-orbit, .art-glint, .maison-daily::after { animation: none; } .maison-home [data-reveal].is-reveal-ready { opacity: 1; filter: none; transform: none; } }

/* Lesson route */
.lesson-body { min-height: 100vh; background: var(--ink); }
.lesson-shell { position: relative; min-height: 100svh; max-width: 720px; margin: 0 auto; background: var(--ink); }
.lesson-topbar { position: absolute; z-index: 2; top: 0; right: 0; left: 0; display: flex; align-items: center; padding: max(18px, env(safe-area-inset-top)) 20px 15px; color: white; }
.back-link, .lesson-close { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.3); color: white; font-size: 26px; text-decoration: none; }
.lesson-close { margin-left: auto; font-size: 29px; }
.lesson-top-copy { display: grid; gap: 3px; margin-left: 12px; color: white; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.lesson-top-copy small { color: rgba(255,255,255,.62); font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.lesson-progress { position: absolute; z-index: 4; top: 0; right: 0; left: 0; height: 3px; background: rgba(255,255,255,.18); }
.lesson-progress span { display: block; width: 20%; height: 100%; background: var(--warm); transition: width .35s ease; }
.lesson-screen { min-height: calc(100svh - 76px); padding-bottom: 86px; }
.lesson-art { min-height: 43svh; background-color: #e8e2d9; background-position: center; background-repeat: no-repeat; background-size: contain; }
.lesson-art--hero { background-image: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.48)), url("../assets/renoir-moulin.webp"); }
.lesson-art--bridge { min-height: 39svh; background-image: url("../assets/sisley-bridge.webp"); background-position: center; }
.lesson-content { min-height: calc(57svh - 76px); padding: 30px 20px; }
.lesson-content--dark { background: var(--ink); color: white; }
.lesson-content--paper { background: var(--paper); color: var(--ink); }
.lesson-content h1 { max-width: 610px; margin-bottom: 19px; font-size: clamp(38px, 9.5vw, 60px); }
.lesson-content--dark .lesson-lead { color: rgba(255,255,255,.7); }
.lesson-lead { max-width: 540px; margin-bottom: 22px; color: #625e59; font-size: 17px; line-height: 1.45; }
.lesson-content p:not(.eyebrow):not(.lesson-lead):not(.art-caption):not(.answer-note) { max-width: 530px; font-size: 15px; line-height: 1.5; }
.art-caption { margin: 28px 0 0; color: rgba(255,255,255,.52); font-size: 11px; line-height: 1.4; }
.art-caption--dark { color: var(--muted); }
.fact-grid { display: grid; gap: 10px; margin: 29px 0; }
.fact-grid div { padding: 15px; border-left: 3px solid var(--red); background: #ebe6de; }
.fact-grid strong { display: block; margin-bottom: 5px; font-family: Georgia, serif; font-size: 19px; }
.fact-grid span { color: #5e5954; font-size: 13px; line-height: 1.35; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; }
.timeline div { position: relative; padding: 18px 8px 0 0; border-top: 1px solid var(--ink); }
.timeline div::before { position: absolute; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); content: ""; }
.timeline b { display: block; margin-bottom: 8px; color: var(--red); font: 700 18px Georgia, serif; }
.timeline span { color: var(--muted); font-size: 10px; line-height: 1.25; }
.lesson-footer { position: fixed; z-index: 4; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; max-width: 720px; min-height: 76px; margin: 0 auto; padding: 14px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.13); background: rgba(29,29,27,.96); backdrop-filter: blur(10px); }
.screen-label { color: rgba(255,255,255,.62); font-size: 12px; }
.next-button { min-width: 158px; padding: 13px 16px; border: 0; border-radius: 2px; background: var(--warm); color: var(--ink); font-weight: 800; text-align: left; }
.next-button span { float: right; font-size: 18px; line-height: .8; }
.next-button:disabled { cursor: not-allowed; opacity: .42; }
.quiz-screen { display: flex; min-height: calc(100svh - 76px); flex-direction: column; justify-content: center; }
.answers { display: grid; gap: 10px; margin: 28px 0 16px; }
.answers button { padding: 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 2px; background: transparent; color: white; font-size: 15px; line-height: 1.3; text-align: left; transition: background .2s ease, border-color .2s ease; }
.answers button:hover { border-color: var(--warm); }
.answers button.is-correct { border-color: #77c49b; background: #1d5e45; }
.answers button.is-wrong { border-color: #d0806e; background: #703e35; }
.answer-note { min-height: 45px; color: var(--warm); font-size: 14px; line-height: 1.4; }
.completion { display: flex; min-height: calc(100svh - 76px); flex-direction: column; justify-content: center; }
.completion-mark { display: grid; width: 55px; height: 55px; margin-bottom: 22px; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 29px; }
.completion .lesson-link { margin-top: 14px; }
@media (min-width: 620px) { .lesson-content { padding: 56px 52px; } .lesson-art--hero { min-height: 53svh; } .lesson-art--bridge { min-height: 47svh; } .lesson-content h1 { font-size: 60px; } .fact-grid { grid-template-columns: 1fr 1fr; } }

/* Complete impressionism course */
.course-body { background: var(--paper); color: var(--ink); }
.course-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; max-width: 960px; margin: 0 auto; padding: 10px 18px; border-bottom: 1px solid var(--line); background: rgba(245,242,235,.93); backdrop-filter: blur(12px); }
.course-header .back-link { width: 34px; height: 34px; background: var(--ink); font-size: 21px; }
.course-brand { display: grid; margin-left: 11px; color: var(--ink); font: 700 17px/1 Georgia, serif; text-decoration: none; }
.course-brand span { margin-top: 4px; color: var(--muted); font: 10px/1.1 Inter, sans-serif; }
.course-progress { width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 11px; }
.course-progress b { color: var(--green); }
.course { max-width: 960px; margin: 0 auto; }
.course-hero { overflow: hidden; background: var(--ink); color: white; }
.course-hero-image { min-height: 360px; background: #e8e2d9 url("../assets/renoir-moulin.webp") center / contain no-repeat; }
.course-hero-copy { padding: 34px 21px 39px; }
.course-hero-copy h1 { margin-bottom: 14px; font-size: clamp(49px, 12vw, 85px); }
.course-hero-copy > p:not(.eyebrow) { max-width: 500px; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.48; }
.course-hero-copy .primary-button { max-width: 330px; margin-top: 25px; }
.course-map { display: flex; overflow-x: auto; gap: 21px; padding: 20px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.course-map a { display: grid; min-width: max-content; gap: 4px; color: var(--ink); font: 16px/1 Georgia, serif; text-decoration: none; }
.course-map b { color: var(--red); font: 700 10px/1 Inter, sans-serif; letter-spacing: .12em; }
.course-chapter { padding: 58px 20px; scroll-margin-top: 65px; }
.course-chapter > h2 { margin-bottom: 14px; font-size: clamp(42px, 10vw, 64px); }
.chapter-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; max-width: 650px; margin-bottom: 29px; color: #5e5954; font-size: 17px; line-height: 1.45; }
.chapter-intro p { margin: 0; }
.chapter-intro span { min-width: max-content; color: var(--red); font-size: 11px; font-weight: 700; }
.story-card { margin-top: 14px; padding: 25px 20px; }
.story-card h3, .quiz h3, .final-test h3 { margin: 0 0 12px; font: 400 clamp(28px, 7vw, 42px)/1.05 Georgia, serif; letter-spacing: -.04em; }
.story-card p { max-width: 650px; margin-bottom: 0; font-size: 15px; line-height: 1.55; }
.story-card--paper { background: #e8e2d9; }
.story-card--dark { background: var(--ink); color: white; }
.story-card--dark p:not(.eyebrow) { color: rgba(255,255,255,.74); }
.story-card img { display: block; width: 100%; max-width: 570px; margin-top: 24px; }
.story-card small { display: block; margin-top: 9px; color: rgba(255,255,255,.55); font-size: 10px; }
.course-chapter--dark { background: var(--ink); color: white; }
.course-chapter--dark .chapter-intro { color: rgba(255,255,255,.7); }
.formula-lesson { display: grid; gap: 2px; }
.formula-lesson > div { padding: 19px; background: #2a2a28; }
.formula-lesson b { color: var(--warm); font: 400 44px/1 Georgia, serif; }
.formula-lesson h3 { margin: -35px 0 10px 55px; font: 400 25px/1 Georgia, serif; }
.formula-lesson p { margin: 0; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.45; }
.featured-art { margin: 25px 0 0; }
.featured-art img { display: block; width: 100%; height: auto; max-height: min(78svh, 610px); object-fit: contain; object-position: center; }
.featured-art figcaption { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.course-chapter--dark .featured-art figcaption { color: rgba(255,255,255,.53); }
.cheatsheet { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24); }
.cheatsheet summary { padding: 18px 0; cursor: pointer; font: 400 24px/1 Georgia, serif; list-style: none; }
.cheatsheet summary::-webkit-details-marker { display: none; }
.cheatsheet summary span { float: right; color: var(--warm); }
.cheatsheet div { padding: 0 0 14px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.4; }
.cheatsheet p { margin: 10px 0; }
.quiz { margin-top: 30px; padding: 25px 20px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.course-chapter--dark .quiz { border: 0; background: #f1eee7; }
.quiz .answers, .final-test .answers { margin: 22px 0 12px; }
.quiz .answers button, .final-test .answers button { border-color: var(--line); color: var(--ink); }
.quiz .answers button.is-correct, .final-test .answers button.is-correct { border-color: #77c49b; background: #d7f0e1; color: #15432e; }
.quiz .answers button.is-wrong, .final-test .answers button.is-wrong { border-color: #cf978a; background: #f5dcd5; color: #68362c; }
.quiz .answer-note { min-height: 22px; color: var(--green); }
.artist-grid { display: grid; gap: 12px; }
.artist-card { display: grid; grid-template-columns: 39% 1fr; min-height: 170px; overflow: hidden; background: #e8e2d9; }
.artist-card img { width: 100%; height: 100%; min-height: 170px; background: #e8e2d9; object-fit: contain; object-position: center; }
.artist-card div { padding: 17px 15px; }
.artist-card .eyebrow { margin-bottom: 7px; font-size: 9px; }
.artist-card h3 { margin: 0 0 9px; font: 400 24px/1 Georgia, serif; letter-spacing: -.03em; }
.artist-card p:not(.eyebrow) { margin: 0; color: #615c55; font-size: 12px; line-height: 1.35; }
.notice { margin-top: 18px; padding: 18px; border-left: 3px solid var(--red); background: #ebe6de; font-size: 14px; line-height: 1.45; }
.notice b { display: block; margin-bottom: 4px; font-family: Georgia, serif; font-size: 18px; }
.memory-grid { display: grid; gap: 2px; }
.memory-grid article { display: grid; gap: 9px; padding: 19px; background: #2a2a28; }
.memory-grid b { color: var(--warm); font: 400 24px/1 Georgia, serif; }
.memory-grid span { font: 15px/1.4 Georgia, serif; }
.memory-grid small { color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.35; }
.final-test { max-width: 620px; padding: 24px 20px; background: #e8e2d9; }
.final-test article > span { display: block; margin-bottom: 20px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.final-result { padding: 10px 0; }
.final-result p:not(.eyebrow) { color: #5e5954; font-size: 15px; line-height: 1.45; }
.source-note { padding: 25px 20px 50px; background: #ddd8cf; color: #6b655d; font-size: 11px; line-height: 1.45; }
.source-note p { max-width: 670px; margin: 0; }
@media (min-width: 720px) { .course-hero { display: grid; grid-template-columns: 1.03fr .97fr; } .course-hero-image { min-height: 520px; } .course-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 54px; } .course-chapter { padding: 78px 60px; } .course-map { padding: 23px 60px; } .story-card { padding: 33px; } .formula-lesson { grid-template-columns: repeat(3, 1fr); } .artist-grid { grid-template-columns: repeat(2, 1fr); } .artist-card { grid-template-columns: 44% 1fr; } .memory-grid { grid-template-columns: repeat(2, 1fr); } .course-header { padding-right: 35px; padding-left: 35px; } }

/* Full-slide presentation viewer. Every screen is the original presentation slide. */
.deck-body { min-height: 100vh; background: #171716; color: #fff; }
.deck-app { display: grid; min-height: 100svh; grid-template-rows: auto 1fr auto; max-width: 1280px; margin: 0 auto; }
.deck-header { position: relative; z-index: 4; display: flex; align-items: center; min-height: 61px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid rgba(255,255,255,.12); background: #171716; }
.deck-header .back-link { width: 34px; height: 34px; background: #2a2a28; font-size: 21px; }
.deck-heading { display: grid; gap: 3px; margin-left: 11px; }
.deck-heading strong { font: 700 17px/1 Georgia, serif; }
.deck-heading span { color: rgba(255,255,255,.53); font-size: 10px; }
.deck-menu-button { margin-left: auto; padding: 9px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; background: transparent; color: white; font-size: 12px; }
.deck-stage { display: grid; min-height: 0; place-items: center; padding: 10px 0; }
.deck-image-wrap { position: relative; display: grid; width: 100%; height: 100%; min-height: 0; place-items: center; touch-action: pan-y; }
.deck-image { display: block; width: 100%; max-height: calc(100svh - 132px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.deck-tap { position: absolute; top: 0; bottom: 0; width: 25%; border: 0; background: transparent; }
.deck-tap--previous { left: 0; cursor: w-resize; }
.deck-tap--next { right: 0; cursor: e-resize; }
.deck-footer { display: flex; align-items: center; gap: 14px; padding: 10px 17px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.12); background: #171716; }
.deck-arrow { display: grid; width: 40px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; background: transparent; color: white; font-size: 21px; }
.deck-status { flex: 1; color: rgba(255,255,255,.72); font-size: 11px; text-align: center; }
.deck-track { height: 3px; margin-top: 8px; overflow: hidden; background: rgba(255,255,255,.18); }
.deck-track span { display: block; width: 0; height: 100%; background: var(--warm); transition: width .2s ease; }
.deck-menu { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; left: 0; padding: max(20px, env(safe-area-inset-top)) 20px; background: rgba(0,0,0,.56); backdrop-filter: blur(5px); }
.deck-menu::before { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 410px); background: #f5f2eb; content: ""; }
.deck-menu > * { position: relative; z-index: 1; display: flex; width: min(100%, 410px); margin-left: auto; }
.deck-menu-title { align-items: center; justify-content: space-between; padding: 8px 0 18px 20px; color: var(--ink); font: 400 31px/1 Georgia, serif; }
.deck-menu-title button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); font-size: 29px; }
.deck-menu > button { align-items: center; gap: 12px; padding: 16px 20px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.deck-menu > button b { color: var(--red); font-size: 11px; }
.deck-menu > button small { margin-left: auto; color: var(--muted); font-size: 11px; }
@media (min-width: 720px) { .deck-header { padding-right: 30px; padding-left: 30px; } .deck-stage { padding: 20px; } .deck-image { max-height: calc(100svh - 155px); border-radius: 2px; box-shadow: 0 18px 42px rgba(0,0,0,.32); } .deck-footer { padding-right: 30px; padding-left: 30px; } }

/* Interactive learning route */
.artist-player { max-width: 610px; margin: 0 auto; }.artist-player-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }.artist-player-top span { color: var(--muted); font-size: 12px; }.artist-progress { height: 3px; margin-bottom: 20px; background: #ded8ce; }.artist-progress i { display: block; height: 100%; background: var(--red); transition: width .3s ease; }.artist-art { margin: 0 0 25px; overflow: visible; background: transparent; }.artist-art img { display: block; width: 100%; height: auto; max-height: min(72svh, 600px); margin-inline: auto; object-fit: contain; object-position: center; }.artist-art figcaption { padding: 10px 12px 0; color: var(--muted); font-size: 11px; line-height: 1.35; }.artist-player h2 { margin-bottom: 17px; }.artist-text { color: #514d47; font-size: 17px; line-height: 1.55; }.artist-cue { margin: 22px 0; padding: 16px; border-left: 3px solid var(--red); background: #eee7dd; color: #514d47; font-size: 14px; line-height: 1.45; }.artist-cue b { display: block; margin-bottom: 5px; color: var(--ink); font-family: Georgia, serif; font-size: 18px; }.artist-controls { display: flex; gap: 10px; margin-top: 28px; }.artist-controls > button { min-width: 50px; padding: 15px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700; }.artist-controls > button:disabled { border-color: var(--line); color: var(--muted); }.artist-controls .artist-next { flex: 1; border-color: var(--ink); background: var(--ink); color: white; text-align: left; }
.theory-player-copy { display: grid; gap: 14px; }.theory-player-copy p { margin: 0; }.theory-player .theory-art img { min-height: 0; max-height: none; object-fit: contain; }
.theory-player--artist-gallery .theory-gallery { gap: 10px; padding: 0; background: transparent; }
.theory-player--artist-gallery .theory-gallery__item { background: #f5f0e8; }
.theory-player--artist-gallery .theory-gallery__item img { background: #eee7dc; }
.theory-player--artist-gallery .theory-gallery__caption { padding: 9px 10px 10px; font-size: 12px; line-height: 1.35; }
.theory-player--artist-profile .theory-art { margin: 0 0 16px; background: transparent; }
.theory-player--artist-profile .theory-art figcaption { padding: 9px 0 0; color: #6a6258; font-size: 12px; line-height: 1.4; }
.theory-player--artist-profile .theory-facts article { padding: 16px 18px; border: 1px solid #e1d3c6; background: #f7f2ea; box-shadow: none; }
.theory-player--artist-profile .theory-facts article::before { display: none; }
.theory-player--artist-profile .theory-facts strong { font-size: 22px; line-height: 1.08; }
.theory-player--artist-profile .theory-art-notes { display: grid; gap: 12px; }
.theory-player--artist-profile .theory-art-notes__row { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 8px; }
.theory-player--artist-profile .theory-art-notes__row b { margin: 0; color: #a85747; font: 700 15px/1.35 Georgia, serif; }
.theory-player--artist-profile .theory-art-notes__row p { margin: 0; color: #413d38; font-size: 14px; line-height: 1.45; }
.theory-art-image { position: relative; width: 100%; line-height: 0; }
.theory-art-image > img { display: block; width: 100%; height: auto; }
.theory-art-marker { position: absolute; top: var(--marker-top); left: var(--marker-left); display: grid; width: var(--marker-size); aspect-ratio: 1; place-items: center; box-sizing: border-box; border: max(2px, .24vw) solid #fff; border-radius: 50%; background: #9e3b26; color: #fff; font: 700 clamp(12px, 1.2vw, 18px)/1 Manrope, Inter, sans-serif; line-height: 1; pointer-events: none; }
.theory-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; background: var(--paper); }
.theory-gallery__item { min-width: 0; background: #fffaf2; }
.theory-gallery__item img { width: 100%; height: clamp(120px, 22vw, 210px); min-height: 0; max-height: none; object-fit: contain; background: #e9e4da; }
.theory-gallery__caption { margin: 0; padding: 7px 8px 8px; color: var(--ink); font-size: 11px; line-height: 1.25; overflow-wrap: break-word; }
.theory-art:has(.theory-gallery) { background: var(--paper); }
.theory-player-copy > .theory-art { margin: 0; }
.artist-self-prompt { padding: 13px 15px; border: 1px solid #e1d3c6; background: #f3ece2; color: #413a33; font-size: 14px; line-height: 1.45; }
.artist-observation { overflow: hidden; border: 1px solid #dfd3c0; background: #faf4e8; color: #514536; }
.artist-observation summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; }
.artist-observation summary::-webkit-details-marker { display: none; }
.artist-observation summary > span:first-child { display: grid; gap: 5px; }
.artist-observation summary small { color: #76634d; font: 700 10px/1.2 Manrope, Inter, sans-serif; letter-spacing: .07em; }
.artist-observation summary strong { color: #514536; font: 700 18px/1.1 Georgia, serif; }
.artist-observation__hide, .artist-observation[open] .artist-observation__show { display: none; }
.artist-observation[open] .artist-observation__hide { display: inline; }
.artist-observation summary:hover { background: #f4ead9; }
.artist-observation summary:focus-visible { outline: 2px solid var(--learn-copper); outline-offset: -3px; }
.artist-observation__icon { position: relative; display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #a58c6c; border-radius: 50%; color: #705b40; }
.artist-observation__icon::before, .artist-observation__icon::after { position: absolute; width: 11px; height: 1.5px; border-radius: 2px; background: currentColor; content: ''; transition: transform .2s ease; }
.artist-observation__icon::after { transform: rotate(90deg); }
.artist-observation[open] .artist-observation__icon::after { transform: rotate(0); }
.artist-observation__content { padding: 15px 16px 17px; border-top: 1px solid #dfd3c0; }
.artist-observation__content b { display: block; margin-bottom: 7px; color: #705b40; font: 400 20px/1.1 Georgia, serif; }
.artist-observation__content p { color: #514536; font-size: 15px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .artist-observation__icon::before, .artist-observation__icon::after { transition: none; } }
.theory-player .theory-art img[src$="degas.webp"] { width: auto; max-width: 100%; max-height: min(62vh, 420px); margin-inline: auto; }
.theory-player .theory-art:has(img[src$="degas.webp"]) { background: var(--paper); }
.theory-summary { padding: 22px; border: 1px solid #d6ccbd; background: linear-gradient(135deg, #e9dfcf, #f2ede4); box-shadow: 0 7px 18px rgba(58,46,30,.06); }.theory-summary__lead { color: #25211d; font: 400 27px/1.1 Georgia, serif; letter-spacing: -.035em; }.theory-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }.theory-tags span { padding: 7px 9px; border: 1px solid #ddc7bd; background: #fffaf2; color: #a85747; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }.theory-facts { display: grid; gap: 9px; }.theory-facts article { position: relative; padding: 20px 20px 19px 23px; border: 1px solid #d9d0c4; border-left: 5px solid #bd6454; background: #fffdf8; box-shadow: 0 5px 12px rgba(58,46,30,.045); }.theory-facts article::before { position: absolute; top: 17px; right: 18px; width: 7px; height: 7px; border-radius: 50%; background: #e4b3a6; content: ""; }.theory-facts b { display: block; margin-bottom: 9px; color: #a85747; font-size: 11px; font-weight: 900; letter-spacing: .12em; }.theory-facts strong { display: block; margin-bottom: 8px; color: #221f1b; font: 400 25px/1.02 Georgia, serif; letter-spacing: -.035em; }.theory-facts p { max-width: 500px; color: #413d38; font-size: 16px; font-weight: 500; line-height: 1.42; }.theory-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.theory-timeline span { padding: 12px 10px 10px; border-top: 3px solid #bd6454; background: #eae2d6; color: #4d4740; font-size: 12px; font-weight: 600; line-height: 1.3; }.theory-timeline b { display: block; margin-bottom: 5px; color: #221f1b; font: 700 18px/1 Georgia, serif; }.theory-details { border: 0; background: #1d1d1b; color: white; box-shadow: 0 10px 24px rgba(29,29,27,.16); }.theory-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 18px 16px 22px; cursor: pointer; list-style: none; }.theory-details summary::-webkit-details-marker { display: none; }.theory-details summary > span { display: grid; gap: 5px; font: 700 18px/1.1 Georgia, serif; }.theory-details summary small { color: #e4b3a6; font: 800 9px/1 Inter, sans-serif; letter-spacing: .15em; }.theory-details summary i { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #e4b3a6; border-radius: 50%; color: #e4b3a6; font-size: 20px; font-style: normal; animation: theory-pull 1.5s ease-in-out infinite; }.theory-details[open] summary i { transform: rotate(180deg); animation: none; }.theory-details-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1); }.theory-details[open] .theory-details-content { grid-template-rows: 1fr; }.theory-details-content > div { min-height: 0; overflow: hidden; }.theory-details p { margin: 0; padding: 0 22px 16px; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.52; }.theory-details p:first-child { padding-top: 5px; }.theory-details p:last-child { padding-bottom: 24px; }.theory-details p b { color: #f3c3b7; }.theory-details[open] { animation: theory-unroll .45s ease-out both; }@keyframes theory-pull { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }@keyframes theory-unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.theory-details summary:focus-visible { outline: 2px solid var(--learn-copper); outline-offset: 3px; }
.theory-player--mck .theory-details { display: none; }
@media (prefers-reduced-motion: reduce) { .theory-details summary i, .theory-details[open] { animation: none; } .theory-details-content { transition: none; } }
.theory-player h2 { font-size: clamp(34px, 8vw, 46px); letter-spacing: 0; font-kerning: normal; }.theory-player h2 .theory-title-number { display: inline-block; font: inherit; font-size: 1.14em; line-height: .9; vertical-align: -.035em; }

/* The history reading follows the two editorial spreads in the source presentation. */
.theory-player--history-reading { max-width: 1080px; }
.theory-player--history-reading .eyebrow { color: #a74431; }
.learning-view .theory-player--history-reading h2 { max-width: 900px; margin-bottom: 28px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.theory-player--history-reading .theory-player-copy { display: block; }
.history-reading { display: grid; gap: 30px; }
.history-reading__text { display: grid; width: 100%; max-width: 740px; gap: 24px; margin-inline: auto; }
.history-reading__text p { color: #292622; font-size: 18px; font-weight: 500; line-height: 1.6; }
.history-reading__text strong { color: #a74431; font-weight: 800; }
.history-reading__art { width: 100%; max-width: 740px; margin-inline: auto; }
.history-reading__art img { display: block; width: 100%; height: auto; object-fit: contain; }
.history-reading__art figcaption { display: grid; gap: 7px; padding: 16px 0 0; color: #55504b; font-size: 13px; line-height: 1.45; text-align: center; }
.history-reading__art figcaption strong { color: #292622; font-size: 15px; font-weight: 700; }
.history-reading__art figcaption em { margin-top: 12px; color: #6f6860; font-size: 14px; line-height: 1.45; }
@media (max-width: 760px) {
  .learning-view .theory-player--history-reading h2 { margin-bottom: 22px; }
  .history-reading { gap: 25px; }
  .history-reading__text { gap: 20px; }
  .history-reading__text p { font-size: 17px; line-height: 1.62; }
}

/* Theory navigation: a clear, tactile primary action without changing the lesson flow. */
.artist-player .artist-controls { align-items: stretch; gap: 12px; margin-top: 34px; }
.artist-player .artist-controls > button:first-child { display: grid; width: 56px; min-width: 56px; min-height: 58px; padding: 0; place-items: center; border: 1px solid rgba(49, 43, 37, .2); border-radius: 4px; background: transparent; font-size: 20px; transition: background .22s ease, border-color .22s ease, transform .22s ease; }
.artist-player .artist-controls > button:first-child:not(:disabled):hover { transform: translateX(-2px); border-color: var(--learn-olive); background: rgba(104, 113, 98, .08); }
.artist-player .artist-controls .artist-next { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 11px 10px 23px; border: 1px solid #737b59; border-radius: 5px; background: #737b59; color: #fbf8f1; font-size: 15px; font-weight: 700; letter-spacing: -.01em; text-align: left; cursor: pointer; transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.artist-player .artist-controls .artist-next i { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: #dfe2d3; color: #34392a; font-size: 21px; font-style: normal; font-weight: 500; transition: transform .22s ease, background .22s ease; }
.artist-player .artist-controls .artist-next:hover { transform: translateY(-2px); border-color: #596143; background: #596143; box-shadow: 0 8px 18px rgba(49, 43, 37, .13); }
.artist-player .artist-controls .artist-next:hover i { transform: translateX(2px); background: #fbf8f1; }
.artist-player .artist-controls .artist-next:active { transform: translateY(0); box-shadow: none; }
.artist-player .artist-controls button:focus-visible { outline: 2px solid var(--learn-copper); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .artist-player .artist-controls button, .artist-player .artist-controls .artist-next i { transition: none; } }
.theory-text-card { padding: 28px 22px; border-top: 3px solid var(--red); background: #fffdf8; box-shadow: 0 8px 22px rgba(29,29,27,.08); }
.theory-text-card h3 { margin: 0 0 17px; color: var(--ink); font: 400 clamp(28px, 7.5vw, 46px)/1.08 Georgia, serif; letter-spacing: -.04em; }
.theory-text-card p { margin: 0 0 14px; color: #514d47; font-size: 16px; line-height: 1.55; }
.theory-text-card p:last-child { margin-bottom: 0; }

/* Предыстория: редакционная карточка вопросов, отдельно от остальных тестов. */
.learning-body .quiz-app-card--editorial { max-width: 650px; margin: 25px auto 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #312b25; box-shadow: none; }
.quiz-top-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.quiz-step-back { padding: 0; border: 0; background: transparent; color: #514a43; font: 700 13px/1.3 Manrope, sans-serif; cursor: pointer; }
.quiz-step-back:hover { color: #a74431; }
.quiz-step-back:focus-visible { outline: 2px solid #a74431; outline-offset: 4px; }
.quiz-step-back[hidden] { display: none; }
.quiz-app-card--editorial h2 { max-width: 15ch; margin: 0 0 22px; color: #312b25; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(36px, 8vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: .98; }
.quiz-app-card--editorial .quiz-art { min-height: 0; aspect-ratio: auto; margin: 0 0 22px; padding: 0; place-items: center; overflow: visible; background: transparent; }
.quiz-app-card--editorial .quiz-art img { width: 100%; height: auto; max-height: min(65svh, 560px); object-fit: contain; object-position: center; }
.quiz-app-card--editorial .native-answers { gap: 8px; }
.quiz-app-card--editorial .native-answers:not(.native-answers--visual) button { min-height: 62px; padding: 13px 16px; border: 1px solid #d8d0c4; border-radius: 2px; background: #faf7f0; color: #39342d; font-size: 15px; line-height: 1.4; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.quiz-app-card--editorial .native-answers:not(.native-answers--visual) button:hover:not(:disabled) { transform: translateX(3px); border-color: #85896c; background: #fffdf8; }
.quiz-app-card--editorial .native-answers:not(.native-answers--visual) button span { display: flex; align-items: center; gap: 13px; }
.quiz-app-card--editorial .native-answers button b { width: 30px; height: 30px; flex-basis: 30px; background: #e7e7dc; color: #5f684c; font-size: 12px; }
.quiz-app-card--editorial .native-answers button.is-correct { border-color: #708064; background: #e7eee3; color: #334332; }
.quiz-app-card--editorial .native-answers button.is-correct b { background: #708064; color: #fffdf8; }
.quiz-app-card--editorial .native-answers button.is-wrong { border-color: #b77969; background: #f3e5df; color: #633d34; }
.quiz-app-card--editorial .native-answers button.is-wrong b { background: #b77969; color: #fffdf8; }
.quiz-app-card--editorial .native-answers--visual button { display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #d8d0c4; background: #faf7f0; color: #39342d; text-align: left; }
.quiz-app-card--editorial .native-answers--visual button img { display: block; width: 100%; height: 230px; background: #ded6c9; object-fit: contain; object-position: center; cursor: default; }
.quiz-app-card--editorial img[data-lightbox] { pointer-events: none; cursor: default; }
.quiz-app-card--editorial .native-answers--visual button > span { display: flex; align-items: center; gap: 9px; padding: 10px; }
.quiz-app-card--editorial .quiz-feedback { margin-top: 18px; padding: 17px 19px; border: 1px solid #d8d0c4; border-left: 3px solid #737b59; background: #e8e2d8; color: #403a33; }
.quiz-app-card--editorial .quiz-self-check { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quiz-app-card--editorial .quiz-self-check button { min-height: 42px; padding: 9px 12px; border: 1px solid #8b8d71; background: #f8f5ed; color: #414637; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.quiz-app-card--editorial .quiz-self-check button:hover { background: #e7eee3; }
.quiz-app-card--editorial .quiz-feedback strong { color: #596143; }
.quiz-app-card--editorial .quiz-feedback p { margin: 8px 0 0; }
.quiz-app-card--editorial .next-question { width: 100%; min-height: 58px; margin-top: 14px; padding: 0 19px; border: 0; background: #737b59; color: #fbf8f1; font-weight: 700; text-align: left; cursor: pointer; }
.quiz-app-card--editorial .next-question:hover { background: #596143; }
.quiz-app-card--editorial .quiz-end-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 14px; }
.quiz-app-card--editorial .quiz-end-actions[hidden] { display: none; }
.quiz-app-card--editorial .quiz-end-actions .next-question { margin-top: 0; }
.quiz-app-card--editorial .quiz-return-home { min-height: 58px; padding: 0 17px; border: 1px solid #c9c0b4; background: transparent; color: #5d574f; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.25; cursor: pointer; }
.quiz-app-card--editorial .quiz-return-home:hover { border-color: #737b59; background: #f4f0e7; color: #404638; }
.learning-view .quiz-mistake-list { display: grid; gap: 9px; margin: 24px 0 18px; }
.learning-view .quiz-mistake-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 16px; border: 1px solid #d8d0c4; background: #faf7f0; color: #39342d; }
.learning-view .quiz-mistake-list article > span { display: flex; align-items: center; gap: 13px; }
.learning-view .quiz-mistake-list article b { flex: 0 0 auto; color: #737b59; font-size: 13px; }
.learning-view .quiz-mistake-list article small { flex: 0 0 auto; color: #79746b; font-size: 12px; }
.learning-view .mistakes-continue { display: flex; min-height: 58px; align-items: center; justify-content: space-between; width: 100%; margin: 12px 0; padding: 0 19px; border: 0; background: #737b59; color: #fbf8f1; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.learning-view > .quiz-return-home { width: 100%; min-height: 48px; border: 1px solid #c9c0b4; background: transparent; color: #5d574f; font: inherit; cursor: pointer; }
@media (max-width: 560px) { .quiz-app-card--editorial .quiz-end-actions { grid-template-columns: 1fr; } .quiz-app-card--editorial .quiz-return-home { min-height: 48px; } }
@media (max-width: 430px) { .quiz-app-card--editorial .native-answers--visual button img { height: 170px; } }
@media (prefers-reduced-motion: reduce) { .quiz-app-card--editorial .native-answers button { transition: none; } }
.learning-body { min-height: 100vh; background: var(--paper); color: var(--ink); }.learning-app { min-height: 100svh; max-width: 760px; margin: 0 auto; }.learning-header { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 20px 12px; border-bottom: 1px solid var(--line); background: rgba(245,242,235,.94); backdrop-filter: blur(12px); }.learning-header .back-link { width: 34px; height: 34px; background: var(--ink); font-size: 21px; }.learning-header div { display: grid; gap: 2px; }.learning-header strong { font: 700 19px/1 Georgia, serif; }.learning-header span { color: var(--muted); font-size: 11px; }.learning-home, .learning-view { padding: 42px 20px 64px; }.learning-home h1, .learning-view h2 { max-width: 620px; font-size: clamp(42px, 11vw, 66px); }.learning-lead { max-width: 580px; color: #5e5954; font-size: 16px; line-height: 1.5; }.module-list { display: grid; gap: 10px; margin-top: 30px; }.module-card { display: grid; grid-template-columns: 36px 1fr auto; gap: 4px 12px; width: 100%; padding: 19px 17px; border: 1px solid var(--line); background: transparent; color: inherit; text-align: left; }.module-card:hover { border-color: var(--red); }.module-card span { grid-row: span 2; color: var(--red); font: 700 13px/1 Georgia, serif; }.module-card strong { font: 400 24px/1 Georgia, serif; }.module-card small { grid-column: 2 / 4; color: var(--muted); font-size: 12px; line-height: 1.35; }.module-card i { color: var(--green); font-size: 11px; font-style: normal; white-space: nowrap; }.text-back { padding: 0; border: 0; background: transparent; color: var(--red); font-weight: 700; }.theory-stack { display: grid; gap: 23px; margin-top: 30px; }.theory-card { margin: 0; background: white; box-shadow: 0 9px 24px rgba(29,29,27,.09); }.theory-card img { display: block; width: 100%; }.theory-card figcaption { padding: 10px 12px; color: var(--muted); font-size: 10px; }.start-test, .next-question, .reveal-answer { width: 100%; margin-top: 28px; padding: 16px; border: 0; background: var(--warm); color: var(--ink); font-weight: 800; text-align: left; }.quiz-app-card { margin-top: 25px; padding: 20px; background: var(--ink); color: white; }.quiz-app-card h2 { margin: 20px 0; font-size: clamp(30px, 8vw, 46px); }.quiz-art { display: grid; min-height: 230px; margin: 0 0 18px; padding: 10px; place-items: center; overflow: hidden; background: #11110f; }.quiz-art img { display: block; width: 100%; height: auto; max-height: 430px; object-fit: contain; object-position: center; transform: none; }.native-answers { display: grid; gap: 9px; }.native-answers button { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.32); background: transparent; color: white; text-align: left; }.native-answers button b { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.13); font-size: 11px; }.native-answers button.is-correct { border-color: #77c49b; background: #205b45; }.native-answers button.is-wrong { border-color: #d0806e; background: #703e35; }.quiz-feedback { margin-top: 17px; padding: 15px; border-left: 3px solid var(--warm); background: rgba(255,255,255,.09); color: rgba(255,255,255,.83); font-size: 14px; line-height: 1.45; }.quiz-feedback strong { color: var(--warm); }.quiz-feedback p { margin: 9px 0 0; }.next-question { background: var(--warm); }.reveal-answer { margin-top: 0; }
/* НОВОЕ ОФОРМЛЕНИЕ ТЕОРИИ */

.learning-body .theory-text-card {
    background: #252320 !important;
    color: #ffffff !important;
    padding: 40px !important;
    margin-bottom: 25px;
    border-left: 5px solid #e6b3a6;
    border-radius: 6px;
}

.learning-body .theory-text-card h3 {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 42px !important;
    color: #e6b3a6 !important;
}

.learning-body .theory-text-card p {
    font-family: "Manrope", Arial, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #f5f2eb !important;
}

/* Картины в заданиях на узнавание автора */
.native-answers--visual {
  max-width: 520px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.native-answers--visual button {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.native-answers--visual button img {
  display: block;
  width: 100%;
  height: 230px;
  background: #11110f;
  object-fit: contain;
  object-position: center;
  cursor: default;
}

.native-answers--visual button > span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
}

.native-answers--visual .answer-caption { display: block; min-width: 0; color: inherit; font: inherit; }
.native-answers--visual .answer-caption[hidden] { display: none; }

.native-answers--visual button b {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  font-size: 11px;
}

@media (max-width: 430px) {
  .native-answers--visual button img { height: 170px; }
}

.quiz-art img { cursor: default; }
.artwork-lightbox { position: fixed; z-index: 50; inset: 0; display: grid; padding: 24px; place-items: center; background: rgba(0, 0, 0, .9); }.artwork-lightbox img { display: block; width: min(94vw, 1500px); height: min(86svh, 1120px); max-width: none; max-height: none; object-fit: contain; box-shadow: 0 20px 55px rgba(0, 0, 0, .45); }.artwork-lightbox button { position: fixed; top: max(18px, env(safe-area-inset-top)); right: 22px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: white; color: #181816; font-size: 34px; line-height: 1; }.artwork-lightbox p { position: fixed; bottom: 18px; margin: 0; color: rgba(255, 255, 255, .7); font-size: 12px; }
/* =========================================
   ARTFOR EVERYONE — EDITORIAL DESIGN
   ========================================= */

/* Общий фон страницы */

.learning-body {
    background: #f5f2eb !important;
    color: #252320;
}

/* Убираем вид карточек */

.learning-body .theory-stack {
    gap: 0 !important;
}

.learning-body .theory-stack > .theory-text-card,
.learning-body .theory-stack > .theory-text-card:nth-child(even) {
    background: transparent !important;
    color: #252320 !important;

    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid #d7cfc4 !important;
    border-radius: 0 !important;

    padding: 35px 5px 45px !important;
    margin: 0 !important;
}

/* Убираем декоративную полосу слева */

.learning-body .theory-text-card::before {
    display: none !important;
}

/* Скрываем надписи "Материал 3", "Материал 4" */

.learning-body .theory-text-card > span:first-child {
    display: none !important;
}

/* Маленькие заголовки разделов */

.learning-body .theory-text-card > h3,
.learning-body .theory-text-card:nth-child(even) > h3 {
    font-family: "Manrope", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;

    letter-spacing: 0.15em !important;
    text-transform: uppercase;

    color: #a85747 !important;

    margin: 0 0 20px !important;
}

/* Основные заголовки материалов */

.learning-body .theory-text-card > p:first-of-type,
.learning-body .theory-text-card:nth-child(even) > p:first-of-type {
    font-family: "Cormorant Garamond", Georgia, serif !important;

    font-size: clamp(36px, 6vw, 54px) !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;

    letter-spacing: -0.025em;

    color: #252320 !important;

    margin: 0 0 25px !important;
}

/* Основной текст */

.learning-body .theory-text-card > p,
.learning-body .theory-text-card:nth-child(even) > p {
    font-family: "Manrope", sans-serif !important;

    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.85 !important;

    color: #514b44 !important;

    margin-bottom: 20px !important;
}

/* Сохраняем крупный стиль заголовка */

.learning-body .theory-text-card > p:first-of-type,
.learning-body .theory-text-card:nth-child(even) > p:first-of-type {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(36px, 6vw, 54px) !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;
    color: #252320 !important;
}

/* Адаптация для телефонов */

@media (max-width: 600px) {
    .learning-body .theory-stack > .theory-text-card {
        padding: 28px 0 36px !important;
    }

    .learning-body .theory-text-card > p {
        font-size: 15px !important;
        line-height: 1.75 !important;
    }
}

/* Learning home — shares the main screen's tactile editorial system. */
.learning-body { --learn-ink: #312b25; --learn-espresso: #26211d; --learn-paper: #f5f1e9; --learn-stone: #dfd6c8; --learn-taupe: #978675; --learn-olive: #687162; --learn-copper: #a56852; background: var(--learn-paper) !important; }
.learning-app { max-width: 880px; }
.learning-header { border-color: rgba(111, 95, 78, .18); background: rgba(245, 241, 233, .84); }
.learning-header .back-link { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--learn-espresso); color: white; font-size: 25px; line-height: 1; transition: transform .2s ease, background .2s ease; }
.learning-header .back-link:hover, .learning-header .back-link:focus-visible { background: var(--learn-copper); transform: translateX(-2px); }
.learning-header strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
.learning-header span { color: var(--learn-taupe); font-size: 11px; font-weight: 700; }
.learning-home.learning-maison { padding: 33px 20px 84px; }
.learning-maison h1, .learning-maison h2, .module-card strong { font-family: "Cormorant Garamond", Georgia, serif; }
.learning-maison__intro { max-width: 565px; padding: 4px 0 30px; }
.learning-maison__intro .maison-kicker { margin-bottom: 17px; }
.learning-maison h1 { max-width: 650px; margin: 0; color: var(--learn-ink); font-size: clamp(53px, 12.5vw, 94px); font-weight: 500; letter-spacing: -.067em; line-height: .83; }
.learning-maison .learning-lead { max-width: 460px; margin: 24px 0 0; color: #675e55; font-size: 15px; line-height: 1.58; }
.learning-maison__art { position: relative; display: block; margin: 0 -20px 56px; overflow: hidden; background: var(--learn-espresso); box-shadow: 0 22px 44px rgba(48, 38, 29, .15); }
.learning-maison__art img { display: block; width: 100%; height: auto; object-position: center; animation: learning-art-in 700ms ease both; }
.learning-maison__art figcaption { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: grid; gap: 5px; padding: 19px 20px; color: white; text-shadow: 0 1px 5px rgba(0,0,0,.7); }
.learning-maison__art figcaption span { color: #dbb5a0; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.learning-maison__art figcaption strong { max-width: 380px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.learning-route { max-width: 650px; margin: 0 auto; }
.learning-route__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.learning-route__heading .maison-kicker { margin-bottom: 12px; }
.learning-route__heading h2 { margin: 0; color: var(--learn-ink); font-size: clamp(40px, 9vw, 64px); font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.learning-route__heading > span { padding-bottom: 5px; color: var(--learn-taupe); font-size: 11px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.learning-route__track { height: 3px; margin: 25px 0 16px; overflow: hidden; background: var(--learn-stone); }
.learning-route__track i { display: block; width: 0; height: 100%; background: var(--learn-copper); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.learning-maison .module-list { gap: 0; margin-top: 0; border-top: 1px solid var(--learn-stone); }
.learning-maison .module-card { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 5px 10px; min-height: 96px; padding: 13px 7px; border: 0; border-bottom: 1px solid var(--learn-stone); background: transparent; color: var(--learn-ink); cursor: pointer; touch-action: manipulation; transition: padding .25s cubic-bezier(.2,.8,.2,1), background .25s ease; }
.learning-maison .module-card:hover, .learning-maison .module-card:focus-visible { padding-right: 12px; padding-left: 10px; background: rgba(220, 211, 196, .38); outline: 0; }
.learning-maison .module-card:active { opacity: .72; transform: none; }
.learning-maison .module-card__number { grid-column: 1; grid-row: 1 / 3; align-self: center; padding-top: 0; color: var(--learn-copper); font-family: Manrope, Arial, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.learning-maison .module-card__copy { display: contents; }
.learning-maison .module-card strong { grid-column: 2; grid-row: 1; display: block; min-height: 0; align-content: center; color: inherit; font-size: clamp(24px, 5.8vw, 32px); font-weight: 500; letter-spacing: -.035em; line-height: .98; text-align: left; text-wrap: balance; }
.learning-maison .module-card small { grid-column: 2; grid-row: 2; display: block; max-width: 58ch; margin: 0; color: #70675e; font-family: Manrope, Arial, sans-serif; font-size: 11px; line-height: 1.3; text-align: left; text-wrap: balance; }
.learning-maison .module-card__meta { grid-column: 3; grid-row: 1; display: grid; grid-auto-flow: column; align-items: center; justify-items: end; gap: 7px; padding-top: 0; color: var(--learn-olive); font-family: Manrope, Arial, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .02em; text-align: right; white-space: nowrap; }
.learning-maison .module-card__meta b { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--learn-espresso); color: white; font-size: 17px; font-weight: 400; transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease; }
.learning-maison .module-card:hover .module-card__meta b, .learning-maison .module-card:focus-visible .module-card__meta b { background: var(--learn-copper); transform: rotate(-28deg); }
.learning-maison button:focus-visible { outline: 2px solid var(--learn-copper); outline-offset: 4px; }
@keyframes learning-art-in { from { opacity: .2; } to { opacity: 1; } }
@media (min-width: 620px) { .learning-home.learning-maison { padding: 52px 34px 96px; } .learning-maison__intro { padding-bottom: 42px; } .learning-maison__art { margin-right: 0; margin-left: 0; } .learning-route { max-width: 660px; } .learning-maison .module-card { min-height: 88px; padding-top: 12px; padding-bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .learning-maison__art img, .learning-header .back-link, .learning-maison .module-card, .learning-route__track i, .learning-maison .module-card__meta b { animation: none; transition: none; } }

/* Course page — an editorial entrance to the learning route */
.maison-course { --course-ink: #312b25; --course-espresso: #26211d; --course-stone: #dfd6c8; --course-taupe: #978675; --course-copper: #a56852; --course-olive: #687162; padding: 20px 0 96px; color: var(--course-ink); }
.maison-course h1, .maison-course h2, .course-epoch strong { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; }
.course-maison__intro { max-width: 580px; padding: 4px 0 30px; }
.course-maison__intro .maison-kicker { margin-bottom: 18px; }
.course-maison__intro h1 { max-width: 600px; margin: 0; color: var(--course-ink); font-size: clamp(56px, 13vw, 92px); font-weight: 500; letter-spacing: -.067em; line-height: .82; }
.course-maison__lead { max-width: 420px; margin: 23px 0 0; color: #675e55; font-size: 15px; line-height: 1.58; }
.course-maison__art { position: relative; margin: 0 -20px 48px; overflow: hidden; background: var(--course-espresso); box-shadow: 0 20px 42px rgba(48, 38, 29, .15); }
.course-maison__art::after { position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(27, 23, 20, .78)); content: ""; pointer-events: none; }
.course-maison__art img { display: block; width: 100%; height: auto; max-height: min(72svh, 490px); object-fit: contain; object-position: center; animation: course-art-arrive 850ms ease both; }
.course-maison__art figcaption { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: grid; gap: 7px; padding: 19px 22px; color: #fffdfa; }
.course-maison__art figcaption span { color: #e2b9a5; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.course-maison__art figcaption strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.course-maison__route { max-width: 660px; margin: 0 auto; }
.course-maison__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.course-maison__heading .maison-kicker { margin-bottom: 12px; }
.course-maison__heading h2 { margin: 0; color: var(--course-ink); font-size: clamp(43px, 10vw, 66px); font-weight: 500; letter-spacing: -.06em; line-height: .87; }
.course-maison__heading .progress-count { padding-bottom: 5px; color: var(--course-taupe); font-size: 11px; font-weight: 750; white-space: nowrap; }
.maison-course .course-maison__track { height: 3px; margin: 24px 0 15px; background: var(--course-stone); }
.maison-course .course-maison__track span { width: 0; background: var(--course-copper); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.course-maison__epochs { border-top: 1px solid var(--course-stone); }
.course-epoch { display: grid; width: 100%; min-height: 113px; grid-template-columns: 30px minmax(0, 1fr) 34px; align-items: center; gap: 12px; padding: 19px 6px 19px 0; border: 0; border-bottom: 1px solid var(--course-stone); background: transparent; color: inherit; text-align: left; transition: padding .25s ease, background .25s ease; }
.course-epoch:hover, .course-epoch:focus-visible { padding-right: 12px; padding-left: 10px; background: rgba(220, 211, 196, .35); outline: 0; }
.course-epoch:focus-visible { box-shadow: inset 0 0 0 2px var(--course-copper); }
.course-epoch__number { align-self: start; padding-top: 6px; color: var(--course-copper); font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.course-epoch__copy { display: grid; gap: 6px; }
.course-epoch__copy strong { font-size: clamp(29px, 7vw, 39px); font-weight: 500; letter-spacing: -.045em; line-height: .92; }
.course-epoch__copy small { color: #70675e; font-size: 12px; line-height: 1.45; }
.course-epoch__arrow { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--course-olive); color: white; font-size: 18px; transition: transform .25s ease, background .25s ease; }
.course-epoch:hover .course-epoch__arrow, .course-epoch:focus-visible .course-epoch__arrow { background: var(--course-copper); transform: rotate(-28deg); }
.course-epoch__arrow--soon { background: transparent; color: var(--course-taupe); font-size: 13px; letter-spacing: .12em; }
@keyframes course-art-arrive { from { opacity: .25; } to { opacity: 1; } }
@media (min-width: 620px) { .maison-course { padding-top: 36px; } .course-maison__intro { padding-bottom: 39px; } .course-maison__art { margin-right: 0; margin-left: 0; } .course-maison__art img { height: min(56vw, 490px); } .course-maison__art figcaption { padding: 24px 27px; } .course-epoch { min-height: 126px; grid-template-columns: 42px minmax(0, 1fr) 42px; padding-top: 22px; padding-bottom: 22px; } }
@media (prefers-reduced-motion: reduce) { .course-maison__art img, .course-epoch, .course-epoch__arrow, .maison-course .course-maison__track span { animation: none; transition: none; } }
.theory-facts .theory-memory > b { color: #a85747; }
.theory-memory__lines { display: grid; gap: 9px; margin-top: 2px; }
.theory-memory__lines p { max-width: none; margin: 0; color: #413d38; font: 400 20px/1.16 Georgia, serif; }
.theory-memory__note { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid #e4ddd3; color: #5a544c; font-size: 14px; line-height: 1.45; }
.theory-source-kicker { margin: 0 0 5px; color: #a85747; font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.theory-player .theory-source-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.theory-source-item { min-width: 0; margin: 0; }
.theory-source-item > img { display: block; width: 100%; height: clamp(145px, 40vw, 235px); min-height: 0; max-height: none; object-fit: contain; background: transparent; }
.theory-source-item figcaption { display: grid; gap: 7px; padding: 10px 0 0; }
.theory-source-item figcaption strong { color: #a85747; font: 700 15px/1.2 Georgia, serif; }
.theory-source-item figcaption p { margin: 0; color: #413d38; font-size: 13px; line-height: 1.4; }
.theory-source-crop { position: relative; display: block; overflow: hidden; aspect-ratio: 226 / 169; background: transparent; }
.theory-source-crop img { position: absolute; top: var(--crop-top); left: var(--crop-left); display: block; width: 488%; max-width: none; height: auto; min-height: 0; max-height: none; }
.theory-source-memory { margin-top: 18px; padding: 12px 14px; border: 1px solid #e1d3c6; background: #f3ece2; color: #413a33; font-size: 13px; line-height: 1.4; }
.theory-source-memory__label { display: block; margin-bottom: 8px; color: #a85747; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.theory-source-memory__cues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.theory-source-memory__cues p { margin: 0; color: #413d38; font-size: 13px; line-height: 1.4; }
.theory-source-memory__cues strong { color: #7d4d3d; font-weight: 750; }
.theory-source-memory__note { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid #dfd2c5; color: #675e55; font-size: 11px; line-height: 1.4; }
.theory-player--source-comparison h2 { margin-bottom: 14px; font-size: clamp(30px, 5.6vw, 36px); letter-spacing: -.025em; line-height: 1.04; }
@media (min-width: 560px) { .theory-player .theory-source-pairs--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 359px) { .theory-source-memory__cues { grid-template-columns: 1fr; } }

.deck-player { max-width: 760px; padding-bottom: 34px; }
.deck-player > .eyebrow { margin: 0 0 9px; color: #a74431; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.deck-player > h2 { margin: 0 0 24px; color: #26231f; font: 700 clamp(34px, 7.6vw, 48px)/1.04 'Cormorant Garamond', Georgia, serif; letter-spacing: -.025em; }
.deck-artworks { display: grid; gap: 22px; margin-bottom: 27px; }
.deck-artworks--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.deck-artwork { position: relative; min-width: 0; margin: 0; }
.deck-artwork__letter { position: absolute; top: 8px; left: 8px; z-index: 1; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #f8f4ed; color: #382d27; font: 800 12px Manrope, sans-serif; box-shadow: 0 2px 9px #0002; }
.deck-artwork img { display: block; width: 100%; height: auto; max-height: 68svh; margin-inline: auto; object-fit: contain; object-position: center; cursor: zoom-in; }
.deck-artwork figcaption { display: grid; gap: 5px; padding: 11px 3px 0; color: #675f56; font-size: 12px; line-height: 1.4; text-align: center; }
.deck-artwork figcaption strong { color: #332d27; font-size: 13px; font-weight: 700; }
.deck-artwork figcaption em { max-width: 56ch; margin: 9px auto 0; color: #655d55; font-size: 13px; line-height: 1.5; }
.deck-artworks--gallery .deck-artwork img { max-height: 36svh; }
.deck-artworks--featured .deck-artwork:first-child { grid-column: 1 / -1; }
.deck-artworks--featured .deck-artwork:first-child img { max-height: 58svh; }
.deck-artworks--gallery .deck-artwork figcaption { font-size: 11px; }
.deck-artworks--gallery .deck-artwork figcaption strong { font-size: 12px; }
.deck-reading__copy { display: grid; gap: 19px; color: #292622; }
.deck-reading__copy p { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.62; }
.deck-reading__copy strong { color: #a74431; font-weight: 800; }
.deck-reading__copy p:has(> strong:only-child) { margin-top: 7px; }
.deck-roster { display: grid; gap: 0; border-top: 1px solid #d7cec3; }
.deck-roster__row { display: grid; grid-template-columns: minmax(84px, 26%) minmax(0, 1fr); align-items: start; gap: 16px; padding: 17px 0; border-bottom: 1px solid #d7cec3; }
.deck-roster__row img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; object-position: top center; }
.deck-roster__row > div { display: grid; gap: 8px; }
.deck-roster__row h3 { margin: 0; color: #a74431; font: 700 23px/1.05 'Cormorant Garamond', Georgia, serif; }
.deck-roster__row p { font-size: 14px; line-height: 1.5; }
.deck-observation { border-top: 1px solid #cfb5a3; border-bottom: 1px solid #cfb5a3; }
.deck-observation summary { display: flex; justify-content: space-between; align-items: center; min-height: 54px; color: #923c2b; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.deck-observation summary::-webkit-details-marker { display: none; }
.deck-observation[open] summary span { transform: rotate(180deg); }
.deck-observation > div { padding: 0 0 18px; }
.deck-question__choices { display: grid; gap: 8px; }
.deck-question__choices button { display: flex; gap: 14px; align-items: center; width: 100%; min-height: 58px; padding: 12px 14px; border: 1px solid #dbd1c4; background: #fbf8f2; color: #332d27; font: 500 14px/1.45 Manrope, sans-serif; text-align: left; }
.deck-question__choices button b { display: grid; flex: none; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #ece7dc; font-size: 12px; }
.deck-question__choices button.is-correct { border-color: #7d8c69; background: #ecf0e5; }
.deck-question__choices button.is-wrong { border-color: #b45f4c; background: #f7e9e3; }
.deck-question__choices button[aria-pressed="true"] { border-color: #a74431; background: #f2e5da; }
.deck-question__reveal { width: 100%; padding: 16px; border: 1px solid #a74431; background: #f5ebe3; color: #923c2b; font: 700 14px Manrope, sans-serif; }
.deck-question__reveal:disabled { opacity: .55; cursor: not-allowed; }
.deck-question__feedback { display: grid; gap: 10px; margin-top: 18px; padding: 18px; border-top: 2px solid #a74431; background: #f5efe7; color: #2e2a25; font-size: 15px; line-height: 1.55; }
.deck-question__feedback[hidden] { display: none; }
.deck-question__feedback > strong { color: #a74431; font-size: 18px; }
.deck-question__feedback p { margin: 0; }
.deck-player .artist-controls { margin-top: 29px; }
.deck-player [hidden] { display: none !important; }
@media (max-width: 430px) { .deck-artworks--gallery { gap: 16px 10px; } .deck-artworks--gallery .deck-artwork img { max-height: 29svh; } .deck-reading__copy p { font-size: 16px; } }

/* Presentation-faithful MCK lesson: image before copy, with clear editorial hierarchy. */
.mck-player { max-width: 1080px; }
.mck-reading { display: grid; gap: 24px; }
.mck-reading > .mck-kicker { margin: 0; color: #a74431; font: 800 12px/1.25 Manrope, sans-serif; letter-spacing: .1em; }
.mck-reading > h2 { max-width: 900px; margin: 0; color: #292622; font: 600 clamp(36px, 6vw, 58px)/1.02 'Cormorant Garamond', Georgia, serif; letter-spacing: -.025em; }
.mck-reading__lead, .mck-lead { max-width: 70ch; margin: 0; color: #4a433d; font: 500 18px/1.6 Manrope, sans-serif; }
.mck-reading--overview > .mck-lead { position: relative; max-width: 64ch; padding: 26px 30px 26px 34px; border: 1px solid #d6b5a4; border-left: 6px solid #a74431; background: linear-gradient(110deg, #f8eee7 0%, #f2e5da 100%); box-shadow: 0 10px 28px rgb(76 49 36 / 8%); color: #302721; font: 600 clamp(21px, 2.5vw, 27px)/1.45 Manrope, sans-serif; letter-spacing: -.015em; }
.mck-reading--overview > .mck-lead::before { display: block; margin-bottom: 10px; color: #a74431; content: 'ТРИ ВОПРОСА К КАРТИНЕ'; font: 800 11px/1.2 Manrope, sans-serif; letter-spacing: .14em; }
.mck-art { display: block; min-width: 0; margin: 0; }
.mck-art img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; object-position: center; background: #e8e2d8; }
.mck-art figcaption { margin-top: 10px; color: #655c53; font: 600 13px/1.45 Manrope, sans-serif; }
.mck-art--hero img { width: auto; height: auto; max-width: 100%; max-height: min(68svh, 560px); margin-inline: auto; aspect-ratio: auto; }
.mck-copy { display: grid; max-width: 74ch; gap: 16px; margin-inline: auto; color: #292622; }
.mck-copy p { margin: 0; font: 500 17px/1.65 Manrope, sans-serif; }
.mck-copy p strong { color: #a74431; font-weight: 800; }
.mck-copy p span { color: #292622; }
.mck-copy p:has(> strong:first-child) { padding-left: 15px; border-left: 2px solid #c78369; }
.titles-reading { gap: 22px; }
.titles-reading > .mck-kicker { color: #a74431; }
.titles-reading > h2 { max-width: 820px; }
.titles-reading > .mck-art { padding-bottom: 4px; }
.titles-reading > .mck-art img { width: auto; height: auto; max-width: 100%; max-height: min(58svh, 520px); margin-inline: auto; background: transparent; }
.titles-reading > .mck-art figcaption { padding-top: 2px; text-align: center; }
.titles-reading > .mck-copy { width: 100%; gap: 17px; }
.titles-reading > .mck-copy p { max-width: 70ch; font-size: clamp(16px, 2vw, 18px); line-height: 1.68; }
.titles-reading > .mck-copy p strong { display: inline; color: #a74431; font-weight: 800; }
.titles-reading > .mck-copy p:has(> strong:first-child) { padding: 0; border: 0; }
.titles-reading > .mck-copy p:has(> strong:first-child) strong { display: block; margin-bottom: 5px; font: 700 19px/1.25 'Cormorant Garamond', Georgia, serif; }
.titles-reading > .mck-copy p:has(> strong:first-child) span { color: #292622; }
.titles-reading > .mck-copy p:has(> strong:first-child:first-child) { padding-top: 3px; }
.titles-reading__lead { max-width: 760px; padding: 18px 20px; background: #eee7dc; color: #37312b; }
.titles-reading__lead p { margin: 0; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.titles-method { display: grid; gap: 0; max-width: 820px; border-top: 1px solid #d7cec3; }
.titles-method__step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 17px 0; border-bottom: 1px solid #d7cec3; }
.titles-method__step > span { color: #a74431; font: 700 14px/1.4 Manrope, sans-serif; }
.titles-method__step h3 { margin: 0 0 5px; color: #332d27; font: 600 25px/1.05 'Cormorant Garamond', Georgia, serif; }
.titles-method__step p, .titles-method__note { margin: 0; color: #514a43; font: 500 15px/1.55 Manrope, sans-serif; }
.titles-method__note { max-width: 760px; padding: 16px 18px; background: #f0e8dd; }
.titles-reading:has(.titles-card) { max-width: 760px; }
.titles-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.titles-card__art { min-width: 0; margin: 0; }
.titles-card__art > div { position: relative; display: grid; width: fit-content; min-width: 0; max-width: 100%; margin-inline: auto; }
.titles-card__art img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(66svh, 650px); margin: 0 auto; object-fit: contain; background: transparent; }
.titles-card__art figcaption { margin-top: 10px; color: #655c53; font-size: 12px; line-height: 1.4; text-align: center; }
.titles-card__pin { position: absolute; top: var(--pin-top); left: var(--pin-left); z-index: 2; display: grid; width: clamp(34px, 4vw, 48px); height: clamp(34px, 4vw, 48px); padding: 0; place-items: center; border: 3px solid #fffaf2; border-radius: 50%; background: #aa432d; color: #fffaf2; font: 700 clamp(16px, 2vw, 22px)/1 Manrope, sans-serif; cursor: pointer; transform: translate(-50%, -50%); box-shadow: 0 4px 12px rgba(60, 31, 20, .22); transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.titles-card__pin:hover, .titles-card__pin[aria-expanded="true"] { background: #fff8ee; color: #8e3828; transform: translate(-50%, -50%) scale(1.1); }
.titles-card__pin:focus-visible { outline: 2px solid #a74431; outline-offset: 4px; }
.titles-card__art .artists-art__hint { margin: 9px 0 0; color: #655c53; font: 500 13px/1.5 Manrope, sans-serif; }
.titles-card__copy { display: grid; align-content: start; gap: 16px; min-width: 0; }
.titles-card [hidden] { display: none !important; }
.titles-card__label { margin: 0; color: #a74431; font: 800 12px/1.25 Manrope, sans-serif; letter-spacing: .1em; }
.titles-card__author { padding: 16px 18px; border: 2px solid #c9a96e; background: #f7eedd; color: #3b3326; }
.titles-card__author strong { display: block; color: #8a6420; font: 700 clamp(24px, 3.1vw, 31px)/1.05 'Cormorant Garamond', Georgia, serif; }
.titles-card__author p { margin: 5px 0 0; font: 600 15px/1.45 Manrope, sans-serif; }
.titles-card__author button { margin-top: 13px; padding: 0; border: 0; background: transparent; color: #a74431; font: 700 14px/1.3 Manrope, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.titles-card__prompt { display: grid; gap: 7px; padding: 15px 0; border-top: 1px solid #d9cec1; border-bottom: 1px solid #d9cec1; }
.titles-card__prompt span { color: #a74431; font: 800 10px/1.2 Manrope, sans-serif; letter-spacing: .12em; }
.titles-card__prompt p { margin: 0; color: #39332d; font: 600 17px/1.35 Manrope, sans-serif; }
.titles-card__prompt button { width: fit-content; padding: 0; border: 0; background: transparent; color: #a74431; font: 700 14px/1.3 Manrope, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.titles-card__prompt button:focus-visible, .titles-card__author button:focus-visible { outline: 2px solid #a74431; outline-offset: 4px; }
.titles-card__answer { display: grid; gap: 15px; }
.titles-card__step { display: grid; gap: 4px; }
.titles-card__step span { color: #a74431; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.titles-card__step p { margin: 0; color: #4e4740; font-size: 14px; line-height: 1.45; }
.titles-card__copy h3 { margin: 0; color: #292622; font: 700 clamp(31px, 4vw, 43px)/1.04 'Cormorant Garamond', Georgia, serif; letter-spacing: -.025em; }
.titles-card__details { display: grid; gap: 8px; }
.titles-card__details p { margin: 0; color: #413b35; font-size: 15px; line-height: 1.45; }
.titles-card__keyword { margin: 0; padding: 12px 14px; background: #eeeae4; color: #5f5952; font-size: 14px; }
.titles-card__keyword strong { color: #a74431; }
.titles-card__story { margin: 0; color: #514a43; font-size: 14px; line-height: 1.5; }
.titles-card__story strong { color: #a74431; }
/* Автор и название — одна тёплая карточка */
.titles-card--interactive .titles-card__author:not([hidden]) { border-bottom: 0; padding-bottom: 8px; }
.titles-card--interactive .titles-card__author:not([hidden]) + .titles-card__answer:not([hidden]) { margin-top: -16px; padding: 14px 18px 18px; gap: 12px; border: 2px solid #c9a96e; border-top: 1px solid #e6d5ae; background: #f7eedd; }
.titles-card--interactive .titles-card__answer h3 { margin: 0; color: #292622; font: 600 clamp(26px, 3.4vw, 32px)/1.1 'Cormorant Garamond', Georgia, serif; letter-spacing: -.01em; }
.titles-card--interactive .titles-card__answer .titles-card__keyword { padding: 0; background: transparent; color: #6b5f4d; }
.titles-card--interactive .titles-card__answer .titles-card__keyword span { margin-right: 6px; }
.titles-card--interactive .titles-card__answer .titles-card__story { color: #4a4036; }
@media (max-width: 700px) { .titles-card { gap: 20px; } .titles-card__art img { max-height: min(58svh, 560px); } .titles-card__copy { gap: 14px; } }
.mck-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 12px; }
.mck-principle { display: grid; align-content: start; gap: 12px; padding-top: 15px; border-top: 1px solid #c9b8a8; }
.mck-principle__number { color: #a74431; font: 800 12px/1 Manrope, sans-serif; letter-spacing: .08em; }
.mck-principle h3 { margin: 0; color: #292622; font: 600 clamp(24px, 3vw, 34px)/1.05 'Cormorant Garamond', Georgia, serif; }
.mck-principle > strong { color: #a74431; font: 800 17px/1.3 Manrope, sans-serif; }
.mck-principle > p { margin: 0; color: #39342f; font: 500 15px/1.55 Manrope, sans-serif; }
.mck-principle small { color: #6b6158; font: 500 12px/1.5 Manrope, sans-serif; }
.mck-principle small b { color: #8f432f; }
.mck-reading__notes { display: grid; gap: 11px; margin-top: 8px; padding-top: 17px; border-top: 1px solid #d8cec0; }
.mck-reading__notes p { margin: 0; color: #4d463e; font: 500 14px/1.55 Manrope, sans-serif; }
.mck-reading__notes p strong { color: #a74431; font-weight: 800; }
.mck-comparisons { display: grid; gap: 16px; margin-top: 6px; }
.mck-comparisons > h3 { margin: 0; color: #a74431; font: 800 12px/1.3 Manrope, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.mck-comparisons__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.mck-art--comparison img { aspect-ratio: 1.45; }
.mck-comparison-copy { display: grid; align-content: start; gap: 7px; }
.mck-comparison-copy h4 { margin: 0; color: #a74431; font: 700 21px/1.1 'Cormorant Garamond', Georgia, serif; }
.mck-comparison-copy p { margin: 0; color: #4b443d; font: 500 13px/1.5 Manrope, sans-serif; }
.mck-traps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
.mck-trap { display: grid; align-content: start; gap: 10px; }
.mck-art--trap img { aspect-ratio: 1.5; }
.mck-trap h3 { margin: 0; color: #a74431; font: 700 22px/1.1 'Cormorant Garamond', Georgia, serif; }
.mck-trap > p { margin: 0; color: #403a34; font: 500 14px/1.55 Manrope, sans-serif; }
.titles-reading:has(.mck-traps--four) { max-width: 980px; }
.mck-trap--twin .mck-trap__what { color: #292622; font: 600 15px/1.45 Manrope, sans-serif; }
.mck-trap--twin .mck-trap__credit { display: grid; gap: 3px; margin: 0; color: #4a433d; font: 600 12px/1.4 Manrope, sans-serif; }
.mck-trap--twin .mck-trap__credit span { color: #8a8278; font-weight: 500; }
.titles-reading > .mck-copy p.mck-twin-memory { max-width: none; padding: 0 !important; border: 0 !important; }
.titles-reading > .mck-copy p.mck-twin-memory strong { display: inline !important; margin: 0 !important; color: #a74431; font: inherit !important; font-weight: 800 !important; }
@media (min-width: 720px) { .mck-traps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; } }
.mck-summary { display: grid; gap: 27px; }
.mck-summary__table { overflow: hidden; border: 1px solid #d8cec0; background: #fffdf8; }
.mck-summary__row { display: grid; grid-template-columns: 1.05fr 1.1fr 1.1fr 1.45fr; }
.mck-summary__row > * { min-width: 0; padding: 15px 16px; border-right: 1px solid #ded6cc; border-bottom: 1px solid #ded6cc; color: #514a43; font: 500 15px/1.45 Manrope, sans-serif; }
.mck-summary__row > :last-child { border-right: 0; }
.mck-summary__row:last-child > * { border-bottom: 0; }
.mck-summary__row--head > * { background: #f0ece5; color: #292622; font: 700 17px/1.3 'Cormorant Garamond', Georgia, serif; }
.mck-summary__row--head > :last-child { background: #a74431; color: #fffdf8; }
.mck-summary__question { background: #faf7f1; color: #302c27 !important; font-weight: 800 !important; }
.mck-summary__cell--impressionism { background: #f8eee8; color: #342c27 !important; font-weight: 700 !important; }
.mck-summary__era { display: none; }
.mck-summary__rules { display: grid; gap: 11px; }
.mck-summary__rules h3 { margin: 0 0 2px; color: #a74431; font: 800 20px/1.3 Manrope, sans-serif; }
.mck-summary__rules p { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; margin: 0; color: #302c27; font: 500 16px/1.55 Manrope, sans-serif; }
.mck-summary__rules p b { color: #a74431; font-weight: 800; }
.mck-rules { display: grid; max-width: 74ch; gap: 0; margin-inline: auto; border-top: 1px solid #c9b8a8; }
.mck-rules p { margin: 0; padding: 17px 0; border-bottom: 1px solid #d8cec0; color: #39342f; font: 600 18px/1.55 Manrope, sans-serif; }
.quiz-app-card--mck { background: #f8f4ec; color: #292622; }
.quiz-app-card--mck h2 { margin: 0 0 20px; color: #292622; font: 600 clamp(30px, 5vw, 46px)/1.06 'Cormorant Garamond', Georgia, serif; }
.quiz-app-card--mck .quiz-art { aspect-ratio: auto; min-height: 0; padding: 0; background: #e8e2d8; }
.quiz-app-card--mck .quiz-art img { display: block; width: 100%; height: auto; max-height: min(65svh, 560px); object-fit: contain; object-position: center; }
.quiz-app-card--mck .quiz-art figcaption { padding: 9px 3px 0; color: #655c53; font: 600 13px/1.45 Manrope, sans-serif; }
.quiz-app-card--mck .native-answers { margin-top: 18px; }
.quiz-app-card--mck .native-answers button { color: #39342d; border-color: #d8d0c4; background: #fbf8f2; }
.quiz-app-card--mck .native-answers button.is-correct { border-color: #7d8c69; background: #ecf0e5; }
.quiz-app-card--mck .native-answers button.is-wrong { border-color: #b45f4c; background: #f7e9e3; }
.quiz-app-card--mck .native-answers button b { background: #ece7dc; }
.quiz-app-card--mck .native-answers--visual { max-width: none; }
.quiz-app-card--mck .native-answers--visual button img { height: auto; aspect-ratio: 1.5; background: #e8e2d8; object-fit: contain; }
.quiz-app-card--mck .native-answers--visual button > span { align-items: flex-start; min-height: 48px; color: #39342d; font: 500 12px/1.45 Manrope, sans-serif; }
.quiz-app-card--mck .native-answers--visual button > span b { flex: 0 0 24px; }
.quiz-app-card--mck .quiz-feedback { border-left-color: #a74431; background: #eee8dd; color: #3e3933; }
.quiz-app-card--mck .quiz-feedback strong { color: #a74431; }
.quiz-app-card--mck .next-question { background: #7d8563; color: #fffdf8; }
@media (max-width: 700px) {
  .mck-reading { gap: 20px; }
  .mck-reading > h2 { font-size: clamp(34px, 10vw, 46px); }
  .mck-summary { gap: 22px; }
  .mck-summary__table { display: grid; gap: 12px; overflow: visible; border: 0; background: transparent; }
  .mck-summary__row.mck-summary__row--head { display: none; }
  .mck-summary__row { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 1px solid #d8cec0; background: #fffdf8; }
  .mck-summary__row > * { border-right: 0; border-bottom: 1px solid #e3dbd0; }
  .mck-summary__question { padding: 13px 15px; background: #f0ece5; font-size: 16px !important; }
  .mck-summary__cell { display: grid; grid-template-columns: minmax(94px, .7fr) minmax(0, 1.6fr); gap: 10px; padding: 11px 15px; font-size: 13px; }
  .mck-summary__era { display: block; color: #75685d; font: 800 10px/1.5 Manrope, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
  .mck-summary__cell--impressionism .mck-summary__era { color: #a74431; }
  .mck-summary__rules { gap: 10px; }
  .mck-summary__rules h3 { font-size: 18px; }
  .mck-summary__rules p { grid-template-columns: 22px minmax(0, 1fr); gap: 7px; font-size: 14px; }
  .mck-art--hero img { aspect-ratio: 1.3; }
  .mck-copy p { font-size: 16px; line-height: 1.62; }
  .mck-principles { grid-template-columns: 1fr; gap: 22px; }
  .mck-principle { grid-template-columns: 38px minmax(0, 1fr); gap: 8px 12px; }
  .mck-principle__number { grid-row: span 3; padding-top: 5px; }
  .mck-principle h3, .mck-principle > strong, .mck-principle > p, .mck-principle small { grid-column: 2; }
  .mck-comparisons__grid { gap: 16px; }
  .mck-art--comparison img { aspect-ratio: 1.2; }
  .mck-traps { gap: 22px 12px; }
  .mck-art--trap img { aspect-ratio: 1.05; }
  .mck-trap h3 { font-size: 19px; }
  .mck-trap > p { font-size: 12px; }
}
@media (max-width: 430px) {
  .mck-comparisons__grid { grid-template-columns: 1fr; }
  .mck-art--comparison img { aspect-ratio: 1.45; }
  .quiz-app-card--mck .native-answers--visual button img { height: auto; }
}

.quiz-app-card--editorial .native-answers button.is-wrong { border-color: #c28a7e; background: #f5ece8; color: #714a42; }
.quiz-app-card--editorial .native-answers button.is-wrong b { background: #c28a7e; color: #fffdf8; }
.quiz-app-card--editorial .quiz-feedback.quiz-feedback--wrong { border-color: #e1d2ca; border-left-color: #bf796b; background: #f4ebe7; }
.quiz-app-card--editorial .quiz-feedback.quiz-feedback--wrong strong { color: #a45d50; }

/* Artist lessons share the reading and quiz system used by the first two modules. */
.artists-reading .mck-copy { width: 100%; margin-inline: 0; }
.artists-intro-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.artists-intro-strip img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #e8e2d8; }
.artists-intro { display: grid; gap: 12px; max-width: 560px; padding-top: 2px; }
.artists-intro p { margin: 0; }
.artists-intro__count { color: #a74431; font: 700 24px/1.1 'Cormorant Garamond', Georgia, serif; }
.artists-intro__task { color: #292622; font: 500 18px/1.55 Manrope, sans-serif; }
.artists-intro__note { padding-left: 16px; border-left: 3px solid #c78369; color: #5b544c; font: 500 16px/1.6 Manrope, sans-serif; }
.titles-intro { display: grid; gap: 14px; max-width: 560px; }
.titles-intro p { margin: 0; }
.titles-intro__lead { color: #292622; font: 600 clamp(28px, 5vw, 36px)/1.1 'Cormorant Garamond', Georgia, serif; letter-spacing: -.02em; }
.titles-intro__task { color: #39342f; font: 500 19px/1.55 Manrope, sans-serif; }
.titles-intro__note { padding-left: 16px; border-left: 3px solid #c78369; color: #a74431; font: 700 17px/1.5 Manrope, sans-serif; }
.artists-reading [data-lightbox] { cursor: zoom-in; }
.artists-reading [data-lightbox]:focus-visible { outline: 2px solid #a74431; outline-offset: 4px; }
.artists-art__image { position: relative; display: grid; width: fit-content; min-width: 0; max-width: 100%; margin-inline: auto; }
.artists-art .artists-art__image img { width: auto; height: auto; max-width: 100%; max-height: min(66svh, 560px); background: transparent; }
.artists-art-pin { position: absolute; display: grid; width: 30px; height: 30px; place-items: center; transform: translate(-50%, -50%); border: 1px solid #fffdf8; border-radius: 50%; background: #a74431; color: #fffdf8; font: 800 14px/1 Manrope, sans-serif; pointer-events: none; }
.artists-art-pin.artists-art-pin--interactive { z-index: 2; width: 36px; height: 36px; padding: 0; cursor: pointer; pointer-events: auto; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.artists-art-pin--interactive::before { position: absolute; inset: -4px; border-radius: 50%; content: ''; }
.artists-art-pin--interactive:hover { transform: translate(-50%, -50%) scale(1.08); }
.artists-art-pin--interactive[aria-expanded="true"] { z-index: 4; transform: translate(-50%, -50%) scale(1.12); outline: 2px solid #a74431; outline-offset: 3px; background: #fff8ee; color: #8e3828; }
.artists-art-pin--interactive:focus-visible { outline: 2px solid #fffdf8; outline-offset: 4px; }
.artists-art .artists-art__hint { margin: 0; color: #655c53; font: 500 13px/1.5 Manrope, sans-serif; }
.artists-art-note { position: absolute; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: start; gap: 10px; box-sizing: border-box; width: min(300px, calc(100% - 16px)); padding: 14px; border: 1px solid #d6b5a4; border-radius: 6px; background: #fff8ef; box-shadow: 0 8px 24px rgb(35 29 23 / 24%); }
.artists-art-note[hidden] { display: none; }
.artists-art-note::before { position: absolute; width: 10px; height: 10px; background: #fff8ef; content: ''; }
.artists-art-note[data-side="above"]::before { bottom: -6px; left: var(--note-arrow); transform: translateX(-50%) rotate(45deg); border-right: 1px solid #d6b5a4; border-bottom: 1px solid #d6b5a4; }
.artists-art-note[data-side="below"]::before { top: -6px; left: var(--note-arrow); transform: translateX(-50%) rotate(45deg); border-top: 1px solid #d6b5a4; border-left: 1px solid #d6b5a4; }
.artists-art-note[data-side="left"]::before { top: var(--note-arrow); right: -6px; transform: translateY(-50%) rotate(45deg); border-top: 1px solid #d6b5a4; border-right: 1px solid #d6b5a4; }
.artists-art-note[data-side="right"]::before { top: var(--note-arrow); left: -6px; transform: translateY(-50%) rotate(45deg); border-bottom: 1px solid #d6b5a4; border-left: 1px solid #d6b5a4; }
.artists-art-note p { margin: 0; color: #49362d; font: 700 16px/1.5 Manrope, sans-serif; }
.artists-art-note [data-art-note-close] { display: grid; width: 24px; height: 24px; padding: 0; place-items: center; border: 0; background: transparent; color: #714b38; font: 400 24px/1 Manrope, sans-serif; cursor: pointer; }
.artists-art-note [data-art-note-close]:focus-visible { outline: 2px solid #a74431; outline-offset: 3px; }
@media (max-width: 520px) { .artists-art-note { width: min(260px, calc(100% - 16px)); gap: 8px; padding: 12px; } .artists-art-note p { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .artists-art-pin.artists-art-pin--interactive { transition: background 120ms ease, color 120ms ease; } .artists-art-pin--interactive:hover, .artists-art-pin--interactive[aria-expanded="true"] { transform: translate(-50%, -50%); } }
.artists-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.artists-gallery .artists-art__image { width: 100%; aspect-ratio: 4 / 3; background: #e8e2d8; }
.artists-gallery .artists-art__image img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.artists-gallery--marked { --gallery-gap: 20px; display: flex; gap: var(--gallery-gap); align-items: flex-start; container-type: inline-size; }
.artists-gallery--marked .artists-art { flex: 0 0 auto; width: fit-content; margin: 0; }
.artists-gallery--marked .artists-art figcaption { width: 0; min-width: 100%; }
.artists-compare-list { display: grid; gap: 12px; width: 0; min-width: 100%; margin: 16px 0 0; padding: 0; list-style: none; }
.artists-compare-list li { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid #d8cec0; }
.artists-compare-list strong { color: #a74431; font: 800 14px/1.4 Manrope, sans-serif; }
.artists-compare-list span { color: #39342f; font: 500 16px/1.4 Manrope, sans-serif; overflow-wrap: anywhere; }
.artists-gallery--marked .artists-art__image { width: fit-content; aspect-ratio: auto; background: transparent; }
.artists-gallery--marked .artists-art__image img { position: static; width: auto; max-width: none; height: calc((100cqw - var(--gallery-gap)) / 1.58); max-height: none; }
.artists-gallery--marked .artists-art-pin { width: 22px; height: 22px; border: 0; background: rgba(29, 29, 27, .5); color: rgba(255, 253, 248, .92); font-size: 12px; font-weight: 600; }
.artists-bio { margin: -10px 0 0; color: #655c53; font: 600 13px/1.5 Manrope, sans-serif; }
.artists-method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
.artists-method li { display: flex; gap: 16px; padding-top: 18px; border-top: 1px solid #c9b8a8; }
.artists-method li > span { color: #a74431; font: 600 32px/1 'Cormorant Garamond', Georgia, serif; }
.artists-method h3, .artists-comparison h3, .artists-recap h3, .artists-decision h4 { margin: 0 0 10px; color: #292622; font: 600 28px/1.08 'Cormorant Garamond', Georgia, serif; }
.artists-method p, .artists-comparison p, .artists-recap p, .artists-decision p { margin: 0; color: #39342f; font: 500 16px/1.6 Manrope, sans-serif; }
.artists-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.artists-comparison article { display: grid; align-content: start; gap: 16px; }
.artists-comparison .artists-art__image { width: 100%; height: 290px; background: #e8e2d8; place-items: center; }
.artists-comparison .artists-art__image img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.artists-comparison h3 { margin: 0; }
.artists-memory { display: grid; gap: 18px; padding: 22px; background: #eee6d9; }
.artists-memory h3 { margin: 0; color: #a74431; font: 800 13px/1.3 Manrope, sans-serif; }
.artists-memory > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.artists-memory > div p { display: grid; gap: 7px; margin: 0; }
.artists-memory strong { color: #292622; font: 600 30px/1 'Cormorant Garamond', Georgia, serif; }
.artists-memory span { color: #664531; font: 700 15px/1.45 Manrope, sans-serif; }
.artists-memory > p { margin: 0; color: #514a42; font: 500 14px/1.6 Manrope, sans-serif; }
.artists-compare-rows { display: grid; }
.artists-compare-rows section { padding: 20px 0; border-top: 1px solid #d8cec0; }
.artists-compare-rows h3, .artists-decision section > h3 { margin: 0 0 12px; color: #a74431; font: 800 16px/1.4 Manrope, sans-serif; }
.artists-compare-rows section > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.artists-compare-rows p { margin: 0; color: #39342f; font: 500 16px/1.6 Manrope, sans-serif; }
.artists-signs { max-width: 900px; border-top: 1px solid #c9b8a8; }
.artists-signs__row { display: grid; grid-template-columns: 136px minmax(215px, 27%) minmax(0, 1fr); align-items: start; gap: 22px; padding: 22px 0; border-bottom: 1px solid #d8cec0; }
.artists-signs__art { position: relative; width: 136px; height: 112px; margin: 0; background: #e8e2d8; }
.artists-signs__art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.artists-signs__row h3 { margin: 0; color: #292622; font: 600 clamp(27px, 3vw, 34px)/1.08 'Cormorant Garamond', Georgia, serif; }
.artists-signs__content { display: grid; gap: 12px; min-width: 0; }
.artists-signs__content > p { margin: 0; color: #39342f; font: 500 16px/1.6 Manrope, sans-serif; }
.artists-signs__content .artists-signs__question { display: grid; gap: 4px; padding: 11px 14px; background: #eee6d9; color: #4e3d32; font-weight: 700; }
.artists-signs__question span { color: #a74431; font: 800 11px/1.3 Manrope, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.artists-recap article, .artists-decision article { display: grid; grid-template-columns: minmax(90px, 24%) minmax(0, 1fr); align-items: start; gap: 22px; padding: 24px 0; border-top: 1px solid #d8cec0; }
.artists-recap img, .artists-decision img { display: block; width: 100%; height: 130px; background: #e8e2d8; object-fit: contain; }
.artists-recap .artists-recap__question { margin-top: 12px; color: #714b38; font-size: 14px; }
.artists-recap__question strong { font-weight: 800; }
.artists-decision { display: grid; gap: 30px; }
.artists-decision article { padding: 18px 0; }
.artists-reading .artist-observation__content .mck-copy p { font-size: 16px; }
@media (max-width: 760px) {
  .artists-signs__row { grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 12px 18px; }
  .artists-signs__art { width: 116px; height: 96px; }
  .artists-signs__content { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .artists-method { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .artists-gallery { gap: 20px 12px; }
  .artists-gallery--marked { --gallery-gap: 12px; }
  .artists-compare-list span { font-size: 14px; }
  .artists-gallery figcaption { font-size: 11px; }
  .artists-art-pin { width: 25px; height: 25px; font-size: 12px; }
  .artists-comparison { gap: 16px; }
  .artists-comparison .artists-art__image { height: 220px; }
  .artists-comparison h3 { font-size: 24px; }
  .artists-comparison p { font-size: 14px; }
  .artists-memory { padding: 18px; }
  .artists-memory > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .artists-memory > div p { min-width: 0; }
  .artists-memory strong { font-size: clamp(24px, 7vw, 30px); overflow-wrap: anywhere; }
  .artists-memory span { font-size: 13px; }
  .artists-compare-rows section > div { gap: 6px; }
  .artists-compare-rows p { font-size: 14px; }
  .artists-signs__row { grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; padding: 19px 0; }
  .artists-signs__art { width: 96px; height: 86px; }
  .artists-signs__content { gap: 10px; }
  .artists-signs__content > p { font-size: 15px; }
  .artists-recap article, .artists-decision article { grid-template-columns: 84px minmax(0, 1fr); gap: 15px; }
  .artists-recap img, .artists-decision img { height: 105px; }
  .artists-recap h3, .artists-decision h4 { font-size: 25px; }
  .artists-recap p, .artists-decision p { font-size: 14px; }
}

/* Progress system: the museum hall and today plan */
.museum-page { padding-bottom: 130px; }
.museum-heading { padding: 12px 0 28px; }
.museum-heading h1 { margin-bottom: 14px; }
.museum-heading > p:last-child, .museum-catalog > p:last-child { max-width: 520px; color: #5e5954; font-size: 15px; line-height: 1.55; }
.today-plan, .weekly-goal { display: grid; gap: 18px; margin: 12px 0 24px; padding: 23px; background: #e9e3d8; }
.today-plan h2, .weekly-goal h2, .museum-section-heading h2, .museum-catalog h2 { margin: 0 0 10px; font-size: clamp(27px, 6vw, 38px); }
.today-plan p:not(.maison-kicker), .weekly-goal p:not(.maison-kicker) { margin: 0; color: #625c55; line-height: 1.5; }
.today-plan .maison-primary { width: 100%; }
.today-plan > small { color: #77736e; line-height: 1.4; }
.weekly-goal { grid-template-columns: 1fr auto; align-items: center; background: #f8f6f0; border: 1px solid var(--line); }
.weekly-goal label { display: grid; gap: 8px; color: #716b63; font-size: 12px; font-weight: 700; }
.weekly-goal select { min-width: 72px; padding: 11px; border: 1px solid #d7cfc2; border-radius: 2px; background: #fffdf8; color: var(--ink); }
.museum-hall { margin: 46px 0; }
.museum-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.museum-section-heading > span { padding-bottom: 12px; color: #77736e; font-size: 12px; }
.museum-progress-track { height: 5px; margin: 12px 0 24px; background: #ded7ca; }
.museum-progress-track i { display: block; height: 100%; width: 0; background: #a85747; transition: width .3s ease; }
.museum-levels { display: grid; gap: 8px; margin-bottom: 26px; }
.museum-level { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #ddd5ca; background: #f9f7f1; }
.museum-level > span { color: var(--red); font-family: Georgia, serif; }
.museum-level div { display: grid; gap: 4px; }
.museum-level b { font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.museum-level small, .museum-level i { color: #77736e; font-size: 11px; font-style: normal; }
.museum-level.is-locked { opacity: .62; }
.museum-level.is-current { border-left: 3px solid var(--red); }
.museum-collection { display: grid; gap: 10px; }
.museum-card { display: grid; grid-template-columns: minmax(90px, 30%) 1fr; gap: 15px; padding: 12px; border: 1px solid #d8d0c4; background: #fffdf8; }
.museum-card:not(:has(img)) { grid-template-columns: 1fr; }
.museum-card img { width: 100%; height: 112px; object-fit: contain; background: #e8e2d8; }
.museum-card small { color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.museum-card h3 { margin: 6px 0; font: 500 19px/1.1 Georgia, serif; }
.museum-card p { margin: 5px 0; color: #716b63; font-size: 12px; line-height: 1.4; }
.museum-card label { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: #716b63; font-size: 11px; }
.museum-card .museum-card__seen { margin-top: 4px; color: #7e8864; font-size: 11px; font-weight: 700; }
.museum-card.is-mastered { border-color: #7e8864; background: #f1f1e7; }
.museum-card.is-faded { opacity: .55; filter: saturate(.45); }
.museum-empty { padding: 18px; background: #eee9df; color: #716b63; font-size: 13px; line-height: 1.5; }
.museum-empty[hidden], .museum-review[hidden] { display: none; }
.museum-exam { display: flex; justify-content: space-between; width: 100%; margin-top: 20px; padding: 17px; border: 1px solid #d8d0c4; background: transparent; color: var(--ink); font-weight: 700; }
.museum-exam span { color: #77736e; font-size: 12px; font-weight: 500; }
.museum-catalog { padding: 24px 0; border-top: 1px solid var(--line); }
.museum-review { position: fixed; z-index: 9; inset: 0; overflow: auto; padding: max(24px, env(safe-area-inset-top)) max(20px, calc((100vw - 680px) / 2)) max(35px, env(safe-area-inset-bottom)); background: var(--paper); }
.review-top { display: flex; justify-content: space-between; margin-bottom: 35px; }
.review-top button { padding: 0; border: 0; background: transparent; color: var(--red); font-weight: 700; }
.museum-review > h2 { margin: 12px 0 22px; font-size: clamp(30px, 7vw, 46px); }
.museum-review figure { display: grid; max-height: 45vh; margin: 0 0 20px; place-items: center; background: #e8e2d8; }
.museum-review figure img { max-width: 100%; max-height: 45vh; object-fit: contain; }
.review-options { display: grid; gap: 10px; }
.review-options button, .review-result button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px; border: 1px solid #d8d0c4; background: #fffdf8; color: var(--ink); text-align: left; }
.review-options img { width: 58px; height: 48px; object-fit: contain; }
.review-result { margin: 20px 0; padding: 20px; border-left: 3px solid #a85747; background: #eee8dd; line-height: 1.55; }
.review-result.is-correct { border-left-color: #68754d; background: #e9ecdf; }
.review-result.is-wrong { background: #f4ebe7; }
.review-result p { margin: 10px 0 0; }
.review-count { margin-top: 18px; color: #77736e; font-size: 12px; line-height: 1.5; }
@media (max-width: 420px) { .weekly-goal { grid-template-columns: 1fr; } .museum-section-heading { align-items: start; flex-direction: column; gap: 0; } }
.museum-daily { display: grid; grid-template-columns: minmax(125px, 38%) 1fr; gap: 18px; margin: 28px 0 46px; padding: 14px; background: #ebe6dc; }
.museum-daily figure { display: grid; min-height: 160px; margin: 0; place-items: center; background: #ded8ce; }
.museum-daily figure img { width: 100%; height: 100%; max-height: 220px; object-fit: contain; }
.museum-daily figcaption { padding: 8px; font-size: 10px; line-height: 1.3; }
.museum-daily h2 { margin: 0 0 14px; font: 500 25px/1.08 Georgia, serif; }
.daily-self-check { display: flex; flex-wrap: wrap; gap: 7px; }
.daily-self-check button { padding: 9px 11px; border: 1px solid #cfc7b9; background: #f8f6f0; color: var(--ink); font-size: 12px; }
.museum-daily [data-daily-explanation] { margin: 13px 0 0; color: #5e5954; font-size: 12px; line-height: 1.45; }
.museum-daily small { display: block; margin-top: 12px; color: #77736e; font-size: 10px; line-height: 1.35; }
@media (max-width: 420px) { .museum-daily { grid-template-columns: 1fr; } .museum-daily figure { min-height: 130px; } }
.museum-card.is-unlearned img { opacity: .2; filter: grayscale(1); }
.weekly-goal { grid-template-columns: 1fr auto auto; }
@media (max-width: 520px) { .weekly-goal { grid-template-columns: 1fr 1fr; } .weekly-goal > div { grid-column: 1 / -1; } }
@media (max-width: 720px) { .weekly-goal { grid-template-columns: 1fr 1fr; } .weekly-goal > div { grid-column: 1 / -1; } }
@media (max-width: 380px) { .weekly-goal { grid-template-columns: 1fr; } .weekly-goal > div { grid-column: auto; } }
.museum-page .maison-primary { border-color: #26211d; background: #26211d; color: #fffdfa; }
.museum-page .maison-primary i { color: #26211d; }
.museum-page .maison-primary:hover, .museum-page .maison-primary:focus-visible { background: #f5f2eb; color: #26211d; }
.museum-review .maison-primary { margin-top: 16px; }
.museum-card > div > button { padding: 0; border: 0; background: transparent; color: var(--red); font-size: 12px; font-weight: 700; text-align: left; }
.museum-detail { position: fixed; width: min(90vw, 510px); max-height: 88vh; overflow: auto; padding: 24px; border: 1px solid #d8d0c4; background: var(--paper); color: var(--ink); box-shadow: 0 20px 70px rgba(0,0,0,.2); }
.museum-detail::backdrop { background: rgba(29,29,27,.48); backdrop-filter: blur(2px); }
.museum-detail > button[data-detail-close] { display: block; margin: 0 0 12px auto; border: 0; background: transparent; color: var(--ink); font-size: 26px; }
.museum-detail img { display: block; width: 100%; max-height: 280px; margin: 0 auto 20px; object-fit: contain; background: #e8e2d8; }
.museum-detail h2 { margin: 6px 0 18px; font: 500 30px/1.08 Georgia, serif; }
.museum-detail p { color: #625c55; font-size: 14px; line-height: 1.5; }
.museum-detail label { display: flex; align-items: center; gap: 8px; margin: 15px 0; font-size: 13px; }
.museum-detail [data-card-restore], .museum-detail button[disabled] { width: 100%; padding: 15px; border: 0; background: #26211d; color: #fffdfa; font-weight: 700; }
.museum-detail button[disabled] { background: #e9e3d8; color: #77736e; }
/* Проверка без вариантов: «показать ответ» и самопроверка */
.quiz-app-card .reveal-answer { display: flex; width: 100%; min-height: 58px; margin-top: 18px; padding: 0 19px; align-items: center; justify-content: space-between; border: 2px solid #a74431; background: transparent; color: #a74431; font: 700 15px/1.3 Manrope, sans-serif; text-align: left; cursor: pointer; transition: background .2s ease, color .2s ease; }
.quiz-app-card .reveal-answer::after { content: '→'; font-size: 20px; }
.quiz-app-card .reveal-answer:hover, .quiz-app-card .reveal-answer:focus-visible { background: #a74431; color: #fffdf8; }
.quiz-app-card--editorial .quiz-feedback.quiz-feedback--check { padding: 18px 20px 20px; border: 2px solid #c9a96e; background: #f7eedd; color: #3b3326; }
.quiz-app-card--editorial .quiz-feedback--check strong { color: #8a6420; font: 700 13px/1.2 Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.quiz-app-card--editorial .quiz-feedback--check p { margin: 10px 0 0; font: 500 16px/1.5 Manrope, sans-serif; }
.quiz-app-card--editorial .quiz-feedback--check .quiz-self-check__ask { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e6d5ae; color: #655c53; font-size: 14px; }
.quiz-app-card--editorial .quiz-feedback--check .quiz-self-check { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.quiz-app-card--editorial .quiz-feedback--check .quiz-self-check button { min-height: 50px; padding: 10px 12px; border: 1.5px solid #a74431; background: transparent; color: #a74431; font: 700 14px/1.25 Manrope, sans-serif; text-align: center; }
.quiz-app-card--editorial .quiz-feedback--check .quiz-self-check button:hover { background: #a74431; color: #fffdf8; }
@media (max-width: 420px) { .quiz-app-card--editorial .quiz-feedback--check .quiz-self-check { grid-template-columns: 1fr; } }
.quiz-app-card .reveal-answer[hidden] { display: none; }
/* Сопоставление: картины, названия и авторы */
.match { display: grid; gap: 18px; margin-top: 14px; }
.match__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 720px) { .match__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.match-card { display: grid; align-content: start; gap: 8px; min-width: 0; }
.match-card__art { height: 150px; margin: 0; background: #e8e2d8; }
.match-card__art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.match-slot { display: grid; align-content: center; gap: 2px; min-height: 60px; padding: 6px 8px; border: 1.5px dashed #c9a96e; background: #fbf7ee; color: #8a8278; font: 600 12px/1.3 Manrope, sans-serif; text-align: center; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.match-slot__hint { letter-spacing: .06em; text-transform: uppercase; font-size: 10px; }
.match-slot.is-target { border-color: #a74431; background: #f7e9df; }
.match-slot.is-filled { border-style: solid; border-color: #a74431; background: #fff; }
.match-slot.is-correct { border-color: #5b8f6b; background: #e7f1e9; }
.match-slot.is-wrong { border-color: #bf796b; background: #f4ebe7; }
.match-slot:disabled { cursor: default; opacity: 1; }
.match-slot .match-chip { width: 100%; border: 0; padding: 2px 0; background: transparent; color: inherit; }
.match-slot__right { color: #8a3b2c; font: 600 12px/1.3 Manrope, sans-serif; }
.match-slot.is-correct .match-chip { color: #2e6a45; }
.match-card__credit { display: grid; gap: 2px; margin: 0; color: #4a433d; font: 600 12px/1.4 Manrope, sans-serif; }
.match-card__credit[hidden] { display: none; }
.match-card__credit span { color: #8a8278; font-weight: 500; }
.match__hint { margin: 0; color: #655c53; font: 500 13px/1.45 Manrope, sans-serif; }
.match__pool { display: grid; gap: 14px; }
.match__pool[hidden], .match__hint[hidden] { display: none; }
.match__pool h3 { margin: 0 0 8px; color: #a74431; font: 800 11px/1.2 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.match__chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.match-chip { padding: 9px 13px; border: 1.5px solid #a74431; background: #fff; color: #a74431; font: 700 14px/1.2 Manrope, sans-serif; cursor: grab; }
.match-chip:hover { background: #f7e9df; }
.match-chip.is-selected { background: #a74431; color: #fffdf8; }
.match-chip.is-placed { cursor: pointer; }
.match__check { min-height: 54px; padding: 0 19px; border: 0; background: #737b59; color: #fbf8f1; font: 700 15px/1.3 Manrope, sans-serif; text-align: left; cursor: pointer; }
.match__check:hover:not(:disabled) { background: #596143; }
.match__check:disabled { opacity: .45; cursor: not-allowed; }
.match__check[hidden] { display: none; }
/* Выбор нескольких ответов */
.native-answers--multi button[aria-pressed="true"] { border-color: #a74431; background: #f7e9df; }
.native-answers--multi button[aria-pressed="true"] b { background: #a74431; color: #fffdf8; }
.native-answers--multi button:disabled { cursor: default; opacity: 1; }
.multi-hint { margin: 12px 0 0; color: #655c53; font: 600 13px/1.4 Manrope, sans-serif; }
.multi-hint[hidden] { display: none; }
.quiz-app-card .match__check { width: 100%; margin-top: 12px; }
/* Аудит: читаемый размер, контраст не ниже 4,5:1 и цели нажатия от 44 px */
:root { --muted: #6b6258; }
.maison-kicker { color: #8f5039; font-size: 12px; }
.maison-primary small { color: #e3c2b0; font-size: 11px; }
.maison-route > p { color: #6b6258; font-size: 12px; }
.maison-hero__art figcaption span { color: #8a4a33; font-size: 11px; }
.maison-city-picker { color: #5f564d; font-size: 12px; }
.maison-city-picker select { min-height: 44px; font-size: 13px; }
.maison-exhibitions .exhibition-list span { color: #8f5039; font-size: 11px; }
.maison-exhibitions .exhibition-list small { color: #5f564d; font-size: 12px; }
.atelier-dock .nav-item { color: #6f665c; }
.atelier-dock .nav-item b { font-size: 11px; }
.atelier-dock .nav-item--course { color: #fffaf4; }
.brand { display: inline-flex; min-height: 44px; align-items: center; }
.avatar { width: 44px; height: 44px; }
.maison-exhibitions__topline .maison-kicker { color: #8f5039; font-size: 11px; }
/* Декоративные блики и кольца не должны растягивать страницу вширь */
html { overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
.exhibition-empty a { color: #8f5039; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Ввод ответа текстом: поле, подсказка, проверка */
.type-answer { display: grid; gap: 12px; margin-top: 18px; }
.type-answer__hint, .type-answer__words { margin: 0; color: #4b443d; font: 500 15px/1.5 Manrope, sans-serif; }
.type-answer__hint b { color: #a74431; font-weight: 800; letter-spacing: .04em; }
.type-answer__words span { display: inline-block; margin: 6px 6px 0 0; padding: 5px 10px; border: 1px solid #d6ccbd; background: #fffdf8; color: #292622; font-weight: 700; }
.type-answer__label { color: #655c53; font: 700 13px/1.3 Manrope, sans-serif; }
.type-answer__input { width: 100%; min-height: 54px; box-sizing: border-box; padding: 13px 16px; border: 1px solid #b9ad9c; border-radius: 2px; background: #fff; color: var(--ink); font: 500 17px/1.4 Manrope, sans-serif; }
.type-answer__input:focus { outline: 2px solid #a74431; outline-offset: 1px; }
.type-answer__input.is-correct { border-color: #2d7857; background: #eef6f1; }
.type-answer__input.is-wrong { border-color: #a74431; background: #fbefeb; }
.type-answer__actions { display: grid; gap: 6px; }
.type-answer__skip { min-height: 44px; border: 0; background: none; color: #655c53; font: 600 14px/1.3 Manrope, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.type-answer__skip[hidden] { display: none; }
.type-answer__why { color: #8a3a2a; font-weight: 700; }

/* Сборка названия из слов и выбор автора */
.assemble { display: grid; gap: 12px; margin-top: 18px; }
.assemble__label { margin: 0; color: #655c53; font: 700 13px/1.3 Manrope, sans-serif; }
.assemble__line { display: flex; flex-wrap: wrap; gap: 8px; min-height: 58px; padding: 10px; border: 1px dashed #b9ad9c; background: #fffdf8; }
.assemble__line:empty::before { align-self: center; color: #8a8076; content: "Нажмите на слова ниже"; font: 500 15px/1.3 Manrope, sans-serif; }
.assemble__line.is-correct { border: 1px solid #2d7857; background: #eef6f1; }
.assemble__line.is-wrong { border: 1px solid #a74431; background: #fbefeb; }
.assemble__bank, .assemble__authors { display: flex; flex-wrap: wrap; gap: 8px; }
.assemble__word, .assemble__author { min-height: 46px; padding: 8px 14px; border: 1px solid #d6ccbd; border-radius: 2px; background: #fff; color: #292622; font: 700 16px/1.2 Manrope, sans-serif; cursor: pointer; }
.assemble__word:hover:not(:disabled), .assemble__author:hover:not(:disabled) { border-color: #a74431; }
.assemble__author[aria-pressed="true"] { border-color: #737b59; background: #737b59; color: #fbf8f1; }
.assemble__word:disabled, .assemble__author:disabled { cursor: default; }

/* Renaissance course uses the same learning layout as Impressionism. */
.renaissance-body .renaissance-art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.renaissance-body .renaissance-art-grid--single { grid-template-columns: 1fr; }
.renaissance-body .renaissance-art { display: grid; min-height: 160px; max-height: 440px; padding: 0; border: 0; background: #e8e2d8; cursor: zoom-in; overflow: hidden; }
.renaissance-body .renaissance-art img { display: block; width: 100%; height: 100%; max-height: 440px; object-fit: contain; }
.renaissance-body .renaissance-art:focus-visible { outline: 3px solid #737b59; outline-offset: 3px; }
.renaissance-body .renaissance-reading { max-width: 68ch; margin: 0 0 24px; color: #403a33; font-size: 16px; line-height: 1.65; }
.renaissance-body .renaissance-reading p { margin: 0 0 16px; }
.renaissance-body .renaissance-counter { max-width: 650px; margin: 20px auto 40px; color: #70675e; font-size: 12px; text-align: right; }
.renaissance-lightbox { width: min(96vw, 1100px); max-height: 94vh; padding: 18px; border: 0; background: #f7f2e9; color: #312b25; }
.renaissance-lightbox::backdrop { background: rgba(18, 17, 15, .85); }
.renaissance-lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: auto; object-fit: contain; }
.renaissance-lightbox p { margin: 10px 34px 0 0; font-size: 13px; }
.renaissance-lightbox [data-close] { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; border: 0; background: #312b25; color: white; font-size: 28px; cursor: pointer; }
.renaissance-lightbox [data-close]:focus-visible { outline: 3px solid #737b59; }
@media (max-width: 520px) { .renaissance-body .renaissance-art-grid { gap: 6px; } .renaissance-body .renaissance-art { min-height: 120px; } }
.renaissance-body .theory-player .theory-art img[data-art] { cursor: zoom-in; }
.renaissance-body .theory-player .theory-art img[data-art]:focus-visible { outline: 3px solid var(--learn-copper); outline-offset: 3px; }
.renaissance-body .theory-player--history-reading .history-reading__text strong { color: #a74431; }
.renaissance-body .theory-player--history-reading .history-reading__art { margin: 0 auto; }
.renaissance-body .theory-player--history-reading .history-reading__art figcaption { padding-top: 13px; }
.renaissance-body .theory-player .artist-controls .artist-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.renaissance-body .theory-player .artist-controls .artist-next i { font-size: 20px; font-style: normal; font-weight: 400; }
.renaissance-body .theory-player .theory-gallery__item img { max-height: 210px; }
.renaissance-body .quiz-step-back { visibility: hidden; }
.renaissance-body .learning-view .theory-player h2 { max-width: 18ch; margin-bottom: 26px; font-size: clamp(36px, 5.5vw, 52px); line-height: 1.04; }
.renaissance-body .learning-view .theory-player--artist-gallery h2 { max-width: 22ch; }
.renaissance-body .theory-player .artist-text { max-width: 70ch; }
.renaissance-body .theory-player .artist-text > p { margin: 0 0 16px; }
.renaissance-body .theory-player .theory-art figcaption { font-size: 13px; line-height: 1.45; text-align: center; }
.renaissance-body .history-reading__art img[data-art] { cursor: zoom-in; }
.renaissance-body .history-reading__art img[data-art]:focus-visible { outline: 3px solid var(--learn-copper); outline-offset: 3px; }

/* Курс «Ренессанс»: пояснения к цифрам на картине и шпаргалка шага Б */
.ren-notes { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ren-notes li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid #e0d6c8; background: #fffdf8; color: #292622; font: 500 15px/1.45 Manrope, sans-serif; }
.ren-notes b { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #a74431; color: #fff; font-size: 14px; }
.ren-cheat { display: grid; gap: 22px; }
.ren-cheat__row { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid #d6ccbd; }
.ren-cheat__row h3 { margin: 0; color: #a74431; font: 700 24px/1.1 'Cormorant Garamond', Georgia, serif; }
.ren-cheat__row > p { margin: 0; color: #292622; font: 500 16px/1.5 Manrope, sans-serif; }
.ren-cheat__row > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mck-reading--plain > .mck-lead::before { display: none; }

/* Линия времени в «Предыстории» курса «Ренессанс» */
.ren-timeline { position: relative; display: grid; gap: 22px; margin: 8px 0 0; padding: 0 0 0 28px; list-style: none; }
.ren-timeline::before { position: absolute; top: 8px; bottom: 8px; left: 7px; width: 2px; background: #cfc5b6; content: ''; }
.ren-timeline li { position: relative; display: grid; gap: 4px; }
.ren-timeline li::before { position: absolute; top: 6px; left: -28px; width: 16px; height: 16px; border-radius: 50%; background: #a74431; box-shadow: 0 0 0 4px #f5f2eb; content: ''; }
.ren-timeline b { color: #a74431; font: 700 26px/1.1 'Cormorant Garamond', Georgia, serif; }
.ren-timeline span { color: #4b443d; font: 500 15px/1.5 Manrope, sans-serif; }
@media (min-width: 720px) {
  .ren-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 36px 0 0; }
  .ren-timeline::before { top: 8px; bottom: auto; right: 0; left: 0; width: auto; height: 2px; }
  .ren-timeline li::before { top: -35px; left: 0; }
}
@media (min-width: 960px) {
  .ren-discovery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); column-gap: 40px; row-gap: 18px; align-items: start; }
  .ren-discovery > .mck-kicker, .ren-discovery > h2, .ren-discovery > .ren-timeline { grid-column: 1 / -1; }
  .ren-discovery > .artists-art { grid-column: 2; grid-row: 3; margin: 0; }
  .ren-discovery > .mck-copy { grid-column: 1; grid-row: 3; }
  .ren-discovery .artists-art .artists-art__image img { max-height: 520px; }
}

/* Вход и аккаунт */
.auth-dialog { width: min(calc(100% - 32px), 400px); max-height: calc(100dvh - 30px); padding: 32px 26px 24px; overflow-y: auto; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.auth-dialog::backdrop { background: rgba(15, 14, 13, .55); backdrop-filter: blur(3px); }
.auth-close { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 29px; line-height: 1; }
.auth-dialog h2 { margin: 6px 0 8px; font-size: 34px; line-height: 1.05; }
.auth-lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-fields { display: grid; gap: 16px; }
.auth-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.auth-field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(29,29,27,.28); border-radius: 3px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.auth-field input:focus-visible { outline: 3px solid rgba(45,120,87,.35); outline-offset: 1px; border-color: var(--green); }
.auth-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; }
#auth-code { letter-spacing: .4em; font-size: 22px; text-align: center; }
.auth-error { margin: 14px 0 0; color: #9b2d1f; font-size: 14px; line-height: 1.4; }
.auth-submit { width: 100%; min-height: 50px; margin-top: 18px; border: 0; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; }
.auth-submit:disabled { opacity: .6; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; margin-top: 8px; }
.auth-links button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--red); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-links button:disabled { color: var(--muted); text-decoration: none; }

/* Пробный период и окно подписки */
.module-card.is-locked .module-card__meta::before { content: 'Подписка'; padding: 3px 9px; border: 1px solid #8e3828; border-radius: 999px; color: #8e3828; font-size: 11px; font-weight: 700; line-height: 1.2; }
.paywall { width: min(92vw, 420px); padding: 28px 24px 22px; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); }
.paywall::backdrop { background: rgba(18, 17, 15, .62); }
.paywall h2 { margin: 6px 0 10px; font: 500 30px/1.1 'Cormorant Garamond', Georgia, serif; }
.paywall__text { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.paywall__plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.paywall__plans li { display: grid; gap: 2px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 3px; background: #fbf9f4; text-align: center; }
.paywall__plans b { font-size: 16px; }
.paywall__plans span { color: var(--muted); font-size: 12px; }
.paywall .auth-submit { width: 100%; }
.paywall__later { display: block; width: 100%; min-height: 44px; margin-top: 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Обложка курса: продолжить с места, кликабельная картина */
.learning-continue { display: inline-flex; min-height: 50px; align-items: center; gap: 14px; margin-top: 22px; padding: 0 22px; border: 0; border-radius: 3px; background: var(--ink); color: #fff; font: 700 15px/1 'Manrope', sans-serif; cursor: pointer; transition: background .25s, transform .2s; }
.learning-continue i { font-style: normal; transition: transform .25s; }
.learning-continue:hover, .learning-continue:focus-visible { background: #a85747; }
.learning-continue:hover i { transform: translateX(4px); }
.learning-maison__art[role="button"] { cursor: pointer; }
.learning-maison__art[role="button"]:focus-visible, .course-maison__art:focus-visible { outline: 3px solid #a85747; outline-offset: 4px; }
a.course-maison__art { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.course-epoch__count { display: block; margin-top: 5px; color: var(--course-copper, #a85747); font-size: 12px; font-weight: 700; }

/* Выбранные варианты в заданиях «выберите два»: хорошо видно, что отмечено */
.learning-body .native-answers button[aria-pressed="true"] { position: relative; border: 2px solid #a74431; background: #f7e1d4; box-shadow: 0 0 0 3px rgba(167, 68, 49, .16); color: #5b2418; }
.learning-body .native-answers button[aria-pressed="true"] b { background: #a74431; color: #fffdf8; }
.learning-body .native-answers button[aria-pressed="true"]::after { content: '✓'; position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: #a74431; font-size: 22px; font-weight: 800; }
.learning-body .native-answers button[aria-pressed="true"] span { padding-right: 26px; }

/* «Не перепутайте» (Барокко): картины друг под другом и сравнение по признакам */
.twins-figures { display: grid; gap: 22px; }
.twins-art .artists-art__image { aspect-ratio: auto; background: transparent; }
.twins-art .artists-art__image img { position: static; width: 100%; height: auto; }
.twins-art .artists-art-pin { width: 26px; height: 26px; border: 0; background: #a74431; color: #fffdf8; font-size: 13px; font-weight: 800; }
.twins-compare { display: grid; gap: 0; margin-top: 26px; }
.twins-row { padding: 16px 0; border-top: 1px solid #d8cec0; }
.twins-row h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: #a74431; font: 800 15px/1.3 Manrope, sans-serif; }
.twins-row h3 b { display: grid; width: 24px; height: 24px; flex: none; place-items: center; border-radius: 50%; background: #a74431; color: #fffdf8; font-size: 12px; }
.twins-row > div { display: grid; gap: 10px; }
.twins-row p { margin: 0; color: #39342f; font: 500 16px/1.45 Manrope, sans-serif; }
.twins-row strong { display: block; margin-bottom: 2px; color: #6b6258; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 720px) { .twins-figures { grid-template-columns: 1fr 1fr; gap: 20px; } .twins-row > div { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* «Важно» внутри карточки художника */
.artists-important { margin: 6px 0 18px; padding: 14px 16px 14px 18px; border-left: 4px solid #a74431; border-radius: 0 3px 3px 0; background: #f7e9df; }
.artists-important strong { display: block; margin-bottom: 4px; color: #a74431; font: 800 13px/1.2 Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.artists-important p { margin: 0; color: #2b2622; font: 600 16px/1.5 Manrope, sans-serif; }

/* Вход временно выключен (features.js): в профиле остаются только занятия и данные */
.afe-no-auth #tab-plan, .afe-no-auth #tab-account, .afe-no-auth #panel-plan, .afe-no-auth #panel-account, .afe-no-auth [data-account], .afe-no-auth [data-guest] { display: none !important; }
