/*!
 * Theme: Default
 * Package: NioLand
 * Version: 1.0.0
 * Updated: 02.24.2023
 * Author: Softnio
 * Author URI: http://themeforest.net/user/softnio
**/
/** WRITE YOUR OWN STYLE **/

/* Primary цвет проекта: rgb(80, 95, 247) — #505FF7 */
:root {
  --bs-primary: #505FF7;
  --bs-primary-rgb: 80, 95, 247;
}

/* Удаляем рамку у всех кнопок Bootstrap/NioLand */
.btn,
.btn-primary,
.btn-outline-primary,
.btn-secondary,
.btn-outline-secondary {
  border: none !important;
}

/* Шрифт дизайна: Inter, Helvetica, sans-serif */
:root {
  --bs-font-sans-serif: Inter, Helvetica, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
}
body,
.nk-body {
  font-family: Inter, Helvetica, sans-serif;
}

/* Фон страницы и хедера */
.nk-body,
.nk-app-root,
.nk-pages {
  background-color: #fafbfc;
}
.nk-header .nk-header-main {
  background-color: #fafbfc !important;
  padding-top: max(0.8438rem, env(safe-area-inset-top));
}

.display-6 {
  line-height: 1.2;
}

/* Hero-заголовок на главной: крупный размер и пропорциональные отступы */
.hero-title {
  font-size: clamp(2rem, 5vw + 2rem, 3.75rem) !important;
  line-height: 1.25;
  margin-bottom: 0.5em !important;
  letter-spacing: -0.02em;
}
/* Выделение «ИИ-ответы» в hero */
.hero-highlight {
  padding: 0.65rem 1rem;
  /* background: rgb(240, 242, 255); */
  border-radius: 0.65rem;
  display: inline-block;
  color: #2b5cfd !important;
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .hero-highlight {
    padding: 0.45rem 0.75rem;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
  }
}

/* Футер: компактные отступы между пунктами меню */
.nk-footer-info ul.row {
  --bs-gutter-y: 0.25rem;
}
/* Нижняя строка футера: ссылки в ряд с переносом */
.nk-footer-copyright.flex-wrap {
  display: flex;
  gap: 0.5rem 1rem;
}
/* Отключаем text-transform: capitalize везде */
.text-capitalize,
.btn,
.nk-section-title,
.nk-section-subtitle,
.nk-footer-text,
.nk-footer-copyright-text,
.nk-footer-info .title,
.nk-footer-info ul li a,
.nk-block-title,
.nk-block-head-content .newsletter-heading,
.card-journey-content .heading span:nth-child(2),
.lead-text,
.sub-text {
  text-transform: none !important;
}

/* Выпадающее меню «О сервисе»: ширина под длинные названия */
.nk-header .nk-nav-sub {
  min-width: 260px;
}

/* Пункты меню в хедере: общий padding и hover */
.nk-header .nk-nav-link {
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
}
.nk-header .nk-nav-link:hover,
.nk-header .nk-nav-item.active .nk-nav-link {
  background: rgb(240, 242, 255);
}

/* Для активного пункта меню при hover не показываем «руку» */
.nk-header .nk-nav-item.active .nk-nav-link:hover {
  cursor: default;
}

/* Language selector: Font Awesome глобус + эмодзи флагов */
.nk-lang-globe {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-block;
}
/* Убираем стрелку у пункта «Язык» */
.nk-nav-item-lang .nk-nav-toggle::after {
  display: none !important;
}
.nk-nav-item-lang > .nk-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* такой же отступ, как у остальных пунктов меню */
  padding: 0.65rem 1rem !important;
}
.nk-nav-lang-list {
  min-width: 190px !important;
}
.nk-nav-lang-list .nk-nav-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}
.nk-lang-emoji {
  font-style: normal;
  flex-shrink: 0;
}
.nk-nav-lang-list img.nk-lang-emoji {
  border-radius: 2px;
  vertical-align: middle;
  object-fit: cover;
}
.nk-nav-lang-list .nk-nav-link.active {
  color: var(--bs-primary) !important;
  font-weight: 600;
}

/* Секция «Возможности» */
.otvech-features-bg {
  background: #f7f9fe !important;
}

/* Таблица цен */
.otvech-pricing-table {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f3;
}
.otvech-pricing-table table {
  border-collapse: collapse;
}
.otvech-pricing-table thead th {
  background: #f7f9fe;
  font-weight: 600;
  font-size: 0.875rem;
  color: #6b7280;
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f3;
}
.otvech-pricing-table thead th:last-child {
  text-align: right;
}
.otvech-pricing-table tbody td {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-bottom: 1px solid #f4f4f6;
  color: #071437;
}
.otvech-pricing-table tbody td:last-child {
  text-align: right;
  color: #6b7280;
  font-size: 0.875rem;
}
.otvech-pricing-table tbody tr:last-child td {
  border-bottom: none;
}
.otvech-pricing-popular {
  background: rgb(240, 242, 255);
}
.otvech-pricing-popular td:first-child::after {
  content: "выгодный";
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #505FF7;
  background: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 0.35rem;
  vertical-align: middle;
}
@media (max-width: 575.98px) {
  .otvech-pricing-table thead th,
  .otvech-pricing-table tbody td {
    padding: 0.75rem 0.75rem;
    font-size: 0.875rem;
  }
  .otvech-pricing-table tbody td:last-child {
    font-size: 0.8125rem;
  }
  .otvech-pricing-popular td:first-child::after {
    display: none;
  }
}

/* CTA-блок «Попробуйте бесплатно» — сплошной primary */
.otvech-cta-bg {
  background: rgb(80, 95, 247);
  box-shadow: none !important;
  border: none !important;
  border-radius: 0.85rem !important;
}

/* Бейдж «Для селлеров Wildberries» в hero */
.hero-badge {
  padding: 0.65rem 1rem;
  background: rgb(240, 242, 255);
  border-radius: 0.65rem;
  display: inline-block;
}

/* Хедер на мобильных (iPhone и узкие экраны) */
@media (max-width: 1199.98px) {
  .nk-header-wrap {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .nk-header-logo {
    flex-shrink: 0;
    min-width: 0;
  }
  .nk-header-logo .logo-img {
    max-height: 32px;
    width: auto;
  }
  .nk-header-action .nk-btn-group {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
  }
  .nk-header-action .nk-btn-group li:not(.nk-navbar-toggle) {
    display: none;
  }
  .nk-navbar-toggle .navbar-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nk-navbar.navbar-mobile {
    padding-top: env(safe-area-inset-top);
  }
  .nk-navbar.navbar-mobile .nk-navbar-action-mobile {
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
  }
  .nk-navbar.navbar-mobile .nk-navbar-action-mobile .nk-nav-link {
    padding: 0.65rem 1rem;
  }
  .nk-banner-wrap {
    padding-top: calc(120px + env(safe-area-inset-top));
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nk-banner-wrap {
    padding-top: calc(160px + env(safe-area-inset-top));
  }
}
@media (min-width: 1200px) {
  .nk-banner-wrap {
    padding-top: calc(202px + env(safe-area-inset-top));
  }
}

/* ─── Docs pages ─────────────────────────────────────────────────────── */

/* Category cards on /docs overview */
.docs-cat-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f3;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.docs-cat-card:hover {
  border-color: rgba(80, 95, 247, 0.3);
  box-shadow: 0 6px 24px rgba(80, 95, 247, 0.10);
  transform: translateY(-2px);
  color: inherit;
}
.docs-cat-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(80, 95, 247, 0.08);
  color: #505FF7;
  font-size: 1.25rem;
}
.docs-cat-body {
  flex: 1;
  min-width: 0;
}
.docs-cat-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: #111827;
  line-height: 1.3;
}
.docs-cat-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.docs-cat-count {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #505FF7;
  background: rgba(80, 95, 247, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.docs-cat-arrow {
  flex-shrink: 0;
  color: #d1d5db;
  font-size: 1.1rem;
  margin-top: 0.25rem;
  transition: color 0.2s, transform 0.2s;
}
.docs-cat-card:hover .docs-cat-arrow {
  color: #505FF7;
  transform: translateX(3px);
}

/* Instruction rows on /docs/{cat} category page */
.docs-instr-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f3;
  transition: background 0.15s;
}
.docs-instr-row:first-child {
  border-top: 1px solid #f0f0f3;
}
.docs-instr-row:hover {
  color: inherit;
}
.docs-instr-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  font-weight: 600;
  font-size: 0.875rem;
  color: #6b7280;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.docs-instr-row:hover .docs-instr-num {
  border-color: #505FF7;
  color: #fff;
  background: #505FF7;
}
.docs-instr-body {
  flex: 1;
  min-width: 0;
}
.docs-instr-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: #111827;
  line-height: 1.35;
  transition: color 0.15s;
}
.docs-instr-row:hover .docs-instr-title {
  color: #505FF7;
}
.docs-instr-text {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}
.docs-instr-arrow {
  flex-shrink: 0;
  color: #d1d5db;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: color 0.2s, transform 0.2s;
}
.docs-instr-row:hover .docs-instr-arrow {
  color: #505FF7;
  transform: translateX(3px);
}

/* Sidebar */
.nk-entry-sidebar {
  position: sticky;
  top: 100px;
  padding-right: 1rem;
  border-right: 1px solid #f0f0f3;
}
.docs-sidebar-group {
  margin-bottom: 1.25rem;
}
.docs-sidebar-group-title {
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  padding: 0 0 0.4rem;
  margin-bottom: 0;
}
.docs-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-sidebar-link {
  display: block;
  padding: 0.3rem 0 0.3rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #6b7280;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.docs-sidebar-link:hover {
  color: #111827;
}
.docs-sidebar-link.active {
  color: #505FF7;
  font-weight: 600;
  border-left-color: #505FF7;
}

/* Article wrapper */
.docs-article-wrap {
  padding-left: 2rem;
}
.docs-article-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

/* Article content typography */
.docs-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
}
.docs-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f3;
  line-height: 1.3;
}
.docs-content h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: #111827;
  margin: 2rem 0 0.625rem;
  line-height: 1.35;
}
.docs-content h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827;
  margin: 1.75rem 0 0.5rem;
  line-height: 1.4;
}
.docs-content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.4;
}
.docs-content h2:first-child,
.docs-content h3:first-child,
.docs-content h4:first-child,
.docs-content h5:first-child {
  margin-top: 0;
}
.docs-content p {
  margin: 0 0 1rem;
}
.docs-content ul,
.docs-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}
.docs-content li {
  margin-bottom: 0.4rem;
}
.docs-content li::marker {
  color: #505FF7;
}

/* Список параметров API: имя параметра как лейбл */
.docs-content .docs-params-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.docs-content .docs-params-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.docs-content .docs-param-name {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  background: #e5e7eb;
  padding: 0.2em 0.55em;
  border-radius: 5px;
  flex-shrink: 0;
}
.docs-content a {
  color: #505FF7;
  text-decoration: underline;
  text-decoration-color: rgba(80, 95, 247, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}
.docs-content a:hover {
  text-decoration-color: #505FF7;
}
.docs-content strong {
  font-weight: 600;
  color: #111827;
}
.docs-content blockquote {
  margin: 1.25rem 0;
  padding: 0.875rem 1.25rem;
  border-left: 3px solid #505FF7;
  background: rgba(80, 95, 247, 0.04);
  border-radius: 0 8px 8px 0;
  color: #374151;
}
.docs-content blockquote p:last-child {
  margin-bottom: 0;
}
/* Custom <quote> / <q> blocks inside docs content */
.docs-content quote,
.docs-content q,
.docs-content .quote {
  display: block;
  margin: 1.25rem 0;
  padding: 0.875rem 1.25rem;
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.04);
  border-radius: 0 8px 8px 0;
  color: #065f46;
  font-style: italic;
}
.docs-content quote:last-child,
.docs-content q:last-child,
.docs-content .quote p:last-child {
  margin-bottom: 0;
}
.docs-content code {
  background: #f3f4f6;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #111827;
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
}
.docs-endpoint-path {
  font-size: 0.875rem;
  color: #9ca3af;
}
.docs-endpoint-path code {
  background: #020617;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  border: 1px solid #111827;
}
.docs-content pre {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  background: #020617;
  color: #e5e7eb;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
  border: 1px solid #111827;
}
.docs-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.docs-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0.5rem 0 1rem;
  border: 1px solid #f0f0f3;
}
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}
.docs-content th,
.docs-content td {
  text-align: left;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid #f0f0f3;
}
.docs-content th {
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
}
.docs-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

/* Back link */
.docs-back-link {
  margin-top: 2rem;
  padding-top: 1rem;
}
.docs-back-link a {
  font-size: 0.9375rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
}
.docs-back-link a:hover {
  color: #505FF7;
}

/* Prev / Next */
.docs-prev-next {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.docs-prev-next a {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.docs-prev-next a:hover {
  border-color: rgba(80, 95, 247, 0.35);
  box-shadow: 0 2px 8px rgba(80, 95, 247, 0.08);
}
.docs-prev-next .docs-pn-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.2rem;
}
.docs-prev-next .docs-pn-title {
  font-weight: 600;
  color: #505FF7;
}
.docs-prev-next .docs-pn-next {
  text-align: right;
  margin-left: auto;
}
@media (max-width: 991.98px) {
  .docs-article-wrap {
    padding-left: 0;
  }
}
@media (max-width: 575.98px) {
  .docs-prev-next {
    flex-direction: column;
  }
  .docs-article-heading {
    font-size: 1.375rem;
  }
}