body {
    font-family: 'Heebo', sans-serif;
  }
  @keyframes slideUpFade {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .animate-slide-up {
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  html {
    scroll-behavior: smooth;
  }

  #main-content{
    padding-top: 80px;
  }

  #mobile-menu.site-mobile-nav .site-nav-link {
    display: block;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: color 0.15s, background-color 0.15s;
  }

  #mobile-menu.site-mobile-nav .site-nav-link:hover {
    background-color: #eef2ff;
    color: #4f46e5;
  }

  #mobile-menu.site-mobile-nav .site-nav-link.active {
    background-color: #eef2ff;
    color: #4f46e5;
  }

  /* Демо-форма в статье (горизонтальная строка): подпись и ошибки — отдельной строкой под полями */
  form[data-site-demo-form]:not(#contact-form) {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  form[data-site-demo-form]:not(#contact-form) input{
    width: 60%;
  }

  form[data-site-demo-form]:not(#contact-form) button{
    width: 36%;
    cursor: pointer;
  } 

  @media (max-width: 768px) {
    form[data-site-demo-form]:not(#contact-form) input{
      width: 100%;
    }
    form[data-site-demo-form]:not(#contact-form) button{
      width: 100%;
    }
  }

  form[data-site-demo-form]:not(#contact-form) .site-demo-form-footer {
    flex: 0 0 100%;
    width: 100%;
    order: 50;
    margin-top: 0.25rem;
    pointer-events: none;
  }

  form[data-site-demo-form]:not(#contact-form) .site-demo-recaptcha {
    flex: 0 0 100%;
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 78px;
    pointer-events: auto;
  }

  .site-contact-recaptcha {
    min-height: 78px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  form[data-site-demo-form]:not(#contact-form) .site-demo-form-error,
  form[data-site-demo-form]:not(#contact-form) .site-demo-form-success {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 0.75rem;
    text-align: center;
    pointer-events: auto;
  }

  /* После отправки — только сообщение об успехе вместо полей формы */
  form[data-site-demo-form].site-demo-form--sent:not(#contact-form) {
    display: block;
    padding: 0;
    gap: 0;
  }

  form[data-site-demo-form].site-demo-form--sent:not(#contact-form) > *:not(.site-demo-form-footer) {
    display: none !important;
  }

  form[data-site-demo-form].site-demo-form--sent:not(#contact-form) .site-demo-form-footer {
    margin-top: 0;
    pointer-events: auto;
  }

  form[data-site-demo-form].site-demo-form--sent:not(#contact-form) .site-demo-form-success {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    border-radius: 1rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #ecfdf5;
  }

  form[data-site-demo-form].site-demo-form--sent:not(#contact-form) .site-demo-form-error,
  form[data-site-demo-form].site-demo-form--sent:not(#contact-form) .site-demo-recaptcha {
    display: none !important;
  }

  /* FAQ <details>: только убираем подпись браузера («Сведения»), вёрстка — из Tailwind в HTML */
  #main-content details > summary,
  .module-content details > summary {
    list-style: none;
  }

  #main-content details > summary::-webkit-details-marker,
  .module-content details > summary::-webkit-details-marker {
    display: none;
  }

  #main-content details > summary::marker,
  .module-content details > summary::marker {
    content: '';
  }

  #main-content details > summary h1,
  #main-content details > summary h2,
  #main-content details > summary h3,
  #main-content details > summary h4,
  #main-content details > summary h5,
  #main-content details > summary h6,
  .module-content details > summary h1,
  .module-content details > summary h2,
  .module-content details > summary h3,
  .module-content details > summary h4,
  .module-content details > summary h5,
  .module-content details > summary h6 {
    margin: 0;
  }

  /* FAQ: заголовок справа, круг со стрелкой слева (RTL) */
  #main-content details.group > summary,
  .module-content details.group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    cursor: pointer;
    list-style: none;
  }

  #main-content details.group > summary > :is(h1, h2, h3, h4, h5, h6),
  .module-content details.group > summary > :is(h1, h2, h3, h4, h5, h6) {
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
    margin: 0;
  }

  #main-content details.group > summary > div:has([data-lucide]),
  #main-content details.group > summary > div:has(svg.lucide),
  .module-content details.group > summary > div:has([data-lucide]),
  .module-content details.group > summary > div:has(svg.lucide) {
    order: 2;
    flex-shrink: 0;
  }

  #main-content details.group[open] > summary > div:has([data-lucide]),
  #main-content details.group[open] > summary > div:has(svg.lucide),
  .module-content details.group[open] > summary > div:has([data-lucide]),
  .module-content details.group[open] > summary > div:has(svg.lucide) {
    background-color: #eef2ff;
    border-color: #e0e7ff;
  }

  #main-content details.group[open] > summary [data-lucide],
  .module-content details.group[open] > summary [data-lucide] {
    color: #4f46e5;
  }

  #main-content details.group[open] > summary > :is(h1, h2, h3, h4, h5, h6),
  .module-content details.group[open] > summary > :is(h1, h2, h3, h4, h5, h6) {
    color: #4338ca;
  }

  /* Blog / articles listing */
  .blog-card {
    height: 100%;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition:
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      border-color 0.25s ease;
  }

  .blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(199, 210, 254, 0.9);
    box-shadow:
      0 4px 8px rgba(79, 70, 229, 0.06),
      0 20px 40px rgba(15, 23, 42, 0.1);
  }

  .blog-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .blog-card__media {
    border-radius: 0;
  }

  .blog-listing__intro p {
    margin-bottom: 0.5rem;
  }

  .blog-listing__intro p:last-child {
    margin-bottom: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card__img,
    .blog-card__media-overlay,
    .blog-card__cta svg {
      transition: none;
    }

    .blog-card:hover {
      transform: none;
    }

    .blog-card:hover .blog-card__img {
      transform: none;
    }
  }

  /* Blog single article only (/content/...) — not menu-attached articles */
  .blog-article-page {
    width: 100%;
  }

  .blog-article-prose {
    max-width: 100%;
    color: #334155;
    font-size: 1.0625rem;
    line-height: 1.9;
    text-align: right;
  }

  .blog-article-prose [dir="rtl"],
  .blog-article-prose > div {
    max-width: 100%;
  }

  .blog-article-prose > *:first-child,
  .blog-article-prose > div > *:first-child {
    margin-top: 0;
  }

  .blog-article-prose > *:last-child,
  .blog-article-prose > div > *:last-child {
    margin-bottom: 0;
  }

  .blog-article-prose p {
    margin: 0 0 1.35em;
  }

  .blog-article-prose strong {
    color: #0f172a;
    font-weight: 700;
  }

  .blog-article-prose h2 {
    color: #0f172a;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    line-height: 1.35;
    margin: 2.25em 0 0.85em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e0e7ff;
    scroll-margin-top: 6rem;
  }

  .blog-article-prose h2:first-child {
    margin-top: 0;
  }

  .blog-article-prose h3 {
    color: #1e293b;
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.4;
    margin: 1.75em 0 0.65em;
    scroll-margin-top: 6rem;
  }

  .blog-article-prose h4,
  .blog-article-prose h5,
  .blog-article-prose h6 {
    color: #1e293b;
    font-weight: 700;
    line-height: 1.4;
    margin: 1.5em 0 0.5em;
    scroll-margin-top: 6rem;
  }

  .blog-article-prose h4 {
    font-size: 1.125rem;
  }

  .blog-article-prose ul,
  .blog-article-prose ol {
    margin: 0 0 1.5em;
    padding-right: 0;
    padding-left: 0;
    list-style: none;
  }

  .blog-article-prose ul > li,
  .blog-article-prose ol > li {
    position: relative;
    margin-bottom: 0.65em;
    padding-right: 1.35em;
  }

  .blog-article-prose ul > li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6366f1;
  }

  .blog-article-prose ol {
    counter-reset: article-ol;
  }

  .blog-article-prose ol > li {
    counter-increment: article-ol;
  }

  .blog-article-prose ol > li::before {
    content: counter(article-ol) ".";
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 700;
    color: #4f46e5;
    font-size: 0.95em;
  }

  .blog-article-prose li > ul,
  .blog-article-prose li > ol {
    margin-top: 0.65em;
    margin-bottom: 0;
  }

  .blog-article-prose a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
  }

  .blog-article-prose a:hover {
    color: #4338ca;
  }

  .blog-article-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.75em 0;
  }

  .blog-article-prose blockquote {
    margin: 1.75em 0;
    padding: 1rem 1.25rem;
    border-right: 4px solid #a5b4fc;
    background: #f8fafc;
    border-radius: 0 0.75rem 0.75rem 0;
    color: #475569;
    font-style: normal;
  }

  .blog-article-prose figure.table {
    margin: 2em 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  }

  .blog-article-prose figure.table table,
  .blog-article-prose table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .blog-article-prose thead {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  }

  .blog-article-prose th,
  .blog-article-prose td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    text-align: right;
    vertical-align: top;
  }

  .blog-article-prose th {
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
  }

  .blog-article-prose tbody tr:nth-child(even) {
    background: #f8fafc;
  }

  .blog-article-prose tbody tr:hover {
    background: #eef2ff;
  }

  .blog-article-prose hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 2.5em 0;
  }

  .blog-article-page__lead p:last-child {
    margin-bottom: 0;
  }

  @media (max-width: 640px) {
    .blog-article-prose figure.table table,
    .blog-article-prose table {
      min-width: 32rem;
      font-size: 0.875rem;
    }

    .blog-article-prose th,
    .blog-article-prose td {
      padding: 0.55rem 0.65rem;
    }
  }