.downloads-header { border-bottom: 1px solid #ccdbd6; background: #fafcfb; }
.downloads-header .shell, .downloads-header nav, .download-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1rem;
}
.downloads-header .shell { justify-content: space-between; padding-block: .6rem; }
.downloads-header a, .text-action { display: inline-flex; align-items: center; min-height: 44px; }
.downloads-header .brand { font-size: 1.2rem; }
.downloads-header nav a { color: #28584e; text-underline-offset: .25em; }
.downloads-header [aria-current] { color: #073d31; font-weight: 700; text-decoration-thickness: 2px; }
.downloads-header [lang="kk-Arab"] { font-family: KazNet, serif; }
.downloads-main { padding-block: clamp(2rem, 5vw, 4rem); overflow-wrap: anywhere; }
.downloads-main h1, .downloads-main h2, .downloads-main p { margin: 0; }
.downloads-main h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.15; }
.downloads-main .downloads-intro { margin-block: .9rem 2rem; font-size: 1.1rem; color: #405951; }
.downloads-main p { line-height: 1.65; }
.keyboard-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, .6fr); gap: 1.3rem;
  align-items: center; padding: clamp(1.4rem, 4vw, 3rem); color: #fff;
  background: linear-gradient(115deg, #083f35 0%, #125c4c 72%, #21785e 100%); border-radius: 1.25rem;
}
.keyboard-panel h2 { font-size: clamp(1.65rem, 4vw, 2.7rem); line-height: 1.3; margin-block: .45rem; }
.platform, .file-meta, .download-action small { font-family: ui-sans-serif, system-ui, sans-serif; }
.platform { color: #c4e6d9; font-weight: 650; }
.keyboard-panel .release-status {
  display: inline-block; margin-block-start: 1rem; color: #e1f6eb; font-size: .94rem; font-weight: 600;
}
.release-status::before { content: ''; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-inline-end: .55rem; background: #b0dab7; }
.keyboard-panel .download-action { margin-block-start: 1rem; background: white; color: #174e3f; }
.keyboard-art { max-width: 20rem; width: 90%; margin-inline: auto; transform: rotate(-5deg); padding: .7rem; border: 1px solid #80b5a2; border-radius: .9rem; background: #ffffff13; box-shadow: 0 .3rem 0 #052d2666; }
.keyboard-art div { display: flex; justify-content: center; gap: 2%; margin: 2%; }
.keyboard-art i { width: 10.5%; aspect-ratio: 1.2; border-radius: .2rem; background: #c8e5d8; box-shadow: 0 2px #79a796; }
.keyboard-art .keyboard-bottom i { width: 14%; aspect-ratio: auto; height: clamp(.3rem, 1.2vw, .85rem); }
.keyboard-art .keyboard-bottom i:nth-child(2) { width: 44%; }
.downloads-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.download-card { display: flex; flex-direction: column; align-items: start; gap: .65rem; padding: clamp(1.4rem, 3vw, 2.1rem); border: 1px solid #ccdbd6; border-radius: 1.25rem; background: #fff; }
.download-card h2 { font-size: 1.45rem; }
.download-card .font-name { font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; }
.download-card .file-meta { font-size: .88rem; color: #496259; }
.download-actions { margin-top: auto; padding-top: .65rem; }
.download-action { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .65rem 1rem; border-radius: .65rem; background: #135846; font-weight: 650; text-decoration: none; color: #fff; }
.download-action:hover { background: #093e32; color: #fff; }
.text-action { color: #195845; text-underline-offset: .23em; }
.downloads-main a:focus-visible, .downloads-header a:focus-visible { outline: 3px solid #167bc0; outline-offset: 3px; }
@media (max-width: 660px) {
  .downloads-grid { grid-template-columns: 1fr; }
  .keyboard-panel { grid-template-columns: minmax(0,1fr) minmax(4rem,.36fr); gap: .4rem; }
  .keyboard-art { width: 96%; padding: .3rem; }
  .downloads-header nav { gap: 0 .7rem; }
}
@media (max-width: 380px) {
  .keyboard-art { display: none; }
  .keyboard-panel { grid-template-columns: 1fr; }
}
