.page-home {
  background: var(--paper);
  color: var(--ink);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 30px 0 0;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(200, 162, 74, 0.12), transparent 46%),
    repeating-linear-gradient(90deg, rgba(247, 241, 230, 0.045) 0 1px, transparent 1px 88px);
  pointer-events: none;
}

.page-home .home-hero .shell {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__inner {
  display: grid;
  gap: 30px;
  padding-bottom: 34px;
}

.page-home .home-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(247, 241, 230, 0.55);
}

.page-home .home-hero__crumbs a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.page-home .home-hero__crumbs a:hover,
.page-home .home-hero__crumbs a:focus-visible {
  color: #fff;
  border-bottom-color: var(--gold);
}

.page-home .home-hero__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .home-hero h1 {
  margin: 0;
  max-width: 20em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 50px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: #FDF8EE;
}

.page-home .home-hero__intro {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(247, 241, 230, 0.8);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .home-hero__stats {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(200, 162, 74, 0.32);
}

.page-home .home-hero__stats li {
  padding: 16px 10px 4px 0;
  border-right: 1px solid rgba(247, 241, 230, 0.12);
}

.page-home .home-hero__stats li:last-child {
  border-right: 0;
  padding-right: 0;
}

.page-home .home-hero__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(19px, 4vw, 25px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.page-home .home-hero__stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(247, 241, 230, 0.62);
}

.page-home .home-hero__visual {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(200, 162, 74, 0.4);
  background: linear-gradient(160deg, rgba(200, 162, 74, 0.16), rgba(58, 46, 36, 0.9));
  box-shadow: var(--shadow-lift);
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}

.page-home .home-hero__overlay {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 11px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(20, 18, 16, 0.78);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(247, 241, 230, 0.84);
}

.page-home .home-hero__overlay .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-home .home-hero__rail {
  display: grid;
  gap: 14px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(200, 162, 74, 0.3);
}

.page-home .home-hero__rail-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .home-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.page-home .home-rail__item {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
}

.page-home .home-rail__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(179, 58, 43, 0.22);
}

.page-home .home-rail__item a {
  color: rgba(247, 241, 230, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 241, 230, 0.22);
  transition: color var(--ease), border-color var(--ease);
}

.page-home .home-rail__item a:hover,
.page-home .home-rail__item a:focus-visible {
  color: #fff;
  border-bottom-color: var(--gold);
}

.page-home .home-hero__rail-link {
  justify-self: start;
  font-size: 13px;
  color: var(--gold-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(200, 162, 74, 0.5);
  transition: color var(--ease), border-color var(--ease);
}

.page-home .home-hero__rail-link:hover,
.page-home .home-hero__rail-link:focus-visible {
  color: #fff;
  border-bottom-color: var(--gold);
}

@media (min-width: 640px) {
  .page-home .home-rail__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .page-home .home-hero {
    padding-top: 44px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 46px;
    align-items: center;
    padding-bottom: 40px;
  }

  .page-home .home-hero__rail {
    grid-template-columns: 168px minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
  }
}

@media (max-width: 599px) {
  .page-home .home-hero__overlay {
    position: static;
    margin-top: 12px;
    left: auto;
    right: auto;
    bottom: auto;
    border-left-width: 3px;
  }
}

.page-home .home-sec {
  position: relative;
  padding: 52px 0 58px;
}

@media (min-width: 900px) {
  .page-home .home-sec {
    padding: 84px 0 88px;
  }
}

.page-home .home-sec__head {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
  max-width: 74ch;
}

.page-home .home-sec__num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-home .home-sec__num::after {
  content: "";
  width: 54px;
  height: 1px;
  background: var(--gold);
}

.page-home .home-sec__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 4.2vw, 32px);
  line-height: 1.3;
  color: var(--ink);
}

.page-home .home-sec__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--slate-blue);
}

.page-home .home-index__body {
  display: grid;
  gap: 28px;
}

.page-home .home-index__aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-home .home-index__figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--paper-line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.page-home .home-index__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-index__note {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold-soft);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--slate-blue);
}

.page-home .idx-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-home .idx-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 14px 14px 13px;
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--gold-soft);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.page-home .idx-card:hover,
.page-home .idx-card:focus-visible {
  transform: translateY(-3px);
  border-left-color: var(--gold);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.page-home .idx-card__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .idx-card__name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
}

.page-home .idx-card__meta {
  font-size: 12px;
  color: var(--slate-blue);
}

@media (min-width: 640px) {
  .page-home .idx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .home-index__body {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .page-home .idx-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .home-cycle {
  background: var(--brown);
  color: var(--paper);
}

.page-home .home-cycle .home-sec__title {
  color: #FBF5E9;
}

.page-home .home-cycle .home-sec__lead {
  color: rgba(247, 241, 230, 0.72);
}

.page-home .cycle-track {
  list-style: none;
  margin: 0 0 34px;
  padding: 0 0 0 4px;
  display: grid;
  gap: 0;
}

.page-home .cycle-item {
  position: relative;
  padding: 0 0 26px 26px;
  border-left: 1px solid rgba(200, 162, 74, 0.35);
}

.page-home .cycle-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.page-home .cycle-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(179, 58, 43, 0.25);
}

.page-home .cycle-item__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .cycle-item__name {
  margin: 7px 0 8px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  color: #FBF5E9;
}

.page-home .cycle-item__text {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(247, 241, 230, 0.72);
}

.page-home .cycle-figure {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(200, 162, 74, 0.4);
  background: rgba(20, 18, 16, 0.5);
}

.page-home .cycle-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .cycle-figure figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(247, 241, 230, 0.6);
}

@media (min-width: 880px) {
  .page-home .cycle-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0 16px;
    padding-left: 0;
  }

  .page-home .cycle-item {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(200, 162, 74, 0.35);
  }

  .page-home .cycle-item:last-child {
    border-left-color: transparent;
    border-top-color: rgba(200, 162, 74, 0.35);
  }

  .page-home .cycle-item::before {
    left: 0;
    top: -5px;
  }
}

.page-home .fav-grid {
  display: grid;
  gap: 16px;
}

.page-home .fav-card {
  position: relative;
  display: block;
  padding: 22px 22px 20px;
  border: 1px solid var(--paper-line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.page-home .fav-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--gold-soft);
  transition: background var(--ease);
}

.page-home .fav-card:hover,
.page-home .fav-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(200, 162, 74, 0.6);
  box-shadow: var(--shadow-lift);
}

.page-home .fav-card:hover::before,
.page-home .fav-card:focus-visible::before {
  background: var(--gold);
}

.page-home .fav-card__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--slate-blue);
}

.page-home .fav-card__title {
  margin: 10px 0 8px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .fav-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.82;
  color: var(--slate-blue);
}

.page-home .fav-card__go {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--jade);
}

@media (min-width: 760px) {
  .page-home .fav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
  }
}

@media (min-width: 1040px) {
  .page-home .fav-card:nth-child(2),
  .page-home .fav-card:nth-child(4) {
    margin-top: 26px;
  }
}

.page-home .week-board {
  padding: 18px;
  border: 1px solid var(--paper-line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.page-home .week-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.page-home .week-cell {
  display: grid;
  gap: 7px;
  padding: 11px 11px 10px;
  border: 1px dashed var(--paper-line);
  background: var(--paper);
  transition: transform var(--ease), border-color var(--ease), border-style var(--ease), background var(--ease);
}

.page-home .week-cell:hover {
  transform: translateY(-2px);
  border-style: solid;
  border-color: var(--gold);
  background: #fff;
}

.page-home .week-cell__no {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.page-home .week-cell__bar {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--gold-soft);
}

.page-home .week-cell__meta {
  font-size: 11px;
  line-height: 1.5;
  color: var(--slate-blue);
}

.page-home .week-cell--node .week-cell__bar {
  background: var(--cinnabar);
}

.page-home .week-cell--node .week-cell__meta {
  color: var(--cinnabar);
}

.page-home .week-cell--help .week-cell__bar {
  background: var(--jade);
}

.page-home .week-cell--help .week-cell__meta {
  color: var(--jade);
}

.page-home .week-legend {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 12.5px;
  color: var(--slate-blue);
}

.page-home .week-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 2px;
}

.page-home .swatch--gold {
  background: var(--gold-soft);
}

.page-home .swatch--red {
  background: var(--cinnabar);
}

.page-home .swatch--jade {
  background: var(--jade);
}

.page-home .swatch--plain {
  background: var(--paper);
  border: 1px solid var(--slate-blue);
}

@media (min-width: 640px) {
  .page-home .week-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.page-home .home-service {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.page-home .home-service__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

.page-home .home-service__inner {
  position: relative;
  z-index: 1;
}

.page-home .home-service .home-sec__title {
  color: #FBF5E9;
}

.page-home .home-service .home-sec__lead {
  color: rgba(247, 241, 230, 0.72);
}

.page-home .service-grid {
  display: grid;
  gap: 12px;
}

.page-home .service-card {
  padding: 20px 20px 18px;
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-top: 2px solid var(--gold);
  background: rgba(247, 241, 230, 0.05);
  backdrop-filter: blur(3px);
  transition: background var(--ease), border-color var(--ease);
}

.page-home .service-card:hover {
  background: rgba(247, 241, 230, 0.09);
  border-color: rgba(200, 162, 74, 0.6);
}

.page-home .service-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .service-card__title {
  margin: 10px 0 8px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: #FBF5E9;
}

.page-home .service-card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(247, 241, 230, 0.7);
}

@media (min-width: 700px) {
  .page-home .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .page-home .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .home-help__body {
  display: grid;
  gap: 28px;
}

.page-home .home-fold {
  border-top: 1px solid var(--paper-line);
}

.page-home .home-fold details {
  border-bottom: 1px solid var(--paper-line);
}

.page-home .home-fold summary {
  position: relative;
  padding: 16px 40px 16px 0;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color var(--ease);
}

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

.page-home .home-fold summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gold);
}

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

.page-home .home-fold summary:hover,
.page-home .home-fold summary:focus-visible {
  color: var(--jade);
}

.page-home .home-fold__body {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--slate-blue);
}

.page-home .home-fold__body p {
  margin: 0 0 10px;
}

.page-home .home-fold__body p:last-child {
  margin-bottom: 0;
}

.page-home .help-aside {
  padding: 22px 20px;
  border: 1px solid rgba(46, 110, 98, 0.28);
  background: linear-gradient(165deg, rgba(46, 110, 98, 0.1), rgba(46, 110, 98, 0.02));
}

.page-home .help-aside__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .help-aside__text {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--slate-blue);
}

.page-home .help-aside__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .help-aside__list li {
  position: relative;
  padding-left: 17px;
}

.page-home .help-aside__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
}

.page-home .home-help__foot {
  margin: 26px 0 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--slate-blue);
}

.page-home .home-help__foot a {
  color: var(--jade);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 110, 98, 0.4);
  transition: color var(--ease), border-color var(--ease);
}

.page-home .home-help__foot a:hover,
.page-home .home-help__foot a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

@media (min-width: 900px) {
  .page-home .home-help__body {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 46px;
    align-items: start;
  }
}
