/* Витрина использует тот же кадр и сохранённый ответ, что и учебный прогон. */
.home-page { padding-bottom: 44px; }
.home-heading { display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 28px; padding: 38px 0 25px; }
.home-heading h1, .home-story h2, .home-catalog h2 {
  font-family: var(--font-display); letter-spacing: -.028em; line-height: 1.12; }
.home-heading h1 { font-size: clamp(32px, 4.4vw, 48px); }
.home-heading p { max-width: 62ch; margin: 10px 0 0; color: var(--ink-2); }
.home-jump, .home-story__foot a { display: inline-flex; gap: 7px; align-items: center;
  font-size: 15px; font-weight: 600; min-height: 40px; }
.home-story { background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: clamp(18px, 2.8vw, 32px); display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 16px clamp(22px, 4vw, 52px);
  grid-template-areas: "head picture" "prompt picture" "look picture" "foot foot"; }
.home-story__head { grid-area: head; align-self: end; }
.home-story__head p:last-child { color: var(--ink-2); margin: 6px 0 0; }
.home-kicker { display: flex; gap: 8px; align-items: center; margin: 0 0 8px;
  color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.home-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--ochre); }
.home-story h2 { font-size: clamp(25px, 3.1vw, 36px); }
.home-story h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.home-story h3 .icon { color: var(--accent); flex-shrink: 0; }
.home-prompt { grid-area: prompt; align-self: center; }
.home-prompt blockquote { margin: 7px 0; border-left: 3px solid var(--accent);
  background: var(--accent-soft); padding: 9px 14px; border-radius: 0 7px 7px 0;
  color: var(--ink-2); line-height: 1.45; }
.home-note, .home-story__foot p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.home-frame { grid-area: picture; align-self: center; margin: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.home-frame img { display: block; width: 100%; height: auto; }
.home-frame figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 7px;
  padding: 9px 12px; color: var(--ink-2); font-size: 13px; }
.home-frame figcaption strong { margin-left: auto; }
.home-look { grid-area: look; align-self: start; }
.home-look > p { font-size: 15px; margin: 4px 0 8px; color: var(--ink-2); }
.home-vision summary, .home-standalone summary { display: flex; align-items: center; gap: 9px;
  list-style: none; cursor: pointer; min-height: 44px; }
.home-vision summary::-webkit-details-marker, .home-standalone summary::-webkit-details-marker { display: none; }
.home-vision { background: var(--paper); border-radius: 7px; padding: 0 12px; }
.home-vision summary { justify-content: space-between; color: var(--accent-ink); font-size: 15px; font-weight: 600; }
.home-chevron { display: inline-block; flex: 0 0 8px; height: 8px; margin: -3px 3px 0 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.home-page details[open] > summary .home-chevron { transform: rotate(225deg); margin-top: 4px; }
.home-vision > div { border-top: 1px solid var(--line); padding: 10px 0 12px; }
.home-vision blockquote { margin: 5px 0 0; font-size: 15px; }
.home-story__foot { grid-area: foot; border-top: 1px solid var(--line); padding-top: 12px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 18px; }
.home-story__foot p { max-width: 62ch; }
.home-catalog { padding-top: 30px; scroll-margin-top: 70px; }
.home-catalog__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.home-catalog h2 { font-size: clamp(25px, 3vw, 32px); }
.home-catalog__head > span { font-size: 14px; color: var(--muted); }
.home-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.home-subject { min-width: 0; padding: 14px 18px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 9px; display: grid; gap: 6px; align-content: start; }
.home-subject:only-child { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap;
  justify-content: space-between; gap: 6px 18px; }
.home-subject h3 { font-size: 18px; overflow-wrap: anywhere; }
.home-subject h3 a, .home-grades a { display: inline-flex; align-items: center; gap: 8px; }
.home-subject h3 a { color: var(--ink); }
.home-subject h3 .icon { color: var(--accent); flex-shrink: 0; }
.home-grades { display: flex; flex-wrap: wrap; gap: 4px 9px; }
.home-grades a { padding: 4px 9px; background: var(--accent-soft); border-radius: 5px; font-size: 14px; }
.home-standalone { border-bottom: 1px solid var(--line); margin-top: 10px; color: var(--ink-2); }
.home-standalone summary { padding: 5px 1px; font-size: 14px; }
.home-standalone summary b { color: var(--ink); margin-right: 6px; }
.home-standalone summary .home-chevron { margin-left: auto; }
.home-standalone > div { padding: 0 0 12px 28px; }
.home-standalone p { font-size: 14px; margin: 0 0 6px; }
@media (max-width: 740px) {
  .home-heading { padding-top: 25px; }
  .home-story { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "prompt" "picture" "look" "foot"; }
  .home-frame { width: 100%; max-width: 420px; justify-self: center; }
}
@media (max-width: 420px) {
  .home-page { padding-inline: 14px; }
  .home-heading { gap: 2px; padding-bottom: 14px; }
  .home-story { padding: 14px; gap: 14px; }
  .home-frame figcaption strong { margin-left: 0; }
}
@media (pointer: coarse) {
  .home-grades a, .home-jump, .home-subject h3 a, .home-story__foot a { min-height: 44px; }
}
