.page-home {
  --home-gap: clamp(40px, 6vw, 72px);
  --home-slope: 28px;
  --home-board-bg: #0d2a4e;
  --home-line: rgba(186, 200, 220, 0.28);
}

.page-home .section {
  position: relative;
}

.page-home .home-hero {
  background: var(--color-deep);
  color: var(--color-white);
  overflow: hidden;
  padding: clamp(56px, 9vw, 96px) 0 clamp(64px, 10vw, 120px);
}

.page-home .home-hero::before {
  content: '';
  position: absolute;
  width: min(560px, 80vw);
  height: min(560px, 80vw);
  right: -10%;
  top: -20%;
  background: radial-gradient(circle, rgba(198, 255, 0, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.page-home .home-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: start;
  position: relative;
  z-index: 2;
}

.page-home .home-hero__title {
  margin: 16px 0 24px;
  letter-spacing: -0.02em;
}

.page-home .home-hero__lead {
  color: var(--color-fog);
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 46ch;
  margin: 0;
}

.page-home .home-hero__lead strong {
  color: var(--color-neon);
  font-weight: 600;
}

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

.page-home .home-hero__visual {
  position: relative;
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 2px solid var(--color-neon);
  clip-path: polygon(0 0, calc(100% - var(--home-slope)) 0, 100% var(--home-slope), 100% 100%, 0 100%);
}

.page-home .home-hero__float {
  position: relative;
  margin-top: -48px;
  margin-left: auto;
  width: calc(100% - 32px);
  max-width: 320px;
  background: var(--color-night);
  border: 2px solid var(--color-neon);
  box-shadow: 8px 8px 0 rgba(6, 18, 38, 0.9);
  padding: 18px 20px 14px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.page-home .home-hero__float-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.page-home .home-hero__minute {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--color-neon);
  line-height: 1;
}

.page-home .home-hero__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.page-home .home-hero__num {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1;
}

.page-home .home-hero__colon {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--color-neon);
}

.page-home .home-hero__cards {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 8px;
}

.page-home .home-hero__card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border: 1px solid var(--color-fog);
  color: var(--color-fog);
}

.page-home .home-hero__card::before {
  content: '';
  width: 10px;
  height: 10px;
  display: inline-block;
}

.page-home .home-hero__card--yellow::before {
  background: var(--color-ember);
}

.page-home .home-hero__card--red::before {
  background: var(--color-red);
}

.page-home .home-hero__note {
  font-size: 0.78rem;
  color: var(--color-fog);
  text-align: center;
  margin: 0;
  font-family: var(--font-mono);
}

.page-home .home-directory {
  background: var(--color-night);
  padding: 32px 0;
  overflow: hidden;
}

.page-home .home-directory::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-neon) 0%, transparent 70%);
}

.page-home .home-directory__label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-fog);
  letter-spacing: 0.12em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.page-home .home-directory__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.page-home .home-directory__item a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 14px 8px;
  text-decoration: none;
  border-bottom: 1px solid var(--home-line);
  color: var(--color-white);
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.page-home .home-directory__item:last-child a {
  border-bottom: 0;
}

.page-home .home-directory__item a:hover,
.page-home .home-directory__item a:focus-visible {
  background: rgba(198, 255, 0, 0.08);
  padding-left: 16px;
  color: var(--color-neon);
  outline: none;
}

.page-home .home-directory__num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--color-neon);
  font-weight: 600;
}

.page-home .home-directory__name {
  font-weight: 600;
  font-size: 1.02rem;
}

.page-home .home-directory__meta {
  grid-column: 2 / 4;
  font-size: 0.82rem;
  color: var(--color-fog);
  font-family: var(--font-mono);
}

.page-home .home-directory__arrow {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  font-size: 1.2rem;
  color: var(--color-fog);
  transition: transform 0.2s ease, color 0.2s ease;
}

.page-home .home-directory__item a:hover .home-directory__arrow {
  transform: translateX(6px);
  color: var(--color-neon);
}

.page-home .home-tool {
  background: var(--color-deep);
  color: var(--color-white);
  padding: clamp(56px, 9vw, 96px) 0;
}

.page-home .home-tool::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--home-slope);
  background: var(--color-night);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
  pointer-events: none;
}

.page-home .home-tool__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .home-tool__copy {
  max-width: 52ch;
}

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

.page-home .home-tool__features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.96rem;
  color: var(--color-fog);
}

.page-home .home-tool__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  background: var(--color-neon);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
}

.page-home .home-tool__board {
  background: var(--home-board-bg);
  border: 2px solid var(--color-neon);
  box-shadow: 12px 12px 0 rgba(6, 18, 38, 0.85);
  padding: 28px 24px 24px;
  clip-path: polygon(0 0, calc(100% - var(--home-slope)) 0, 100% var(--home-slope), 100% 100%, 0 100%);
}

.page-home .home-tool__board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--home-line);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.page-home .home-tool__clock {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--color-neon);
  line-height: 1;
}

.page-home .home-tool__board-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.page-home .home-tool__team {
  text-align: center;
}

.page-home .home-tool__team-label {
  display: block;
  font-size: 0.84rem;
  color: var(--color-fog);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.page-home .home-tool__team-score {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 9vw, 4.6rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.page-home .home-tool__divider {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  color: var(--color-neon);
}

.page-home .home-tool__board-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid var(--home-line);
  padding-top: 14px;
}

.page-home .home-tool__card-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--color-fog);
  font-family: var(--font-mono);
}

.page-home .home-tool__card-dot {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-home .home-tool__card-dot--yellow {
  background: var(--color-ember);
}

.page-home .home-tool__card-dot--red {
  background: var(--color-red);
}

.page-home .home-cities {
  background: var(--color-night);
  color: var(--color-white);
  padding: clamp(56px, 9vw, 96px) 0;
}

.page-home .home-cities__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: center;
}

.page-home .home-cities__map img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--color-fog);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.page-home .home-cities__copy {
  max-width: 54ch;
}

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

.page-home .home-cities__city-list li {
  font-size: 0.94rem;
  color: var(--color-fog);
  border-left: 2px solid var(--color-neon);
  padding-left: 10px;
  line-height: 1.5;
}

.page-home .home-cities__note {
  font-size: 0.86rem;
  color: var(--color-fog);
  font-family: var(--font-mono);
  margin: 0 0 20px;
}

.page-home .home-history {
  background: var(--color-deep);
  color: var(--color-white);
  padding: clamp(56px, 9vw, 96px) 0;
  overflow: hidden;
}

.page-home .home-history::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(198, 255, 0, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.page-home .home-history__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: center;
}

.page-home .home-history__copy {
  max-width: 52ch;
}

.page-home .home-history__copy a.home-inline-link {
  color: var(--color-neon);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .home-history__copy a.home-inline-link:hover,
.page-home .home-history__copy a.home-inline-link:focus-visible {
  color: var(--color-white);
}

.page-home .home-history__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--color-fog);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-slope)), calc(100% - var(--home-slope)) 100%, 0 100%);
}

.page-home .home-export {
  background: var(--color-cream);
  color: var(--color-deep);
  padding: clamp(56px, 9vw, 96px) 0;
}

.page-home .home-export::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--home-slope);
  background: var(--color-neon);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
  opacity: 0.9;
}

.page-home .home-export__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: start;
}

.page-home .home-export__copy {
  max-width: 50ch;
}

.page-home .home-export__copy .kicker {
  background: var(--color-neon);
  color: var(--color-deep);
  display: inline-flex;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.page-home .home-export__mail {
  margin: 18px 0 24px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--color-deep);
  font-weight: 600;
}

.page-home .home-export__steps {
  border-left: 3px solid var(--color-neon);
  padding-left: 20px;
}

.page-home .home-export__step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.page-home .home-export__step-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-deep);
}

.page-home .home-export__step-list li span {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ember);
  min-width: 32px;
}

.page-home .home-cases {
  background: var(--color-deep);
  color: var(--color-white);
  padding: clamp(56px, 9vw, 96px) 0;
  overflow: hidden;
}

.page-home .home-cases::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--home-slope);
  background: var(--color-night);
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-home .home-cases__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: center;
}

.page-home .home-cases__preview {
  position: relative;
}

.page-home .home-cases__preview img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 2px solid var(--color-ember);
  clip-path: polygon(var(--home-slope) 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 var(--home-slope));
}

.page-home .home-cases__tag {
  position: absolute;
  top: 18px;
  left: 18px;
}

.page-home .home-cases__copy {
  max-width: 52ch;
}

.page-home .home-help {
  background: var(--color-night);
  color: var(--color-white);
  padding: clamp(56px, 9vw, 96px) 0;
}

.page-home .home-help__head {
  margin-bottom: 32px;
}

.page-home .home-help__head .prose {
  color: var(--color-fog);
  max-width: 56ch;
}

.page-home .home-help__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 40px;
}

.page-home .home-help__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: transparent;
  border: 1px solid var(--home-line);
  border-left: 3px solid var(--color-neon);
  text-decoration: none;
  color: var(--color-white);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-home .home-help__item:hover,
.page-home .home-help__item:focus-visible {
  background: rgba(198, 255, 0, 0.08);
  border-color: var(--color-neon);
  transform: translateX(6px);
  outline: none;
}

.page-home .home-help__icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--color-neon);
  line-height: 1;
}

.page-home .home-help__text {
  font-weight: 600;
  font-size: 0.98rem;
}

.page-home .home-help__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--home-line);
}

.page-home .home-help__foot a {
  color: var(--color-fog);
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .home-help__foot a:hover,
.page-home .home-help__foot a:focus-visible {
  color: var(--color-neon);
  border-color: var(--color-neon);
  outline: none;
}

@media (min-width: 920px) {

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    align-items: center;
  }

  .page-home .home-hero__lead {
    font-size: 1.16rem;
  }

  .page-home .home-hero__visual {
    margin-left: 24px;
  }

  .page-home .home-hero__float {
    position: absolute;
    bottom: -24px;
    left: -38px;
    margin: 0;
    width: 280px;
  }

  .page-home .home-directory__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 32px;
  }

  .page-home .home-directory__item a {
    grid-template-columns: 44px 1fr auto;
    padding: 16px 6px;
  }

  .page-home .home-directory__meta {
    grid-column: 2 / 3;
  }

  .page-home .home-directory__arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .page-home .home-tool__inner {
    grid-template-columns: minmax(0, 9fr) minmax(0, 10fr);
    align-items: center;
  }

  .page-home .home-tool__copy {
    padding-right: 32px;
  }

  .page-home .home-cities__inner {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  }

  .page-home .home-cities__map {
    order: 1;
  }

  .page-home .home-cities__copy {
    order: 2;
    padding-left: 32px;
  }

  .page-home .home-history__inner {
    grid-template-columns: minmax(0, 9fr) minmax(0, 10fr);
  }

  .page-home .home-history__copy {
    padding-right: 32px;
  }

  .page-home .home-export__inner {
    grid-template-columns: minmax(0, 10fr) minmax(0, 9fr);
  }

  .page-home .home-export__copy {
    padding-right: 32px;
  }

  .page-home .home-export__steps {
    padding-left: 32px;
  }

  .page-home .home-cases__inner {
    grid-template-columns: minmax(0, 9fr) minmax(0, 10fr);
  }

  .page-home .home-cases__preview {
    padding-right: 32px;
  }

  .page-home .home-help__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1220px) {
  .page-home .home-help__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
