﻿.language { background: #f0efeb; }
.language-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}
.language-heading > p { max-width: 330px; margin-bottom: 38px; color: var(--muted); line-height: 1.7; }
.language h2 em { color: #f0efeb; }
.language h3 { margin: 10px 0; font: 600 30px Oswald, sans-serif; }
.language-tag { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.language-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; border-top: 1px solid #cfcfc9; padding: 35px 0 50px; }
.language-intro > div > p:last-child, .glossary-head p:not(.language-tag) { color: var(--muted); line-height: 1.7; }
.phrases { margin: 0; }
.phrases div { padding: 15px 0; border-bottom: 1px solid #d3d2cc; }
.phrases dt, .term-grid dt { font-weight: 700; }
.phrases dt span { margin-left: 10px; color: var(--red); font-weight: 400; }
.phrases dd { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.counting { background: #c8202e; color: #fff; padding: 30px; }
.counting .language-tag { color: #fff; }
.counting ol { list-style: none; display: grid; grid-template-columns: repeat(10, 1fr); padding: 0; margin: 25px 0 0; gap: 8px; }
.counting li { border-top: 1px solid rgba(255,255,255,.4); padding-top: 14px; }
.counting strong, .counting span { display: block; }
.counting strong { font: 600 28px Oswald, sans-serif; }
.counting span { margin-top: 5px; font-size: 13px; }
.glossary { padding-top: 70px; }
.glossary-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 20px; }
.glossary-head label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.glossary-head input { width: 280px; max-width: 100%; padding: 13px; border: 1px solid #bbb9b3; background: white; color: #171718; font: inherit; }
.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 0; border-top: 1px solid #cfcfc9; }
.term-grid div { border-bottom: 1px solid #d3d2cc; padding: 19px 0; }
.term-grid div[hidden] { display: none; }
.term-grid dt { font-size: 16px; }
.term-grid dd { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.glossary-empty, .language-source { color: var(--muted); font-size: 13px; line-height: 1.7; }
.language-source { margin-top: 25px; }
.language-source a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 750px) {
  .language-heading { display: block; }
  .language-heading > p { margin-bottom: 30px; }
  .language-intro { grid-template-columns: 1fr; gap: 15px; }
  .counting { padding: 24px; }
  .counting ol { grid-template-columns: repeat(5, 1fr); gap: 20px 8px; }
  .glossary-head { display: block; }
  .glossary-head label { margin-top: 20px; }
  .glossary-head input { width: 100%; }
  .term-grid { grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
}
