:root {
      --accent-cyan: var(--ocd-tweak-accent-cyan, #00C8FB);
      --accent-violet: var(--ocd-tweak-accent-violet, #8445DD);
      --accent-end: var(--ocd-tweak-accent-end, #E045B5);
      --gradient-opacity: var(--ocd-tweak-gradient-opacity, 0.08);
      --radius: var(--ocd-tweak-radius, 16px);
      --density: var(--ocd-tweak-density, 1);
      
      --primary: #2563EB;
      --text: #0F1729;
      --text-secondary: #5A627A;
      --border: #E8EAF2;
      --surface: #F7F8FC;
      --white: #FFFFFF;
    }

    @media (prefers-color-scheme: dark) {
      :root {
        --text: #EDEFF5;
        --text-secondary: #9CA3B8;
        --border: #232833;
        --surface: #151922;
        --white: #0E1117;
      }
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      font-size: 16px;
      line-height: 1.6;
      color: var(--text);
      background: var(--white);
      overflow-x: hidden;
    }

    /* Typography */
    h1, h2, h3 {
      font-family: 'Unbounded', 'Inter', sans-serif;
      font-weight: 700;
      line-height: 1.2;
    }

    h1 {
      font-size: clamp(1.375rem, 2.6vw, 2.125rem);
      margin-bottom: calc(1rem * var(--density));
    }

    h2 {
      font-size: clamp(1.25rem, 2.2vw, 1.75rem);
      margin-bottom: calc(1.25rem * var(--density));
    }

    h3 {
      font-size: clamp(1.125rem, 1.8vw, 1.375rem);
      margin-bottom: calc(0.875rem * var(--density));
    }

    /* Header */
    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--white);
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(12px);
      background: rgba(255, 255, 255, 0.95);
    }

    @media (prefers-color-scheme: dark) {
      header {
        background: rgba(14, 17, 23, 0.95);
      }
    }

    .header-inner {
      max-width: 1400px;
      margin: 0 auto;
      padding: calc(1rem * var(--density)) calc(1.5rem * var(--density));
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
    }

    .logo {
      height: 32px;
      flex-shrink: 0;
    }

    .logo img {
      height: 100%;
      width: auto;
    }

    nav {
      display: flex;
      gap: calc(2rem * var(--density));
      align-items: center;
    }

    nav a {
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 0.9375rem;
      font-weight: 500;
      transition: color 180ms;
    }

    nav a:hover {
      color: var(--text);
    }

    @media (max-width: 768px) {
      nav {
        display: none;
      }
    }

    /* Button */
    .btn {
      display: inline-block;
      padding: calc(0.75rem * var(--density)) calc(1.5rem * var(--density));
      font-size: 0.9375rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: opacity 180ms;
      border: none;
      font-family: inherit;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
      color: white;
      border-radius: 0;
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    }

    .btn-primary:hover {
      opacity: 0.9;
    }

    .btn-secondary {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 0;
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    }

    .btn-secondary:hover {
      background: var(--surface);
    }

    /* Container */
    .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 calc(1.5rem * var(--density));
    }

    .section {
      padding: calc(5rem * var(--density)) 0;
    }

    .section-title {
      text-align: center;
      margin-bottom: calc(3rem * var(--density));
    }

    /* Асимметричная сетка 5/12 + 7/12 */
    .section-grid {
      display: grid;
      gap: calc(3rem * var(--density));
      align-items: start;
    }

    @media (min-width: 900px) {
      .section-grid {
        grid-template-columns: 5fr 7fr;
        gap: calc(4rem * var(--density));
      }
    }

    .section-header-left h2 {
      text-align: left;
      margin-bottom: calc(1rem * var(--density));
    }

    .section-header-left p {
      color: var(--text-secondary);
      font-size: 1.0625rem;
      line-height: 1.7;
    }

    /* Hero */
    .hero {
      position: relative;
      max-width: 1400px;
      margin: 0 auto;
      padding: calc(5rem * var(--density)) calc(1.5rem * var(--density)) calc(4rem * var(--density));
      overflow: hidden;
    }

    /* Фирменный декор: призрачный NZ на фоне */
    .hero::before {
      content: '';
      position: absolute;
      top: 50%;
      right: 5%;
      width: 450px;
      height: 450px;
      transform: translateY(-50%);
      background-image: url('/assets/neurozal-icon-mono.svg');
      background-size: contain;
      background-repeat: no-repeat;
      opacity: 0.04;
      pointer-events: none;
      z-index: 0;
    }

    /* Градиентные радиальные пятна */
    .hero::after {
      content: '';
      position: absolute;
      top: 20%;
      left: 10%;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
      opacity: var(--gradient-opacity);
      pointer-events: none;
      z-index: 0;
      filter: blur(60px);
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 1100px;
      margin: 0 auto;
      text-align: center;
    }

    .hero-title {
      font-size: clamp(1.375rem, 2.6vw, 2.125rem);
      background: linear-gradient(135deg, var(--text) 0%, var(--accent-violet) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: calc(1.25rem * var(--density));
    }

    .hero-subtitle {
      font-size: clamp(1.125rem, 2.5vw, 1.375rem);
      color: var(--text-secondary);
      margin-bottom: calc(2.5rem * var(--density));
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: calc(3rem * var(--density));
    }

    /* Градиентная линия-разделитель */
    .gradient-divider {
      width: 100%;
      height: 3px;
      background: linear-gradient(90deg, 
        var(--accent-cyan) 0%, 
        #03ADF8 20%, 
        #3766DC 40%, 
        #904AD7 60%, 
        #C442D2 80%, 
        var(--accent-end) 100%);
      margin: 0 auto;
      border-radius: 2px;
    }

    /* Features */
    .features {
      display: grid;
      gap: calc(1.5rem * var(--density));
    }

    .feature {
      position: relative;
      padding: calc(1.75rem * var(--density));
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) * 0.75);
      transition: border-color 200ms, transform 200ms;
    }

    .feature:hover {
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    .feature-icon {
      width: 40px;
      height: 40px;
      margin-bottom: calc(1rem * var(--density));
      color: var(--primary);
    }

    .feature h3 {
      font-size: 1.25rem;
      margin-bottom: calc(0.625rem * var(--density));
    }

    .feature p {
      color: var(--text-secondary);
      font-size: 0.9375rem;
      line-height: 1.6;
    }

    /* Code card */
    .code-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) * 1);
      overflow: hidden;
      clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    }

    .code-tabs {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--border);
      background: var(--white);
    }

    .code-tab {
      flex: 1;
      padding: calc(0.875rem * var(--density)) calc(1.25rem * var(--density));
      background: transparent;
      border: none;
      font-family: inherit;
      font-size: 0.9375rem;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 180ms;
      border-bottom: 2px solid transparent;
    }

    .code-tab:hover {
      color: var(--text);
      background: var(--surface);
    }

    .code-tab.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
      background: var(--surface);
    }

    .code-content {
      display: none;
      position: relative;
      padding: calc(1.5rem * var(--density));
    }

    .code-content.active {
      display: block;
    }

    .code-content pre {
      margin: 0;
      overflow-x: auto;
      font-size: 0.875rem;
      line-height: 1.6;
      font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    }

    .code-content code {
      color: var(--text);
      display: block;
    }

    .code-copy {
      position: absolute;
      top: calc(1rem * var(--density));
      right: calc(1rem * var(--density));
      padding: calc(0.5rem * var(--density)) calc(0.875rem * var(--density));
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) * 0.5);
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 180ms;
    }

    .code-copy:hover {
      background: var(--border);
      color: var(--text);
    }

    /* Pricing table */
    .pricing-table-wrapper {
      margin-bottom: calc(1.5rem * var(--density));
    }

    .pricing-table {
      width: 100%;
      border-collapse: collapse;
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) * 0.75);
      overflow: hidden;
      font-variant-numeric: tabular-nums;
    }

    .pricing-table thead {
      background: var(--surface);
    }

    .pricing-table th {
      padding: calc(1rem * var(--density)) calc(1.25rem * var(--density));
      font-weight: 600;
      font-size: 0.9375rem;
      text-align: left;
    }

    .pricing-table td {
      padding: calc(0.875rem * var(--density)) calc(1.25rem * var(--density));
      border-top: 1px solid var(--border);
      font-size: 0.9375rem;
    }

    .pricing-table tbody tr:hover {
      background: var(--surface);
    }

    .pricing-note {
      font-size: 0.875rem;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .pricing-note code {
      background: var(--surface);
      padding: 0.125rem 0.375rem;
      border-radius: 4px;
      font-size: 0.8125rem;
    }

    /* Mobile: карточки вместо таблицы */
    .pricing-cards {
      display: none;
      grid-template-columns: 1fr;
      gap: calc(1rem * var(--density));
    }

    .pricing-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) * 0.75);
      padding: calc(1.25rem * var(--density));
    }

    .pricing-card-model {
      font-weight: 600;
      font-size: 1rem;
      margin-bottom: calc(0.75rem * var(--density));
      color: var(--text);
    }

    .pricing-card-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: calc(0.5rem * var(--density)) 0;
      font-size: 0.9375rem;
      color: var(--text-secondary);
    }

    .pricing-card-row strong {
      color: var(--text);
      font-variant-numeric: tabular-nums;
    }

    @media (max-width: 720px) {
      .pricing-table {
        display: none;
      }
      .pricing-cards {
        display: grid;
      }
    }

    /* Steps */
    .steps {
      display: grid;
      gap: calc(1.75rem * var(--density));
    }

    .step {
      position: relative;
      padding: calc(1.75rem * var(--density));
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) * 0.75);
    }

    .step-number {
      background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-family: 'Unbounded', sans-serif;
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: calc(1rem * var(--density));
    }

    .step h3 {
      font-size: 1.25rem;
      margin-bottom: calc(0.625rem * var(--density));
    }

    .step p {
      color: var(--text-secondary);
      font-size: 0.9375rem;
      line-height: 1.6;
    }

    /* Pricing plans */
    .pricing-plans {
      display: grid;
      gap: calc(1.5rem * var(--density));
    }

    @media (min-width: 1024px) {
      .pricing-plans {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    .pricing-plan {
      position: relative;
      display: flex;
      flex-direction: column;
      padding: calc(2rem * var(--density));
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) * 1);
      transition: border-color 200ms, transform 200ms;
    }

    /* Кнопка тарифа прижата к низу — выравнивается по всем трём колонкам */
    .pricing-plan > .btn {
      margin-top: auto;
    }

    .pricing-plan:hover {
      border-color: var(--primary);
      transform: translateY(-4px);
    }

    .pricing-plan.featured {
      border-color: var(--primary);
      border-width: 2px;
    }

    .pricing-plan-badge {
      position: absolute;
      top: calc(1rem * var(--density));
      right: calc(1rem * var(--density));
      padding: 0.25rem 0.75rem;
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent-violet) 100%);
      color: white;
      font-size: 0.75rem;
      font-weight: 600;
      border-radius: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .pricing-plan h3 {
      font-size: 1.5rem;
      margin-bottom: calc(0.5rem * var(--density));
    }

    .pricing-plan-price {
      font-family: 'Unbounded', sans-serif;
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: calc(0.25rem * var(--density));
      overflow-wrap: normal;
      word-break: keep-all;
      hyphens: manual;
    }

    /* Цена словом («Бесплатно», «Индивидуально») — мельче, чтобы не рвалась по буквам */
    .pricing-plan-price.is-word {
      font-size: 1.5rem;
      line-height: 1.35;
    }

    .pricing-plan-price small {
      font-size: 1rem;
      font-weight: 400;
      color: var(--text-secondary);
    }

    .pricing-plan-desc {
      color: var(--text-secondary);
      font-size: 0.9375rem;
      margin-bottom: calc(1.5rem * var(--density));
    }

    .pricing-plan ul {
      list-style: none;
      margin-bottom: calc(2rem * var(--density));
    }

    .pricing-plan li {
      padding: calc(0.5rem * var(--density)) 0;
      padding-left: calc(1.75rem * var(--density));
      position: relative;
      font-size: 0.9375rem;
      color: var(--text);
    }

    .pricing-plan li::before {
      content: '';
      position: absolute;
      left: 0;
      top: calc(0.875rem * var(--density));
      width: 16px;
      height: 16px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    }

    /* FAQ */
    .faq {
      max-width: 900px;
      margin: 0 auto;
    }

    .faq-item {
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) * 0.75);
      margin-bottom: calc(1rem * var(--density));
      overflow: hidden;
    }

    .faq-item summary {
      padding: calc(1.25rem * var(--density)) calc(1.5rem * var(--density));
      cursor: pointer;
      font-weight: 600;
      list-style: none;
      user-select: none;
      transition: background 140ms;
    }

    .faq-item summary:hover {
      background: var(--surface);
    }

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

    .faq-item[open] summary {
      border-bottom: 1px solid var(--border);
      background: var(--surface);
    }

    .faq-answer {
      padding: calc(1.25rem * var(--density)) calc(1.5rem * var(--density));
      color: var(--text-secondary);
      line-height: 1.7;
    }

    /* Footer */
    footer {
      border-top: 1px solid var(--border);
      background: var(--surface);
      padding: calc(3rem * var(--density)) calc(1.5rem * var(--density));
    }

    .footer-inner {
      max-width: 1400px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 2rem;
      align-items: center;
      text-align: center;
    }

    @media (min-width: 768px) {
      .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
      }
    }

    .footer-logo {
      height: 28px;
    }

    .footer-links {
      display: flex;
      gap: 2rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .footer-links a {
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 0.9375rem;
      transition: color 180ms;
    }

    .footer-links a:hover {
      color: var(--text);
    }

    .footer-copyright {
      color: var(--text-secondary);
      font-size: 0.875rem;
    }

    /* --- Правка переполнения на узких экранах (13.09.2026) --- */
    .section-grid, .section-grid > *, .features > *, .steps > *,
    .pricing-plans > *, .pricing-cards > *, .hero-content, .hero-content > * {
      min-width: 0;
    }
    .section-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .features > *, .steps > * { min-width: 0; }
    .code-card, .code-content, .code-tabs { min-width: 0; }
    .code-content pre { max-width: 100%; overflow-x: auto; }
    .pricing-table-wrapper { overflow-x: auto; max-width: 100%; }
    .pricing-plan { min-width: 0; overflow-wrap: anywhere; }
    @media (max-width: 899px) {
      .section-grid { grid-template-columns: minmax(0, 1fr); }
    }

/* --- раздел «Статьи» --- */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 6.5rem 1.25rem 4rem; }
.breadcrumbs { font-size: .8125rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.article-wrap h1 { font-family: 'Unbounded', 'Inter', sans-serif; font-size: clamp(1.375rem, 2.6vw, 2.125rem);
  line-height: 1.25; margin: 0 0 1rem; color: var(--text); }
.article-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; font-size: .8125rem;
  color: var(--text-secondary); padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.article-body { font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.article-body h2 { font-family: 'Unbounded', 'Inter', sans-serif; font-size: 1.375rem; line-height: 1.3;
  margin: 2.5rem 0 1rem; color: var(--text); }
.article-body h3 { font-size: 1.125rem; font-weight: 600; margin: 2rem 0 .75rem; color: var(--text); }
.article-body p { margin: 0 0 1.25rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.25rem; padding: 0; }
.article-body li { margin-bottom: .5rem; }
.article-body a { color: var(--primary); }
.article-body strong { font-weight: 600; }
.article-body blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--surface);
  border-left: 3px solid var(--primary); border-radius: 8px; color: var(--text-secondary); }
.article-body code { font-family: 'SF Mono', 'Consolas', monospace; font-size: .875rem;
  background: var(--surface); padding: .125rem .375rem; border-radius: 6px; }
.article-body pre { background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.25rem; overflow-x: auto; font-size: .875rem; line-height: 1.6; }
.article-body pre code { background: none; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: .625rem .75rem; text-align: left; }
.article-body th { background: var(--surface); font-weight: 600; }
.article-cta { margin: 3rem 0 0; padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); }
.article-cta h3 { margin: 0 0 .5rem; font-family: 'Unbounded', 'Inter', sans-serif; font-size: 1.125rem; }
.article-cta p { color: var(--text-secondary); margin: 0 0 1.25rem; }
.articles-list { display: grid; gap: 1.25rem; padding: 6.5rem 0 4rem; }
.articles-list .card { display: block; padding: 1.5rem; border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; background: var(--white); transition: .2s; }
.articles-list .card:hover { border-color: var(--primary); transform: translateY(-2px); }
.articles-list .card h2 { font-family: 'Unbounded', 'Inter', sans-serif; font-size: 1.125rem;
  margin: 0 0 .625rem; color: var(--text); }
.articles-list .card p { margin: 0; color: var(--text-secondary); font-size: .9375rem; line-height: 1.6; }
.articles-list .card .meta { margin-top: .875rem; font-size: .8125rem; color: var(--text-secondary); }
.articles-hero { max-width: 780px; margin: 0 auto; padding: 6.5rem 1.25rem 0; }
.articles-hero h1 { font-family: 'Unbounded', 'Inter', sans-serif; font-size: clamp(1.375rem, 2.6vw, 2.125rem); margin: 0 0 1rem; }
.articles-hero p { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.7; margin: 0; }

/* --- Кнопка раздела «Для бизнеса» в шапке (раздел /b2b) --- */
.nav-b2b { display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: 10px;
  color: #8445DD; border: 1px solid rgba(132,69,221,.45); background: rgba(132,69,221,.10);
  font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background 180ms, border-color 180ms, color 180ms; }
.nav-b2b:hover { background: rgba(132,69,221,.18); border-color: #8445DD; color: #6D2FC4; }
.b2b-mobile { display: none; align-items: center; padding: .45rem .85rem; border-radius: 10px;
  color: #8445DD; border: 1px solid rgba(132,69,221,.45); background: rgba(132,69,221,.10);
  font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 768px) {
  .b2b-mobile { display: inline-flex; padding: .4rem .65rem; font-size: .75rem; }
  .header-inner:has(.b2b-mobile) { gap: .75rem; }
  .header-inner:has(.b2b-mobile) .logo { height: 22px; }
}
@media (prefers-color-scheme: dark) {
  .nav-b2b, .b2b-mobile { color: #C4A9F0; border-color: rgba(196,169,240,.45); background: rgba(132,69,221,.16); }
  .nav-b2b:hover { color: #fff; background: rgba(132,69,221,.32); border-color: #C4A9F0; }
}
