:root {
  --home-bg: #030817;
  --home-surface: #091423;
  --home-surface-2: #0d1b2d;
  --home-surface-3: #11243a;
  --home-line: #20354b;
  --home-line-soft: rgba(130, 158, 187, 0.18);
  --home-text: #f8fafc;
  --home-muted: #99a9bd;
  --home-green: #51e391;
  --home-gold: #f4c55e;
  --home-blue: #86b9ff;
  --home-radius: 22px;
  --home-shadow: 0 26px 72px rgba(0, 0, 0, 0.3);
}

html,
body.home-page {
  overflow-x: hidden;
}

body.home-page {
  margin: 0;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-page a {
  color: inherit;
}

.home-page a:hover {
  text-shadow: none;
}

.home-skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  border-radius: 9px;
  background: #fff;
  color: #07111f !important;
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.home-skip-link:focus {
  transform: translateY(0);
}

.home-page .site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(123, 151, 181, 0.18);
  background: #0c1527;
}

.home-page .header-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
}

.home-page .logo a {
  color: var(--home-green);
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.home-page .main-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .main-nav a {
  color: #b0bbca;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.home-page .main-nav a:hover {
  color: #fff;
}

.home-main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 5%, rgba(49, 219, 128, 0.09), transparent 30rem),
    radial-gradient(circle at 8% 30%, rgba(244, 197, 94, 0.05), transparent 26rem),
    var(--home-bg);
}

.home-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.home-hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
  align-items: center;
  gap: 58px;
  padding: 88px 0 76px;
}

.home-kicker {
  margin: 0 0 14px;
  color: var(--home-green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-hero h1,
.home-section h2,
.home-search-section h2 {
  margin: 0;
  color: var(--home-text);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.home-hero h1 {
  max-width: 760px;
  font-size: clamp(3.35rem, 5.25vw, 4.85rem);
}

.home-hero-lede {
  max-width: 690px;
  margin: 24px 0 0;
  color: #b5c1d1;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.72;
}

.home-hero-lede strong {
  color: #fff;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.home-button,
.home-search-clear {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.home-button {
  background: linear-gradient(135deg, #73f0aa, #34cd7c);
  color: #04160d;
  box-shadow: 0 14px 34px rgba(35, 204, 116, 0.18);
}

.home-button:hover {
  color: #03140b;
  transform: translateY(-1px);
}

.home-text-link {
  color: #d5dde8;
  font-weight: 760;
  text-decoration: none;
}

.home-text-link::after {
  content: "  →";
  color: var(--home-green);
}

.home-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.home-hero-facts div {
  padding: 16px;
  border: 1px solid var(--home-line-soft);
  border-radius: 15px;
  background: rgba(13, 27, 45, 0.78);
}

.home-hero-facts dt {
  color: #fff;
  font-size: 0.83rem;
  font-weight: 850;
}

.home-hero-facts dd {
  margin: 5px 0 0;
  color: #8f9eb2;
  font-size: 0.76rem;
  line-height: 1.5;
}

.home-hero-figure {
  position: relative;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(104, 150, 126, 0.4);
  border-radius: 26px;
  background: rgba(11, 23, 39, 0.72);
  box-shadow: var(--home-shadow);
}

.home-hero-figure::before {
  content: "";
  position: absolute;
  inset: 8% 9% auto;
  height: 46%;
  border-radius: 50%;
  background: rgba(45, 219, 128, 0.12);
  filter: blur(58px);
  pointer-events: none;
}

.home-hero-figure img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.home-hero-figure figcaption {
  position: relative;
  padding: 14px 8px 2px;
  color: #8291a5;
  font-size: 0.8rem;
  line-height: 1.55;
}

.home-search-form.home-hero-search {
  margin-top: 30px;
  padding: 20px;
  background: rgba(13, 27, 45, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.home-hero-search-status {
  min-height: 1.5em;
  margin: 12px 2px 0;
  color: #8fa1b7;
  font-size: 0.8rem;
}

.home-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: var(--home-line);
  box-shadow: var(--home-shadow);
}

.home-proof > div {
  min-height: 185px;
  padding: 24px;
  background: var(--home-surface-2);
}

.home-proof span {
  color: var(--home-green);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.home-proof strong {
  display: block;
  margin-top: 20px;
  color: #fff;
  font-size: 1rem;
}

.home-proof p {
  margin: 8px 0 0;
  color: #8d9eb3;
  font-size: 0.82rem;
  line-height: 1.58;
}

.home-section,
.home-search-section {
  position: relative;
  padding: 104px 0;
}

.home-section::before,
.home-search-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 1px solid rgba(109, 137, 168, 0.1);
}

.home-section:nth-of-type(even)::before {
  background: rgba(8, 17, 31, 0.68);
}

.home-section-heading {
  max-width: 850px;
  margin-bottom: 46px;
}

.home-section h2,
.home-search-section h2 {
  max-width: 970px;
  font-size: clamp(2.45rem, 5vw, 4.75rem);
}

.home-section-heading > p:last-child,
.home-path-copy > p,
.home-tools-copy > p,
.home-books-copy > p,
.home-standards-copy > p {
  max-width: 800px;
  margin: 24px 0 0;
  color: var(--home-muted);
  font-size: 1.04rem;
}

.home-search-section::before {
  background:
    radial-gradient(circle at 85% 24%, rgba(81, 227, 145, 0.08), transparent 24rem),
    #07111f;
}

.home-search-form {
  padding: 24px;
  border: 1px solid var(--home-line);
  border-radius: 22px;
  background: var(--home-surface-2);
  box-shadow: var(--home-shadow);
}

.home-search-form > label {
  display: block;
  margin-bottom: 9px;
  color: #d4dce6;
  font-size: 0.82rem;
  font-weight: 780;
}

.home-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.home-search-row input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #2b425b;
  border-radius: 11px;
  outline: 0;
  background: #061321;
  color: #fff;
  font: inherit;
}

.home-search-row input:focus {
  border-color: var(--home-green);
  box-shadow: 0 0 0 3px rgba(81, 227, 145, 0.13);
}

.home-search-clear {
  border: 1px solid var(--home-line);
  background: #101f32;
  color: #c5d0dc;
}

.home-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.home-search-filters button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--home-line-soft);
  border-radius: 999px;
  background: #0a1729;
  color: #98a8ba;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 740;
  cursor: pointer;
}

.home-search-filters button:hover,
.home-search-filters button.is-active {
  border-color: rgba(81, 227, 145, 0.48);
  background: #123326;
  color: var(--home-green);
}

.home-search-meta {
  margin-top: 20px;
}

.home-search-meta p {
  margin: 0;
  color: #8698ad;
  font-size: 0.82rem;
}

.home-search-results {
  scroll-margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.home-search-results a {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--home-line-soft);
  border-radius: 17px;
  background: var(--home-surface-2);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.home-search-results a:hover {
  border-color: rgba(81, 227, 145, 0.42);
  transform: translateY(-2px);
}

.home-search-results span,
.home-search-results strong {
  display: block;
}

.home-search-results span {
  color: var(--home-green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-search-results strong {
  margin-top: 15px;
  color: #fff;
  font-size: 1.06rem;
  line-height: 1.25;
}

.home-search-results p {
  margin: 12px 0 0;
  color: #8798ab;
  font-size: 0.82rem;
  line-height: 1.58;
}

.home-search-empty {
  margin: 16px 0 0;
  padding: 24px;
  border: 1px dashed #32485e;
  border-radius: 15px;
  color: #9baabc;
  text-align: center;
}

.home-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.home-route-grid a {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--home-line-soft);
  border-radius: var(--home-radius);
  background: linear-gradient(145deg, rgba(16, 31, 51, 0.96), rgba(8, 19, 33, 0.94));
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.home-route-grid a:hover {
  border-color: rgba(81, 227, 145, 0.42);
  transform: translateY(-3px);
}

.home-route-grid span {
  color: var(--home-green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-route-grid h3 {
  margin: 24px 0 0;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1.18;
}

.home-route-grid p {
  margin: 13px 0 0;
  color: #8e9fb3;
  font-size: 0.84rem;
}

.home-route-grid i {
  margin-top: auto;
  padding-top: 24px;
  color: #d7e2ed;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.home-route-grid i::after,
.home-featured-grid i::after {
  content: "  \2192";
  color: var(--home-green);
}

.home-teaching-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.home-teaching-grid article {
  min-height: 320px;
  padding: 26px;
  border: 1px solid var(--home-line-soft);
  border-radius: var(--home-radius);
  background: linear-gradient(145deg, rgba(16, 31, 51, 0.94), rgba(8, 19, 33, 0.93));
}

.home-teaching-grid span {
  color: var(--home-green);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-teaching-grid article:nth-child(2) span {
  color: #7af2ad;
}

.home-teaching-grid article:nth-child(3) span {
  color: var(--home-gold);
}

.home-teaching-grid article:nth-child(4) span {
  color: var(--home-blue);
}

.home-teaching-grid h3 {
  margin: 28px 0 12px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.16;
}

.home-teaching-grid p {
  margin: 0;
  color: #91a1b5;
  font-size: 0.88rem;
}

.home-teaching-grid a {
  display: inline-block;
  margin-top: 24px;
  color: #d8e1eb;
  font-size: 0.82rem;
  font-weight: 780;
  text-decoration-color: rgba(81, 227, 145, 0.48);
  text-underline-offset: 4px;
}

.home-path {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
  gap: 74px;
  align-items: start;
}

.home-path-copy {
  position: sticky;
  top: 28px;
}

.home-path-copy .home-button,
.home-tools-copy .home-button,
.home-books-copy .home-button {
  margin-top: 28px;
}

.home-path-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-path-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 21px;
  border: 1px solid var(--home-line-soft);
  border-radius: 17px;
  background: var(--home-surface-2);
}

.home-path-list li > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: #123429;
  color: var(--home-green);
  font-size: 0.72rem;
  font-weight: 900;
}

.home-path-list strong {
  color: #fff;
  font-size: 1.06rem;
}

.home-path-list p {
  margin: 7px 0 0;
  color: #8e9fb3;
  font-size: 0.84rem;
}

.home-path-list a {
  display: inline-block;
  margin-top: 10px;
  color: var(--home-green);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.home-featured-grid a {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--home-line-soft);
  border-radius: var(--home-radius);
  background: var(--home-surface-2);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.home-featured-grid a:hover {
  border-color: rgba(81, 227, 145, 0.42);
  transform: translateY(-3px);
}

.home-featured-grid span,
.home-featured-grid strong,
.home-featured-grid i {
  display: block;
}

.home-featured-grid span {
  color: var(--home-green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-featured-grid strong,
.home-featured-grid h3 {
  margin-top: 20px;
  margin-bottom: 0;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.22;
}

.home-featured-grid p {
  margin: 13px 0 0;
  color: #8e9fb3;
  font-size: 0.84rem;
}

.home-featured-grid i {
  margin-top: auto;
  padding-top: 24px;
  color: #ced9e5;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.home-topics::before {
  background: #07111f;
}

.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-topic-grid a {
  min-height: 220px;
  padding: 23px;
  border: 1px solid var(--home-line-soft);
  border-radius: 18px;
  background: var(--home-surface-2);
  text-decoration: none;
}

.home-topic-grid a:hover {
  border-color: rgba(81, 227, 145, 0.42);
}

.home-topic-grid span,
.home-topic-grid strong,
.home-topic-grid h3 {
  display: block;
}

.home-topic-grid span {
  color: var(--home-green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-topic-grid strong,
.home-topic-grid h3 {
  margin-top: 18px;
  margin-bottom: 0;
  color: #fff;
  font-size: 1.15rem;
}

.home-topic-grid p {
  margin: 11px 0 0;
  color: #8d9eb2;
  font-size: 0.83rem;
}

.home-tools {
  display: grid;
  grid-template-columns: minmax(330px, 0.76fr) minmax(0, 1.24fr);
  gap: 70px;
  align-items: start;
}

.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-tools-grid a {
  min-height: 185px;
  padding: 22px;
  border: 1px solid var(--home-line-soft);
  border-radius: 17px;
  background: var(--home-surface-2);
  text-decoration: none;
}

.home-tools-grid a:hover {
  border-color: rgba(81, 227, 145, 0.42);
}

.home-tools-grid span {
  color: var(--home-green);
  font-size: 0.7rem;
  font-weight: 900;
}

.home-tools-grid strong,
.home-tools-grid h3 {
  display: block;
  margin-top: 17px;
  margin-bottom: 0;
  color: #fff;
  font-size: 1.04rem;
}

.home-tools-grid p {
  margin: 9px 0 0;
  color: #8e9fb3;
  font-size: 0.82rem;
}

.home-books {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr);
  gap: 68px;
  align-items: center;
}

.home-books::before {
  background:
    radial-gradient(circle at 84% 45%, rgba(244, 197, 94, 0.08), transparent 28rem),
    #07111f;
}

.home-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.home-book-grid a {
  display: block;
  text-decoration: none;
}

.home-book-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(241, 198, 103, 0.26);
  border-radius: 13px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.36);
  transition: transform 180ms ease;
}

.home-book-grid a:hover img {
  transform: translateY(-5px);
}

.home-book-grid span,
.home-book-grid strong {
  display: block;
}

.home-book-grid span {
  margin-top: 16px;
  color: var(--home-gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-book-grid strong {
  margin-top: 6px;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.25;
}

.home-standards {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(500px, 1.15fr);
  gap: 70px;
  align-items: start;
}

.home-standard-links {
  display: grid;
  gap: 12px;
}

.home-standard-links a {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 4px 22px;
  padding: 22px;
  border: 1px solid var(--home-line-soft);
  border-radius: 17px;
  background: var(--home-surface-2);
  text-decoration: none;
}

.home-standard-links a:hover {
  border-color: rgba(81, 227, 145, 0.42);
}

.home-standard-links span {
  grid-row: span 2;
  color: var(--home-green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-standard-links strong {
  color: #fff;
  font-size: 1rem;
}

.home-standard-links p {
  margin: 5px 0 0;
  color: #8a9bb0;
  font-size: 0.8rem;
}

.home-faq-list {
  display: grid;
  gap: 10px;
}

.home-faq details {
  border: 1px solid var(--home-line-soft);
  border-radius: 15px;
  background: var(--home-surface-2);
}

.home-faq summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  color: #fff;
  font-weight: 780;
  cursor: pointer;
  list-style: none;
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: var(--home-green);
  font-size: 1.4rem;
}

.home-faq details[open] summary::after {
  content: "−";
}

.home-faq details p {
  margin: 0;
  padding: 0 22px 22px;
  color: #96a6b8;
}

.home-disclaimer {
  margin: 22px 0 92px;
  padding: 22px 24px;
  border: 1px solid rgba(244, 197, 94, 0.3);
  border-radius: 16px;
  background: rgba(50, 38, 17, 0.42);
}

.home-disclaimer strong {
  color: var(--home-gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-disclaimer p {
  margin: 8px 0 0;
  color: #aaa28f;
  font-size: 0.82rem;
}

.home-page .site-footer {
  border-top: 1px solid rgba(123, 151, 181, 0.18);
  background: #08111f;
}

.home-page .footer-inner {
  color: #98a6b8;
}

.home-page .footer-book h3,
.home-page .footer-links a,
.home-page .footer-book-link {
  color: #fff;
}

.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page input:focus-visible,
.home-page summary:focus-visible {
  outline: 3px solid rgba(81, 227, 145, 0.86);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .home-hero-copy {
    max-width: 890px;
  }

  .home-hero-figure {
    max-width: 830px;
  }

  .home-proof,
  .home-route-grid,
  .home-teaching-grid,
  .home-featured-grid,
  .home-topic-grid,
  .home-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-path,
  .home-tools,
  .home-books,
  .home-standards {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .home-path-copy {
    position: static;
  }

  .home-books-copy,
  .home-tools-copy,
  .home-standards-copy {
    max-width: 820px;
  }
}

@media (max-width: 780px) {
  .home-page .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .home-page .main-nav ul {
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .home-hero {
    min-height: 0;
    padding: 78px 0 64px;
  }

  .home-hero h1 {
    font-size: clamp(2.6rem, 10.8vw, 4.3rem);
  }

  .home-hero-facts,
  .home-proof,
  .home-route-grid,
  .home-teaching-grid,
  .home-featured-grid,
  .home-topic-grid,
  .home-search-results {
    grid-template-columns: 1fr;
  }

  .home-proof > div,
  .home-route-grid a,
  .home-teaching-grid article,
  .home-featured-grid a,
  .home-topic-grid a,
  .home-search-results a {
    min-height: 0;
  }

  .home-section,
  .home-search-section {
    padding: 78px 0;
  }

  .home-search-row {
    grid-template-columns: 1fr 1fr;
  }

  .home-search-row input {
    grid-column: 1 / -1;
  }

  .home-tools-grid {
    grid-template-columns: 1fr;
  }

  .home-standard-links a {
    grid-template-columns: 1fr;
  }

  .home-standard-links span {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .home-shell {
    width: min(100% - 32px, 1160px);
  }

  .home-page .header-inner {
    width: min(100% - 32px, 1160px);
  }

  .home-page .main-nav a {
    font-size: 0.8rem;
  }

  .home-hero h1 {
    font-size: clamp(2.55rem, 10.8vw, 3.1rem);
  }

  .home-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero-actions .home-button {
    width: 100%;
  }

  .home-hero-figure {
    padding: 8px;
    border-radius: 20px;
  }

  .home-section h2,
  .home-search-section h2 {
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }

  .home-search-form {
    padding: 16px;
  }

  .home-search-row {
    grid-template-columns: 1fr;
  }

  .home-search-row input {
    grid-column: auto;
  }

  .home-search-row .home-button,
  .home-search-clear {
    width: 100%;
  }

  .home-search-filters {
    gap: 7px;
  }

  .home-path-list li {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 16px;
  }

  .home-path-list li > span {
    width: 42px;
    height: 42px;
  }

  .home-book-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .home-book-grid a {
    max-width: 270px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
