/*
  Файл: media/templates/site/cassiopeia/css/neygen/home.css
  Назначение: стили новой главной страницы Neygen.ru.
  Принцип: отдельный namespace .neygen-home, чтобы не ломать листинги, статьи и карточки сервисов.
*/

.neygen-home {
  --ng-blue: #3f6dcb;
  --ng-blue-dark: #244ea8;
  --ng-blue-soft: #edf4ff;
  --ng-bg: #f7f9ff;
  --ng-text: #1f2d3d;
  --ng-muted: #667085;
  --ng-border: #e1e8ff;
  --ng-card: #ffffff;
  --ng-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 0 70px;
  color: var(--ng-text);
}

.neygen-home * {
  box-sizing: border-box;
}

.neygen-home a {
  text-decoration: none !important;
}

.neygen-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 28px;
  align-items: stretch;
  margin: 16px 0 34px;
}

.neygen-home-hero__content,
.neygen-home-hero__visual,
.neygen-home-section,
.neygen-home-route,
.neygen-home-author {
  border: 1px solid var(--ng-border);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: var(--ng-shadow);
}

.neygen-home-hero__content {
  position: relative;
  overflow: hidden;
  padding: 48px;
}

.neygen-home-hero__content::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(63, 110, 203, 0.16), rgba(63, 110, 203, 0));
  pointer-events: none;
}

.neygen-home-kicker,
.neygen-home-section__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--ng-blue-soft) !important;
  color: var(--ng-blue) !important;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.neygen-home h1,
.neygen-home h2,
.neygen-home h3 {
  color: var(--ng-text) !important;
}

.neygen-home h1 {
  max-width: 760px;
  margin: 0 0 18px;
  padding: 0;
  font-size: 42px;
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.neygen-home h2 {
  margin: 0;
  padding: 0;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.neygen-home-hero__lead {
  max-width: 760px;
  margin: 0 0 26px;
  color: #344054;
  font-size: 20px;
  line-height: 1.6;
}

.neygen-home-searchbox {
  position: relative;
  z-index: 1;
  padding: 12px;
  border: 1px solid #d9e4ff;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(63, 110, 203, 0.1);
}

.neygen-home-searchbox__label {
  display: block;
  margin: 2px 4px 9px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.neygen-home-searchbox__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.neygen-home-searchbox input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid #d0daf2;
  border-radius: 16px;
  background: #ffffff;
  color: var(--ng-text);
  font-size: 16px;
  outline: none;
}

.neygen-home-searchbox input:focus {
  border-color: var(--ng-blue);
  box-shadow: 0 0 0 4px rgba(63, 110, 203, 0.13);
}

.neygen-home-searchbox button,
.neygen-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.neygen-home-searchbox button,
.neygen-home-button--primary {
  background: var(--ng-blue);
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(63, 110, 203, 0.24);
}

.neygen-home-searchbox button:hover,
.neygen-home-button--primary:hover {
  background: var(--ng-blue-dark);
  transform: translateY(-2px);
}

.neygen-home-button--secondary {
  border: 1px solid #d9e4ff;
  background: #ffffff;
  color: var(--ng-blue) !important;
}

.neygen-home-button--secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.neygen-home-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.neygen-home-quick-prompts a {
  display: inline-flex;
  padding: 9px 12px;
  border: 1px solid #e4ebff;
  border-radius: 999px;
  background: #ffffff;
  color: #344054 !important;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.neygen-home-quick-prompts a:hover {
  border-color: var(--ng-blue);
  color: var(--ng-blue) !important;
  transform: translateY(-1px);
}

.neygen-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.neygen-home-hero__visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(63, 110, 203, 0.18), transparent 28%),
    radial-gradient(circle at 85% 70%, rgba(35, 88, 214, 0.12), transparent 30%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.neygen-home-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 455px;
  border: 1px solid #dfe8ff;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(237, 244, 255, 0.72));
}

.neygen-home-orbit::before,
.neygen-home-orbit::after {
  content: "";
  position: absolute;
  inset: 54px;
  border: 1px dashed rgba(63, 110, 203, 0.24);
  border-radius: 999px;
}

.neygen-home-orbit::after {
  inset: 105px;
}

.neygen-home-orbit__center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 178px;
  min-height: 178px;
  padding: 34px 20px;
  border-radius: 40px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 1px solid #dfe8ff;
  box-shadow: 0 24px 60px rgba(63, 110, 203, 0.18);
  text-align: center;
}

.neygen-home-orbit__center strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ng-blue);
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.neygen-home-orbit__center p {
  margin: 0;
  color: var(--ng-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.neygen-home-orbit__logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
}

.neygen-home-orbit__card {
  position: absolute;
  z-index: 3;
  width: 178px;
  padding: 16px;
  border: 1px solid #e0e8ff;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.neygen-home-orbit__card b {
  display: block;
  margin-bottom: 4px;
  color: var(--ng-text);
  font-size: 18px;
}

.neygen-home-orbit__card small {
  display: block;
  color: var(--ng-muted);
  font-size: 13px;
  line-height: 1.4;
}

.neygen-home-orbit__card--one {
  top: 34px;
  left: 34px;
}

.neygen-home-orbit__card--two {
  top: 72px;
  right: 28px;
}

.neygen-home-orbit__card--three {
  right: 44px;
  bottom: 44px;
}

.neygen-home-orbit__card--four {
  left: 38px;
  bottom: 62px;
}

.neygen-home-section,
.neygen-home-route,
.neygen-home-author {
  margin: 0 0 24px;
  padding: 34px;
}

.neygen-home-section--compact {
  padding: 34px;
}

.neygen-home-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.neygen-home-section__head p {
  margin: 0;
  color: var(--ng-muted);
  font-size: 16px;
  line-height: 1.65;
}

.neygen-home-task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.neygen-home-task-card,
.neygen-home-service-card,
.neygen-home-articles-list a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid #e4ebff;
  border-radius: 22px;
  background: #ffffff;
  color: var(--ng-text) !important;
  transition: 0.22s ease;
}

/**
 * Файл: media/templates/site/cassiopeia/css/neygen/home.css
 * Блок: карточки задач на главной странице.
 * Назначение: иконки задач и SEO-CTA внутри карточек.
 */

.neygen-home-task-card::before {
  content: none;
}

.neygen-home-task-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.neygen-home-task-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3f6dcb 0%, #6f9cff 100%);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(63, 110, 203, 0.22);
}

.neygen-home-task-card__icon i {
  line-height: 1;
}

.neygen-home-task-card__text {
  display: block;
  margin-top: 8px;
  color: #344054;
  font-size: 16px;
  line-height: 1.45;
}

.neygen-home-task-card em {
  margin-top: auto;
  padding-top: 20px;
  color: #3f6dcb;
  font-style: normal;
  font-weight: 800;
}

.neygen-home-task-card:hover .neygen-home-task-card__icon {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(63, 110, 203, 0.3);
}

.neygen-home-task-card:hover em {
  color: #2f61c7;
}

.neygen-home-task-card:hover,
.neygen-home-service-card:hover,
.neygen-home-articles-list a:hover {
  border-color: rgba(63, 110, 203, 0.42);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.neygen-home-task-card strong,
.neygen-home-service-card strong,
.neygen-home-articles-list strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ng-text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.neygen-home-task-card span,
.neygen-home-service-card span,
.neygen-home-articles-list span {
  display: block;
  color: var(--ng-muted);
  font-size: 15px;
  line-height: 1.55;
}

.neygen-home-task-card em {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--ng-blue);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

/**
 * Файл: media/templates/site/cassiopeia/css/neygen/home.css
 * Блок: исправление иконок в карточках задач на главной.
 * Назначение: перебивает общий стиль .neygen-home-task-card span,
 * чтобы span с иконкой не превращался в обычный текстовый span.
 */

.neygen-home-task-card::before {
  content: none !important;
  display: none !important;
}

.neygen-home-task-card .neygen-home-task-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  margin: 0 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3f6dcb 0%, #6f9cff 100%);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(63, 110, 203, 0.22);
}

.neygen-home-task-card .neygen-home-task-card__icon i {
  display: inline-block;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.neygen-home-task-card .neygen-home-task-card__icon i::before {
  color: #ffffff;
}

.neygen-home-task-card .neygen-home-task-card__text {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 16px;
  line-height: 1.45;
}

.neygen-home-task-card em {
  display: block;
  margin-top: auto;
  padding-top: 20px;
  color: #3f6dcb;
  font-style: normal;
  font-weight: 800;
}

.neygen-home-task-card:hover .neygen-home-task-card__icon {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(63, 110, 203, 0.3);
}

.neygen-home-task-card:hover em {
  color: #2f61c7;
}

/**
 * Файл: media/templates/site/cassiopeia/css/neygen/home.css
 * Блок: финальная полировка карточек задач на главной.
 * Назначение: выравнивание отступов, иконок, текста и hover-состояний.
 */

.neygen-home-task-grid {
  align-items: stretch;
}

.neygen-home-task-card {
  position: relative;
  min-height: 210px;
  padding: 28px 28px 24px;
  border-radius: 22px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.neygen-home-task-card::before {
  content: none !important;
  display: none !important;
}

.neygen-home-task-card .neygen-home-task-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  margin: 0 0 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3f6ecb 0%, #6f9cff 100%);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(63, 110, 203, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.neygen-home-task-card .neygen-home-task-card__icon i,
.neygen-home-task-card .neygen-home-task-card__icon i::before {
  display: inline-block;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.neygen-home-task-card strong {
  display: block;
  margin: 0;
  color: #13233a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.22;
}

.neygen-home-task-card .neygen-home-task-card__text {
  display: block;
  margin-top: 14px;
  color: #526174;
  font-size: 16px;
  line-height: 1.5;
}

.neygen-home-task-card em {
  display: block;
  margin-top: auto;
  padding-top: 22px;
  color: #3f6ecb;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.3;
}

.neygen-home-task-card:hover {
  border-color: #b9ceff;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(63, 110, 203, 0.12);
}

.neygen-home-task-card:hover .neygen-home-task-card__icon {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(63, 110, 203, 0.3);
}

.neygen-home-task-card:hover em {
  color: #2f61c7;
}

@media (max-width: 768px) {
  .neygen-home-task-card {
    min-height: auto;
    padding: 24px 22px;
  }

  .neygen-home-task-card strong {
    font-size: 19px;
  }
}

.neygen-home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.neygen-home-service-card {
  padding: 20px;
}

.neygen-home-service-card::before {
  content: "AI";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--ng-blue-soft);
  color: var(--ng-blue);
  font-size: 14px;
  font-weight: 950;
}

.neygen-home-service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.neygen-home-service-card li {
  margin: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2f5ff;
  color: #4b5f86;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.neygen-home-route {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #edf4ff 100%);
}

.neygen-home-route__content p:not(.neygen-home-section__eyebrow) {
  margin: 16px 0 0;
  color: var(--ng-muted);
  font-size: 16px;
  line-height: 1.75;
}

.neygen-home-route__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.neygen-home-route__steps div {
  min-height: 126px;
  padding: 20px;
  border: 1px solid #dfe8ff;
  border-radius: 22px;
  background: #ffffff;
}

.neygen-home-route__steps strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--ng-blue);
  color: #ffffff;
  font-size: 16px;
}

.neygen-home-route__steps span {
  display: block;
  color: var(--ng-text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.neygen-home-intent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.neygen-home-intent-grid a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #e4ebff;
  border-radius: 16px;
  background: #ffffff;
  color: #344054 !important;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  transition: 0.2s ease;
}

.neygen-home-intent-grid a:hover {
  border-color: var(--ng-blue);
  color: var(--ng-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.neygen-home-section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 24px;
  align-items: stretch;
}

.neygen-home-editorial {
  padding: 28px;
  border: 1px solid #e4ebff;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
}

.neygen-home-editorial p:not(.neygen-home-section__eyebrow) {
  margin: 16px 0 22px;
  color: var(--ng-muted);
  font-size: 16px;
  line-height: 1.7;
}

.neygen-home-articles-list {
  display: grid;
  gap: 14px;
}

.neygen-home-articles-list a {
  padding: 20px;
}

.neygen-home-seo-text {
  max-width: none;
}

.neygen-home-seo-text p:not(.neygen-home-section__eyebrow) {
  max-width: 960px;
  margin: 16px 0 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.78;
}

.neygen-home-faq .faq-block {
  margin: 0;
}

.neygen-home-faq .faq-item {
  margin-bottom: 12px;
  border: 1px solid #e4ebff;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: none;
}

.neygen-home-faq .faq-item summary {
  position: relative;
  padding: 20px 58px 20px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--ng-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
}

.neygen-home-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.neygen-home-faq .faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  color: var(--ng-blue);
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.neygen-home-faq .faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.neygen-home-faq .faq-answer-inner {
  padding: 22px;
}

.neygen-home-faq .faq-answer-inner p {
  margin: 0;
  color: var(--ng-muted);
  font-size: 16px;
  line-height: 1.7;
}

/**
 * Файл: media/templates/site/cassiopeia/css/neygen/home.css
 * Блок: FAQ на главной странице.
 * Назначение: вводный текст перед аккордеоном FAQ.
 */

.neygen-home-faq__intro {
  max-width: 980px;
  margin: 34px 0;
  color: #344054;
  font-size: 17px;
  line-height: 1.7;
}

.neygen-home-author {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.neygen-home-author p:not(.neygen-home-section__eyebrow) {
  max-width: 900px;
  margin: 14px 0 0;
  color: var(--ng-muted);
  font-size: 16px;
  line-height: 1.75;
}

/**
 * Файл: media/templates/site/cassiopeia/css/neygen/home.css
 * Блок: главный Neygen AI-подборщик на первом экране.
 */

.neygen-home-ai-picker {
  max-width: 760px;
  margin: 28px 0 20px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #cfe0ff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(63, 110, 203, 0.12);
}

.neygen-home-ai-picker .neygen-ai-inline-picker {
  width: 100%;
}

.neygen-home-ai-picker .neygen-ai-inline-picker__form {
  display: block;
  margin: 0;
  border: 0;
  box-shadow: unset;
}

.neygen-home-ai-picker__label {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #17233c;
}

.neygen-home-ai-picker__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.neygen-home-ai-picker__input {
  width: 100%;
  height: 58px;
  padding: 0 22px;
  border: 1px solid #c7d8fb;
  border-radius: 18px;
  background: #ffffff;
  color: #17233c;
  font-size: 17px;
  line-height: 1.3;
  outline: none;
  box-shadow: none;
}

.neygen-home-ai-picker__input:focus {
  border-color: #3f6ecb;
  box-shadow: 0 0 0 4px rgba(63, 110, 203, 0.12);
}

.neygen-home-ai-picker__button {
  min-width: 190px;
  height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 18px;
  background: #3f6ecb;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(63, 110, 203, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.neygen-home-ai-picker__button:hover {
  background: #2f61c7;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(63, 110, 203, 0.3);
}

.neygen-home-ai-picker__attach {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 12px;
  color: #49637f;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.neygen-home-ai-picker__attach input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.neygen-home-ai-picker__attach span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #dce7ff;
  border-radius: 999px;
  background: #f7f9ff;
  transition: 0.18s ease;
}

.neygen-home-ai-picker__attach:hover span {
  border-color: #b8ccfb;
  background: #eef4ff;
  color: #315fc2;
}

.neygen-home-ai-picker__preview {
  margin-top: 12px;
}

.neygen-home-ai-picker .neygen-ai-inline-picker__preview-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dce7ff;
  border-radius: 16px;
  background: #f8faff;
}

.neygen-home-ai-picker .neygen-ai-inline-picker__preview-card img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.neygen-home-ai-picker .neygen-ai-inline-picker__preview-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.neygen-home-ai-picker .neygen-ai-inline-picker__preview-title {
  overflow: hidden;
  color: #17233c;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neygen-home-ai-picker .neygen-ai-inline-picker__preview-note {
  color: #667085;
  font-size: 13px;
}

.neygen-home-ai-picker .neygen-ai-inline-picker__preview-remove {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #667085;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.neygen-home-ai-picker .neygen-ai-inline-picker__preview-remove:hover {
  background: #eef4ff;
  color: #315fc2;
}

/**
 * Файл: media/templates/site/cassiopeia/css/neygen/home.css
 * Блок: выбор нейросети за 30 секунд.
 * Назначение: пошаговый блок на главной странице Neygen.
 */

.neygen-home-choice__content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
}

.neygen-home-choice__text {
  max-width: 560px;
}

.neygen-home-choice__text h2 {
  margin: 0 0 18px;
}

.neygen-home-choice__text p:not(.neygen-home-section__eyebrow) {
  margin: 0;
  color: #526174;
  font-size: 17px;
  line-height: 1.75;
}

.neygen-home-choice__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.neygen-home-choice-step {
  display: flex;
  gap: 16px;
  min-height: 138px;
  padding: 24px;
  border: 1px solid #dbe7ff;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(63, 110, 203, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.neygen-home-choice-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #3f6ecb;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(63, 110, 203, 0.22);
}

.neygen-home-choice-step__content {
  min-width: 0;
}

.neygen-home-choice-step__content strong {
  display: block;
  margin: 3px 0 10px;
  color: #13233a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.neygen-home-choice-step__content p {
  margin: 0;
  color: #526174;
  font-size: 15px;
  line-height: 1.55;
}

.neygen-home-choice-step:hover {
  border-color: #b9ceff;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(63, 110, 203, 0.12);
}

/**
 * Файл: media/templates/site/cassiopeia/css/neygen/home.css
 * Блок: популярные ИИ-сервисы на главной странице.
 * Назначение: карточки сервисов с логотипами, тегами и CTA.
 */

.neygen-home-service-card::before {
  content: none !important;
  display: none !important;
}

.neygen-home-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 26px;
  border: 1px solid #dbe7ff;
  border-radius: 22px;
  background: #ffffff;
  color: #13233a;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(63, 110, 203, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.neygen-home-service-card:hover {
  border-color: #b9ceff;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  color: #13233a;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(63, 110, 203, 0.12);
}

.neygen-home-service-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.neygen-home-service-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #f1f6ff;
  box-shadow: 0 12px 26px rgba(63, 110, 203, 0.1);
  overflow: hidden;
}

.neygen-home-service-card__logo img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.neygen-home-service-card__title {
  min-width: 0;
}

.neygen-home-service-card__title strong {
  display: block;
  margin: 0;
  color: #13233a;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.15;
}

.neygen-home-service-card__title small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.neygen-home-service-card p {
  margin: 0 0 18px;
  color: #344054;
  font-size: 16px;
  line-height: 1.55;
}

.neygen-home-service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.neygen-home-service-card li {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5ff;
  color: #344d7d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.neygen-home-service-card em {
  display: block;
  margin-top: 18px;
  color: #3f6ecb;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.3;
}

.neygen-home-service-card:hover em {
  color: #2f61c7;
}

/**
 * Файл: media/templates/site/cassiopeia/css/neygen/home.css
 * Блок: финальная полировка популярных ИИ-сервисов.
 * Назначение: чуть более аккуратные логотипы и CTA в карточках сервисов.
 */

.neygen-home-service-card__logo {
  background: #f6f9ff;
  border: 1px solid #edf3ff;
}

.neygen-home-service-card__logo img {
  width: 38px;
  height: 38px;
}

.neygen-home-service-card__title strong {
  letter-spacing: -0.025em;
}

.neygen-home-service-card em {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.neygen-home-service-card:hover em {
  transform: translateX(3px);
}

.neygen-home-service-card:hover .neygen-home-service-card__logo {
  box-shadow: 0 16px 34px rgba(63, 110, 203, 0.16);
}

/**
 * Файл: media/templates/site/cassiopeia/css/neygen/home.css
 * Блок: безопасная анимация hero-орбиты.
 * Назначение: мягкое движение без поломки absolute-позиционирования центра.
 */

/* Кольца */
.neygen-home-orbit {
  position: relative;
  overflow: hidden;
}

.neygen-home-orbit::before,
.neygen-home-orbit::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  border: 1px dashed rgba(63, 110, 203, 0.26);
  z-index: 1;
}

.neygen-home-orbit::before {
  top: 50%;
  left: 50%;
  width: 390px;
  height: 390px;
  transform: translate(-50%, -50%);
  animation: neygenOrbitRingRotate 38s linear infinite;
}

.neygen-home-orbit::after {
  top: 50%;
  left: 50%;
  width: 290px;
  height: 290px;
  border-color: rgba(63, 110, 203, 0.2);
  transform: translate(-50%, -50%);
  animation: neygenOrbitRingRotateReverse 28s linear infinite;
}

/* Центр */
.neygen-home-orbit__center {
  z-index: 3;
  animation: neygenOrbitCenterFloatSafe 5.5s ease-in-out infinite;
}

.neygen-home-orbit__center::before {
  content: "";
  position: absolute;
  inset: -26px;
  z-index: -1;
  border-radius: 36px;
  background: radial-gradient(circle,
      rgba(63, 110, 203, 0.18) 0%,
      rgba(63, 110, 203, 0) 70%);
  opacity: 0.75;
  animation: neygenOrbitPulse 3.8s ease-in-out infinite;
}

/* Карточки */
.neygen-home-orbit__card {
  z-index: 4;
  will-change: transform;
  animation: neygenOrbitCardFloat 6s ease-in-out infinite;
}

.neygen-home-orbit__card--one {
  animation-delay: 0s;
}

.neygen-home-orbit__card--two {
  animation-delay: -1.4s;
}

.neygen-home-orbit__card--three {
  animation-delay: -2.8s;
}

.neygen-home-orbit__card--four {
  animation-delay: -4.2s;
}

.neygen-home-orbit a:hover .neygen-home-orbit__card {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 46px rgba(63, 110, 203, 0.16);
}

/* Анимации */
@keyframes neygenOrbitRingRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes neygenOrbitRingRotateReverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes neygenOrbitCenterFloatSafe {

  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-6px);
  }
}

@keyframes neygenOrbitPulse {

  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

@keyframes neygenOrbitCardFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .neygen-home-orbit::before,
  .neygen-home-orbit::after,
  .neygen-home-orbit__center,
  .neygen-home-orbit__center::before,
  .neygen-home-orbit__card {
    animation: none !important;
  }
}

@media (max-width: 1180px) {
  .neygen-home {
    padding-left: 14px;
    padding-right: 14px;
  }

  .neygen-home-hero {
    grid-template-columns: 1fr;
  }

  .neygen-home-hero__visual {
    min-height: 420px;
  }

  .neygen-home-task-grid,
  .neygen-home-intent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .neygen-home-choice__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .neygen-home-choice__text {
    max-width: none;
  }
}

@media (max-width: 900px) {

  .neygen-home-hero__content,
  .neygen-home-section,
  .neygen-home-route,
  .neygen-home-author {
    padding: 24px;
    border-radius: 22px;
  }

  .neygen-home-section__head,
  .neygen-home-route,
  .neygen-home-section--split,
  .neygen-home-author {
    grid-template-columns: 1fr;
  }

  .neygen-home-task-grid,
  .neygen-home-services-grid,
  .neygen-home-intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .neygen-home-searchbox__row {
    grid-template-columns: 1fr;
  }

  .neygen-home-searchbox button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .neygen-home-service-card {
    min-height: auto;
    padding: 22px;
  }

  .neygen-home-service-card__top {
    gap: 14px;
  }

  .neygen-home-service-card__logo {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .neygen-home-service-card__logo img {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 700px) {
  .neygen-home-ai-picker {
    padding: 14px;
    border-radius: 20px;
  }

  .neygen-home-ai-picker__row {
    grid-template-columns: 1fr;
  }

  .neygen-home-ai-picker__input,
  .neygen-home-ai-picker__button {
    height: 54px;
    border-radius: 16px;
  }

  .neygen-home-ai-picker__button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .neygen-home {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .neygen-home h1 {
    font-size: 42px;
    letter-spacing: -0.045em;
  }

  .neygen-home h2 {
    font-size: 30px;
  }

  .neygen-home-hero__lead {
    font-size: 17px;
  }

  .neygen-home-task-grid,
  .neygen-home-services-grid,
  .neygen-home-intent-grid,
  .neygen-home-route__steps {
    grid-template-columns: 1fr;
  }

  .neygen-home-hero__visual {
    display: none;
  }

  .neygen-home-hero__actions,
  .neygen-home-button {
    width: 100%;
  }

  .neygen-home-button {
    text-align: center;
  }

  .neygen-home-choice__steps {
    grid-template-columns: 1fr;
  }

  .neygen-home-choice-step {
    min-height: auto;
    padding: 22px;
  }
}