/* Редакционная сетка портала; палитра и интерактивные элементы из общего слоя. */
.home { padding-block: clamp(2rem, 5vw, 4.5rem) 5rem; }
.home__hero { display: grid; grid-template-columns: 1.18fr 1fr; gap: 3rem; align-items: center; }
.home__eyebrow, .home__index, .home__label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }
.home__eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.5rem; text-transform: uppercase; }
.home__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-brand); }
.home__intro h1 { font-family: var(--font-display); font-size: clamp(2.15rem, 4.7vw, 4.25rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; hyphens: manual; }
.home__intro h1 > span { color: var(--c-link); }
.home__lead { color: var(--c-ink-muted); max-width: 31rem; font-size: 1.04rem; line-height: 1.7; margin: 1.5rem 0 1.75rem; }
.home__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.home__start { border-radius: .75rem; }
.home__text-link { display: inline-flex; align-items: center; gap: .75rem; font-size: .88rem; font-weight: 600; text-decoration: none; min-height: 44px; }
.home__text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.home__text-link > span { font-size: 1.2rem; }
.home__visual { border-radius: 1.5rem; background: var(--c-editorial); color: var(--c-editorial-ink); padding: 1.5rem; overflow: hidden; }
.home__visual-top, .home__visual-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .75rem; letter-spacing: .06em; }
.home__visual-top > span:last-child { font-size: 1.8rem; line-height: 1; }
.home__papers { position: relative; height: 320px; margin: .5rem 0; }
.home__paper { position: absolute; width: 78%; padding: 1.2rem 1.4rem; border-radius: .6rem; box-shadow: 0 12px 24px rgb(0 0 0 / .1); color: var(--c-paper-ink); }
.home__paper > span { font-size: .75rem; letter-spacing: .08em; font-weight: 700; }
.home__paper strong { display: block; font-size: clamp(1.2rem, 2.2vw, 1.8rem); letter-spacing: -.04em; line-height: 1.2; margin-top: .85rem; }
.home__paper--back { top: 20px; left: 5%; min-height: 145px; transform: rotate(-9deg); background: var(--c-paper-back); }
.home__paper--middle { top: 74px; left: 13%; min-height: 150px; transform: rotate(4deg); background: var(--c-paper-middle); }
.home__paper--front { top: 176px; left: 8%; min-height: 130px; transform: rotate(-3deg); background: var(--c-paper-front); }
.home__paper--front svg { float: right; width: 42px; height: 42px; margin-top: 1.2rem; }
.home__paper-lines { width: 70%; height: 18px; border-block: 3px solid currentColor; opacity: .3; margin-top: 1rem; }
.home__visual-bottom { border-top: 1px solid rgb(255 255 255 / .25); padding-top: 1rem; letter-spacing: .02em; font-size: .75rem; }
.home__visual-point { width: .75rem; height: .75rem; background: var(--c-paper-middle); border-radius: 50%; }
.home__search { scroll-margin-top: 7rem; margin-top: 3.5rem; display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; padding: 2rem; border: 1px solid var(--c-line); border-radius: 1.25rem; background: var(--c-surface); }
.home__index { display: block; color: var(--c-ink-muted); margin-bottom: .8rem; }
.home__search h2, .home__section-head h2 { font-size: clamp(1.2rem, 2.3vw, 1.75rem); line-height: 1.4; font-weight: 500; letter-spacing: -.035em; }
.home__search-heading > p { font-size: .85rem; line-height: 1.65; max-width: 24rem; margin: .75rem 0 0; }
.home__search-content { min-width: 0; padding-top: .25rem; }
.home__search-form { margin: 0; }
.home__search-row { display: flex; align-items: stretch; gap: .5rem; }
.home__search-row .field__input { flex: 1 1 auto; min-width: 0; font-size: 1rem; border-radius: .65rem; }
.home__search-row .btn { flex: none; min-height: 3rem; border-radius: .65rem; }
.home__search-hint { margin: .75rem 0 0; color: var(--c-ink-muted); font-size: .75rem; }
.home [data-search-results]:not(:empty) { margin-top: 1.5rem; }
.home__practice, .home__library { margin-top: 4.5rem; }
.home__section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.75rem; }
.home__section-head > .home__text-link { flex: none; }
.home__practice-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; }
.home__practice-info { background: var(--c-brand-tint); color: var(--c-brand-tint-ink); padding: 2rem; border-radius: 1.25rem; }
.home__label { font-size: .75rem; }
.home__practice-info h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.65rem; line-height: 1.4; margin: 1rem 0; letter-spacing: -.035em; }
.home__practice-info > p:not(.home__stat) { font-size: .9rem; line-height: 1.7; }
.home__stat { display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0 1rem; }
.home__stat strong { font-size: 3rem; font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.home__stat span { font-size: .75rem; line-height: 1.5; }
.home__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; align-content: start; }
.home__group { display: flex; gap: 1.25rem; align-items: center; min-height: 116px; padding: 1rem .5rem; border-bottom: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; transition: background 180ms; }
.home__group:nth-child(-n+2) { border-top: 1px solid var(--c-line); }
.home__group:hover { background: var(--c-brand-tint); }
.home__group-number { color: var(--c-ink-muted); font-size: .75rem; align-self: start; padding-top: .25rem; }
.home__group h3 { font-size: 1rem; line-height: 1.5; margin: 0; font-weight: 600; }
.home__group div > span { font-size: .75rem; color: var(--c-ink-muted); }
.home__group-arrow { margin-left: auto; color: var(--c-link); font-size: 1.5rem; }
.home__bank-note { font-size: .75rem; color: var(--c-ink-muted); line-height: 1.7; max-width: 58rem; margin-top: 1.1rem; }
.home__resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.home__resource { display: flex; flex-direction: column; align-items: start; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 1.25rem; padding: 1.75rem; color: var(--c-ink); text-decoration: none; transition: border-color 180ms, background 180ms; }
.home__resource:hover { border-color: var(--c-brand); background: var(--c-brand-tint); }
.home__resource-symbol { font-size: 2.5rem; line-height: 1; font-weight: 500; color: var(--c-link); margin-bottom: 2rem; }
.home__resource h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.5; margin: 0; }
.home__resource p { color: var(--c-ink-muted); font-size: .85rem; line-height: 1.7; margin: .75rem 0 1.5rem; }
.home__resource-action { display: flex; justify-content: space-between; gap: 1rem; width: 100%; margin-top: auto; font-weight: 600; color: var(--c-link); font-size: .8rem; }
.home__access { margin-top: 3rem; }
.home__access .grid { margin-top: 1.5rem; }
@media (max-width: 63.99rem) {
  .home__hero { gap: 1.5rem; grid-template-columns: 1.2fr 1fr; }
  .home__intro h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
  .home__visual { padding: 1.1rem; }
  .home__visual-top { font-size: .75rem; }
  .home__practice-layout { gap: 1.5rem; }
}
@media (max-width: 47.99rem) {
  .home { padding-block: 2rem 3rem; }
  .home__hero { grid-template-columns: 1fr; gap: 2rem; }
  .home__intro h1 { font-size: clamp(2rem, 8.3vw, 3rem); }
  .home__eyebrow { font-size: .75rem; margin-bottom: 1rem; }
  .home__lead { font-size: .95rem; margin-block: 1rem 1.25rem; }
  .home__actions { gap: .75rem 1.25rem; }
  .home__start { width: 100%; }
  .home__visual { border-radius: 1rem; }
  .home__visual-top { font-size: .75rem; }
  .home__papers { height: 280px; }
  .home__paper--back { top: 8px; }
  .home__paper--middle { top: 60px; }
  .home__paper--front { top: 155px; min-height: 118px; }
  .home__paper strong { font-size: 1.35rem; }
  .home__paper { padding: 1rem; }
  .home__search { margin-top: 2rem; grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .home__search-row { flex-direction: column; }
  .home__search-row .field__input { width: 100%; }
  .home__search-row .btn { width: 100%; }
  .home__practice, .home__library { margin-top: 3rem; }
  .home__section-head { align-items: start; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
  .home__section-head h2 { font-size: 1.2rem; }
  .home__practice-layout { grid-template-columns: 1fr; gap: 1rem; }
  .home__practice-info { padding: 1.5rem; }
  .home__practice-info h3 { font-size: 1.4rem; }
  .home__groups { grid-template-columns: 1fr; }
  .home__group { gap: .75rem; min-height: 90px; }
  .home__group:nth-child(2) { border-top: 0; }
  .home__resources { grid-template-columns: 1fr; }
  .home__resource { padding: 1.5rem; }
  .home__resource-symbol { margin-bottom: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home__group, .home__resource { transition: none; }
}

.home__intro { min-width: 0; }
.home__directions { margin-top: 3rem; }
.home__directions .grid { margin-top: 1.5rem; }

/* Returning visitors see the program and real progress before the primary action. */
.home__resume { max-width: 31rem; margin-block: 1.5rem 1.75rem; }
.home__resume-program { margin: 0; font-size: 1.04rem; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.home__resume-count { margin: .75rem 0 .5rem; color: var(--c-ink-muted); font-size: .875rem; }
.home__resume-progress { display: block; width: 100%; height: .375rem; overflow: hidden; border: 0; border-radius: 1rem; accent-color: var(--c-brand); background: var(--c-line); }
.home__resume-progress::-webkit-progress-bar { border-radius: 1rem; background: var(--c-line); }
.home__resume-progress::-webkit-progress-value { border-radius: 1rem; background: var(--c-brand); }
.home__resume-progress::-moz-progress-bar { border-radius: 1rem; background: var(--c-brand); }
