/* ============================================================
   СВЕТЛАЯ ТЕМА — Thesis Partners
   Тёмная тема собрана инверсией переменных поверх исходной светлой,
   но часть цветов зашита в инлайн-стилях — их перекрываем адресно.
   ============================================================ */

/* ── 1. Токены ──────────────────────────────────────────── */
html[data-theme="light"], html[data-theme="light"] #allrecords {--bg: #ffffff;--ink: #17171a;--muted: #6b665f;--line: #e4dfd5;--surface: #faf8f4;--brand: #a04a35;--brand-dark: #7d3826;--brand-text: #a04a35;--brand-weak: #faf8f4;--accent: #c2542c;--accent-weak: #fdf3ee;--brand-glow: rgba(160,74,53,.12);/* чуть темнее фирменного — для контраста на белом */
  --brand-light: #b05a44;}

/* ── 2. Основа ──────────────────────────────────────────── */
html[data-theme="light"], html[data-theme="light"] body, html[data-theme="light"] body.t-body {background: #ffffff !important;color: var(--ink) !important;}
html[data-theme="light"] #allrecords {background: #ffffff;}

/* ── 3. Шапка и подвал ──────────────────────────────────── */
html[data-theme="light"] .hdr{background: rgba(255,255,255,.94) !important;border-bottom: 1px solid var(--line) !important;}
html[data-theme="light"] .hdr .menu a:not(.btn), html[data-theme="light"] .brand, html[data-theme="light"] .brand__name, html[data-theme="light"] #mwrap a {color: var(--ink) !important;}
html[data-theme="light"] #mwrap {background: #ffffff !important;border-top: 1px solid var(--line) !important;}
html[data-theme="light"] #mwrap a {border-bottom: 1px solid var(--line) !important;}
html[data-theme="light"] .burger {background: #ffffff !important;border-color: var(--line) !important;}
html[data-theme="light"] .burger i, html[data-theme="light"] .burger i::before, html[data-theme="light"] .burger i::after{background: var(--ink) !important;}
html[data-theme="light"] .foot, html[data-theme="light"] .footer{background: #ffffff !important;border-top: 1px solid var(--line) !important;}
html[data-theme="light"] .foot a, html[data-theme="light"] .footer a, html[data-theme="light"] .foot__row, html[data-theme="light"] .mini{color: var(--muted) !important;}
html[data-theme="light"] .foot a:hover, html[data-theme="light"] .footer a:hover{color: var(--brand) !important;}

/* логотип в шапке: тёмный знак вместо светлого */
html[data-theme="light"] .brand__mark[src*="mark-on-dark"], html[data-theme="light"] .foot__mark[src*="mark-on-dark"]{content: url('/assets/img/mark-on-light.svg');}

/* ── 4. Секции и карточки ───────────────────────────────── */
html[data-theme="light"] .sec{background: #ffffff;}
html[data-theme="light"] .sec.gray {background: var(--surface) !important;}
html[data-theme="light"] .card, html[data-theme="light"] .faq-item, html[data-theme="light"] .ins-card, html[data-theme="light"] .cw-tile, html[data-theme="light"] .da-page .da-related, html[data-theme="light"] .da-page .da-cta {background: #ffffff !important;border: 1px solid var(--line) !important;color: var(--ink) !important;}
html[data-theme="light"] .card h3, html[data-theme="light"] .card p, html[data-theme="light"] .ins-card__title, html[data-theme="light"] .ins-card__desc{color: var(--ink) !important;}
html[data-theme="light"] .card p, html[data-theme="light"] .ins-card__desc, html[data-theme="light"] .sec__subtitle{color: var(--muted) !important;}
html[data-theme="light"] .hero {background: #ffffff !important;}
html[data-theme="light"] .hero .lead, html[data-theme="light"] .hero__sub{color: var(--muted) !important;}
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3, html[data-theme="light"] h4, html[data-theme="light"] .h1, html[data-theme="light"] .card__h, html[data-theme="light"] .feat__title{color: var(--ink) !important;}

/* ── 5. Кнопки ──────────────────────────────────────────── */
html[data-theme="light"] .btn, html[data-theme="light"] #allrecords .btn{background: var(--brand) !important;color: #ffffff !important;}
html[data-theme="light"] .btn--outline, html[data-theme="light"] #allrecords .btn--outline{background: transparent !important;color: var(--brand) !important;border: 1px solid var(--brand) !important;}

/* ── 6. Формы ───────────────────────────────────────────── */
html[data-theme="light"] .lead-form input, html[data-theme="light"] .lead-form textarea, html[data-theme="light"] .lead-form select {background: #ffffff !important;color: var(--ink) !important;border: 1px solid var(--line) !important;}
html[data-theme="light"] .lead-form input::placeholder, html[data-theme="light"] .lead-form textarea::placeholder{color: #9a948b !important;}
html[data-theme="light"] .lf-status{color: var(--muted) !important;}
html[data-theme="light"] #cbModal > div, html[data-theme="light"] .modal, html[data-theme="light"] .cb-modal {background: #ffffff !important;color: var(--ink) !important;}

/* ── 7. Инлайновые цвета из разметки ────────────────────── */
html[data-theme="light"] [style*="background:#141416"], html[data-theme="light"] [style*="background: #141416"],
html[data-theme="light"] [style*="background-color:#141416"], html[data-theme="light"] [style*="background:#0b0b0c"],
html[data-theme="light"] [style*="background:#1a1a1a"], html[data-theme="light"] [style*="background:#0e0e10"] {background: #ffffff !important;}
html[data-theme="light"] [style*="background:rgba(239, html[data-theme="light"] 236, html[data-theme="light"] 228, html[data-theme="light"] .12)"], html[data-theme="light"] [style*="background:rgba(239, html[data-theme="light"] 236, html[data-theme="light"] 228, html[data-theme="light"] .06)"] {background: var(--surface) !important;}
html[data-theme="light"] [style*="color:#efece4"], html[data-theme="light"] [style*="color: #efece4"]{color: var(--ink) !important;}
html[data-theme="light"] [style*="color:#9a958a"], html[data-theme="light"] [style*="color:#8b8983"], html[data-theme="light"] [style*="color:#64748b"]{color: var(--muted) !important;}
html[data-theme="light"] [style*="color:#b05a44"], html[data-theme="light"] [style*="color:var(--brand"]{color: var(--brand) !important;}
html[data-theme="light"] [style*="border:1px solid #e2e8f0"], html[data-theme="light"] [style*="border:1px solid rgba(239,236,228,.16)"],
html[data-theme="light"] [style*="1px solid var(--line,#2a2a2c)"], html[data-theme="light"] [style*="solid #2a2a2c"]{border-color: var(--line) !important;}
html[data-theme="light"] [style*="background:#b05a4418"]{background: #f7ece7 !important;}

/* ── 8. Мелочи ──────────────────────────────────────────── */
html[data-theme="light"] .eyebrow, html[data-theme="light"] .feat__type{color: var(--brand) !important;}
html[data-theme="light"] .faq-q {color: var(--ink) !important;}
html[data-theme="light"] .faq-a {color: var(--muted) !important;}
html[data-theme="light"] .float-cta {background: rgba(255,255,255,.96) !important;border-top: 1px solid var(--line) !important;}
html[data-theme="light"] hr, html[data-theme="light"] .divider{border-color: var(--line) !important;}
html[data-theme="light"] ::selection{background: var(--brand-glow);}

/* ── 9. Блоки, красившиеся отдельно ─────────────────────── */
html[data-theme="light"] body .step, html[data-theme="light"] body .testimonial, html[data-theme="light"] body .pcard, html[data-theme="light"] body .pcard__photo,
html[data-theme="light"] body .stat, html[data-theme="light"] body .quote, html[data-theme="light"] body .tcard, html[data-theme="light"] body .icard,
html[data-theme="light"] body [class*="card"]:not(.ins-card__tag) {background: #ffffff !important;border-color: var(--line) !important;}
html[data-theme="light"] body .sec.gray [class*="card"], html[data-theme="light"] body .sec.gray .step {background: #ffffff !important;}
html[data-theme="light"] body .pcard__photo {background: var(--surface) !important;}
html[data-theme="light"] body .step__num {background: var(--brand) !important;color: #fff !important;}

/* ── 10. Текст: перебиваем правила из тела страницы ─────── */
html[data-theme="light"] body h1, html[data-theme="light"] body h2, html[data-theme="light"] body h3, html[data-theme="light"] body h4, html[data-theme="light"] body h5,
html[data-theme="light"] body .hero-title, html[data-theme="light"] body .sec-title, html[data-theme="light"] body .display, html[data-theme="light"] body .lede,
html[data-theme="light"] body .t-title, html[data-theme="light"] body .t-heading, html[data-theme="light"] body .t-name, html[data-theme="light"] body .brand-name,
html[data-theme="light"] body .card__h, html[data-theme="light"] body .feat__title, html[data-theme="light"] body .step h3, html[data-theme="light"] body .pcard h3 {color: var(--ink) !important;}
html[data-theme="light"] body p, html[data-theme="light"] body li, html[data-theme="light"] body td, html[data-theme="light"] body .card p, html[data-theme="light"] body .step p,
html[data-theme="light"] body .testimonial p, html[data-theme="light"] body .pcard p, html[data-theme="light"] body .lead, html[data-theme="light"] body .sec__subtitle {color: var(--muted) !important;}
html[data-theme="light"] body .hero .lead, html[data-theme="light"] body .hero__sub {color: #4b4740 !important;}
html[data-theme="light"] body a:not(.btn):not(.card):not([class*="tag"]) {color: var(--brand);}
html[data-theme="light"] body .btn, html[data-theme="light"] body #allrecords .btn {color: #ffffff !important;}
html[data-theme="light"] body .btn--outline {color: var(--brand) !important;}
html[data-theme="light"] body .eyebrow, html[data-theme="light"] body .feat__type, html[data-theme="light"] body .ins-card__tag {color: var(--brand) !important;}
html[data-theme="light"] body .mini, html[data-theme="light"] body .foot__row, html[data-theme="light"] body .footer__credit {color: var(--muted) !important;}

/* стена логотипов на светлом */
html[data-theme="light"] body .cw-tile{background: #ffffff !important;border: 1px solid var(--line) !important;}
html[data-theme="light"] body .cw-tile img {filter: none !important;opacity: .85;}

/* ── 11. Усиление: перебиваем более специфичные селекторы страницы ── */
html[data-theme="light"] body a.card, html[data-theme="light"] body a.ins-card, html[data-theme="light"] body div.card, html[data-theme="light"] body div.faq-item,
html[data-theme="light"] body #allrecords .card, html[data-theme="light"] body #allrecords .ins-card, html[data-theme="light"] body #allrecords .faq-item,
html[data-theme="light"] body #allrecords .step, html[data-theme="light"] body #allrecords .testimonial, html[data-theme="light"] body #allrecords .pcard,
html[data-theme="light"] body #allrecords .cw-tile, html[data-theme="light"] body #allrecords .feat {background: #ffffff !important;border: 1px solid var(--line) !important;}
html[data-theme="light"] body #allrecords .sec.gray {background: var(--surface) !important;}
html[data-theme="light"] body #allrecords .hdr {background: rgba(255,255,255,.94) !important;}
html[data-theme="light"] body #allrecords .foot, html[data-theme="light"] body #allrecords .footer {background: #ffffff !important;}
html[data-theme="light"] body a.card h3, html[data-theme="light"] body a.card p, html[data-theme="light"] body #allrecords .card h3,
html[data-theme="light"] body #allrecords .card p, html[data-theme="light"] body #allrecords .step h3, html[data-theme="light"] body #allrecords .step p,
html[data-theme="light"] body #allrecords .pcard h3, html[data-theme="light"] body #allrecords .pcard p,
html[data-theme="light"] body #allrecords .testimonial p, html[data-theme="light"] body #allrecords .feat__title,
html[data-theme="light"] body #allrecords .feat__ex, html[data-theme="light"] body #allrecords .ins-card__title,
html[data-theme="light"] body #allrecords .ins-card__desc {color: var(--ink) !important;}
html[data-theme="light"] body #allrecords .card p, html[data-theme="light"] body #allrecords .step p, html[data-theme="light"] body #allrecords .pcard p,
html[data-theme="light"] body #allrecords .ins-card__desc, html[data-theme="light"] body #allrecords .feat__ex {color: var(--muted) !important;}
html[data-theme="light"] body #allrecords .card__t, html[data-theme="light"] body #allrecords .card__p {color: var(--muted) !important;}
html[data-theme="light"] body #allrecords .card__h {color: var(--ink) !important;}
html[data-theme="light"] body #allrecords .btn {color: #ffffff !important;}
html[data-theme="light"] body #allrecords .btn--outline {color: var(--brand) !important;}

/* ── 12. Градиентные шторки ленты — под светлый фон ─────── */
html[data-theme="light"] body .ins-viewport::before{background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0) 100%) !important;}
html[data-theme="light"] body .ins-viewport::after  {background: linear-gradient(270deg, #ffffff 0%, rgba(255,255,255,0) 100%) !important;}
html[data-theme="light"] body [style*="linear-gradient"][style*="#0b0b0c"],
html[data-theme="light"] body [style*="linear-gradient"][style*="#141416"] {background-image: none !important;}

/* ── 13. Тёмные градиенты и «фирменные» блоки ───────────── */
html[data-theme="light"] body .disclaimer-box, html[data-theme="light"] body #allrecords .disclaimer-box {background: var(--surface) !important;background-image: none !important;border: 1px solid var(--brand) !important;}
html[data-theme="light"] body .disclaimer-box h3 {color: var(--brand) !important;}
html[data-theme="light"] body .disclaimer-box p, html[data-theme="light"] body .disclaimer-box .mini {color: var(--ink) !important;}
html[data-theme="light"] body [style*="linear-gradient(155deg"] {background-image: none !important;background: var(--surface) !important;}

/* отзывы */
html[data-theme="light"] body .testimonial, html[data-theme="light"] body #allrecords .testimonial {background: #ffffff !important;border: 1px solid var(--line) !important;}
html[data-theme="light"] body .testimonial__text, html[data-theme="light"] body #allrecords .testimonial__text {color: var(--ink) !important;}
html[data-theme="light"] body .testimonial__name, html[data-theme="light"] body .testimonial__role {color: var(--ink) !important;}
html[data-theme="light"] body .testimonial__role, html[data-theme="light"] body .testimonial__meta {color: var(--muted) !important;}
html[data-theme="light"] body .testimonial__stars {color: var(--accent) !important;}

/* этапы 1–4 */
html[data-theme="light"] body .step strong, html[data-theme="light"] body #allrecords .step strong {color: var(--ink) !important;}
html[data-theme="light"] body .step .mini, html[data-theme="light"] body #allrecords .step .mini {color: var(--muted) !important;}



/* ── 15. Контраст текста: делаем плотнее ────────────────── */
html[data-theme="light"], html[data-theme="light"] #allrecords {--muted: #56514a;}
html[data-theme="light"] body p, html[data-theme="light"] body li, html[data-theme="light"] body td, html[data-theme="light"] body .mini,
html[data-theme="light"] body .card p, html[data-theme="light"] body .sec__subtitle, html[data-theme="light"] body .lead {color: #4a453e !important;}
html[data-theme="light"] body .hero .lead, html[data-theme="light"] body .hero__sub {color: #3d3831 !important;}
html[data-theme="light"] body .faq-a, html[data-theme="light"] body .da-page p, html[data-theme="light"] body .da-meta {color: #3d3831 !important;}
html[data-theme="light"] body .foot, html[data-theme="light"] body .footer, html[data-theme="light"] body .mini a {color: #56514a !important;}

/* прозрачность логотипов — на светлом фоне блёклость лишняя */
html[data-theme="light"] body #allrecords .cw-tile img, html[data-theme="light"] body .clients-wall .cw-tile img {opacity: 1 !important;}



/* ═══════════════════════════════════════════════════════════
   ПРАВКИ ПО РЕВИЗИИ
   ═══════════════════════════════════════════════════════════ */

/* ── Формы: рамки и плейсхолдеры были почти невидимы ────── */
html[data-theme="light"] body .lead-form input, html[data-theme="light"] body .lead-form textarea, html[data-theme="light"] body .lead-form select,
html[data-theme="light"] body .cb-modal__box input, html[data-theme="light"] body .cb-modal__box textarea {border: 1px solid #9a9285 !important;}
html[data-theme="light"] body .lead-form input::placeholder, html[data-theme="light"] body .lead-form textarea::placeholder,
html[data-theme="light"] body .cb-modal__box input::placeholder {color: #6f6a62 !important;}
html[data-theme="light"] body .lead-form input:focus, html[data-theme="light"] body .lead-form textarea:focus {border-color: var(--brand) !important;}

/* ── Шапка: кнопка меню на мобильном была чёрным квадратом ─ */
html[data-theme="light"] body #allrecords .hdr .burger, html[data-theme="light"] body .hdr .burger {background: #ffffff !important;border: 1px solid var(--line) !important;}
html[data-theme="light"] body #allrecords .hdr .burger i, html[data-theme="light"] body #allrecords .hdr .burger i::before,
html[data-theme="light"] body #allrecords .hdr .burger i::after {background: var(--ink) !important;}

/* ── Плашка cookie ──────────────────────────────────────── */
html[data-theme="light"] body .cookie-banner, html[data-theme="light"] body #cookieBanner {background: var(--surface) !important;color: var(--ink) !important;border-top: 1px solid var(--line) !important;}
html[data-theme="light"] body .cookie-banner a, html[data-theme="light"] body #cookieBanner a {color: var(--brand) !important;}

/* ── Логотип: вторая часть слова была бледной ───────────── */
html[data-theme="light"] body span.b2, html[data-theme="light"] body .brand .b2 {color: #a04a35 !important;}
html[data-theme="light"] body a.skip-link {background: var(--brand) !important;color: #ffffff !important;}

/* ── Тёмные полосы-призывы (в списке статей и др.) ──────── */
html[data-theme="light"] body section.cta, html[data-theme="light"] body #cta-sec, html[data-theme="light"] body .cta,
html[data-theme="light"] body [class*="cta"][style*="linear-gradient"] {background: var(--surface) !important;background-image: none !important;border: 1px solid var(--line) !important;}
html[data-theme="light"] body .cta__h, html[data-theme="light"] body .cta h2, html[data-theme="light"] body .cta h3 {color: var(--ink) !important;}
html[data-theme="light"] body .cta__p, html[data-theme="light"] body .cta p {color: #4a453e !important;}

/* ── Выделенная публикация: панель фирменного цвета ─────── */
html[data-theme="light"] body .feat, html[data-theme="light"] body .feat__l {background: var(--brand) !important;}
html[data-theme="light"] body .feat__type, html[data-theme="light"] body .feat__title, html[data-theme="light"] body .feat__ex {color: #ffffff !important;opacity: 1 !important;}
html[data-theme="light"] body .feat__link {color: #ffffff !important;text-decoration: underline;}
html[data-theme="light"] body .feat__r, html[data-theme="light"] body .feat .kpi {color: #ffffff !important;}
html[data-theme="light"] body .feat .kpi b {color: #ffffff !important;}

/* ── Плашки «НОВОЕ» / «NEW» и даты ──────────────────────── */
html[data-theme="light"] body .ins-card__tag[style*="background:#e8734a"], html[data-theme="light"] body span[style*="background:#e8734a"],
html[data-theme="light"] body .card__t span[style*="background:#e8734a"] {background: #a8431f !important;color: #ffffff !important;}
html[data-theme="light"] body .ins-card__tag[style*="color:#fff"] {color: #ffffff !important;}

/* ── Лендинг стратсессии: наследие тёмной темы ──────────── */
html[data-theme="light"] body .use-card p, html[data-theme="light"] body .case-card p,
html[data-theme="light"] body [class*="card"] p[style*="rgba(239,236,228"] {color: #4a453e !important;}
html[data-theme="light"] body .case-card__tag {background: #f3e6e1 !important;color: #8a3d28 !important;border: 1px solid #e6d3cb !important;}
html[data-theme="light"] body .case-card__more, html[data-theme="light"] body .case-card .arr, html[data-theme="light"] body .case-card__metric,
html[data-theme="light"] body .use-card .arr {color: #8a3d28 !important;}
html[data-theme="light"] body .use-ico, html[data-theme="light"] body .use-ico * {stroke: #8a3d28 !important;}
html[data-theme="light"] body .footer a[href="/servisy"], html[data-theme="light"] body .foot a[href="/servisy"],
html[data-theme="light"] body .footer a.mini, html[data-theme="light"] body .foot a.mini {color: #8a3d28 !important;}
html[data-theme="light"] body .strat-photos {background: var(--surface) !important;}

/* ── Иллюстрация первого экрана нарисована кремовым ─────── */
html[data-theme="light"] body #ps-svg [stroke], html[data-theme="light"] body #ps-svg circle, html[data-theme="light"] body #ps-svg line,
html[data-theme="light"] body #ps-svg path, html[data-theme="light"] body #ps-svg polyline {stroke: #b9b2a6 !important;}
html[data-theme="light"] body #ps-svg [fill]:not([fill="none"]) {fill: #cfc8bb !important;}
html[data-theme="light"] body #ps-svg text {fill: #6b665f !important;}
html[data-theme="light"] body #ps-svg [stroke*="b05a44"], html[data-theme="light"] body #ps-svg [fill*="b05a44"],
html[data-theme="light"] body #ps-svg .accent, html[data-theme="light"] body #ps-svg [stroke*="e8734a"] {stroke: var(--brand) !important;fill: var(--brand) !important;}

/* ── Статьи и страницы людей: кнопки и ссылки ───────────── */
html[data-theme="light"] body .da-cta a{background: var(--brand) !important;color: #ffffff !important;}
html[data-theme="light"] body .da-back, html[data-theme="light"] body .da-page a[href*="reportbase"] {color: #8a3d28 !important;}
html[data-theme="light"] body .da-page a {color: #8a3d28;}

/* ── Мелочи ─────────────────────────────────────────────── */
html[data-theme="light"] body .foot__links span, html[data-theme="light"] body .footer span, html[data-theme="light"] body .mini span {color: #5f5a52 !important;}
html[data-theme="light"] body .testimonial__quote {color: #ddd6ca !important;}
html[data-theme="light"] body .brand__mark, html[data-theme="light"] body .foot__mark {filter: none !important;}

/* приоритет выше собственного правила для карточек */
html[data-theme="light"] body #allrecords .feat__ex, html[data-theme="light"] body #allrecords .feat__type,
html[data-theme="light"] body #allrecords .feat__title, html[data-theme="light"] body #allrecords .feat__link,
html[data-theme="light"] body #allrecords .feat .kpi, html[data-theme="light"] body #allrecords .feat .kpi b,
html[data-theme="light"] body #allrecords .feat .kpi span {color: #ffffff !important;}

/* иллюстрация первого экрана: перекраска под светлый фон */
html[data-theme="light"] body #ps-svg circle, html[data-theme="light"] body #ps-svg ellipse {fill: rgba(160,74,53,.14) !important;stroke: #a04a35 !important;}
html[data-theme="light"] body #ps-svg #ambient {fill: rgba(160,74,53,.05) !important;stroke: none !important;}
html[data-theme="light"] body #ps-svg #orbit, html[data-theme="light"] body #ps-svg #pulse {fill: none !important;stroke: #c9c2b6 !important;}
html[data-theme="light"] body #ps-svg line, html[data-theme="light"] body #ps-svg polyline, html[data-theme="light"] body #ps-svg path {stroke: #c9c2b6 !important;fill: none !important;}
html[data-theme="light"] body #ps-svg text, html[data-theme="light"] body #ps-svg tspan {fill: #6b665f !important;}

/* добиваем последние места ниже нормы контраста */
html[data-theme="light"] body #allrecords span.b2, html[data-theme="light"] body .brand__name .b2, html[data-theme="light"] body .brand__name span.b2 {color: #a04a35 !important;}
html[data-theme="light"] body table th, html[data-theme="light"] body .da-page table th, html[data-theme="light"] body #allrecords table th {color: #8a3d28 !important;}
html[data-theme="light"] body table td {color: #3d3831 !important;}

/* ── Исправления по финальной проверке ─────────────────── */
/* панель выделенной публикации: правило «карточки белые» перебивало фирменный фон */
html[data-theme="light"] body #allrecords .feat, html[data-theme="light"] body #allrecords .feat__l, html[data-theme="light"] body #allrecords .feat__r,
html[data-theme="light"] body .feat, html[data-theme="light"] body .feat__l, html[data-theme="light"] body .feat__r {background: var(--brand) !important;border: none !important;}
html[data-theme="light"] body #allrecords .feat *, html[data-theme="light"] body .feat * {color: #ffffff !important;}
html[data-theme="light"] body #allrecords .feat .kpi, html[data-theme="light"] body #allrecords .feat .kpi b,
html[data-theme="light"] body #allrecords .feat .kpi span {color: #ffffff !important;opacity: 1 !important;}

/* «Partners» в шапке: на странице сервисов своё правило перебивало тему */
html[data-theme="light"] body header a.brand .b2, html[data-theme="light"] body .hdr a.brand .b2,
html[data-theme="light"] body #allrecords header a.brand .b2, html[data-theme="light"] body #allrecords .hdr a.brand .b2,
html[data-theme="light"] body #allrecords a.brand span.b2 {color: #a04a35 !important;}

/* копирайт и служебные строки подвала не дотягивали до нормы */
html[data-theme="light"] body .foot__row, html[data-theme="light"] body .foot__row span, html[data-theme="light"] body .footer .mini,
html[data-theme="light"] body .foot .mini, html[data-theme="light"] body .foot__row .mini {color: #5f5a52 !important;}
html[data-theme="light"] body .foot__links span, html[data-theme="light"] body .footer span:not(.b2) {color: #5f5a52 !important;}

/* рамки полей — с запасом над порогом */
html[data-theme="light"] body .lead-form input, html[data-theme="light"] body .lead-form textarea, html[data-theme="light"] body .lead-form select,
html[data-theme="light"] body .cb-modal__box input, html[data-theme="light"] body .cb-modal__box textarea {border-color: #5f5a52 !important;}

/* декоративная кавычка в отзывах */
html[data-theme="light"] body .testimonial__quote{color: #cfc7b8 !important;}

/* стена логотипов — без рамок */
html[data-theme="light"] body .cw-tile, html[data-theme="light"] body #allrecords .cw-tile, html[data-theme="light"] body .clients-wall .cw-tile {border: none !important;background: transparent !important;box-shadow: none !important;}



/* размер карточек ленты задан в самой вёрстке (обе темы) */


/* услуги: одинокая карточка в ряду — правило ниже, внутри @media (min-width:960px) */

/* отзывы: подписи авторов — по одной линии внизу карточек */
/* подписи авторов: одинаковая высота блока, чтобы начинались на одной линии */
/* симметрия рядов — для всех сеток g-3, не только внутри .sec */
/* симметрия рядов вынесена в общую вёрстку (обе темы) */


/* размер карточек ленты задан в самой вёрстке (обе темы) */
/* меньше пустоты под лентой */
/* ── Единый вертикальный ритм: зазор между блоками ~64px ── */
/* первый блок после первого экрана — чуть свободнее */
/* подвал не поджимаем */
/* блок «Основатели» шёл со старым отступом — в общий ритм */
/* ── Логотипы клиентов: монохром, как в тёмной теме (там белые) ── */
html[data-theme="light"] body .cw-tile img, html[data-theme="light"] body #allrecords .cw-tile img, html[data-theme="light"] body .clients-wall img {filter: brightness(0) !important;opacity: .72 !important;content: normal !important;}
html[data-theme="light"] body .cw-tile:hover img, html[data-theme="light"] body #allrecords .cw-tile:hover img {opacity: 1 !important;}

/* блоки не должны сливаться: чередуем фон и добавляем тонкую границу */
html[data-theme="light"] body #allrecords section.sec:nth-of-type(even),
html[data-theme="light"] body section.sec:nth-of-type(even) {background: #faf8f4 !important;}
html[data-theme="light"] body #allrecords section.sec:nth-of-type(odd),
html[data-theme="light"] body section.sec:nth-of-type(odd) {background: #ffffff !important;}
html[data-theme="light"] body section.sec + section.sec {border-top: 1px solid rgba(23,23,26,.06) !important;}
/* кнопка переключения темы */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin-left:8px;order:1;flex:0 0 auto;border:1px solid var(--line,#2a2a2c);background:transparent;color:var(--ink,#efece4);border-radius:10px;cursor:pointer;transition:background .18s,border-color .18s;}
.theme-toggle:hover{border-color:var(--brand,#b05a44);color:var(--brand,#b05a44);}
.theme-toggle:focus-visible{outline:2px solid var(--brand,#b05a44);outline-offset:2px;}
html[data-theme="light"] .theme-toggle{border-color:#d9d3c7;color:#17171a;}
html[data-theme="light"] .theme-toggle:hover{border-color:#a04a35;color:#a04a35;}

/* ═══════════════════════════════════════════════════════════
   ПРАВКИ ПО РЕВИЗИИ 19.08.2026 (мобильный + светлая тема)
   ═══════════════════════════════════════════════════════════ */

/* ── Тёмные плашки внутри статей: «Короткие ответы», врезки,
      «Читайте также», призывы, цитаты, метрики кейсов ────── */
html[data-theme="light"] body .tz-faq,
html[data-theme="light"] body .tz-callout,
html[data-theme="light"] body .da-cta,
html[data-theme="light"] body .da-related,
html[data-theme="light"] body .case-cta,
html[data-theme="light"] body .af__mx {background: #faf8f4 !important;background-image: none !important;border: 1px solid #e4dfd5 !important;}
html[data-theme="light"] body .tz-callout {border-left: 3px solid #a04a35 !important;}
html[data-theme="light"] body .tz-faq h2, html[data-theme="light"] body .tz-callout h2,
html[data-theme="light"] body .da-cta h2, html[data-theme="light"] body .da-cta h3,
html[data-theme="light"] body .da-related h2, html[data-theme="light"] body .da-related h3,
html[data-theme="light"] body .case-cta h2, html[data-theme="light"] body .case-cta h3,
html[data-theme="light"] body .case-cta p {color: #17171a !important;}
html[data-theme="light"] body .tz-faq p, html[data-theme="light"] body .tz-faq li,
html[data-theme="light"] body .tz-callout p, html[data-theme="light"] body .tz-callout li,
html[data-theme="light"] body .da-cta p, html[data-theme="light"] body .da-related p {color: #3d3831 !important;}
html[data-theme="light"] body .da-related a {color: #8a3d28 !important;}
html[data-theme="light"] body .da-cta a, html[data-theme="light"] body .case-cta a {background: #a04a35 !important;color: #ffffff !important;}
html[data-theme="light"] body .ac blockquote, html[data-theme="light"] body blockquote {background: #faf8f4 !important;color: #3d3831 !important;border-left-color: #a04a35 !important;}
html[data-theme="light"] body .af__mx .af__mv {color: #8a3d28 !important;}
html[data-theme="light"] body .af__mx .af__ml {color: #3d3831 !important;}

/* ── Поля ввода PDF-инструментов были чёрными коробками ─── */
html[data-theme="light"] body select,
html[data-theme="light"] body textarea,
html[data-theme="light"] body input[type="text"],
html[data-theme="light"] body input[type="number"],
html[data-theme="light"] body input[type="password"],
html[data-theme="light"] body input[type="email"],
html[data-theme="light"] body input[type="tel"],
html[data-theme="light"] body input[type="search"],
html[data-theme="light"] body option,
html[data-theme="light"] body .t-input {background: #ffffff !important;color: #17171a !important;border-color: #8a8377 !important;}
html[data-theme="light"] body ::placeholder {color: #6f6a62 !important;}

/* ── Транскрибация: плитки режима, поле файла, статусы ──── */
html[data-theme="light"] body .mode-opt,
html[data-theme="light"] body .mode-opt.active,
html[data-theme="light"] body input[type="file"],
html[data-theme="light"] body .result-text,
html[data-theme="light"] body .status.ok,
html[data-theme="light"] body .status.err,
html[data-theme="light"] body .status.progress,
html[data-theme="light"] body button.mini {background: #ffffff !important;color: #17171a !important;border-color: #e4dfd5 !important;}
html[data-theme="light"] body .mode-opt.active {background: #fdf3ee !important;border-color: #a04a35 !important;}
html[data-theme="light"] body .mode-opt .t {color: #17171a !important;}
html[data-theme="light"] body .mode-opt .d,
html[data-theme="light"] body .hint,
html[data-theme="light"] body .file-list {color: #56514a !important;}
html[data-theme="light"] body button.mini:hover:not(:disabled) {background: #faf8f4 !important;}
html[data-theme="light"] body progress::-webkit-progress-bar {background: #faf8f4 !important;}
html[data-theme="light"] body div.mini.footer__credit {background: transparent !important;border: 0 !important;color: #56514a !important;}
html[data-theme="light"] body div.mini.footer__credit a {color: #8a3d28 !important;}

/* ── Первый экран с тёмной подложкой (страница /thesis) ─── */
html[data-theme="light"] body .hero,
html[data-theme="light"] body #allrecords .hero {color: var(--ink) !important;}
html[data-theme="light"] body .hero .hero-title,
html[data-theme="light"] body .hero .hero-title .ital,
html[data-theme="light"] body .hero .hero-title .em,
html[data-theme="light"] body .hero .hero-meta .lede {color: #efece4 !important;}
html[data-theme="light"] body .hero .hero-title .faint {color: #d6d1c2 !important;}
html[data-theme="light"] body .hero .hero-meta .col-num,
html[data-theme="light"] body .hero .hero-top .stamp {color: rgba(239,236,228,.72) !important;}
html[data-theme="light"] body .hero .hero-meta .col-num .n {color: #efece4 !important;}

/* тёмные полосы .light на /thesis — текст остаётся кремовым */
html[data-theme="light"] body section.light .section-head h2,
html[data-theme="light"] body section.light .practice-row .pname,
html[data-theme="light"] body section.light .partner .pmeta .name,
html[data-theme="light"] body section.light .metric .v,
html[data-theme="light"] body section.light .thesis-side strong {color: #efece4 !important;}
html[data-theme="light"] body section.light .section-head .ix {color: rgba(239,236,228,.58) !important;}

/* шапка nav.top тёмная и в светлой теме */
html[data-theme="light"] body nav.top .brand,
html[data-theme="light"] body nav.top .brand__name,
html[data-theme="light"] body nav.top .nav-links a {color: #efece4 !important;}
html[data-theme="light"] body nav.top .nav-cta .loc {color: rgba(239,236,228,.62) !important;}

/* ── Лендинг стратсессии перебивал токен --muted через !important ── */
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] #allrecords {--muted: #56514a !important;}

/* 404: цвет кнопки задан в самой странице, тема его не трогает */

/* ── Политика конфиденциальности: тёмные плашки ─────────── */
html[data-theme="light"] body .da-privacy {color: var(--ink) !important;}
html[data-theme="light"] body .da-privacy .da-privacy-dates,
html[data-theme="light"] body .da-privacy .da-privacy-operator {background: #faf8f4 !important;border: 1px solid #e4dfd5 !important;}
html[data-theme="light"] body .da-privacy .da-privacy-dates,
html[data-theme="light"] body .da-privacy .da-privacy-dates span,
html[data-theme="light"] body .da-privacy .da-privacy-operator p {color: #3d3831 !important;}
html[data-theme="light"] body .da-privacy .da-privacy-dates strong,
html[data-theme="light"] body .da-privacy .da-privacy-operator strong {color: #17171a !important;}
html[data-theme="light"] body .da-privacy .da-privacy-operator a {color: #8a3d28 !important;}

/* ── База знаний: форма входа ───────────────────────────── */
html[data-theme="light"] body .login-box {background: #ffffff !important;border: 1px solid #e4dfd5 !important;box-shadow: 0 12px 32px rgba(23,23,26,.10) !important;}
html[data-theme="light"] body .login-box p {color: #56514a !important;}
html[data-theme="light"] body .login-box input {background: #ffffff !important;color: #17171a !important;border-color: #8a8377 !important;}
html[data-theme="light"] body .login-box button {background: #a04a35 !important;color: #ffffff !important;}

/* ── Таблицы статей: сетка была кремовой на белом ───────── */
html[data-theme="light"] body .tzt th,
html[data-theme="light"] body .tzt td,
html[data-theme="light"] body .tzt-wrap,
html[data-theme="light"] body .ac table,
html[data-theme="light"] body .ac table th,
html[data-theme="light"] body .ac table td {border-color: rgba(23,23,26,.16) !important;}
html[data-theme="light"] body .tzt th {background: #f6f3ee !important;}

/* ── Ссылки внутри тильдовской обёртки перебивались #ff8562 ── */
html[data-theme="light"] body #allrecords a:not(.btn):not(.card):not([class*="tag"]):not(.da-cta-button):not(.da-cta a):not(.case-cta a):not(.feat__link):not(.feat a):not(.back):not(.tool-card):not(.da-privacy-contact-block a):not([hreflang]) {color: var(--brand) !important;}
html[data-theme="light"] body .da-breadcrumb a,
html[data-theme="light"] body #allrecords .da-breadcrumb a,
html[data-theme="light"] body #allrecords .da-container a:not(.btn):not(.da-cta-button),
html[data-theme="light"] body #allrecords .da-privacy-back,
html[data-theme="light"] body #allrecords .doc__back {color: #8a3d28 !important;}
html[data-theme="light"] body #allrecords .da-privacy a {border-bottom-color: rgba(160,74,53,.35) !important;}
html[data-theme="light"] body a.da-cta-button,
html[data-theme="light"] body #allrecords a.da-cta-button {background: #a04a35 !important;color: #ffffff !important;}
html[data-theme="light"] body a.da-cta-button:hover,
html[data-theme="light"] body #allrecords a.da-cta-button:hover {background: #7d3826 !important;color: #ffffff !important;}

/* ── Активный язык в шапке был не виден на белом ────────── */
html[data-theme="light"] body .lsw a[style*="rgba(239,236,228,.12)"],
html[data-theme="light"] body #mwrap .lsw a[style*="rgba(239,236,228,.12)"],
html[data-theme="light"] body #allrecords .lsw a[style*="rgba(239,236,228,.12)"] {background: #e4ddd0 !important;color: #17171a !important;}

/* кнопки внутри призывов — белый текст поверх фирменного фона */
html[data-theme="light"] body .da-cta a,
html[data-theme="light"] body #allrecords .da-cta a,
html[data-theme="light"] body .case-cta a,
html[data-theme="light"] body #allrecords .case-cta a {color: #ffffff !important;}

/* политика: контактный блок на фирменном фоне — текст белый */
html[data-theme="light"] body .da-privacy .da-privacy-contact-block,
html[data-theme="light"] body #allrecords .da-privacy-contact-block {color: #ffffff !important;}
html[data-theme="light"] body .da-privacy-contact-block p,
html[data-theme="light"] body .da-privacy-contact-block strong,
html[data-theme="light"] body #allrecords .da-privacy-contact-block p,
html[data-theme="light"] body #allrecords .da-privacy-contact-block strong {color: #ffffff !important;}
html[data-theme="light"] body .da-privacy-contact-block a,
html[data-theme="light"] body #allrecords .da-privacy-contact-block a {color: #ffffff !important;border-bottom-color: rgba(255,255,255,.5) !important;}

/* ── Добивка по контрольному прогону 19.08 ──────────────── */
/* ссылка «← Thesis Partners» на страницах инструментов была белой на белом */
html[data-theme="light"] body a.back,
html[data-theme="light"] body #allrecords a.back {color: var(--brand) !important;}

/* панель выделенной публикации: белый текст поверх фирменного фона */
html[data-theme="light"] body .feat__l,
html[data-theme="light"] body #allrecords .feat__l {background: #a04a35 !important;}
html[data-theme="light"] body .feat__type,
html[data-theme="light"] body .feat__title,
html[data-theme="light"] body .feat__link,
html[data-theme="light"] body #allrecords .feat__type,
html[data-theme="light"] body #allrecords .feat__title,
html[data-theme="light"] body #allrecords .feat__link {color: #ffffff !important;}

/* контакты в политике: почта на фирменном фоне */
html[data-theme="light"] body .da-privacy-contact-block a,
html[data-theme="light"] body #allrecords .da-privacy-contact-block a,
html[data-theme="light"] body .da-privacy-contact-block a[href^="mailto"],
html[data-theme="light"] body #allrecords .da-privacy-contact-block a[href^="mailto"] {color: #ffffff !important;}

/* бегущая строка на /thesis: кремовые надписи на белом */
html[data-theme="light"] body .marquee span.item,
html[data-theme="light"] body .track span.item,
html[data-theme="light"] body .track span.small,
html[data-theme="light"] body .marquee span.small {color: #56514a !important;}

/* карточки PDF-инструментов в светлой теме остаются белыми с тёмным текстом */
html[data-theme="light"] body .tool-card {background: #ffffff !important;border-color: var(--line) !important;color: var(--ink) !important;}
html[data-theme="light"] body .tool-card h2, html[data-theme="light"] body .tool-card h3 {color: var(--ink) !important;}
html[data-theme="light"] body .tool-card p, html[data-theme="light"] body .tool-card .tool-desc {color: var(--muted) !important;}

/* ── Добивка 2: подписи, полосы .light, ссылки-исключения ─ */
/* подпись автора и даты в статьях была светло-серой */
html[data-theme="light"] body .af__meta,
html[data-theme="light"] body .af__meta span,
html[data-theme="light"] body #allrecords .af__meta,
html[data-theme="light"] body #allrecords .af__meta span {color: #5f5a52 !important;}

/* мелкие подписи на светлом фоне (/thesis) */
html[data-theme="light"] body .stamp,
html[data-theme="light"] body .right,
html[data-theme="light"] body span.small,
html[data-theme="light"] body span.ital {color: #56514a !important;}

/* …но внутри тёмных полос .light они остаются кремовыми */
html[data-theme="light"] body section.light p,
html[data-theme="light"] body section.light .thesis-body,
html[data-theme="light"] body section.light .pbio,
html[data-theme="light"] body section.light .pdesc,
html[data-theme="light"] body section.light .ptag,
html[data-theme="light"] body section.light .role,
html[data-theme="light"] body section.light .label,
html[data-theme="light"] body section.light .l,
html[data-theme="light"] body section.light .v,
html[data-theme="light"] body section.light .sm,
html[data-theme="light"] body section.light span.item,
html[data-theme="light"] body section.light span.small,
html[data-theme="light"] body section.light span.ital,
html[data-theme="light"] body section.light .stamp {color: rgba(239,236,228,.78) !important;}
html[data-theme="light"] body section.light .pname,
html[data-theme="light"] body section.light .name,
html[data-theme="light"] body section.light strong {color: #efece4 !important;}

/* кейсы на /thesis: подписи внутри тёмных медиа-плашек */
html[data-theme="light"] body .case-media .stamp,
html[data-theme="light"] body .case-media span.item,
html[data-theme="light"] body .case-media .small,
html[data-theme="light"] body .case-media .ital {color: rgba(239,236,228,.82) !important;}

/* первый экран /thesis тёмный (киноподложка) — бегущая строка на нём кремовая */
html[data-theme="light"] body .hero .track span.item,
html[data-theme="light"] body .hero .track span.small,
html[data-theme="light"] body .hero .marquee span.item,
html[data-theme="light"] body .hero .stamp {color: rgba(239,236,228,.82) !important;}
/* четвёртая плашка кейса шла без фона — подписи на ней терялись */
html[data-theme="light"] body .case-media.cmedia-d {background: #141416 !important;}

/* тёмные полосы .light бывают не только на section (на EN — div) */
html[data-theme="light"] body .light .metric .v,
html[data-theme="light"] body .light .pname,
html[data-theme="light"] body .light .name,
html[data-theme="light"] body .light .section-head h2 {color: #efece4 !important;}
html[data-theme="light"] body .light .pdesc,
html[data-theme="light"] body .light .ptag,
html[data-theme="light"] body .light .role,
html[data-theme="light"] body .light .label,
html[data-theme="light"] body .light .l,
html[data-theme="light"] body .light p {color: rgba(239,236,228,.78) !important;}

#mwrap .lsw{align-items:center !important}
#mwrap .lsw .theme-toggle{margin:0 0 0 10px;width:32px;height:32px}

/* подписи метрик в кейсах были светло-серыми */
html[data-theme="light"] body .case-metric span,
html[data-theme="light"] body #allrecords .case-metric span { color: #5f5a52 !important; }

/* шапка: единый фирменный цвет пунктов и заметная плашка активного языка */
html[data-theme="light"] body header.hdr .menu > a:not(.btn),
html[data-theme="light"] body header.hdr #mwrap > a:not(.btn),
html[data-theme="light"] body #allrecords header.hdr .menu > a:not(.btn) { color: #a04a35 !important; }
html[data-theme="light"] body header.hdr .lsw a, html[data-theme="light"] body #allrecords header.hdr .lsw a { color: #7a736a !important; }
html[data-theme="light"] body header.hdr .lsw a[style*="rgba(239,236,228,.12)"] { background: #e4ddd0 !important; color: #17171a !important; }
html[data-theme="light"] body #allrecords header.hdr .lsw a[style*="rgba(239,236,228,.12)"],
html[data-theme="light"] body #allrecords #mwrap .lsw a[style*="rgba(239,236,228,.12)"] { color: #17171a !important; background: #e4ddd0 !important; }
/* кнопка в мобильном меню: белый текст на фирменном фоне */
html[data-theme="light"] body #mwrap a.btn,
html[data-theme="light"] body #allrecords #mwrap a.btn { color: #ffffff !important; background: #a04a35 !important; }

/* панель базы знаний: подписи счётчиков и кнопка выхода на светлом фоне */
html[data-theme="light"] body .rb-appbar .stat-label,
html[data-theme="light"] body .rb-appbar .logout-btn { color: #56514a !important; }
html[data-theme="light"] body .rb-appbar .logout-btn { border-color: #d9d3c7 !important; }
html[data-theme="light"] body .rb-appbar .stat-num { color: #a04a35 !important; }
