/* PT Serif, ParaType. SIL Open Font License — OFL.txt рядом со шрифтами.
   Локальные подмножества: fonts.gstatic.com/s/ptserif/v19/, загружены 15.10.2026. */
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("pt-serif-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("pt-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #252b32;
  --blue: #233f62;
  --muted: #626c77;
  --line: #dcdedc;
  --soft: #f0f2f3;
  --green: #246345;
  --answer: #edf5ed;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; overflow-wrap: anywhere; }
body, input, button { -webkit-text-size-adjust: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #718daf; outline-offset: 4px; }
h1, h2, h3, h4, h5, p, ul, ol, blockquote, figure { margin: 0; }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(30px, 3.3vw, 46px); letter-spacing: -.025em; }
h2 { font-size: 32px; letter-spacing: -.02em; }
button, input { font: inherit; }
button { cursor: pointer; }
img, video, iframe, svg { max-width: 100%; }
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.reading { max-width: 740px; margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
.skip:focus { position: absolute; top: 8px; left: 8px; padding: 10px 18px; background: white; z-index: 10; }
.topbar { border-bottom: 1px solid var(--line); }
.site-header { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 48px; height: 48px; overflow: visible; }
.brand-mark rect { fill: var(--blue); }
.brand-mark path:first-of-type { fill: var(--paper); }
.brand-mark path:last-of-type { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-name, .brand-caption { display: block; }
.brand-name { font: 29px/1.15 var(--serif); letter-spacing: -.03em; }
.brand-caption { margin-top: 4px; color: var(--muted); font-size: 13px; letter-spacing: .05em; }
.search-form { display: flex; width: 100%; border: 1px solid #a9b4bf; border-radius: 6px; background: white; }
.search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.search-form input { flex: 1; min-width: 0; width: 100%; height: 62px; padding: 12px 20px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; font-size: 17px; }
.search-form input::placeholder { color: #69737e; opacity: 1; }
.search-form input:focus-visible { outline: 0; }
.search-form button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin: 5px; padding: 0 23px; border: 0; border-radius: 3px; color: white; background: var(--blue); }
.search-form button:hover { background: #34577e; }
.search-form button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }
.search-compact { width: 330px; }
.search-compact input { height: 44px; padding: 9px 13px; font-size: 14px; }
.search-compact button { width: 43px; padding: 0; margin: 0; background: none; color: var(--blue); }
.search-compact button:hover { background: var(--soft); }
.home-intro { padding: 63px 0 52px; max-width: 780px; }
.eyebrow { margin-bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.home-intro h1 { max-width: 760px; font-size: clamp(36px, 4.8vw, 64px); line-height: 1.15; }
.home-intro .prose { max-width: 670px; margin: 24px 0 27px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.home-intro .search-form { max-width: 680px; }
.intro-foot { max-width: 680px; margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.intro-foot a { text-decoration: none; }
.section { padding: 36px 0 42px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 24px; }
.section-note { font-size: 13px; color: var(--muted); }
.popular-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0; }
.popular-list li { border-bottom: 1px solid var(--line); }
.popular-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; min-height: 58px; padding: 12px 0; text-decoration: none; }
.popular-list a:hover span:first-child { text-decoration: underline; text-underline-offset: .2em; }
.popular-list a > span:last-child { font-size: 19px; color: #7e8fa3; }
.alphabet { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 22px; }
.alphabet a, .alphabet > span { display: flex; align-items: center; justify-content: center; width: 39px; height: 42px; border-radius: 3px; text-decoration: none; font-size: 16px; }
.alphabet a { border: 1px solid #d6dce2; background: #fff; }
.alphabet a:hover { border-color: var(--blue); background: var(--blue); color: white; }
.alphabet > span { color: #a4a7aa; }
.letter-group { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; border-top: 1px solid var(--line); padding: 26px 0; }
.letter-group h3 { font: 42px/1.1 var(--serif); color: var(--blue); }
.letter-group ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 25px; align-content: start; }
.letter-group a { display: inline-block; padding: 4px 0; line-height: 1.45; text-decoration: none; }
.letter-group a:hover { text-decoration: underline; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 34px 0 27px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.article-page h1 { margin-bottom: 29px; }
.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 22px; }
.prose h2 { margin-top: 36px; font-size: 30px; }
.prose h3 { margin-top: 30px; font-size: 25px; }
.prose h4, .prose h5 { font-size: 22px; }
.prose ul, .prose ol { padding-left: 26px; }
.prose li + li { margin-top: 6px; }
.prose img { display: block; width: auto; height: auto; max-width: min(100%, 500px); margin: 25px auto; }
.prose a:has(> img) { display: block; }
.prose blockquote { padding: 17px 23px; border-left: 2px solid #aebdcd; background: #f0f2f4; font-size: 18px; line-height: 1.75; }
.prose blockquote > * + * { margin-top: 12px; }
.prose .answer { position: relative; padding: 23px 24px 23px 60px; border-left: 4px solid var(--green); border-radius: 0 4px 4px 0; background: var(--answer); color: #214f39; font: 24px/1.5 var(--serif); }
.prose .answer::before { position: absolute; left: 21px; top: 26px; width: 18px; height: 18px; content: "✓"; font: 22px/1.3 Arial, sans-serif; color: var(--green); }
.prose .answer strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose td, .prose th { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.table-wrap { overflow-x: auto; }
.prose .noborder td, .prose .noborder th { border: 0; }
.prose .center { text-align: center; }
.prose .right { text-align: right; }
.prose .caption, .prose .note { color: var(--muted); font-size: 14px; }
.prose .lead { font-size: 20px; }
.prose .green { color: var(--green); }
.prose .red { color: #9c2e2e; }
.prose .hl { background: var(--soft); }
.prose .video { aspect-ratio: 16 / 9; }
.prose .video > iframe, .prose .video > video { display: block; width: 100%; height: 100%; border: 0; }
.related { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 30px; }
.related h2 { font-size: 28px; }
.related .section-heading > a { flex-shrink: 0; font-size: 13px; text-decoration: none; }
.word-neighbors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.word-neighbors a { padding: 18px 20px; border: 1px solid #cbd4dd; border-radius: 4px; text-decoration: none; }
.word-neighbors a:hover { background: white; border-color: var(--blue); }
.neighbor-label { display: block; margin-bottom: 7px; font-size: 12px; color: var(--muted); }
.neighbor-word { display: block; font: 23px/1.4 var(--serif); }
.nearby-words { display: flex; flex-wrap: wrap; list-style: none; gap: 8px 22px; padding: 0; margin-top: 23px; font-size: 15px; }
.nearby-words a { display: inline-block; padding: 5px 0; }
.search-page { padding-bottom: 12px; }
.search-page h1 { margin-bottom: 27px; }
.search-page .eyebrow { margin-top: 38px; }
.search-summary { margin-top: 25px; color: var(--muted); font-size: 15px; }
.search-results { list-style: none; padding: 0; margin: 25px 0 32px; }
.search-results li { padding: 23px 0; border-top: 1px solid var(--line); }
.search-results h2 { font-size: 27px; }
.search-results h2 a { text-decoration: none; }
.search-results h2 a:hover { text-decoration: underline; }
.search-results p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.search-results .search-correction { margin: 0 0 12px; padding: 10px 14px; background: var(--answer); color: var(--green); border-left: 3px solid var(--green); }
.site-nav { display: flex; gap: 24px; flex-shrink: 0; font-size: 15px; }
.site-nav a { padding-block: 8px; text-decoration: none; }
.site-nav a:hover, .site-nav [aria-current] { text-decoration: underline; }
.prose .rule-badge { margin-top: 12px; padding: 12px 17px; background: var(--soft); font-size: 15px; line-height: 1.6; border-radius: 4px; }
.same-rule-title { margin-top: 28px; font-size: 22px; }
.same-rule-title + .nearby-words { margin-top: 12px; }
.rule-page h1, .rules-page h1 { margin-bottom: 26px; }
.rule-words { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.rule-words h3 { font-size: 25px; }
.rule-words h3 a { text-decoration: none; }
.rule-words h3 a:hover { text-decoration: underline; }
.other-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; gap: 12px 28px; margin-top: 23px; font-size: 16px; }
.other-rules a { display: inline-block; padding-block: 4px; }
.rules-list { list-style: none; padding: 0; margin-top: 32px; }
.rules-list li { padding: 27px 0; border-top: 1px solid var(--line); }
.rules-list h2 { font-size: 29px; }
.rules-list h2 a { text-decoration: none; }
.rules-list h2 a:hover { text-decoration: underline; }
.rules-list p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.rule-count { display: inline-block; margin-top: 12px; color: var(--green); font-size: 13px; }
.suggestions { padding-left: 24px; margin: 15px 0 20px; }
.suggestions li { margin-block: 8px; }
.empty-result { padding: 28px 0; }
.empty-result h2 { margin-bottom: 14px; font-size: 28px; }
.back-link { margin-top: 30px; font-size: 15px; }
.plain-page h1 { margin-bottom: 25px; }
.error-page { padding-top: 60px; min-height: 500px; }
.error-number { margin-bottom: 16px; color: #a3b0bf; font: 62px/1 var(--serif); }
.error-page h1 { margin-bottom: 20px; }
.error-page .prose { max-width: 630px; color: var(--muted); }
.error-page .search-form { margin-top: 32px; max-width: 630px; }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; }
.pagination a { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; }
.pagination [aria-current] { background: var(--blue); color: white; }
.site-footer { display: flex; justify-content: space-between; gap: 22px; margin-top: 66px; padding-block: 28px 38px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer a { text-decoration: none; }
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 16px 24px; }
  .site-header .search-compact { width: 100%; }
  .shell { width: calc(100% - 48px); }
  .letter-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .popular-list { gap: 0 22px; }
  .home-intro { padding-top: 46px; }
}
@media (max-width: 600px) {
  .site-nav { width: 100%; gap: 26px; margin-block: -5px; }
  .other-rules { grid-template-columns: minmax(0, 1fr); }
  .rules-list h2 { font-size: 26px; }
  .rule-page h1, .rules-page h1 { font-size: 32px; }
  .rule-words > h2 { font-size: 28px; }
  body { font-size: 16px; }
  .shell { width: calc(100% - 32px); }
  .site-header { flex-wrap: wrap; gap: 18px; min-height: 0; padding-block: 20px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 28px; }
  .brand-caption { font-size: 12px; }
  .site-header .search-compact { width: 100%; }
  .search-compact input { height: 42px; font-size: 16px; }
  .search-form input { padding-inline: 13px; height: 54px; font-size: 16px; }
  .search-form button { padding-inline: 14px; }
  .search-compact button { padding: 0; }
  .search-form:not(.search-compact) button svg { display: none; }
  .home-intro { padding: 36px 0 35px; }
  .eyebrow { font-size: 10px; letter-spacing: .1em; margin-bottom: 15px; }
  .home-intro h1 { font-size: 38px; }
  .home-intro .prose { margin: 20px 0 22px; font-size: 17px; line-height: 1.65; }
  .intro-foot { flex-direction: column; gap: 8px; margin-top: 12px; }
  h2 { font-size: 28px; }
  .section { padding-block: 28px 32px; }
  .section-heading { align-items: flex-start; gap: 12px; margin-bottom: 19px; }
  .section-note { display: none; }
  .popular-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .popular-list a { min-height: 55px; padding-block: 13px; line-height: 1.45; }
  .popular-list a > span:last-child { display: none; }
  .alphabet { gap: 5px; }
  .alphabet a, .alphabet > span { width: 37px; height: 42px; }
  .letter-group { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding-block: 22px; }
  .letter-group h3 { font-size: 36px; }
  .letter-group ul { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .letter-group a { padding-block: 6px; }
  .breadcrumbs { font-size: 12px; margin: 26px 0 23px; gap: 6px 8px; }
  .article-page h1 { margin-bottom: 23px; font-size: 32px; line-height: 1.25; }
  .prose { font-size: 17px; line-height: 1.75; }
  .prose h2 { font-size: 27px; }
  .prose h3 { font-size: 24px; }
  .prose .answer { font-size: 21px; line-height: 1.5; padding: 20px 15px 20px 43px; }
  .prose .answer::before { left: 13px; top: 22px; font-size: 19px; }
  .prose blockquote { padding: 15px 17px; font-size: 17px; }
  .related { margin-top: 38px; padding-top: 25px; }
  .related .section-heading { flex-direction: column; gap: 9px; }
  .related h2 { font-size: 27px; }
  .word-neighbors { gap: 10px; }
  .word-neighbors a { padding: 13px 12px; }
  .neighbor-label { font-size: 11px; }
  .neighbor-word { font-size: 21px; }
  .nearby-words { gap: 5px 17px; }
  .search-page .eyebrow { margin-top: 25px; }
  .search-page h1 { font-size: 33px; }
  .search-results h2 { font-size: 25px; }
  .error-page { padding-top: 38px; min-height: 450px; }
  .error-number { font-size: 54px; }
  .error-page h1 { font-size: 34px; }
  .site-footer { flex-direction: column; gap: 13px; margin-top: 42px; padding-block: 23px 30px; }
}
@media (max-width: 340px) {
  .home-intro h1 { font-size: 35px; }
  .article-page h1 { font-size: 30px; }
  .word-neighbors { grid-template-columns: minmax(0, 1fr); }
  .alphabet a, .alphabet > span { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  body { background: white; color: black; }
  .shell { width: 100%; }
  .search-form, .related, .skip, .site-footer, .alphabet { display: none; }
  .site-header { min-height: 0; padding: 10px 0; }
  .prose .answer { background: none; }
  a { color: inherit; }
}
