:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #194c40;
  background: #f6f5ef;
  font-synthesis: none;
  line-height: 1.65;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #166b57;
  text-underline-offset: 0.22em;
}
a:hover {
  color: #824d1a;
}
a:focus-visible,
summary:focus-visible,
audio:focus-visible {
  outline: 3px solid #a47630;
  outline-offset: 5px;
  border-radius: 5px;
}
.book-shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 36px;
}
.book-header {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid #dadfd7;
}
.book-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}
.book-header nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.book-header nav a {
  font-size: 16px;
}
.book-skip {
  position: absolute;
  top: -90px;
  left: 16px;
  background: white;
  padding: 12px;
  z-index: 9;
}
.book-skip:focus {
  top: 8px;
}
.book-eyebrow {
  font-size: 14px;
  letter-spacing: 0.13em;
  margin-top: 40px;
  color: #6b756d;
}
h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  max-width: 920px;
  margin: 16px 0 24px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 28px;
  line-height: 1.3;
}
h3 {
  font-size: 20px;
  line-height: 1.4;
}
p,
li,
summary {
  font-size: 17px;
}
p {
  margin: 12px 0;
}
.book-lead {
  font-size: 20px;
  max-width: 860px;
}
.book-actions,
.book-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 24px 0;
}
.book-primary {
  background: #236d55;
  color: white !important;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.book-primary:hover {
  background: #194c40;
}
.book-levels a {
  padding: 10px 26px;
  background: #e4ede4;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
section {
  scroll-margin-top: 24px;
}
.book-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 22px 0 40px;
}
.book-card {
  display: block;
  background: #fffdf8;
  border: 1px solid #dce2d9;
  border-radius: 16px;
  padding: 22px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.book-card > span {
  font-size: 14px;
  color: #68776e;
}
.book-grid > a.book-card {
  text-decoration: none;
  transition: box-shadow 0.18s;
}
.book-grid > a.book-card:hover {
  box-shadow: 0 7px 22px #194c4014;
}
.book-scene {
  position: relative;
  overflow: hidden;
  height: 180px;
  border-radius: 12px;
  margin: 0 0 18px;
  background-color: #dce7d8;
}
.book-scene-art {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  top: 50%;
  transform: translateY(-42%);
  background-size: 400% 200%;
}
.book-card .book-scene {
  height: 145px;
}
.book-kazakh {
  font-size: 22px;
  line-height: 1.6;
  color: #164b3e;
  font-weight: 600;
}
.book-note {
  background: #e9f0e5;
  border-left: 4px solid #bd9350;
  padding: 22px 28px;
  border-radius: 12px;
  margin: 28px 0;
}
.book-note h2 {
  margin-top: 0;
}
.book-muted {
  color: #617067;
}
.book-dialogue > div {
  background: #fffdf8;
  border-left: 3px solid #bad0bc;
  padding: 18px 24px;
  margin: 16px 0;
  max-width: 900px;
}
.book-dialogue > div:nth-child(even) {
  margin-left: 40px;
}
.book-question {
  margin: 18px 0;
}
.book-question h3 {
  margin-top: 0;
}
.book-question li {
  padding: 5px 0;
}
details > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
details > summary::marker {
  color: #a77c36;
}
details[open] > summary {
  margin-bottom: 12px;
}
details details {
  border-top: 1px solid #dce2d9;
  margin-top: 16px;
  padding-top: 8px;
}
audio {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 14px 0;
  min-width: 0;
}
.book-example {
  border-top: 1px solid #dce2d9;
  margin-top: 16px;
  padding-top: 16px;
}
.book-footer {
  background-image: url('/ornament.svg');
  background-repeat: repeat-x;
  background-position: top;
  background-size: 100px 26px;
  padding: 42px 0 28px;
  margin-top: 48px;
  color: #5b6f62;
}
.book-footer p {
  font-size: 15px;
}
.book-footer a {
  font-size: 16px;
}
article > .book-scene {
  max-width: 480px;
  height: auto;
  aspect-ratio: 4 / 3;
}
#book-main {
  padding-bottom: 10px;
}
@media (max-width: 800px) {
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .book-shell {
    padding: 0 24px;
  }
  .book-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .book-header nav {
    gap: 20px;
  }
}
@media (max-width: 520px) {
  .book-shell {
    padding: 0 18px;
  }
  .book-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .book-card {
    padding: 18px;
  }
  .book-scene,
  .book-card .book-scene {
    height: 170px;
  }
  .book-header nav a {
    font-size: 15px;
  }
  .book-eyebrow {
    font-size: 13px;
    margin-top: 28px;
  }
  h2 {
    font-size: 25px;
  }
  .book-kazakh {
    font-size: 21px;
  }
  .book-note {
    padding: 18px;
  }
  .book-dialogue > div:nth-child(even) {
    margin-left: 16px;
  }
  .book-section-title {
    align-items: flex-start;
  }
  .book-actions {
    gap: 14px;
  }
  .book-primary {
    width: 100%;
    text-align: center;
  }
  article > .book-scene {
    height: 190px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media print {
  .book-header nav,
  .book-actions,
  .book-levels,
  audio,
  .book-skip {
    display: none;
  }
  .book-shell {
    max-width: none;
    padding: 0;
  }
  .book-card,
  .book-note {
    break-inside: avoid;
  }
  details:not([open]) > :not(summary) {
    display: block;
  }
  .book-footer {
    background: none;
  }
}
