/* ============================================================
   Ярко · общие исправления вёрстки
   1) выравнивание hero по левой границе сетки
   2) единое меню: скрытие кнопки личного кабинета
   3) типографика статей — с учётом переключателя темы
   ============================================================ */

/* ---------- 1. hero по левой границе ---------- */
.hero__in{
  max-width:none!important;
  width:min(1120px,92vw)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.hero__in>h1,
.hero__in>.hero__lead,
.hero__in>.eyebrow,
.hero__in>.hero__acts{max-width:min(62ch,100%)}
.hero__in>.hero__facts{max-width:100%}

/* ---------- 2. личный кабинет не афишируем ---------- */
/* кнопка личного кабинета показывается (см. блок «Кнопка Личный кабинет» ниже) */

/* ---------- 3. статьи: тёмная тема (по умолчанию) ---------- */
.art p,.art li,.art dd,.art dt,.art .lead-p{color:#D7D0EC}
.art h2,.art h3,.art h4{color:#F6F3FF}
.art strong,.art b{color:#F6F3FF}
.art a{color:#22D3EE}
.art table{background:rgba(255,255,255,.05);border:1px solid rgba(246,243,255,.16)}
.art th{color:#C9C1E2;background:rgba(255,255,255,.04);border-bottom:1px solid rgba(246,243,255,.2)}
.art td{color:#E4DEF5;border-bottom:1px solid rgba(246,243,255,.1)}
.art blockquote{color:#EDE7FA}
.art code{color:#FFD23F;background:rgba(255,210,63,.10)}
.art .crumbs,.art .crumbs a,.art .crumbs span{color:#9B93B8}

/* ведущий термин абзаца — мини-заголовок */
.art section p>b:first-child{
  display:block;color:#FFD23F;font-size:15.5px;font-weight:600;
  letter-spacing:.01em;margin:0 0 5px;line-height:1.35;
}
.art section p:has(>b:first-child){padding:14px 0 2px;border-top:1px solid rgba(246,243,255,.10);margin-bottom:6px}
.art section p:has(>b:first-child)+p{margin-top:0}

/* ---------- 3б. статьи: светлая тема ---------- */
html[data-theme="light"] .art p,
html[data-theme="light"] .art li,
html[data-theme="light"] .art dd,
html[data-theme="light"] .art dt,
html[data-theme="light"] .art .lead-p{color:#3B3350!important}
html[data-theme="light"] .art h2,
html[data-theme="light"] .art h3,
html[data-theme="light"] .art h4,
html[data-theme="light"] .art strong,
html[data-theme="light"] .art b{color:#171126!important}
html[data-theme="light"] .art a{color:#0E7490!important}
html[data-theme="light"] .art table{background:#FFFFFF!important;border:1px solid rgba(23,17,38,.12)!important}
html[data-theme="light"] .art th{color:#5A5375!important;background:rgba(23,17,38,.04)!important;border-bottom:1px solid rgba(23,17,38,.14)!important}
html[data-theme="light"] .art td{color:#2C2540!important;border-bottom:1px solid rgba(23,17,38,.10)!important}
html[data-theme="light"] .art td b,html[data-theme="light"] .art td strong{color:#171126!important}
html[data-theme="light"] .art blockquote{color:#2C2540!important;background:rgba(139,92,246,.08)}
html[data-theme="light"] .art code{color:#7A4B00!important;background:rgba(184,134,11,.12)}
html[data-theme="light"] .art .crumbs,html[data-theme="light"] .art .crumbs a{color:#6B6383!important}
html[data-theme="light"] .art section p>b:first-child{color:#8A6400!important}
html[data-theme="light"] .art section p:has(>b:first-child){border-top:1px solid rgba(23,17,38,.12)}

/* тёмные панели-врезки внутри светлой темы остаются тёмными — текст в них светлый */
html[data-theme="light"] .art div[style*="linear-gradient(120deg"],
html[data-theme="light"] .art div[style*="linear-gradient(160deg"]{color:#B7AED2}
html[data-theme="light"] .art div[style*="linear-gradient(120deg"] p,
html[data-theme="light"] .art div[style*="linear-gradient(160deg"] p{color:#B7AED2!important}
html[data-theme="light"] .art div[style*="linear-gradient(120deg"] p:first-child,
html[data-theme="light"] .art div[style*="linear-gradient(160deg"] p:first-child{color:#F6F3FF!important}

/* ============================================================
   4. Светлая тема: контраст вторичного текста
   Проблема: палитра задаёт #B7AED2 (лаванда) для второстепенного
   текста, но на кремовом фоне это почти не читается.
   В светлой теме заменяем на тёмные тона той же гаммы.
   Тёмные секции (.y-dark, .cta, .bn, .foot) не трогаем.
   ============================================================ */
html[data-theme="light"] .nav a,
html[data-theme="light"] .hero__lead,
html[data-theme="light"] .hero2__lead,
html[data-theme="light"] .sec__lead,
html[data-theme="light"] .stepline p,
html[data-theme="light"] .pk__s,
html[data-theme="light"] .tm-desc,
html[data-theme="light"] .pain p,
html[data-theme="light"] .give p,
html[data-theme="light"] .step2 p,
html[data-theme="light"] .faq2 p,
html[data-theme="light"] .faqside__p,
html[data-theme="light"] .faqside__eb,
html[data-theme="light"] .faqside__tel,
html[data-theme="light"] .tz p,
html[data-theme="light"] .leak__lg,
html[data-theme="light"] .calc__f label,
html[data-theme="light"] .pr__price small,
html[data-theme="light"] .contacts a,
html[data-theme="light"] .contacts span,
html[data-theme="light"] .crumbs span,
html[data-theme="light"] .crumbs a{ color:#413A57!important }

/* мелкие подписи-капс: были почти прозрачными на кремовом */
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .sec__head .eyebrow,
html[data-theme="light"] .tm-eyebrow,
html[data-theme="light"] .info-cap,
html[data-theme="light"] .fact span,
html[data-theme="light"] .rel span{ color:#5B5375!important; border-color:rgba(23,17,38,.18)!important }

/* карточки: списки, теги, ссылки «подробнее» */
html[data-theme="light"] .card li,
html[data-theme="light"] .pk__c li,
html[data-theme="light"] .acard span,
html[data-theme="light"] .scard p,
html[data-theme="light"] .card p{ color:#3F3856!important }
html[data-theme="light"] .card .tag,
html[data-theme="light"] .pk__c .tag,
html[data-theme="light"] .acard i,
html[data-theme="light"] .chip,
html[data-theme="light"] .rel{ color:#5B5375!important; border-color:rgba(23,17,38,.16)!important }
html[data-theme="light"] .acard b,
html[data-theme="light"] .card h3,
html[data-theme="light"] .pk__c h3{ color:#171126!important }
html[data-theme="light"] .card a,
html[data-theme="light"] .acard a,
html[data-theme="light"] .pk__c a,
html[data-theme="light"] .more,
html[data-theme="light"] [class*="more"]{ color:#0E7490!important }
html[data-theme="light"] .card a:hover{ color:#0B5A70!important }

/* команда: подписи ролей */
html[data-theme="light"] .tm-role,
html[data-theme="light"] .tm-card small,
html[data-theme="light"] .tm-card i{ color:#7A5200!important }

/* кейсы и услуги: капс-теги внизу карточек */
html[data-theme="light"] .acard i,
html[data-theme="light"] .case i,
html[data-theme="light"] .card .k{ color:#4A4363!important }

/* калькуляторы: подписи результата и сноски */
html[data-theme="light"] .calc small,
html[data-theme="light"] .calc__r span,
html[data-theme="light"] .res small,
html[data-theme="light"] [class*="calc"] small{ color:#4A4363!important }

/* тёмные вставки внутри светлых страниц — возвращаем светлый текст */
html[data-theme="light"] .y-dark .hero__lead,
html[data-theme="light"] .y-dark p,
html[data-theme="light"] .y-dark li,
html[data-theme="light"] .cta p,
html[data-theme="light"] .foot p,
html[data-theme="light"] .foot li a,
html[data-theme="light"] .foot li span{ color:#B7AED2!important }

/* добивка: ссылки «подробнее», навзаголовки, сноски, вторичные кнопки */
html[data-theme="light"] body .card a,
html[data-theme="light"] body .card a[href],
html[data-theme="light"] body .card .more,
html[data-theme="light"] body .card [class*="more"],
html[data-theme="light"] body .pk__c a,
html[data-theme="light"] body .case a{ color:#0B6478!important; font-weight:600 }

html[data-theme="light"] body .eyebrow,
html[data-theme="light"] body .sec__head .eyebrow,
html[data-theme="light"] body .hero .eyebrow,
html[data-theme="light"] body [class*="eyebrow"]{ color:#544C6E!important; border-color:rgba(23,17,38,.22)!important }

html[data-theme="light"] body .calc small,
html[data-theme="light"] body .calc-note,
html[data-theme="light"] body small,
html[data-theme="light"] body .note{ color:#4A4363!important }

html[data-theme="light"] body .btn--ghost,
html[data-theme="light"] body .btn-ghost,
html[data-theme="light"] body .btn--outline{ color:#2C2540!important; border-color:rgba(23,17,38,.28)!important; background-image:none!important; background-color:#FFFFFF!important }

/* финальная правка: навзаголовки, сноски калькулятора, контур вторичных кнопок */
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .sec__head .eyebrow,
html[data-theme="light"] .hero .eyebrow,
html[data-theme="light"] .sec__head p,
html[data-theme="light"] .sec__head>p{ color:#453D5C!important }
html[data-theme="light"] .sec__head .eyebrow::before,
html[data-theme="light"] .eyebrow::before{ background:#453D5C!important }
html[data-theme="light"] .calc .fine,
html[data-theme="light"] .calc-note,
html[data-theme="light"] [class*="calc"] .fine,
html[data-theme="light"] [class*="calc"] p[style*="font-size:12"],
html[data-theme="light"] p[style*="font-size:12px"]{ color:#4A4363!important }
html[data-theme="light"] .btn--ghost,
html[data-theme="light"] .btn--outline,
html[data-theme="light"] a.btn[class*="ghost"]{ border:1px solid rgba(23,17,38,.32)!important; color:#1F1A2E!important; background:#fff!important }
html[data-theme="light"] .pk__c li::before,
html[data-theme="light"] .card li::before{ background:#2C2545!important }

/* ===== Светлая тема: базовый контраст текста в светлых контейнерах ===== */
html[data-theme="light"] .card p, html[data-theme="light"] .card span, html[data-theme="light"] .card li,
html[data-theme="light"] .card small, html[data-theme="light"] .card i,
html[data-theme="light"] .pk__c p, html[data-theme="light"] .pk__c span, html[data-theme="light"] .pk__c li,
html[data-theme="light"] .pk__c small, html[data-theme="light"] .pk__c i,
html[data-theme="light"] .acard span, html[data-theme="light"] .acard i, html[data-theme="light"] .acard b,
html[data-theme="light"] .case p, html[data-theme="light"] .case span, html[data-theme="light"] .case i,
html[data-theme="light"] .tm-card p, html[data-theme="light"] .tm-card span, html[data-theme="light"] .tm-card i,
html[data-theme="light"] .calc p, html[data-theme="light"] .calc span, html[data-theme="light"] .calc small,
html[data-theme="light"] .calc label, html[data-theme="light"] .calc div,
html[data-theme="light"] .faq2 p, html[data-theme="light"] .faq2 span,
html[data-theme="light"] .tz p, html[data-theme="light"] .tz span, html[data-theme="light"] .tz li,
html[data-theme="light"] .sec__head p, html[data-theme="light"] .hero__lead,
html[data-theme="light"] .hero2__lead, html[data-theme="light"] .pain p,
html[data-theme="light"] .give p, html[data-theme="light"] .step2 p,
html[data-theme="light"] .stepline p, html[data-theme="light"] .pk__s,
html[data-theme="light"] .tm-desc, html[data-theme="light"] .leak__lg{ color:#3A3350!important }

/* заголовки внутри тех же контейнеров — обратно тёмные */
html[data-theme="light"] .card h2, html[data-theme="light"] .card h3, html[data-theme="light"] .card h4,
html[data-theme="light"] .pk__c h2, html[data-theme="light"] .pk__c h3,
html[data-theme="light"] .acard b, html[data-theme="light"] .case h3,
html[data-theme="light"] .tm-card b, html[data-theme="light"] .sec__head h2{ color:#171126!important }

/* подписи-капс, бейджи, теги */
html[data-theme="light"] .eyebrow, html[data-theme="light"] [class*="eyebrow"],
html[data-theme="light"] .chip, html[data-theme="light"] [class*="chip"],
html[data-theme="light"] [class*="tag"], html[data-theme="light"] [class*="badge"],
html[data-theme="light"] [class*="cap"], html[data-theme="light"] .rel,
html[data-theme="light"] .acard i, html[data-theme="light"] .case i{ color:#453D5C!important }

/* ссылки */
html[data-theme="light"] .card a, html[data-theme="light"] .pk__c a,
html[data-theme="light"] .acard a, html[data-theme="light"] .case a{ color:#0B6478!important }

/* тёмные секции не трогаем */
html[data-theme="light"] .y-dark p, html[data-theme="light"] .y-dark span, html[data-theme="light"] .y-dark li,
html[data-theme="light"] .cta p, html[data-theme="light"] .cta span,
html[data-theme="light"] .foot p, html[data-theme="light"] .foot a,
html[data-theme="light"] .bn p, html[data-theme="light"] .bn span{ color:#B7AED2!important }

/* ===== Кнопка «Личный кабинет» в шапке ===== */
.yc-cab{
  display:inline-flex;align-items:center;gap:7px;
  padding:10px 18px;margin-right:10px;border-radius:100px;
  border:1px solid rgba(246,243,255,.24);
  font-size:14.5px;font-weight:500;color:#F6F3FF;text-decoration:none;
  transition:border-color .18s,background .18s,color .18s;white-space:nowrap;flex:none;
}
.yc-cab:hover{border-color:#FFD23F;background:rgba(255,210,63,.10);color:#FFD23F}
.yc-cab::before{content:"";width:14px;height:14px;flex:none;background-repeat:no-repeat;background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD23F' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E")}
html[data-theme="light"] .yc-cab{color:#171126;border-color:rgba(23,17,38,.28)}
html[data-theme="light"] .yc-cab:hover{border-color:#8A6400;background:rgba(184,134,11,.10);color:#5C4300}
html[data-theme="light"] .yc-cab::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6400' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E")}
@media(max-width:1100px){ .yc-cab{display:none} }
.mnav a[href="/cabinet"]{color:#FFD23F}

/* шапка: кабинет + «Обсудить проект» не должны ломать меню на две строки */
.top__in{flex-wrap:nowrap!important;gap:14px!important}
.nav{flex-wrap:nowrap!important;white-space:nowrap}
.yc-cab{padding:9px 14px!important;margin-right:8px!important;font-size:13.8px!important;gap:6px!important}
.yc-cab::before{width:13px!important;height:13px!important}
@media(max-width:1500px){ .nav{gap:15px!important;font-size:13.8px!important} }
@media(max-width:1340px){ .nav{gap:12px!important;font-size:13.2px!important} .yc-cab{padding:9px 12px!important;font-size:13px!important} }
@media(max-width:1240px){ .nav a[href="/#contact"], .nav a[href="#contact"]{display:none} }
@media(max-width:1100px){ .yc-cab{display:none!important} }
