.page-home {
  --home-card-bg: #141c2b;
  --home-line: rgba(255, 255, 255, 0.06);
}

.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text);
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.page-home .home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: screen;
}

.page-home .home-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 23, 0.94) 0%, rgba(10, 14, 23, 0.72) 42%, rgba(191, 0, 255, 0.2) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.page-home .home-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}

.page-home .home-hero__glow--green {
  width: 420px;
  height: 420px;
  background: rgba(57, 255, 20, 0.3);
  top: 22%;
  left: -80px;
}

.page-home .home-hero__glow--purple {
  width: 380px;
  height: 380px;
  background: rgba(191, 0, 255, 0.35);
  bottom: 8%;
  right: 8%;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 2;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--header-height) + 36px);
  padding-bottom: 140px;
}

.page-home .home-breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
}

.page-home .home-kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.page-home .home-kicker--hero {
  font-size: 15px;
  color: var(--color-accent);
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7.5vw, 92px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.page-home .home-hero__title span {
  display: block;
  margin-top: 10px;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-transform: none;
}

.page-home .home-hero__lead {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 32px;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-hero__marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  z-index: 2;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: rgba(245, 247, 250, 0.44);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.page-home .home-section {
  padding: 88px 0;
}

.page-home .home-section__head {
  margin-bottom: 44px;
}

.page-home .home-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 16px;
}

.page-home .home-intro {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

.page-home .home-quick__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .home-quick__card {
  position: relative;
  display: block;
  padding: 34px 30px 30px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.page-home .home-quick__card--alt {
  border-left-color: var(--color-accent-alt);
}

.page-home .home-quick__card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  border-left-color: var(--color-accent);
  background: #151d2e;
}

.page-home .home-quick__card--alt:hover {
  border-color: var(--color-accent-alt);
  border-left-color: var(--color-accent-alt);
}

.page-home .home-quick__num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
}

.page-home .home-quick__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.page-home .home-quick__card h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
}

.page-home .home-quick__card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 18px;
}

.page-home .home-quick__arrow {
  display: inline-block;
  font-size: 20px;
  color: var(--color-accent);
  transition: transform 0.25s ease;
}

.page-home .home-quick__card--alt .home-quick__arrow {
  color: var(--color-accent-alt);
}

.page-home .home-quick__card:hover .home-quick__arrow {
  transform: translateX(6px);
}

.page-home .home-heat__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

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

.page-home .home-heat__svg {
  display: block;
  width: 100%;
  height: auto;
  background: #0d1420;
  border: 1px solid var(--color-border);
}

.page-home .home-heat__label {
  fill: var(--color-text-muted);
  font-size: 11px;
  font-family: var(--font-body);
}

.page-home .home-heat__axis {
  fill: #66768f;
  font-size: 10px;
  font-family: var(--font-body);
}

.page-home .home-heat__cell {
  fill: #1a2232;
}

.page-home .home-heat__cell--mid {
  fill: rgba(57, 255, 20, 0.24);
}

.page-home .home-heat__cell--high {
  fill: rgba(57, 255, 20, 0.5);
}

.page-home .home-heat__cell--hot {
  fill: rgba(191, 0, 255, 0.52);
}

.page-home .home-heat__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.page-home .home-heat__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: -1px;
}

.page-home .home-heat__dot--low {
  background: #1a2232;
}

.page-home .home-heat__dot--mid {
  background: rgba(57, 255, 20, 0.24);
}

.page-home .home-heat__dot--high {
  background: rgba(57, 255, 20, 0.5);
}

.page-home .home-heat__dot--hot {
  background: rgba(191, 0, 255, 0.52);
}

.page-home .home-heat__table-wrap {
  order: 2;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.page-home .home-heat__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.page-home .home-heat__table caption {
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  background: #0d1420;
  border-bottom: 1px solid var(--color-border);
}

.page-home .home-heat__table th,
.page-home .home-heat__table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.page-home .home-heat__table th {
  color: var(--color-accent);
  font-weight: 700;
  white-space: nowrap;
}

.page-home .home-heat__table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .home-heat__table tbody tr {
  transition: background 0.2s ease;
}

.page-home .home-heat__table tbody tr:hover {
  background: rgba(57, 255, 20, 0.06);
}

.page-home .home-heat__table tbody td:last-child::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  opacity: 0;
  color: var(--color-accent);
  transition: opacity 0.2s ease;
}

.page-home .home-heat__table tbody tr:hover td:last-child::after {
  opacity: 1;
}

.page-home .home-heat__note {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: #0d1420;
}

.page-home .home-heat__img,
.page-home .home-log__img,
.page-home .home-res__img {
  margin: 28px 0 0;
}

.page-home .home-heat__img img,
.page-home .home-log__img img,
.page-home .home-res__img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.page-home .home-log__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-log__list {
  display: grid;
  gap: 0;
}

.page-home .home-log__item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-border);
}

.page-home .home-log__version {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-accent);
}

.page-home .home-log__content h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.page-home .home-log__content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.page-home .home-log__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-log__detail {
  grid-column: 2;
  justify-self: start;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.page-home .home-log__detail:hover {
  color: var(--color-accent);
}

.page-home .home-log__all {
  margin-top: 24px;
  justify-self: start;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .home-res__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .home-res__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 26px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.page-home .home-res__card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 4px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-alt));
}

.page-home .home-res__type {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  border: 1px solid rgba(57, 255, 20, 0.4);
  padding: 4px 8px;
  margin-bottom: 14px;
}

.page-home .home-res__info h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.page-home .home-res__info p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.page-home .home-res__link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.page-home .home-res__link:hover {
  color: var(--color-accent);
}

.page-home .home-res__footer {
  margin-top: 28px;
  text-align: center;
}

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

.page-home .home-steps__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 30px 26px 26px;
}

.page-home .home-steps__num {
  display: block;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: rgba(57, 255, 20, 0.16);
  -webkit-text-stroke: 1.5px var(--color-accent);
  font-family: var(--font-display);
}

.page-home .home-steps__item h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 18px 0 8px;
}

.page-home .home-steps__item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.page-home .home-steps__item a {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .home-about {
  background: var(--color-paper);
  color: #141821;
}

.page-home .home-about .home-kicker {
  color: #1f5c30;
}

.page-home .home-about .home-title {
  color: #10151f;
}

.page-home .home-about .home-intro {
  color: #3a4254;
}

.page-home .home-about__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-about__facts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-home .home-about__facts li {
  position: relative;
  padding: 12px 0 12px 26px;
  font-size: 15px;
  line-height: 1.7;
  color: #232a38;
  border-bottom: 1px solid rgba(10, 14, 23, 0.12);
}

.page-home .home-about__facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt));
}

.page-home .home-about__trust {
  background: rgba(255, 248, 234, 0.72);
  border: 1px solid rgba(10, 14, 23, 0.14);
  padding: 24px;
}

.page-home .home-about__trust p {
  font-size: 15px;
  line-height: 1.7;
  color: #232a38;
  margin: 0 0 18px;
}

.page-home .home-about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-about__links a {
  font-size: 14px;
  font-weight: 700;
  color: #1a5c2e;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 900px) {
  .page-home .home-section {
    padding: 104px 0;
  }

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

  .page-home .home-heat__layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
  }

  .page-home .home-heat__visual {
    order: 0;
  }

  .page-home .home-heat__table-wrap {
    order: 0;
  }

  .page-home .home-heat__img {
    margin-top: 40px;
    max-width: 880px;
  }

  .page-home .home-log__layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }

  .page-home .home-log__img {
    margin-top: 12px;
  }

  .page-home .home-res__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-home .home-res__img {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-home .home-about__layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
  }

  .page-home .home-log__item {
    grid-template-columns: 76px 1fr auto;
    gap: 20px;
  }

  .page-home .home-log__detail {
    grid-column: 3;
    align-self: center;
  }
}
