.page-home {
  --home-hero-glow-cyan: rgba(0, 194, 209, 0.22);
  --home-hero-glow-orange: rgba(255, 108, 44, 0.14);
  --home-glass-border: rgba(255, 255, 255, 0.22);
  --home-chip-bg: rgba(255, 255, 255, 0.08);
  overflow-x: hidden;
}

.page-home .section-title {
  margin: 12px 0 14px;
}

.page-home .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.page-home .text-link:hover {
  border-bottom-color: currentColor;
  gap: 8px;
}

.page-home .home-hero {
  position: relative;
  padding: 44px 0 64px;
  background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary) 55%, #123A63 100%);
  color: #FFFFFF;
  overflow: hidden;
}

.page-home .home-hero::before,
.page-home .home-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.page-home .home-hero::before {
  width: 440px;
  height: 440px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, var(--home-hero-glow-cyan), transparent 68%);
}

.page-home .home-hero::after {
  width: 360px;
  height: 360px;
  bottom: -120px;
  left: 28%;
  background: radial-gradient(circle, var(--home-hero-glow-orange), transparent 72%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}

.page-home .home-hero .breadcrumb {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.page-home .home-hero__eyebrow {
  color: var(--color-info);
}

.page-home .home-hero__title {
  margin: 14px 0 16px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.page-home .home-hero__lead {
  max-width: 560px;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .home-hero__lead strong {
  color: #FFFFFF;
  font-weight: 600;
}

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

.page-home .btn-hero-ghost,
.page-home .btn-hero-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.page-home .btn-hero-ghost {
  border: 1px solid var(--home-glass-border);
  background: var(--home-chip-bg);
  color: #FFFFFF;
}

.page-home .btn-hero-solid {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(255, 108, 44, 0.3);
}

@media (hover: hover) {
  .page-home .btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
  }

  .page-home .btn-hero-solid:hover {
    background: #F2591B;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 108, 44, 0.36);
  }
}

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

.page-home .chapter-card {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--border-radius);
  background: var(--glass-bg);
  border: 1px solid var(--home-glass-border);
  box-shadow: 0 12px 32px rgba(3, 15, 31, 0.24);
  color: var(--color-primary);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.page-home .chapter-card__index {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
}

.page-home .chapter-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.page-home .chapter-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .chapter-card__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
}

.page-home .chapter-card__text {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-light);
}

.page-home .chapter-card__arrow {
  display: inline-flex;
  color: var(--color-info);
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .page-home .chapter-card:hover {
    background: rgba(255, 255, 255, 0.86);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(3, 15, 31, 0.3);
  }

  .page-home .chapter-card:hover .chapter-card__arrow {
    transform: translateX(4px);
  }
}

.page-home .home-stats {
  background: var(--color-surface);
}

.page-home .home-section-head {
  max-width: 780px;
  margin-bottom: 36px;
}

.page-home .home-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.page-home .stat-item {
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--color-bg);
  border: 1px solid rgba(10, 37, 64, 0.06);
}

.page-home .stat-item__value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-accent);
}

.page-home .stat-item__unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.page-home .stat-item__label {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.page-home .home-stats__figure {
  margin: 0;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(120deg, var(--color-bg) 0%, #EAF2FC 100%);
  box-shadow: var(--shadow-sm);
}

.page-home .home-stats__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.page-home .home-stats__figure figcaption {
  padding: 12px 4px 2px;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.page-home .home-login {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-label-bg) 100%);
}

.page-home .home-login__inner {
  display: grid;
  gap: 32px;
}

.page-home .home-login__figure {
  margin: 0;
}

.page-home .home-login__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.page-home .login-steps {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .login-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--color-surface);
  border: 1px solid rgba(10, 37, 64, 0.05);
  box-shadow: var(--shadow-sm);
}

.page-home .login-step__num {
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9375rem;
}

.page-home .login-step__text h3 {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-primary);
}

.page-home .login-step__text p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
}

.page-home .home-login__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--color-info-soft);
  color: var(--color-primary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.page-home .home-login__note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--color-info);
}

.page-home .home-help {
  position: relative;
  background: linear-gradient(160deg, var(--color-primary) 0%, #0F3A5E 52%, var(--color-primary-deep) 100%);
  color: #FFFFFF;
  overflow: hidden;
}

.page-home .home-help::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -100px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 209, 0.2), transparent 70%);
  pointer-events: none;
}

.page-home .home-help__head {
  position: relative;
  max-width: 800px;
  margin-bottom: 38px;
}

.page-home .home-help__head .section-eyebrow {
  color: var(--color-info);
}

.page-home .home-help__head .section-title {
  color: #FFFFFF;
}

.page-home .home-help__head .section-intro {
  color: rgba(255, 255, 255, 0.78);
}

.page-home .home-help__head .section-intro strong {
  color: #FFFFFF;
}

.page-home .home-help__inner {
  position: relative;
  display: grid;
  gap: 32px;
}

.page-home .home-help__categories {
  display: grid;
  gap: 14px;
}

.page-home .help-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-primary);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(3, 15, 31, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-home .help-category__tag {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-info);
  color: var(--color-primary-deep);
  font-size: 0.8125rem;
  font-weight: 600;
}

.page-home .help-category__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text);
}

.page-home .help-category--cta {
  background: rgba(255, 108, 44, 0.16);
  border-color: rgba(255, 108, 44, 0.5);
}

.page-home .help-category--cta .help-category__tag {
  background: var(--color-accent);
  color: #FFFFFF;
}

@media (hover: hover) {
  .page-home .help-category:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.86);
  }
}

.page-home .home-help__figure {
  margin: 0;
}

.page-home .home-help__img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.page-home .home-help__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.page-home .home-help__hint {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-home .home-updates {
  background: var(--color-bg);
}

.page-home .home-updates__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.page-home .home-updates__head .section-title {
  margin-bottom: 0;
}

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

.page-home .update-item {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  background: var(--color-surface);
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .update-item:hover {
  border-left-color: var(--color-accent);
  transform: translateX(4px);
}

.page-home .update-item__content h3 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
}

.page-home .update-item__content h3 a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .update-item__content h3 a:hover {
  color: var(--color-accent);
}

.page-home .update-item__content p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

.page-home .update-item__meta {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.page-home .home-closing {
  position: relative;
  display: flex;
  align-items: center;
  padding: 88px 0 72px;
  background: var(--color-primary-deep);
  color: #FFFFFF;
  overflow: hidden;
  min-height: 420px;
}

.page-home .home-closing__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
}

.page-home .home-closing__content .section-eyebrow {
  color: var(--color-info);
}

.page-home .home-closing__content h2 {
  margin: 14px 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: #FFFFFF;
}

.page-home .home-closing__content p:not(.section-eyebrow) {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.page-home .home-closing__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 26px;
}

.page-home .home-closing__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.page-home .home-closing__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 42, 0.72) 0%, rgba(10, 37, 64, 0.6) 100%);
}

.page-home .home-closing__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.page-home .btn-hero-ghost:focus-visible,
.page-home .btn-hero-solid:focus-visible,
.page-home .chapter-card:focus-visible,
.page-home .help-category:focus-visible,
.page-home .text-link:focus-visible {
  outline: 2px solid var(--color-info);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .page-home .home-chapters {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .chapter-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-home .help-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

  .page-home .help-category--cta {
    grid-column: 1 / -1;
  }

  .page-home .update-item {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
  }
}

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

  .page-home .home-login__inner {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 48px;
  }

  .page-home .home-help__inner {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 44px;
  }
}

@media (min-width: 1100px) {
  .page-home .home-hero__inner {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 56px;
  }

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

  .page-home .chapter-card {
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
  }
}

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