.nf-hero,
.nf-products,
.nf-more,
.unavailable-page {
  color: #1b2147;
  line-height: 1.5;
}

.nf-hero *,
.nf-hero *::before,
.nf-hero *::after,
.nf-products *,
.nf-products *::before,
.nf-products *::after,
.nf-more *,
.nf-more *::before,
.nf-more *::after,
.unavailable-page *,
.unavailable-page *::before,
.unavailable-page *::after {
  box-sizing: border-box;
}

.nf-wrap {
  width: 100%;
  max-width: var(--page-max, 1920px);
  margin: 0 auto;
  padding: 0 var(--page-gutter, 24px);
}

.nf-hero {
  padding: 64px 0 72px;
}

.nf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.nf-hero h1,
.unavailable-page h1 {
  margin: 0 0 16px;
  color: #1b2147;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  overflow-wrap: break-word;
}

.nf-hero__text,
.unavailable-page__text {
  max-width: 640px;
  margin: 0 0 28px;
  color: #646c8f;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.nf-search label,
.unavailable-page__label {
  display: block;
  margin: 0 0 8px;
  color: #1b2147;
  font-size: 0.9375rem;
  font-weight: 600;
}

.nf-search__row {
  display: flex;
  gap: 12px;
  max-width: 620px;
}

.nf-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #646c8f;
  border-radius: 8px;
  background: #fff;
  color: #1b2147;
  font: inherit;
}

.nf-search input:focus {
  border-color: #293C95;
  outline: 2px solid #c9a227;
  outline-offset: 1px;
}

.nf-search button {
  flex: none;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: #293C95;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nf-search button:hover {
  background: #0D3B6E;
}

.nf-search__status {
  min-height: 0;
  margin: 8px 0 0;
  color: #646c8f;
  font-size: 0.9375rem;
}

.nf-search__status:empty {
  margin: 0;
}

.nf-search__results {
  max-width: 620px;
  margin: 8px 0 0;
  padding: 4px;
  border: 1px solid #e3e6f3;
  border-radius: 8px;
  background: #fff;
  list-style: none;
}

.nf-search__results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #1b2147;
  text-decoration: none;
}

.nf-search__results a:hover {
  background: #f2f2ff;
  color: #293C95;
}

.nf-search__results small {
  flex: none;
  color: #646c8f;
}

.nf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}

.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid #293C95;
  border-radius: 8px;
  background: #fff;
  color: #293C95;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nf-btn:hover {
  background: #293C95;
  color: #fff;
}

.nf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #293C95;
  font-weight: 600;
  text-decoration: none;
}

.nf-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nf-hero a:focus-visible,
.nf-hero button:focus-visible,
.nf-products a:focus-visible,
.nf-more a:focus-visible,
.unavailable-page a:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

.nf-hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 260px;
  padding: 32px;
  border-radius: 16px;
  background: #f2f2ff;
  text-align: center;
}

.nf-hero__code {
  color: #293C95;
  font-size: 6rem;
  font-weight: 600;
  line-height: 1;
}

.nf-hero__label {
  color: #646c8f;
  font-size: 1.0625rem;
}

.nf-products {
  padding: 72px 0;
  background: #f2f2ff;
}

.nf-products h2,
.nf-more h2 {
  margin: 0 0 28px;
  color: #1b2147;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
}

.nf-products__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf-products__grid > li {
  display: flex;
  min-width: 0;
}

.nf-series {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 80px;
  padding: 10px 16px 10px 10px;
  border: 1px solid #e3e6f3;
  border-radius: 12px;
  background: #fff;
  color: #1b2147;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.nf-series:hover {
  border-color: #293C95;
}

.nf-series img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid #e3e6f3;
  object-fit: contain;
  background: #fff;
}

.nf-series span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nf-series strong {
  font-size: 1.0625rem;
  font-weight: 600;
  overflow-wrap: break-word;
}

.nf-series small {
  color: #646c8f;
  font-size: 0.875rem;
}

.nf-help {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #e3e6f3;
  border-radius: 12px;
  background: #fff;
}

.nf-help h3 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.nf-help p {
  margin: 0;
  color: #646c8f;
  font-size: 0.875rem;
}

.nf-help .nf-btn {
  flex: none;
  white-space: nowrap;
}

.nf-more {
  padding: 72px 0 24px;
}

.nf-more__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.unavailable-page {
  padding: 64px 0 72px;
}

.unavailable-page__model {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f2f2ff;
  color: #293C95;
  font-size: 0.875rem;
  font-weight: 600;
}

.unavailable-page__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.unavailable-page__langs .nf-btn {
  min-width: 120px;
  min-height: 48px;
}

@media (max-width: 1024px) {
  .nf-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .nf-hero__card {
    min-height: 0;
    padding: 24px;
  }

  .nf-hero__code {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .nf-wrap {
    padding: 0 16px;
  }

  .nf-hero,
  .unavailable-page {
    padding: 40px 0 48px;
  }

  .nf-hero h1,
  .unavailable-page h1 {
    font-size: 1.875rem;
  }

  .nf-hero__text,
  .unavailable-page__text {
    font-size: 1rem;
  }

  .nf-search__row {
    flex-direction: column;
  }

  .nf-products,
  .nf-more {
    padding: 48px 0;
  }

  .nf-more {
    padding-bottom: 8px;
  }

  .nf-products h2,
  .nf-more h2 {
    font-size: 1.625rem;
  }

  .nf-products__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nf-help {
    flex-direction: column;
    align-items: flex-start;
  }

  .nf-more__list li,
  .nf-more__list .nf-btn,
  .unavailable-page__langs li,
  .unavailable-page__langs .nf-btn {
    width: 100%;
  }
}
