/*
Theme Name: gravityfield v2
Author: Alexander Mikhaylov
Description:
Version: 0.0.1
*/

/* ============================================================
 * Inter — self-hosted, scoped to body.font-inter
 * Used on /blog/, /cases/, single post, single case.
 * Inter v20 is a variable font: one woff2 per subset covers
 * the entire 100..900 weight axis.
 * ============================================================ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('public/fonts/inter/inter-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('public/fonts/inter/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('public/fonts/inter/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('public/fonts/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter scoped to body.font-inter — set on Blog, Cases, single post,
   single case, A/B Calculator templates (also tag/category — Blog family).
   Geometria stays as the global default everywhere else. Header and footer
   keep Geometria even inside font-inter pages. */
body.font-inter,
body.font-inter * {
    font-family: 'Inter', 'Geometria', 'Helvetica Neue', Arial, sans-serif;
}

body.font-inter .header,
body.font-inter .header *,
body.font-inter .footer,
body.font-inter .footer * {
    font-family: 'Geometria', 'Helvetica Neue', Arial, sans-serif;
}

.header__logo .icon-logo {
    line-height: 3.2rem;
}

.article__content .wp-block-image img {
	height: auto;
    display: block;
    width: 100%;
    border-radius: 4rem;
    overflow: hidden;

}
.article__content .wp-block-image .wp-element-caption{
	margin-top: 2rem;
    color: #333E4C;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.23;
    text-align: center;
}

.vacancy__item li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: first baseline;
    -ms-flex-align: first baseline;
    align-items: first baseline;
    margin-top: 3rem;
    font-size: 1.8rem;
    line-height: 1.44;
    letter-spacing: -0.01em;
}
.vacancy__item li::before {
    content: "";
    display: block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 1.2rem;
    flex: 0 0 1.2rem;
    margin-right: 1.8rem;
    height: 1.2rem;
    background-color: #8380FF;
    border-radius: 0.4rem;
}

.vacancy__icon [class*="icon-vacancy-"] {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: #8380FF;
    border-radius: 50%;
    font-size: 12.8rem;
    width: 54%;
    height: 54%;
}
.article__content ul li {
    display:block;
    padding-left: 30px;
    position: relative;
}
.article__content ul li::before {
    position: absolute;
    left: 0;
    top: 6px;
}
.article__content ul li + li {
    margin-top: 1rem;
}

.article__content > * + * {
    margin-top: 2rem;
}
.article__content img {
    max-width: 100%;
    height:auto;
}
.article__content h2 {
    margin-top: 3rem;
}

@media (max-width:768px) {
    .article__content ul li {padding-left:20px;}
    .article__text-with-bg p, .article__text-with-bg strong {
        color: #F3F3FF;
    }
    .article__text-with-bg {
        padding: 3rem;
        background-color: #8380FF;
        border-radius: 3rem;
    }

}
.our-team__member-position {font-style:normal;}

.clients__item-title.no-hover:hover:after {
    content:none;
}
.clients__item:hover input:not(:checked) + .clients__item-title.no-hover span {
    opacity:1;
}
[lang="en"] .modules__cards,
[lang="en"] .modules._other-modules .modules__cards {
        height: 149rem;
}
[lang="en"] .modules__card { height:63.6rem}

@media (max-width: 1200px) {
    [lang="en"] .modules__card { height:50rem}
    [lang="en"] .modules__cards, [lang="en"] .modules._other-modules .modules__cards {
        height: 168rem;
    }
}
@media (max-width: 768px) {
    [lang="en"] .modules__card { height:auto}
    [lang="en"] .modules__cards, [lang="en"] .modules._other-modules .modules__cards {
        height: auto;
    }
}

.recs-notice {
    font-size: 1.3rem;
    line-height: 1.6rem;
    color: #8181A3;
    margin-bottom:3rem;
}
.recs-notice a {
    color:#8380FF;
    font-size: 1.3rem;
    line-height: 1.6rem;
}
.language_select {
    list-style-type: none;
    display: flex;
    justify-content: flex-start;
}
.language_select li {
    text-transform: uppercase;
    font-size: 14px;
}
.language_select li + li {margin-left:8px;}
.language_select .current-lang a {color:#fff;text-decoration: underline;font-weight: 500}
.theme-light .language_select .current-lang a {color:#000;}

/* ── Компактный переключатель языка (дропдаун) ─────────────────────
   Кладём сюда (style.css грузится глобально), а не в menu.css —
   menu.css не подключается на EN-страницах (Partners, Gravity AI). */
.lang-switch { position: relative; display: inline-flex; }

.lang-switch__trigger {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 8px; background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 14px; text-transform: uppercase;
    color: #C9C9DE; line-height: 1;
}
.lang-switch__trigger:hover { color: #F3F3FF; }

.lang-switch__chev {
    width: 8px; height: 8px;
    border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-1px); transition: transform .2s ease;
}
.lang-switch[data-open] .lang-switch__chev { transform: rotate(-135deg) translateY(1px); }

.lang-switch__menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
    display: flex; flex-direction: column; gap: 2px;
    min-width: 70px; margin: 0; padding: 6px; list-style: none;
    background: #262f3f; border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px; box-shadow: 0 12px 28px rgba(0,0,0,.35);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.lang-switch[data-open] .lang-switch__menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-switch__menu li { margin: 0; }
.lang-switch__menu li + li { margin-left: 0; }
.lang-switch__menu a {
    display: block; padding: 7px 10px; border-radius: 6px;
    color: #8181A3; font-size: 14px; text-transform: uppercase;
    text-decoration: none; line-height: 1; font-weight: 400;
}
.lang-switch__menu a:hover { background: rgba(255,255,255,.06); color: #F3F3FF; }
/* текущий язык уже показан в триггере — прячем его из выпадающего списка */
.lang-switch__menu .current-lang { display: none; }

@media (max-width: 767px) {
    .header__btns .lang-switch,
    .menu--right .lang-switch { display: none; }
}

.contact-form__title {max-width: 75rem;}

@media (max-width:767px) {
    .header__btns .language_select{display: none;}

}

   .contact__btn[disabled], .request-demo__btn[disabled] {
        opacity:0.6;
        pointer-events: none;
    } 

.contact__control {
  display: block;
  position: relative;
  padding-left: 40px;
  cursor: pointer;
  font-size: 16px;
    text-align: left;
}
@media (min-width:768px) {
    .contact__control {
        margin-bottom: -4rem;
    }
}

.contact__control a {
    font-weight: bold;
    color:#8380FF;
}
.theme-light .contact__control a {
    color:#fff;
}
.theme-light .contact__control {
    color:#fff;
}
.contact__control input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
.contact__control__indicator {
  position: absolute;
  top: 2px;
  left: 0;
  height: 24px;
  width: 24px;
  background: transparent;
  border: 1px solid #C5C6D0;
  border-radius: 4px;
}
.contact__control--radio .contact__control {
  border-radius: 50%;
}
.contact__control:hover input ~ .contact__control__indicator,
.contact__control input:focus ~ .contact__control__indicator {
  border: 1px solid #fff;
}

.contact__control input:disabled ~ .contact__control__indicator {
  background: #e6e6e6;
  opacity: 0.6;
  pointer-events: none;
}
.contact__control__indicator:after {
  content: '';
  position: absolute;
  display: none;
}
.contact__control input:checked ~ .contact__control__indicator:after {
  display: block;
}
.contact__control--checkbox .contact__control__indicator:after {
  left: 8px;
  top: 4px;
  width: 4px;
  height: 10px;
  border: solid #C5C6D0;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.contact__control--checkbox:hover .contact__control__indicator:after {
    border-color:#fff;
}
.contact__control--checkbox input:disabled ~ .contact__control__indicator:after {
  border-color: #7b7b7b;
}

.cookie_popup {
    position: fixed;
    bottom: 24px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 999;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
    max-width: calc(100vw - 32px);
    padding: 10px 10px 10px 22px;
    background: rgba(19, 19, 28, 0.72);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(243, 243, 255, 0.12);
    border-radius: 100px;
    -webkit-box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.cookie_popup p {
    margin: 0;
    color: rgba(243, 243, 255, 0.85);
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: -0.14px;
    white-space: nowrap;
}
.cookie_popup a {
    color: #8380FF;
    font-size: inherit;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(131, 128, 255, 0.4);
}
.cookie_popup .btn {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding: 0 22px;
    height: 36px;
    border: 0;
    border-radius: 100px;
    background-color: #F3F3FF;
    color: #0B0B12;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: background-color 0.2s ease-out;
    -o-transition: background-color 0.2s ease-out;
    transition: background-color 0.2s ease-out;
}
.cookie_popup .btn::before {
    content: none;
}
.cookie_popup .btn:hover,
.cookie_popup .btn:active,
.cookie_popup .btn:focus {
    background-color: #FFFFFF;
}
@media (max-width: 640px) {
    .cookie_popup {
        left: 12px;
        right: 12px;
        bottom: 12px;
        -webkit-transform: none;
        transform: none;
        max-width: none;
        gap: 12px;
        padding: 10px 10px 10px 18px;
        border-radius: 24px;
    }
    .cookie_popup p {
        white-space: normal;
        font-size: 13px;
    }
}

@media (max-width:768px) {
    .header__btn {
        margin-right: -7.6rem;
    }
}

.menu__gravity-ai img {
    width:16px;
    height:16px;
    margin-right: 4px;
}
.menu__gravity-ai {
    background: rgba(255, 255, 255, 0.1);
    padding:3px 10px;
    display: flex;
    align-items: center;
    border-radius: 90px;
    margin-left: 12px;
    white-space: nowrap;
}
.menu__gravity-ai span {
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    color: #fff;
}
[class="theme-light"] .menu__gravity-ai {
    background: #8380FF;
}


@media (max-width:1199px) {
    .menu__gravity-ai {
       position: absolute;
       right: 32px;
       top: 16px;
    }
}

.footer__top {
        grid-template-columns: repeat(5, 1fr);
        align-items: start;
        row-gap: 4.4rem;
}

.header__dropdown:hover .header__dropdown-content {
    /* display: block; */
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.3s, visibility 0s;
    -o-transition: opacity 0.3s, visibility 0s;
    transition: opacity 0.3s, visibility 0s;
}

.header__dropdown:not(.solo):hover .header__dropdown-btn:after {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.3s, visibility 0s;
    -o-transition: opacity 0.3s, visibility 0s;
    transition: opacity 0.3s, visibility 0s;
}
.header__dropdown-btn::after {
    bottom: -1px;
}

.cases__card-img {
    max-width: 100%;
}

.article__content a:not(.wp-element-button) {
    color: #8380FF;
}
.article__content a:not(.wp-element-button):hover {
    text-decoration: underline;
}

.article__content .wp-element-button.btn:hover {
    color:#fff;
}

/* Hero typewriter */
.hero__title-typed {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}


/* Tag page heading */
.tag-page__title {
    font-weight: 700;
    line-height: 1.15;
}

.tag-page__title-name {
    display: block;
    font-style: italic;
    font-weight: 300;
    margin-top: 0.2em;
}

@media (max-width: 768px) {
    .tag-page__title {
        font-size: 3.6rem;
    }
}

/* Hero typewriter cursor */
.hero__title-typed.typing::after {
    content: '|';
    display: inline-block;
    animation: tw-blink 0.7s step-end infinite;
    opacity: 1;
}
@keyframes tw-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ============================================================
 * Publication cards — used on /ru/blog/ and /ru/cases/
 * Visual language aligned with .case-item from homepage.
 * Spec: Website/ticket-cards-redesign.md
 * ============================================================ */

.pcard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 64px;
}
/* Override .page__title-wrapper + * { opacity:0; transform:translateY(10%) } from styles.min.css
   which leaves the grid hidden on /blog/ and /cases/ when the GSAP animation does not complete. */
.page__title-wrapper + .pcard-grid {
    opacity: 1 !important;
    transform: none !important;
}
@media (max-width: 1024px) { .pcard-grid { grid-template-columns: repeat(2, 1fr); margin-top: 48px; } }
@media (max-width: 640px)  { .pcard-grid { grid-template-columns: 1fr; margin-top: 32px; } }

.pcard {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #202837;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
    height: 100%;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.25); }
.pcard * { color: inherit; }

.pcard__head {
    position: relative;
    aspect-ratio: 400 / 218;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A4487;
    overflow: hidden;
}
.pcard__bgimg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
}
.pcard__bgpattern {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    opacity: .2;
}

.pcard__logo {
    position: relative; z-index: 2;
    max-width: 60%; max-height: 80px;
    width: auto; height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}
.pcard__icon {
    position: relative; z-index: 2;
    width: 64px; height: 64px;
    color: #fff; opacity: .95;
    display: inline-flex; align-items: center; justify-content: center;
}
.pcard__icon svg { width: 100%; height: 100%; }

/* Topmeta row (above title) — badge + date + reading time on white body */
.pcard__topmeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
    color: #5B6577;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
}
.pcard__topmeta > * { display: inline-flex; align-items: center; }

.pcard__badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: #F4F2FF;
    color: #5841FF;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1.2;
}

.pcard__meta-date,
.pcard__meta-time {
    gap: 5px;
    color: #5B6577;
}
.pcard__meta-date svg,
.pcard__meta-time svg {
    width: 11px; height: 11px;
    opacity: .7;
    flex-shrink: 0;
}

.pcard__body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}
.pcard__more { align-self: flex-start; }
.pcard__title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 12px;
    color: #202837;
    letter-spacing: -0.01em;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pcard__text {
    margin: 0 0 20px;
    color: #5B6577;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pcard__text p { margin: 0; color: inherit; }
.pcard__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #202837;
    font-weight: 600;
    font-size: 14px;
}
.pcard__more svg {
    transition: transform .2s ease;
    color: inherit;
}
.pcard:hover .pcard__more svg { transform: translateX(4px); }

/* Mobile tweaks */
@media (max-width: 640px) {
    .pcard__title { font-size: 18px; }
    .pcard__body { padding: 20px 22px 24px; }
}

/* Infinite-scroll sentinel — invisible block below .pcard-grid that triggers
   AJAX load when scrolled into view. Reserves a bit of vertical space so the
   IntersectionObserver has room to fire, and shows a subtle loading dot. */
.pcard-loadmore {
    height: 40px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pcard-loadmore[data-has-more="0"] { display: none; }
.pcard-loadmore.is-loading::after {
    content: "";
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(88,65,255,.20);
    border-top-color: #5841FF;
    animation: pcard-spin .8s linear infinite;
}
@keyframes pcard-spin { to { transform: rotate(360deg); } }

/* ============================================================
 * Blog view toggle (Карточки / Список) + list view.
 * Spec: issue #64. List view is a CSS-only modifier on the same
 * .pcard markup, so AJAX-appended cards inherit the active view.
 * ============================================================ */

.pcard-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-top: 48px;
}
/* Neutralize .page__title-wrapper + * { opacity:0; translateY(10%) } from
   styles.min.css — same reason as the .pcard-grid override above. */
.page__title-wrapper + .pcard-toolbar {
    opacity: 1 !important;
    transform: none !important;
}
.pcard-toolbar + .pcard-grid { margin-top: 24px; }
@media (max-width: 640px) {
    .pcard-toolbar { justify-content: center; margin-top: 32px; }
    .pcard-toolbar + .pcard-grid { margin-top: 20px; }
}

.gf-view-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(32, 40, 55, 0.12);
}
.gf-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #5B6577;
    background: none;
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
.gf-view-toggle__btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.gf-view-toggle__btn:hover { color: #202837; }
.gf-view-toggle__btn[aria-pressed="true"] {
    background: #202837;
    color: #fff;
    font-weight: 600;
}
.gf-view-toggle__btn:focus-visible { outline: 2px solid #5841FF; outline-offset: 2px; }

/* List view: horizontal compact rows out of the same .pcard markup */
.pcard-grid--list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pcard-grid--list .pcard {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 14px;
    border-radius: 4px;
    border: 1px solid rgba(32, 40, 55, 0.06);
    height: auto;
}
.pcard-grid--list .pcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.25);
}
.pcard-grid--list .pcard__head {
    flex: 0 0 168px;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
}
.pcard-grid--list .pcard__icon { width: 40px; height: 40px; }
.pcard-grid--list .pcard__body {
    flex: 1;
    min-width: 0;
    padding: 0 40px 0 0;
}
.pcard-grid--list .pcard__topmeta { margin-bottom: 8px; }
.pcard-grid--list .pcard__title {
    font-size: 18px;
    margin: 0;
    -webkit-line-clamp: 2;
}
.pcard-grid--list .pcard__text { display: none; }
/* CTA collapses to a right-centered arrow: font-size:0 hides the label,
   the svg keeps its attribute size and the existing hover shift */
.pcard-grid--list .pcard__more {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    margin: 0;
    gap: 0;
    font-size: 0;
    opacity: .55;
    transition: opacity .2s ease;
}
.pcard-grid--list .pcard:hover .pcard__more { opacity: 1; }
@media (max-width: 640px) {
    .pcard-grid--list .pcard { gap: 14px; align-items: flex-start; }
    .pcard-grid--list .pcard__head { flex-basis: 104px; }
    .pcard-grid--list .pcard__body { padding-right: 0; }
    .pcard-grid--list .pcard__title { font-size: 15px; }
    .pcard-grid--list .pcard__more,
    .pcard-grid--list .pcard__meta-time { display: none; }
}

/* ============================================================
 * Single-article hero — centered, matches prod styling.
 * Title 48/1.2/#202837/letter-spacing -0.03em, max-width 1060px,
 * breadcrumbs and meta block also centered under the title.
 * ============================================================ */
body.font-inter .article .page__title-wrapper { text-align: center; }
body.font-inter .article .page__title {
    font-size: 4.8rem;
    line-height: 1.2;
    font-weight: 700;
    color: #202837;
    letter-spacing: -0.03em;
    max-width: 106rem;
    margin: 2.4rem auto 0;
    text-align: center;
}
body.font-inter .article .page__breadcrumbs {
    justify-content: center;
    display: flex;
}
@media (max-width: 768px) {
    body.font-inter .article .page__title {
        font-size: 3rem;
        line-height: 1.2;
        margin-top: 1.6rem;
    }
}

/* ============================================================
 * Article meta block — author, date, reading time, tags
 * Sits under H1 on single.php / single-case.php
 * Rendered by template-parts/blocks/article-meta.php
 * ============================================================ */
body.font-inter .article__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    margin: 2.4rem auto 0;
    padding: 0;
    color: #525E78;
    font-size: 1.4rem;
    line-height: 1.4;
    text-align: center;
}
body.font-inter .article__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    color: #525E78;
}
body.font-inter .article__meta-row > span {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #525E78;
}
body.font-inter .article__meta-avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
body.font-inter .article__meta-row svg {
    width: 14px; height: 14px;
    opacity: .85;
    flex-shrink: 0;
}
body.font-inter .article__meta-author span:not(.article__meta-author) { color: #2C3047; font-weight: 500; }

body.font-inter .article__meta-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}
body.font-inter .article__tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: #F4F2FF;
    color: #5841FF;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.005em;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
body.font-inter .article__tag:hover {
    background: #EAE5FF;
    color: #3A1FFF;
    border-color: rgba(88,65,255,.25);
}

@media (max-width: 768px) {
    body.font-inter .article__meta { gap: 1.2rem; margin-top: 2rem; }
    body.font-inter .article__meta-row { gap: 1.6rem; font-size: 1.3rem; }
    body.font-inter .article__tag { font-size: 1.2rem; padding: 4px 10px; }
}

/* Hide the legacy footer block — replaced by .article__meta under the title.
   Defensive: keeps backwards compatibility if any old post uses the .article__footer markup. */
body.font-inter .article__footer { display: none; }

/* ============================================================
 * Article typography v2 — applies ONLY on body.font-inter pages
 * (/blog/<slug>/ and /cases/<slug>/). Spec: docs.gravityfield.ai
 * Width 760, line-height 1.75, color #2C3047, generous heading
 * margins, flat images. Scoped to not affect article.php / recs.php
 * which use the same .article__content class.
 * ============================================================ */

body.font-inter .article__content {
    width: 76rem;
    max-width: 100%;
    color: #2C3047;
}

body.font-inter .article__content p,
body.font-inter .article__content p strong {
    font-size: 1.6rem;
    line-height: 1.75;
    letter-spacing: -.005em;
    color: #2C3047;
}
body.font-inter .article__content p strong,
body.font-inter .article__content strong {
    color: #090D1C;
    font-weight: 700;
}

/* Inline phrasing elements never change the text size/leading — they inherit
   their container, so a <span>/<strong> behaves the same in a heading, list or
   paragraph. Neutralises the theme's global `* { font-size: 1.6rem }` (which
   shrinks span in headings to 16px) and the separate `ul li span/strong` scale.
   Ticket #11. Only weight/color carry the emphasis. */
body.font-inter .article__content span,
body.font-inter .article__content strong,
body.font-inter .article__content b,
body.font-inter .article__content em,
body.font-inter .article__content i,
body.font-inter .article .page__title span {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}
body.font-inter .article__content strong,
body.font-inter .article__content b {
    font-weight: 700;
    color: #090D1C;
}

/* Heading spacing — more air ABOVE (48/32/24) to separate sections, tighter
   gap BELOW (h2 24 / h3 16 / h4 12). Font sizes follow docs.gravityfield.ai. */
body.font-inter .article__content h2 {
    font-size: 3.2rem;
    line-height: 1.25;
    font-weight: 700;
    color: #090D1C;
    letter-spacing: -.015em;
    margin: 4.8rem 0 2.4rem;
}
body.font-inter .article__content h3 {
    /* Size aligned with docs.gravityfield.ai — 24/30/700/#090D1C, no letter-spacing */
    font-size: 2.4rem;
    line-height: 1.25;
    font-weight: 700;
    color: #090D1C;
    letter-spacing: normal;
    margin: 3.2rem 0 1.6rem;
}
body.font-inter .article__content h4 {
    /* h4 was unstyled → fell back to theme (26px on wide screens, larger than h3).
       Fixed scale: 20px, sits below h3, 12px gap to following text. */
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
    color: #090D1C;
    letter-spacing: normal;
    margin: 2.4rem 0 1.2rem;
}

/* Base rhythm between blocks: 24px. Paragraph-to-paragraph is tighter (16px)
   for a denser editorial flow, similar to intercom.com/blog typography. */
body.font-inter .article__content > * + * { margin-top: 2.4rem; }
body.font-inter .article__content p + p { margin-top: 1.6rem; }

/* Tight follow-up after headings — heading margins already include space */
body.font-inter .article__content h2 + p,
body.font-inter .article__content h2 + ul,
body.font-inter .article__content h2 + ol,
body.font-inter .article__content h2 + figure,
body.font-inter .article__content h2 + .wp-block-image,
body.font-inter .article__content h2 + blockquote,
body.font-inter .article__content h3 + p,
body.font-inter .article__content h3 + ul,
body.font-inter .article__content h3 + ol,
body.font-inter .article__content h4 + p,
body.font-inter .article__content h4 + ul,
body.font-inter .article__content h4 + ol { margin-top: 0; }

/* Consecutive headings sit tight — exactly 12px between them. The following
   heading's top margin is cut to 12px AND :has() zeroes the preceding heading's
   bottom margin, otherwise the larger bottom margin (24/16) wins the collapse.
   Browsers without :has() fall back to the heading's own bottom gap (24/16). */
body.font-inter .article__content h2 + h3,
body.font-inter .article__content h2 + h4,
body.font-inter .article__content h3 + h4 { margin-top: 1.2rem; }
body.font-inter .article__content h2:has(+ h3),
body.font-inter .article__content h2:has(+ h4),
body.font-inter .article__content h3:has(+ h4) { margin-bottom: 0; }

/* A list belongs to its intro line — pull it close (16px) to the paragraph above. */
body.font-inter .article__content p + ul,
body.font-inter .article__content p + ol { margin-top: 1.6rem; }

/* Images — flat 4px corner, symmetric 32px breathing room top and bottom. */
body.font-inter .article__content figure,
body.font-inter .article__content .wp-block-image { margin: 3.2rem 0; }
body.font-inter .article__content figure img,
body.font-inter .article__content .wp-block-image img { border-radius: 4px; }

/* Lists — aligned with docs.gravityfield.ai (retype): native markers
   (ul → disc, nested ul → circle, ol → decimal) at 32px indent, item text
   16/28/400/#2C3047 — same scale and color as body copy, marker in text color.
   Overrides the theme's global `ol,ul{list-style:none}` reset and the custom
   purple ::before square so blog/case lists read like the docs. */
body.font-inter .article__content ul,
body.font-inter .article__content ol {
    padding-left: 3.2rem;
    list-style-position: outside;
}
body.font-inter .article__content ul { list-style-type: disc; }
body.font-inter .article__content ul ul { list-style-type: circle; }
body.font-inter .article__content ol { list-style-type: decimal; }

body.font-inter .article__content ul li,
body.font-inter .article__content ol li {
    display: list-item;
    position: static;
    padding-left: 0;
    font-size: 1.6rem;
    line-height: 1.75;
    font-weight: 400;
    color: #2C3047;
    letter-spacing: normal;
}
/* Kill the theme's purple rounded-square bullet; use the native marker instead. */
body.font-inter .article__content ul li::before { content: none; display: none; }
body.font-inter .article__content li::marker { color: #2C3047; }
body.font-inter .article__content li strong { color: #090D1C; font-weight: 700; }
/* docs renders items flush (margin 0); a 4px gap keeps longer marketing items legible. */
body.font-inter .article__content li + li { margin-top: 0.4rem; }
body.font-inter .article__content li > ul,
body.font-inter .article__content li > ol { margin-top: 0.4rem; }

/* Links — inherit text size, purple accent. No underline by default
   (avoids a thick divider line under multiline links).
   On hover — thin underline close to the text, drawn per line. */
body.font-inter .article__content a:not(.wp-element-button) {
    font-size: inherit;
    line-height: inherit;
    color: #5841FF;
    text-decoration: none;
    border-bottom: 0;
    transition: color .15s ease, text-decoration-color .15s ease;
}
body.font-inter .article__content a:not(.wp-element-button):hover {
    color: #3A1FFF;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: currentColor;
    text-underline-offset: 2px;
}

/* Code — inline uses a light brand tint; block (<pre>/wp-block-code) is dark
   for IDE-like contrast. System monospace stack (no extra webfont). */
body.font-inter .article__content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    background: #F4F2FF;
    color: #3A1FFF;
    padding: 2px 6px;
    border-radius: 4px;
}
body.font-inter .article__content pre {
    margin: 2.4rem 0;
    padding: 1.6rem 2rem;
    background: #0E1320;
    border-radius: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
body.font-inter .article__content pre code {
    display: block;
    background: none;
    color: #E6E6F0;
    padding: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Blockquote — "quote glyph" style: soft tinted card with a large decorative
   opening quote in the accent color, top-left. Covers both <blockquote> and
   Gutenberg <blockquote class="wp-block-quote"> + <cite> for attribution.
   The ::before glyph overrides the Meyer reset (blockquote:before{content:none}). */
body.font-inter .article__content blockquote,
body.font-inter .article__content .wp-block-quote {
    position: relative;
    margin: 3.2rem 0;
    padding: 2.8rem 2.8rem 2.4rem 6.4rem;
    background: #F8F8FC;
    border: 1px solid #ECEBF5;
    color: #090D1C;
    border-radius: 4px;
}
body.font-inter .article__content blockquote::before,
body.font-inter .article__content .wp-block-quote::before {
    content: "\201C";
    position: absolute;
    left: 2rem;
    top: 1.2rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 6rem;
    line-height: 1;
    color: #5841FF;
    pointer-events: none;
}
body.font-inter .article__content blockquote p,
body.font-inter .article__content .wp-block-quote p {
    margin: 0;
    color: #090D1C;
    font-size: 1.7rem;
    line-height: 1.6;
}
body.font-inter .article__content blockquote p + p,
body.font-inter .article__content .wp-block-quote p + p { margin-top: 1.2rem; }
body.font-inter .article__content blockquote cite,
body.font-inter .article__content .wp-block-quote cite {
    display: block;
    margin-top: 1.2rem;
    font-style: normal;
    font-size: 1.4rem;
    color: #525E78;
}

/* Callout / выноска — Block Designer block bd/block-94 (.article__text-with-bg),
   used for definitions and key notes. Replaces the old garish solid-purple box
   (#8380FF, 40px radius, light-on-purple text) with a calm light info-card:
   brand tint, 4px radius, dark readable text, accent "i" badge via ::before. */
body.font-inter .article__content .article__text-with-bg {
    position: relative;
    background: #F4F2FF;
    border: 0;
    border-radius: 4px;
    padding: 2rem 2.4rem 2rem 6rem;
    color: #2C3047;
    font-size: 1.6rem;
    line-height: 1.7;
}
body.font-inter .article__content .article__text-with-bg::before {
    content: "i";
    position: absolute;
    left: 2rem;
    top: 2rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #5841FF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}
/* override the old light-on-purple text colour (set for the purple box, incl. mobile) */
body.font-inter .article__content .article__text-with-bg p {
    margin: 0;
    color: #2C3047;
    font-size: 1.6rem;
    line-height: 1.7;
}
body.font-inter .article__content .article__text-with-bg p + p { margin-top: 1.2rem; }
body.font-inter .article__content .article__text-with-bg strong { color: #090D1C; font-weight: 700; }

/* When the callout is wrapped in a Quote block (as on the Kaspi case), strip the
   quote card + glyph so only the callout shows. :has() — graceful fallback. */
body.font-inter .article__content blockquote:has(.article__text-with-bg),
body.font-inter .article__content .wp-block-quote:has(.article__text-with-bg) {
    background: none;
    border: 0;
    padding: 0;
    margin: 2.4rem 0;
}
body.font-inter .article__content blockquote:has(.article__text-with-bg)::before,
body.font-inter .article__content .wp-block-quote:has(.article__text-with-bg)::before {
    content: none;
}

/* Gutenberg pullquote — bigger emphasized quote */
body.font-inter .article__content .wp-block-pullquote {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 2px solid #5841FF;
    border-bottom: 2px solid #5841FF;
    text-align: center;
}
body.font-inter .article__content .wp-block-pullquote blockquote {
    background: transparent;
    border-left: 0;
    padding: 0;
    margin: 0;
}
body.font-inter .article__content .wp-block-pullquote blockquote p {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 600;
    color: #090D1C;
}

/* Gutenberg table block — recognizable header on accent background,
   thin row dividers, horizontal scroll on mobile if content overflows. */
body.font-inter .article__content .wp-block-table {
    margin: 3.2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
body.font-inter .article__content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #2C3047;
}
body.font-inter .article__content th,
body.font-inter .article__content td {
    padding: 1.2rem 1.6rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #E5E7EB;
}
body.font-inter .article__content thead th {
    background: #F4F2FF;
    color: #090D1C;
    font-weight: 700;
    border-bottom: 2px solid #5841FF;
}
body.font-inter .article__content tbody tr:last-child td { border-bottom: 0; }

/* Gutenberg "Stripes" style variant — zebra rows */
body.font-inter .article__content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
    background: #FAFAFA;
}

body.font-inter .article__content .wp-block-table figcaption {
    margin-top: 0.8rem;
    font-size: 1.3rem;
    color: #525E78;
    text-align: center;
    font-style: italic;
}

@media (max-width: 768px) {
    body.font-inter .article__content .wp-block-table { margin: 2.4rem 0; }
    body.font-inter .article__content table { font-size: 1.3rem; }
    body.font-inter .article__content th,
    body.font-inter .article__content td { padding: 1rem 1.2rem; }
}

/* Gutenberg media-text block (image + paragraphs side-by-side) — inline
   style sets grid-template-columns from editor; we only add display: grid. */
body.font-inter .article__content .wp-block-media-text {
    display: grid;
    gap: 3.2rem;
    align-items: start;
    margin: 3.2rem 0;
}
body.font-inter .article__content .wp-block-media-text__media { margin: 0; }
body.font-inter .article__content .wp-block-media-text__media img {
    width: 100%; height: auto; display: block; border-radius: 4px;
}
body.font-inter .article__content .wp-block-media-text__content { margin: 0; }
body.font-inter .article__content .wp-block-media-text__content > * + * { margin-top: 1.2rem; }
body.font-inter .article__content .wp-block-media-text__content p { margin: 0; }

@media (max-width: 768px) {
    body.font-inter .article__content .wp-block-media-text,
    body.font-inter .article__content .wp-block-media-text.is-stacked-on-mobile {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}

/* Video and iframe blocks (wp:html with <video>, wp:embed, wp:video) — same
   visual treatment as images (flat, 4px corner, 32px bottom margin) */
body.font-inter .article__content video,
body.font-inter .article__content iframe,
body.font-inter .article__content .wp-block-video video,
body.font-inter .article__content .wp-block-embed iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 0 3.2rem;
    border-radius: 4px;
    aspect-ratio: 16 / 9;
}
body.font-inter .article__content .wp-block-video,
body.font-inter .article__content .wp-block-html,
body.font-inter .article__content .wp-block-embed { margin: 0 0 3.2rem; }
body.font-inter .article__content .wp-block-video video,
body.font-inter .article__content .wp-block-html video,
body.font-inter .article__content .wp-block-embed iframe { margin-bottom: 0; }

@media (max-width: 768px) {
    body.font-inter .article__content {
        width: 100%;
    }
    body.font-inter .article__content p,
    body.font-inter .article__content p strong { font-size: 1.55rem; line-height: 1.65; }
    body.font-inter .article__content ul li,
    body.font-inter .article__content ol li { font-size: 1.5rem; line-height: 1.65; }
    body.font-inter .article__content ul,
    body.font-inter .article__content ol { padding-left: 2.4rem; }
    body.font-inter .article__content h2 { font-size: 2.2rem; margin: 3.2rem 0 1.6rem; line-height: 1.3; }
    body.font-inter .article__content h3 { font-size: 2rem; margin: 2.4rem 0 1.2rem; line-height: 1.25; }
    body.font-inter .article__content h4 { font-size: 1.8rem; margin: 2rem 0 0.8rem; line-height: 1.25; }
    body.font-inter .article__content > * + * { margin-top: 1.8rem; }
    body.font-inter .article__content p + p { margin-top: 1.2rem; }
    body.font-inter .article__content figure,
    body.font-inter .article__content .wp-block-image { margin: 2.4rem 0; }
    body.font-inter .article__content blockquote,
    body.font-inter .article__content .wp-block-quote { margin: 0 0 2.4rem; }
    body.font-inter .article__content blockquote,
    body.font-inter .article__content .wp-block-quote { padding: 2.4rem 1.8rem 2rem 4.8rem; }
    body.font-inter .article__content blockquote::before,
    body.font-inter .article__content .wp-block-quote::before { font-size: 4.6rem; left: 1.4rem; top: 1rem; }
}

/* ============================================================
 * Футер v2 (#31): стиль ссылок, правовой блок, нижний ряд
 * Источник истины — page mockups/menu-footer-v2/home.html
 * ============================================================ */

/* пункты колонок: Geometria 300, неактивный #a1a1a1, hover #ededed */
.footer__top-nav a.footer__nav-link {
    font-weight: 300;
    color: #a1a1a1;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    transition: color .15s ease;
}
.footer__top-nav a.footer__nav-link:hover,
.footer__top-nav a.footer__nav-link:focus {
    color: #ededed;
}

/* правовой блок (реестр ПО) — в стиле пунктов: Geometria 300, #a1a1a1 */
.footer .recs-notice {
    font-weight: 300;
    color: #a1a1a1;
}

/* убрать полоски-разделители в футере: border-top у нижнего блока задаёт
   styles.min.css, а дубль (и .footer__top-divider старого дизайна) — ещё и
   устаревший инжект кампании персонализации (style[data-id^=sl-css]),
   поэтому !important */
.footer__info-wrapper {
    border-top: 0 !important;
}
.footer__top-divider {
    display: none !important;
}

/* нижний ряд: ссылки + копирайт — Geometria 400, #a1a1a1, hover #ededed */
.footer .footer__info-links a,
.footer .footer__info span {
    font-weight: 400;
    color: #a1a1a1;
    opacity: 1;
    transition: color .15s ease;
}
.footer .footer__info-links a:hover,
.footer .footer__info-links a:focus {
    color: #ededed;
}

/* ============================================================
 * Футер v2 (#34): мобильная адаптация — колонки 5→3→2→1
 * и компактный нижний блок (footer__info-wrapper).
 * Источник истины — page mockups/menu-footer-v2/home.html.
 * Нужно, т.к. #31 задал .footer__top плоским repeat(5,1fr)
 * без media-queries — это перебивало адаптив из styles.min.css.
 * ============================================================ */

/* планшет: 3 колонки */
@media (max-width: 1024px) {
    .footer__top {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2.4rem;
        row-gap: 3.6rem;
    }
}

/* телефон: 2 колонки + компактный нижний ряд */
@media (max-width: 640px) {
    .footer {
        padding-top: 4rem;
    }
    .footer__top {
        grid-template-columns: 1fr 1fr;
        column-gap: 1.6rem;
        row-gap: 2.8rem;
    }
    /* нижний блок: плотные отступы, всё столбиком, ссылки с переносом */
    .footer__info-wrapper {
        padding-top: 1.4rem;
        padding-bottom: 1.4rem;
    }
    .footer__info-wrapper .container.footer__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    .footer__info-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        row-gap: 1rem;
    }
    .footer__info-links {
        flex-wrap: wrap;
        gap: .6rem 1.6rem;
    }
}

/* узкие экраны: 1 колонка */
@media (max-width: 380px) {
    .footer__top {
        grid-template-columns: 1fr;
    }
}
