.page-home {
  --home-deco-yellow: rgba(251, 191, 36, 0.08);
  --home-deco-blue: rgba(96, 165, 250, 0.06);
  --home-card-radius: 18px;
  background: linear-gradient(180deg, var(--c-primary-900) 0%, var(--c-primary-900) 620px, var(--c-neutral-100) 620px, var(--c-neutral-100) 100%);
}

.page-home .container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-5) 0 var(--space-6);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-home .home-hero__deco {
  position: absolute;
  top: -80px;
  right: -140px;
  width: 440px;
  height: 360px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.55), rgba(251, 191, 36, 0.08));
  clip-path: polygon(28% 0, 100% 0, 100% 74%, 0 100%);
  pointer-events: none;
}

.page-home .home-hero__deco-line {
  position: absolute;
  top: 0;
  right: 12%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.5), transparent 80%);
  opacity: 0.45;
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-6);
}

.page-home .home-hero__content {
  max-width: 640px;
}

.page-home .home-hero__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--c-neutral-100);
  margin: var(--space-3) 0 var(--space-3);
}

.page-home .home-lead {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(248, 250, 252, 0.78);
  margin: 0 0 var(--space-4);
}

.page-home .home-search-block {
  margin-top: var(--space-4);
}

.page-home .home-search-block__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.12rem;
  letter-spacing: 2px;
  color: var(--c-yellow);
  margin: 0 0 6px;
}

.page-home .home-search-block__hint {
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.6);
  margin: 0 0 var(--space-3);
  line-height: 1.6;
}

.page-home .home-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 16px;
  padding: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-home .home-search input {
  flex: 1 1 200px;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--c-neutral-100);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
}

.page-home .home-search input::placeholder {
  color: rgba(248, 250, 252, 0.48);
}

.page-home .home-search .btn {
  flex-shrink: 0;
}

.page-home .home-kw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.page-home .home-kw-tags__label {
  font-size: 0.84rem;
  color: rgba(248, 250, 252, 0.55);
  padding-top: 5px;
}

.page-home .home-kw-tags a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: var(--c-primary-300);
  font-size: 0.83rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.page-home .home-kw-tags a:hover {
  border-color: var(--c-yellow);
  color: var(--c-yellow);
  background: rgba(251, 191, 36, 0.08);
}

.page-home .home-hero__visual {
  position: relative;
  max-width: 520px;
}

.page-home .home-hero__frame {
  position: relative;
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.3s ease;
}

.page-home .home-hero__frame:hover {
  transform: perspective(900px) rotateY(0deg) rotateX(0deg);
}

.page-home .home-hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.page-home .home-hero__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  color: var(--c-yellow);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-home .home-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-yellow);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.page-home .home-hero__mini-panel {
  position: relative;
  z-index: 2;
  width: min(260px, 88%);
  margin-top: -26px;
  margin-left: 6%;
  padding: 12px 14px;
  background: rgba(10, 25, 47, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-home .home-hero__mini-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 8px;
}

.page-home .home-hero__mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
}

.page-home .home-hero__mini-svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-stats {
  position: relative;
  z-index: 1;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(96, 165, 250, 0.18);
}

.page-home .home-stats__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-stat__num {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--c-yellow);
}

.page-home .home-stat__label {
  font-size: 0.84rem;
  color: rgba(248, 250, 252, 0.62);
}

.page-home .home-sec-head {
  max-width: 760px;
  margin-bottom: var(--space-5);
}

.page-home .home-service-grid {
  display: grid;
  gap: var(--space-4);
}

.page-home .home-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: var(--space-5);
  border-radius: var(--home-card-radius);
  background: var(--c-neutral-100);
  border: 1px solid var(--c-neutral-200);
  border-top: 3px solid var(--c-primary-500);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(10, 25, 47, 0.14);
}

.page-home .home-service-card:nth-child(2) {
  border-top-color: var(--c-teal);
}

.page-home .home-service-card:nth-child(3) {
  border-top-color: var(--c-yellow);
}

.page-home .home-service-card:nth-child(4) {
  border-top-color: var(--c-primary-300);
}

.page-home .home-service-card__deco {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, transparent 50%, rgba(29, 78, 216, 0.08) 50%);
  border-radius: 10px;
  pointer-events: none;
}

.page-home .home-service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.page-home .home-service-card__num {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--c-primary-500);
}

.page-home .home-service-card:nth-child(2) .home-service-card__num,
.page-home .home-service-card:nth-child(3) .home-service-card__num {
  color: var(--c-teal);
}

.page-home .home-service-card:nth-child(4) .home-service-card__num {
  color: var(--c-yellow);
}

.page-home .home-service-card__title {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  line-height: 1.35;
  margin: 0;
  color: var(--c-neutral-900);
}

.page-home .home-service-card__desc {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--c-neutral-700);
  margin: 0;
}

.page-home .home-service-card__list {
  margin: 2px 0 8px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--c-neutral-700);
}

.page-home .home-service-card__img {
  display: block;
  width: 100%;
  max-width: 232px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 2px;
}

.page-home .home-service-card .btn {
  margin-top: auto;
}

.page-home .home-datapanel {
  position: relative;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.08), transparent 34%), var(--c-primary-900);
  padding: var(--space-7) 0;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.page-home .home-datapanel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

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

.page-home .home-sec-head--light .section-title {
  color: var(--c-neutral-100);
}

.page-home .home-sec-head--light .section-lead {
  color: rgba(248, 250, 252, 0.66);
}

.page-home .home-panel-stage {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.page-home .home-panel-svgwrap {
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.page-home .home-panel-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin: 4px 6px 14px;
  background: rgba(248, 250, 252, 0.08);
  border-radius: 999px;
}

.page-home .home-panel-switch__btn {
  padding: 8px 20px;
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.68);
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.page-home .home-panel-switch__btn.is-active {
  background: var(--c-yellow);
  color: var(--c-primary-900);
  font-weight: 700;
}

.page-home .home-panel-switch__btn:hover {
  color: var(--c-yellow);
}

.page-home .home-panel-switch__btn.is-active:hover {
  color: var(--c-primary-900);
}

.page-home .home-panel-svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-panel-desc h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--c-neutral-100);
  margin: 0 0 12px;
}

.page-home .home-panel-desc > p {
  font-size: 0.94rem;
  line-height: 1.8;
  color: rgba(248, 250, 252, 0.72);
  margin: 0 0 var(--space-4);
}

.page-home .home-panel-desc__list {
  display: grid;
  gap: 10px;
  margin: 0 0 var(--space-4);
  padding: 0 0 0 18px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.8);
}

.page-home .home-panel-desc__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  margin: 0 0 var(--space-4);
}

.page-home .home-history {
  padding-bottom: 0;
}

.page-home .home-history__panel {
  background: var(--c-neutral-100);
  border: 1px solid var(--c-neutral-200);
  border-radius: 22px;
  padding: var(--space-4);
  box-shadow: 0 12px 32px rgba(10, 25, 47, 0.06);
}

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

.page-home .home-history__link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 10px;
  border-radius: 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--c-neutral-200);
  transition: background 0.2s;
}

.page-home .home-history__link:last-child {
  border-bottom: none;
}

.page-home .home-history__link:hover {
  background: var(--c-neutral-200);
}

.page-home .home-history__num {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--c-primary-500);
  min-width: 28px;
}

.page-home .home-history__kw {
  flex: 1 1 150px;
  color: var(--c-neutral-900);
  font-size: 0.94rem;
  font-weight: 600;
}

.page-home .home-history__arrow {
  color: var(--c-neutral-700);
  font-size: 1.1rem;
  transition: transform 0.2s, color 0.2s;
}

.page-home .home-history__link:hover .home-history__arrow {
  transform: translateX(4px);
  color: var(--c-yellow);
}

.page-home .home-history__foot {
  padding-top: var(--space-3);
  border-top: 1px solid var(--c-neutral-200);
}

.page-home .home-updates {
  padding-top: var(--space-6);
}

.page-home .home-updates__grid {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}

.page-home .home-update-item {
  background: var(--c-neutral-100);
  border: 1px solid var(--c-neutral-200);
  border-left: 4px solid var(--c-yellow);
  border-radius: 14px;
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.page-home .home-update-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.page-home .home-update-item__time {
  font-size: 0.8rem;
  color: var(--c-neutral-700);
}

.page-home .home-update-item__title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 0 0 6px;
}

.page-home .home-update-item__title a {
  color: var(--c-neutral-900);
  text-decoration: none;
}

.page-home .home-update-item__title a:hover {
  color: var(--c-primary-500);
}

.page-home .home-update-item p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--c-neutral-700);
  margin: 0;
}

.page-home .home-updates__visual {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.page-home .home-updates__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(10, 25, 47, 0.12);
}

.page-home .home-trust {
  border-top: 1px solid var(--c-neutral-200);
  background: var(--c-neutral-100);
  padding: var(--space-4) 0 var(--space-6);
}

.page-home .home-trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.page-home .home-trust__inner p {
  margin: 0;
  color: var(--c-neutral-700);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 680px;
}

.page-home .home-trust__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.page-home .home-trust__legal a {
  color: var(--c-neutral-700);
  text-decoration: none;
  font-size: 0.88rem;
}

.page-home .home-trust__legal a:hover {
  color: var(--c-primary-500);
}

@media (max-width: 719px) {
  .page-home .home-hero__visual {
    margin-inline: auto;
  }

  .page-home .home-hero__content {
    padding-inline: 4px;
  }
}

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

  .page-home .home-history__link {
    grid-template-columns: 44px 1fr auto 24px;
  }

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

@media (min-width: 960px) {
  .page-home .home-hero {
    padding: var(--space-6) 0 var(--space-7);
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.08fr 0.92fr;
    gap: var(--space-6);
    align-items: center;
  }

  .page-home .home-hero__visual {
    justify-self: end;
  }

  .page-home .home-panel-stage {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-6);
  }

  .page-home .home-updates__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-6);
  }
}

@media (min-width: 1120px) {
  .page-home .home-service-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(220px, auto);
  }

  .page-home .home-service-card--wide {
    grid-column: span 7;
  }

  .page-home .home-service-card--narrow {
    grid-column: span 5;
  }

  .page-home .home-service-card:nth-child(even) {
    grid-column-start: 6;
  }
}
