/* «Правила» 2026 — по макету редизайна /rules/. Hero — h26-nominations.css (.h26-nm-*). */
/* старые стили сайта: overflow-x: hidden на html/body ломает position: sticky у оглавления */
html:has(.h26-rl), body:has(.h26-rl) { overflow-x: clip !important; overflow-y: visible !important; }
.h26-rl { padding-bottom: 90px; }
.h26-rl .h26-nm-hero { padding-bottom: 44px; }
.h26-rl .h26-nm-crumbs { margin-bottom: 40px; }
.h26-rl .h26-nm-hero__grid { padding-bottom: 0; border-bottom: 0; }
.h26-rl .h26-nm-hero h1 { font-size: clamp(58px, 6vw, 96px); line-height: 1.1; }

.h26-rl-doc { display: grid; grid-template-columns: 250px minmax(0, 870px); justify-content: start; align-items: start; column-gap: 72px; padding-top: 36px; border-top: 1px solid #e3d6e9; }

/* оглавление */
.h26-rl-toc { position: sticky; top: 100px; }
.h26-rl-toc nav { display: flex; flex-direction: column; align-items: flex-start; max-height: calc(100vh - 130px); padding: 4px 10px 10px 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d4bde0 transparent; }
.h26-rl .h26-rl-toc h2 { margin-bottom: 18px; color: var(--h26-accent); font-size: 16px; }
.h26-rl-toc a { display: block; padding: 7px 0; color: #65566e; font-size: 12px; line-height: 1.6; text-decoration: none; transition: color .2s, translate .25s var(--h26-ease); }
.h26-rl-toc a:hover, .h26-rl-toc a:focus-visible { color: var(--h26-accent); translate: 4px 0; }

/* разделы */
.h26-rl-content { min-width: 0; }
.h26-rl-section { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid #e8dfed; scroll-margin-top: 110px; }
.h26-rl .h26-rl-section > h2 { margin-bottom: 22px; font-size: clamp(24px, 2.15vw, 32px); line-height: 1.35; letter-spacing: -.045em; }
.h26-rl-prose { color: #514854; font-family: var(--h26-sans), Arial, sans-serif; font-size: 15px; line-height: 1.9; overflow-wrap: break-word; }
.h26-rl-prose * { font-family: inherit; }
.h26-rl .h26-rl-prose p { margin: 0 0 18px; color: inherit; font-size: inherit; line-height: inherit; }
.h26-rl .h26-rl-prose p:last-child { margin-bottom: 0; }
.h26-rl .h26-rl-prose h3 { margin: 30px 0 16px; color: var(--h26-ink); font-family: var(--h26-mono), monospace; font-size: 20px; line-height: 1.45; letter-spacing: -.035em; }
.h26-rl-prose strong, .h26-rl-prose b { font-weight: 600; }
.h26-rl .h26-rl-prose ul, .h26-rl .h26-rl-prose ol { margin: 16px 0 22px; padding-left: 20px; }
.h26-rl .h26-rl-prose ul li { list-style: disc; }
.h26-rl .h26-rl-prose ol li { list-style: decimal; }
.h26-rl .h26-rl-prose li { color: inherit; font-size: inherit; line-height: inherit; }
.h26-rl-prose li + li { margin-top: 8px; }
.h26-rl-prose li::marker { color: var(--h26-accent); }
.h26-rl .h26-rl-prose a { color: var(--h26-accent); text-decoration: underline 1px; text-underline-offset: 4px; }
.h26-rl .h26-rl-prose a:hover { color: #ad3f9c; }
.h26-rl-prose img { display: block; width: auto; max-width: 100%; height: auto; margin: 24px 0; border-radius: 8px; }
.h26-rl .h26-rl-prose span { font: inherit; }
.h26-rl-section--organizer .h26-rl-prose img { max-width: 190px; max-height: 110px; margin: 0; object-fit: contain; }
.h26-rl .h26-rl-section--formula .h26-rl-prose > p:first-child { padding: 25px; border: 1px solid #e4d3ed; border-radius: 12px; background: linear-gradient(110deg, #f5ebfa, #fbf3ef); color: var(--h26-accent); font-family: var(--h26-mono), monospace; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.6; overflow-wrap: anywhere; }

/* FAQ */
.h26-rl-faq { padding-bottom: 0; border-bottom: 0; }
.h26-rl-faq__note { display: block; margin-bottom: 14px; color: var(--h26-muted); font-size: 12px; }
.h26-rl-faq details { border-top: 1px solid #e4d7eb; }
.h26-rl-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 23px 0; list-style: none; cursor: pointer; color: #433a49; font-size: 16px; font-weight: 600; line-height: 1.6; }
.h26-rl-faq summary::-webkit-details-marker { display: none; }
.h26-rl-faq summary > span { flex: 0 0 auto; color: var(--h26-accent); font-size: 25px; font-weight: 400; line-height: 1; transition: rotate .25s; }
.h26-rl-faq details[open] summary > span { rotate: 45deg; }
.h26-rl-faq details > .h26-rl-prose { padding: 0 34px 24px 0; }

@media (max-width: 1350px) {
    .h26-rl-doc { grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; }
    .h26-rl .h26-nm-hero__lead { max-width: 350px; }
}
@media (max-width: 767px) {
    .h26-rl { padding-bottom: 60px; }
    .h26-rl .h26-nm-hero h1 { font-size: 48px; }
    .h26-rl .h26-nm-hero__lead { text-align: left; }
    .h26-rl-doc { grid-template-columns: 1fr; row-gap: 30px; }
    .h26-rl-toc { position: relative; top: auto; }
    .h26-rl-toc nav { max-height: none; }
    .h26-rl-prose { font-size: 14px; }
    .h26-rl-faq details > .h26-rl-prose { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .h26-rl-toc a, .h26-rl-faq summary > span { transition: none; }
}

/* FAQ «Як подати проєкт і проголосувати» (/faq, information_faq_h26.tpl) — та же раскладка, что у «Правил». WA-042/WA-055 */
.h26-fq .h26-fq-intro { margin-bottom: 36px; font-size: 17px; }
.h26-fq .h26-rl-faq summary > span { font-size: 25px; font-weight: 400; line-height: 1; }
.h26-fq .h26-rl-faq details:last-of-type { border-bottom: 1px solid #e4d7eb; }
.h26-fq .h26-rl-faq .h26-rl-prose h3 + details { margin-top: 4px; }
.h26-fq .h26-rl-toc a span { color: var(--h26-accent); }
.h26-rl-faq__more { margin: 0; padding-top: 22px; border-top: 1px solid #e4d7eb; color: #514854; font-size: 15px; line-height: 1.8; }
.h26-rl .h26-rl-faq__more a { color: var(--h26-accent); text-decoration: underline 1px; text-underline-offset: 4px; }
@media (max-width: 767px) {
    .h26-fq .h26-fq-intro { font-size: 15px; }
}
