/*
Theme Name: WRAI 2
Theme URI: https://welcome-israel.com/
Description: Custom theme for welcome-israel.com (wrai redesign). Classic PHP templates, plain CSS/JS.
Author: Welcome Israel
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: wrai
Domain Path: /languages
*/

/* ============================================================
 * Variables (цвета поменяем под макет)
 * ============================================================ */
:root {
    --color-main-black: #16163f;
}

/* ============================================================
 * Base
 * ============================================================ */
body {
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums proportional-nums;
}
.container {
    width: 100%;
    max-width: 1240px;
    padding: 0 20px;
    margin: 0 auto;
}
.modal-close {
    position: absolute;
    display: block;
    top: 20px;
    right: 30px;
    height: 40px;
    width: 40px;
    color: #b5b5b5;
    font-weight: 400;
    background: none;
    font-size: 14px;
    border-radius: 30px;
    border: none;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTMuNSAxTDEgMTMuNSIgc3Ryb2tlPSIjOTM5MzkzIiBzdHJva2Utd2lkdGg9IjEuMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTEgMUwxMy41IDEzLjUiIHN0cm9rZT0iIzkzOTM5MyIgc3Ryb2tlLXdpZHRoPSIxLjMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    outline: none;
    cursor: pointer;
    z-index: 2;
}

.nowrap {
  white-space: nowrap;
}

/* utility: скрыть на десктопе (бургер показывается под 1200px) */
.hidden-desktop {
  display: none;
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* ============================================================
 * Header
 * ============================================================ */
.header {
    position: sticky;
    z-index: 100;
    top: 0;
    width: 100%;
    border-bottom: 1px solid #d9d3c6;
    background: rgba(243,238,229,0.9);
    backdrop-filter: blur(6px);
}
.header-inner {
    position: relative;
    padding: 18px 0 19px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
}
  .menu-wrap {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}
.menu-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.language-switch {
	display: none;
}
.header-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    background: transparent;
    color: #2c2837;
    cursor: pointer;
    transition: color .2s;
}
.header-search:hover { color: #002266; }
.header-search .icon { width: 19px; height: 19px; }

.header .btn--navy {
    background: #0e2a4a;
    border: 1px solid rgba(0,53,128,.25);
    border-radius: 10px;
}
.header .btn--navy:hover { background: #0a1f3a; }
.header .btn--sm {
    padding: 11px 23px;
    font-size: 11px;
    letter-spacing: .18em;
}
ul.menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 36px;
}
ul.menu li {
    display: flex;
    align-items: center;
    position: relative;
    font-size: inherit;
    font-weight: 500;
    line-height: 100%;
    margin: 0;
    z-index: 100;
}
ul.menu > li > a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    white-space: nowrap;
    font-size: 13px;
    color: #2c2837;
    letter-spacing: 0.04em;
    transition: 0.3s;
}
ul.menu > li:hover > a {
    color: #002266;
    transition: 0.3s;
}
ul.menu > li.menu-item-has-children > a {
    justify-content: center;
    padding: 0 4px 0 0;
}
ul.menu li.menu-item-has-children .icon,
.arrow-down {
    width: 10px;
    height: 10px;
    transition: 0.3s;
    box-sizing: content-box;
}
ul.menu li.menu-item-has-children .icon svg {
    fill: #000;
}
@media (hover: hover) {
    ul.menu > li.menu-item-has-children:hover > .icon {
        fill: #002266;
        transform: rotate(180deg);
    }
}
ul.menu > li .sub-menu__wrapper {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 86%;
    left: 0;
    width: 100%;
    min-width: 190px;
    transform: translateY(28px);
    z-index: 10;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    transition: all 0.2s ease-in-out 0s, visibility 0s linear 0.44s, z-index 0s linear 0.01s;
    pointer-events: none;
}
.sub-menu__wrapper .sub-menu {
    padding: 6px 8px 8px;
}
.sub-menu::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: -30px;
    width: 100%;
    height: 30px;
    z-index: 80;
}
.search-btn.mobile {
    display: none;
}
.header-menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-main-black);
    font-weight: 500;
}
.header-menu-item > a {
    padding: 10px 0;
    transition: 0.3s;
}
.header-menu-item a:hover {
    color: #002266;
    transition: 0.3s;
}
.header-menu-item.active .sub-menu__wrapper {
    visibility: visible;
    opacity: 1;
    transform: translateY(28px);
    transition-delay: 0s, 0s, 0.4s;
    pointer-events: all;
}
.sub-menu__wrapper .sub-menu li {
    transition: .2s;
}
.sub-menu__wrapper .sub-menu li:not(:last-of-type) {
    margin: 0;
}
.sub-menu__wrapper .sub-menu a {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    color: #2c2837;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.sub-menu__wrapper .sub-menu li:hover > a {
    color: var(--blue);
    background: var(--cream-warm);
}
.language-switch__item,
.item-with-icon {
    display: flex;
    gap: 5px;
}
.language-switch__item .icon,
.item-with-icon .icon {
    margin: 3px 0 0;
}

@media (min-width: 1024px) {
    ul.menu > li:hover > .sub-menu__wrapper {
        transition-delay: 0s, 0s, 0.4s;
    }
    ul.menu > li:hover > .sub-menu__wrapper,
    .sub-menu > li:hover > .sub-menu__wrapper {
        visibility: visible;
        opacity: 1;
        transform: translateY(28px);
        pointer-events: all;
        box-shadow: 0 12px 30px -6px rgba(10,31,58,.14);
    }
    ul.menu .sub-menu > li.menu-item-has-children:hover > .icon {
        transform: rotate(-90deg);
    }
    /* Закрытое состояние 3-го уровня: та же точка флайаута + лёгкий сдвиг вправо.
       На исчезании меню мягко уезжает вправо на 10px и гаснет; открытие — мгновенное (см. :hover ниже) */
    ul.menu .sub-menu .sub-menu__wrapper {
        top: -28px;
        left: 103%;
        transform: translate(10px, 28px);
    }
    ul.menu .sub-menu > li:hover > .sub-menu__wrapper {
        left: 103%;
        top: -28px;
        transform: translate(0, 28px);
        transition: none;
    }
    .sub-menu > li:hover > .sub-menu__wrapper::before {
        display: block;
        position: absolute;
        width: 25px;
        height: 100%;
        content: "";
        left: -20px;
        top: 0;
        z-index: 0;
    }
    .header.active .menu-item-has-children > .icon {
        width: 14px;
        height: 14px;
    }
    .sub-menu > li:hover > .sub-menu__wrapper > .sub-menu {
        padding: 8px 10px;
    }
}

/* ============================================================
 * Toggle menu (burger) — адаптив
 * ============================================================ */
@media (max-width: 1200px) {
    /* Меню открыто — блокируем прокрутку фона, чтобы хедер не уезжал */
    body.menu-open {
        overflow: hidden;
    }
    .toggle-menu.hidden-desktop {
        display: flex;
    }
    .toggle-menu {
        position: absolute;
        /* left: 0; */
        right: 0;
        width: fit-content;
        margin: 0 auto;
    }
    .toggle-menu {
        background-color: unset;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 6px;
        z-index: 200;
        transition: all 0.5s, background 0s;
    }
    .toggle-menu span {
        display: block;
        width: 36px;
        height: 3px;
        border-radius: 6px;
        background-color: #16163f;
        transition: all 0.5s;
    }
    .header.active {
        background-color: #fff;
    }
    .header.active .toggle-menu span:nth-of-type(1) {
        transform: translate(0px, 8px) rotate(45deg);
    }
    .header.active .toggle-menu span:nth-of-type(2) {
        transform: translate(0px, 0px) rotate(-45deg);
    }
    .header.active .toggle-menu span:last-child {
        opacity: 0;
    }
    .header .menu-wrap {
        display: none;
    }
    .header.active .menu-wrap {
        position: absolute;
        top: 100%;
        left: 0;
        display: flex;
        gap: 12px;
        align-items: flex-start;
        flex-direction: column;
        width: 100vw;
        margin: 0 0 0 -20px;
        padding: 20px;
        background-color: #fff;
        box-shadow: 0 14px 17px -18px #b0b0b0;
        max-height: calc(100vh - var(--header-h, 76px));
        max-height: calc(100dvh - var(--header-h, 76px));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .header.active .menu {
        flex-direction: column;
        gap: 6px;
        width: 100%;
        flex-shrink: 0;
    }

    /* Пункт: ссылка слева, стрелка справа, подменю — на всю ширину ниже */
    .header.active .menu li {
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        padding: 4px 0;
    }
    .header.active .menu li > a {
        flex: 1 1 auto;
        width: auto;
        align-items: flex-start;
        text-align: left;
    }
    .header.active .menu li.current-menu-item > a {
        padding: 8px 12px;
        border-radius: 8px;
        background: var(--cream-warm);
        color: #002266;
        font-weight: 600;
    }
    .header.active .menu-item-has-children > .icon {
        flex: 0 0 auto;
        width: 14px;
        height: 14px;
        margin-left: auto;
        padding: 14px;
        cursor: pointer;
    }
    .header.active .menu-item-has-children.active > .icon {
        transform: rotate(180deg);
    }

    .header.active .sub-menu__wrapper {
        position: static;
        flex-basis: 100%;
        width: 100%;
        display: grid;
        grid-template-rows: 0fr;
        overflow: hidden;
        visibility: visible;
        opacity: 1;
        transform: none;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        pointer-events: none;
        transition: grid-template-rows 0.3s ease;
    }
    .header.active .menu-item-has-children.active > .sub-menu__wrapper {
        grid-template-rows: 1fr;
        pointer-events: all;
    }
    .header.active .sub-menu__wrapper > .sub-menu {
        min-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0 10px;
    }
    .menu-right {
        flex-direction: column;
        align-items: flex-start;
        flex-shrink: 0;
        width: 100%;
    }
    .header.active .header-search {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: var(--cream-warm);
    }
    .header.active .header-search:hover {
        background: #ebe4d6;
    }
    .header.active .menu-right .btn {
        width: 100%;
    }
}


/* ============================================================
 * ============================================================
 *  HOMEPAGE (front-page) — токены, типографика, секции
 *  Контент по макету. Конвенция отступов: margin: 0 0 N.
 * ============================================================
 * ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --cream:        #fbf8f1;
    --cream-warm:   #f3efe6;
    --paper:        #FBF8F2;
    --navy:         #0a1f3a;
    --navy-soft:    #0e2542;
    --blue:         #003399;
    --blue-soft:    #1e3f73;
    --gold:         #ffcc00;
    --gold-deep:    #e0b100;
    --gold-muted:   #b08d4e;
    --slate:        #5a6878;
    --slate-deep:   #2e3d52;

    --ink:          #18283c; /* заголовки на светлом */
    --text:         #4a4a46; /* основной текст */
    --muted:        #8a8a82; /* подписи */
    --line:         #ddd3bd; /* хайрлайны на светлом */
    --line-dark:    rgba(255,255,255,.14);

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-card: 14px;
    --r-lg:   16px;
    --r-btn:  6px;
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--cream);
}
.main {
    display: block;
}
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }
.t-blue { color: var(--blue); }
.t-gold { color: var(--gold-deep); }

/* ---------- Icons ---------- */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex: none;
    vertical-align: middle;
}
.icon.arrow-right { width: 15px; height: 15px; }
.icon.star, .icon.star-half { width: 15px; height: 15px; fill: var(--gold); }
.icon.check { width: 15px; height: 15px; fill: var(--gold-deep); }
/* ---------- Logo ---------- */
.logo {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
}
.logo__img {
    display: block;
    width: auto;
    height: 30px;
}

/* ---------- Header extras (lang + CTA) ---------- */
.lang-switch {
    position: relative;
}
.lang-switch__current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
}
.lang-switch__current--static {
    cursor: default;
}
.lang-switch__current .icon {
    width: 10px;
    height: 10px;
    transition: transform .2s ease;
}
.lang-switch--open .lang-switch__current .icon {
    transform: rotate(180deg);
}
.lang-switch__list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    min-width: 72px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    box-shadow: 0 10px 28px rgba(10, 31, 58, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.lang-switch--open .lang-switch__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-switch__link {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    transition: background .15s ease;
}
.lang-switch__link:hover {
    background: var(--cream-warm);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 26px;
    border: 1px solid transparent;
    border-radius: var(--r-btn);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
}
.btn .icon { width: 14px; height: 14px; }
.btn--sm { padding: 11px 18px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #00257a; }

.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #f0c200; }

.btn--dark, .btn--navy { background: var(--navy); color: #fff; }
.btn--dark:hover, .btn--navy:hover { background: #13294a; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { border-color: #fff; }

.btn--gold-outline { background: transparent; color: var(--gold); border-color: rgba(255,204,0,.5); }
.btn--gold-outline:hover { border-color: var(--gold); }

/* ---------- Shared blocks ---------- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--slate);
}
.eyebrow__dash {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--gold-deep);
    flex: none;
}
.eyebrow--gold { color: var(--gold-deep); }
.eyebrow--gold .eyebrow__dash { background: var(--gold-deep); }
.eyebrow--dark { color: var(--navy); }
.eyebrow--dark .eyebrow__dash { background: var(--navy); }
.eyebrow--center { justify-content: center; }

.h-sec {
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -.01em;
    margin: 0;
}
.h-sec em { color: var(--blue); }
.h-sec--light, .h-sec--light em { color: #f6f1e6; }
.h-sec .t-gold, .h-sec--light .t-gold { color: var(--gold); }

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}
.sec-no {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--slate);
    white-space: nowrap;
    padding: 0 0 6px;
}
.sec-no--light { color: rgba(255,255,255,.5); }

.rule {
    height: 1px;
    background: var(--line);
    margin: 22px 0 0;
}
.rule--light { background: var(--line-dark); }

.stars {
    display: inline-flex;
    gap: 2px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 28px;
}
.card__title {
    font-size: 21px;
    margin: 0 0 12px;
}
.card__text {
    font-size: 15px;
    margin: 0 0 14px;
}
.card__text:last-child { margin: 0; }
.card__kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 16px;
}

/* ============================================================ HERO */
.hero {
    position: relative;
    background: var(--cream);
    padding: 64px 0 80px;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1fr 0.86fr;
    gap: 64px;
    align-items: start;
}
.hero__intro { padding: 24px 0 0; }
.hero__title {
    font-size: 74px;
    line-height: 1.02;
    letter-spacing: -.02em;
    margin: 0 0 26px;
}
.hero__title em { color: var(--blue); }
.hero__lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 23px;
    line-height: 1.35;
    color: #5b6470;
    margin: 0 0 26px;
}
.hero__sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 34px;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 30px;
}
.hero__trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}
.hero__trust strong { color: var(--ink); }
.hero__trust-note { color: var(--muted); }

/* квиз в хиро — обёртка-якорь; сама карточка — блок .quiz */
.hero__quiz {
    min-width: 0;
}

.chat-bubble {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 39px 11px 13px;
    background: #fff;
    border: 1px solid #ddd3bd;
    border-radius: 999px;
    box-shadow: 0 8px 14px rgba(10, 31, 58, .16);
}
.chat-bubble__ava {
    position: relative;
    width: 44px;
    height: 44px;
    flex: none;
    background: linear-gradient(135deg, #244a7c 0%, #0a1f3a 100%);
    border-radius: 50%;
}
.chat-bubble__ava picture,
.chat-bubble__ava img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.chat-bubble__online {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ade80;
    border: 2px solid #fff;
}
.chat-bubble__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.chat-bubble__name { font-size: 13.5px; color: #0a1f3a; }
.chat-bubble__status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: #16a34a;
}
.chat-bubble__status::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: chat-bubble-pulse 2s ease-out infinite;
}
@keyframes chat-bubble-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); }
    70%  { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .chat-bubble__status::before { animation: none; }
}
.chat-bubble__note { font-weight: 400; color: #5a6878; }

/* ============================================================ STATS */
.stats {
    background: var(--cream);
    padding: 0 0 12px;
}
.stats__bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--navy);
    border-radius: 16px;
    padding: 28px 8px;
}
.stat {
    text-align: center;
    padding: 4px 16px;
}
.stat + .stat { border-left: 1px solid rgba(255,244,200,.14); }
.stat__num {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 500;
    line-height: 1;
    color: #f6f1e6;
    margin: 0 0 10px;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}
.stat__num .icon.star { width: 22px; height: 22px; }
.stat__unit {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--gold);
}
.stat__label {
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(255,255,255,.6);
}

/* ============================================================ SHIFT */
.shift {
    background: var(--cream);
    padding: 88px 0 96px;
}
.shift .eyebrow { margin: 0 0 22px; }
.shift .h-sec { margin: 0 0 44px; }
.shift__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 0 0 40px;
}
.card--quiet {
    background: #fff;
    border-color: var(--line);
}
.shift__cards .card__title { font-size: 17px; margin: 0 0 12px; }
.shift__cards .card__text { font-size: 14px; color: var(--muted); }
.shift__note {
    max-width: 1000px;
    font-size: 16px;
    color: var(--text);
    margin: 0 0 44px;
}

/* baner with passports */
.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 36px 40px;
    overflow: hidden;
}
.banner__body { max-width: 760px; }
.banner__lead {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 8px;
}
.banner__text { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.banner__media { flex: none; }
.banner__media img,
.banner__media picture { display: block; }

/* ============================================================ PROCESS */
.process {
    background: var(--cream);
    padding: 24px 0 96px;
}
.process .h-sec { margin: 0; }
.process__grid {
    margin: 44px 0 0;
    overflow: visible; /* desktop: не обрезаем; swiper-overflow включаем только на мобиле */
}
.process__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.process__dots { display: none; } /* пагинация только на мобиле */
.step {
    padding: 34px 30px 30px;
    border-left: 1px solid var(--line);
}
.step:first-child { border-left: none; padding-left: 0; }
.step__kicker {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--blue);
    margin: 0 0 18px;
}
.step__title {
    font-size: 22px;
    margin: 0 0 16px;
}
.step__text {
    font-size: 14px;
    color: var(--text);
    margin: 0 0 24px;
}
.step__when {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.process__cta {
    text-align: center;
    margin: 48px 0 0;
}
.process__cta-note {
    font-size: 13px;
    color: var(--muted);
    margin: 16px 0 0;
}

/* mid-process recover card */
.recover {
    display: flex;
    gap: 140px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gold);
    border-left-width: 4px;
    border-radius: 12px;
    padding: 37px 45px 37px 48px;
    margin: 70px 0 0;
}
.recover__body { flex: 1; }
.recover .eyebrow { font-weight: 700; } /* Figma: Plus Jakarta Sans Bold */
.recover__title {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.39px;
    color: var(--navy);
    margin: 0 0 18px;
}
.recover__title em { color: var(--blue-soft); }
.recover__text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--slate-deep);
    margin: 0 0 12px;
}
.recover__text:last-child { margin: 0; }
.recover__text strong { color: var(--navy); }
.recover__stats {
    flex: none;
    display: flex;
    gap: 32px;
    padding: 19px 0 0;
    border-top: 1px dashed var(--line);
}
.recover__num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.45px;
    color: var(--navy);
    margin: 0 0 6px;
}
.recover__num-accent { color: var(--blue-soft); }
.recover__lbl {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--slate);
    line-height: 1.4;
    max-width: 73px;
}

/* ============================================================ WHY US (dark) */
.whyus {
    background: var(--navy);
    padding: 88px 0 90px;
}
.whyus__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin: 44px 0 0;
}
.card--dark {
    background: var(--navy-soft);
    border-color: rgba(255,255,255,.1);
    padding: 38px 36px;
}
.card--dark .card__kicker { color: rgba(255,255,255,.5); }
.card--dark .card__title { color: #f6f1e6; font-size: 26px; margin: 0 0 22px; }
.card--dark .card__title em { color: rgba(255,255,255,.85); }
.card--dark .card__text { color: rgba(255,255,255,.72); }
.card--dark .card__text strong { color: #fff; }
.whyus__cta { text-align: center; margin: 54px 0 0; }
.whyus__cta-head {
    font-family: var(--font-display);
    font-size: 24px;
    color: #f6f1e6;
    margin: 0 0 24px;
}
.whyus__cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ============================================================ SERVICES */
.services {
    background: var(--cream);
    padding: 90px 0 96px;
}
.services .h-sec { font-size: 48px; }
.services__grid {
    margin: 44px 0 0;
    overflow: visible; /* desktop: не обрезаем; swiper-overflow включаем только на мобиле */
}
.services__track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.services__dots { display: none; } /* пагинация только на мобиле */
.service { padding: 37px 33px; background: #fff; position: relative; }
.service__no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 22px;
    color: #1e3f73;
    margin: 0 0 20px;
}
.service__title { font-size: 22px; letter-spacing: -.01em; margin: 0 0 14px; }
.service__text { font-size: 14px; color: #2e3d52; line-height: 1.65; margin: 0 0 20px; }
.service__meta {
    padding: 19px 0 0;
    border-top: 1px dashed var(--line);
    font-size: 12px;
    font-weight: 500;
    color: var(--slate);
    letter-spacing: .04em;
}

/* ============================================================ FOUNDER (dark) */
.founder {
    background: var(--cream);
    padding: 0 0 96px;
}
.founder__card {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 56px;
    background: var(--navy);
    border-radius: 16px;
    overflow: hidden;
}
.founder__media {
    align-self: end;
}
.founder__media img,
.founder__media picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder__body { padding: 56px 56px 56px 0; }
.founder__title { font-size: 44px; margin: 0 0 26px; }
.founder__text {
    font-size: 15.5px;
    color: rgba(255,255,255,.74);
    margin: 0 0 18px;
}
.founder__sign {
    margin: 30px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--line-dark);
}
.founder__sign em {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--gold);
}
.founder__role {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin: 0 0 0 14px;
}

/* ============================================================ TEAM */
.team {
    background: var(--cream-warm);
    padding: 90px 0 96px;
}
.team .h-sec { margin: 0 0 14px; }
.team__lead { font-size: 15px; color: var(--muted); margin: 0 0 40px; }
.team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.team__grid--2 {
    grid-template-columns: 1fr 1fr;
    margin: 22px 0 0;
}
.person { background: #fff; border-radius: 16px; display: flex; flex-direction: column; }
.person__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
}
.person__ava {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    background: var(--cream-warm);
    margin: 0 0 11px;
}
.person__head .person__ava { margin: 0; }
.person__ava--sm {
    width: 44px;
    height: 44px;
    border-radius: 22px;
}
.person__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person__name { font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--navy); margin: 0 0 4px; }
.person__role {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 7px;
}
.person__text { font-size: 13.5px; color: var(--slate-deep); line-height: 1.65; }
.person--note { background: rgba(10, 31, 58, .03); justify-content: center; }
.person--note .person__name { margin: 0 0 8px; }

/* ============================================================ LEGACY */
.legacy {
    background: var(--cream);
    padding: 96px 0 100px;
    text-align: center;
}
.legacy .eyebrow { margin: 0 0 30px; }
.legacy__title {
    font-size: 38px;
    font-weight: 300;
    line-height: 1.3;
    max-width: 1000px;
    margin: 0 auto 26px;
}
.legacy__title em { color: var(--blue); }
.legacy__sub {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--slate);
    margin: 0 0 36px;
}

/* ============================================================ REVIEWS */
.reviews {
    background: var(--cream);
    padding: 0 0 96px;
}
.reviews__score { text-align: right; }
.reviews__score .stars { margin: 0 0 6px; }
.reviews__score strong {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--ink);
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 0 8px;
}
.reviews__score-note {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 6px 0 0;
}
.reviews .h-sec { font-size: 48px; }
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 44px 0 0;
}
.review { padding: 29px 33px; border-radius: 12px; }
.review .stars { margin: 0 0 18px; }
.review__title {
    font-size: 18px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.review__text {
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.5;
    color: #3f4a52;
    margin: 0 0 24px;
}
.review__by { font-size: 12px; line-height: 1.5; color: var(--muted); }
.review__by strong { color: var(--ink); }
.badge {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2fa84f;
    background: rgba(47,168,79,.12);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ============================================================ PRICING */
.pricing {
    background: var(--cream);
    padding: 0 0 96px;
}
.pricing__grid {
    margin: 44px 0 0;
    overflow: visible; /* desktop: не обрезаем; swiper-overflow включаем только на мобиле главной */
}
.pricing__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}
.pricing__dots { display: none; } /* пагинация только на мобиле главной */
.plan {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.plan__tier {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 16px;
}
.plan__tier--gold { color: var(--gold); }
.plan__name {
    font-size: 22px;
    line-height: 1.15;
    margin: 0 0 18px;
    min-height: 50px;
}
.plan__name em { color: var(--blue); }
.plan__price {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    margin: 0 0 10px;
}
.plan__cur { font-size: 20px; vertical-align: super; color: var(--muted); }
.plan__meta {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--line);
}
.plan__lead { font-size: 13.5px; color: var(--text); margin: 0 0 22px; }
.plan__list { list-style: none; margin: 0 0 26px; padding: 0; }
.plan__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text);
    margin: 0 0 12px;
}
.plan__check { flex-shrink: 0; margin: 3px 0 0; }
.plan__btn { margin: auto 0 0; width: 100%; }
.plan__btns { margin: auto 0 0; display: flex; flex-direction: column; gap: 10px; }
.plan__btns .plan__btn { margin: 0; }
.plan__btn.btn--ghost { border-color: var(--navy); }
.plan__btn.btn--ghost:hover { border-color: var(--navy); }

.plan--featured {
    background: var(--navy);
    border-color: var(--navy);
    position: relative;
    padding-top: 38px;
}
.plan--featured .plan__name,
.plan--featured .plan__price { color: #f6f1e6; }
.plan--featured .plan__name em { color: var(--gold); }
.plan--featured .plan__cur { color: rgba(255,255,255,.6); }
.plan--featured .plan__meta { color: rgba(255,255,255,.6); border-color: var(--line-dark); }
.plan--featured .plan__lead,
.plan--featured .plan__list li { color: rgba(255,255,255,.8); }
.plan__flag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: var(--navy);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 0 var(--r-card) 0 var(--r-card);
}

.pricing__milestones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 40px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 22px 32px;
    margin: 24px 0 0;
}
.pricing__milestones-head {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--ink);
}
.pricing__milestones-head em { color: var(--blue); }
.pricing__milestones-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    font-size: 13px;
    color: var(--muted);
}

.guarantee {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--navy);
    border-radius: var(--r-lg);
    padding: 44px 48px;
    margin: 28px 0 0;
}
.guarantee__text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 22px;
    line-height: 1.4;
    color: #f6f1e6;
    margin: 0 0 24px;
}
.guarantee__sign {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}
.guarantee__clause {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line-dark);
    border-radius: var(--r-card);
    padding: 28px 30px;
}
.guarantee__clause-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 16px;
}
.guarantee__clause-text {
    font-size: 15px;
    color: rgba(255,255,255,.82);
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line-dark);
}
.guarantee__clause-note { font-size: 13px; color: rgba(255,255,255,.6); }

/* ============================================================ FAQ */
.faq {
    background: var(--cream);
    padding: 90px 0 96px;
}
.faq__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    margin: 48px 0 0;
}
.faq__item {
    padding: 28px 33px;
    border-bottom: 1px solid var(--line);
}
.faq__item:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
.faq__item:nth-child(even) { padding-right: 0; }
.faq__q { font-size: 20px; font-weight: 400; line-height: 1.6; margin: 0 0 12px; }
.faq__a { font-size: 14.5px; line-height: 1.7; color: var(--text); }

.faq__ask {
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 41px;
    margin: 48px 0 0;
}
.faq__ask-head {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 24px;
    color: var(--ink);
    margin: 0 0 8px;
}
.faq__ask-text { font-size: 14px; color: var(--slate); margin: 0 0 24px; }

/* ============================================================ TOGETHER */
.together {
    background: var(--cream);
    padding: 0 0 96px;
}
.together__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 48px 50px;
}
.together .h-sec { font-size: 34px; margin: 0 0 22px; }
.together__text { font-size: 15px; color: var(--text); margin: 0 0 18px; }
.together__text + .btn { margin: 10px 0 0; }
.together__media img,
.together__media picture {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-card);
}

/* ============================================================ CTA FINAL (dark) */
.cta-final {
    background: var(--cream);
    padding: 0 0 96px;
}
.cta-final__card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--navy);
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 560px;
}
.cta-final__body { padding: 56px 0 56px 56px; }
.cta-final__title { font-size: 42px; margin: 0 0 24px; }
.cta-final__text {
    font-size: 15px;
    color: rgba(255,255,255,.72);
    max-width: 460px;
    margin: 0 0 8px;
}
.cta-final .rule--light { margin: 28px 0 30px; max-width: 460px; }
.cta-final__contacts {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.contact__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 6px;
}
.contact__label--flag {
    line-height: 0;
    letter-spacing: normal;
}
.contact__flag {
    display: inline-block;
    height: 18px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
    vertical-align: middle;
}
.contact__value {
    font-family: var(--font-display);
    font-size: 22px;
    color: #f6f1e6;
    margin: 0 0 3px;
}
.contact__link {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.contact__link:hover,
.contact__link:focus-visible { color: var(--gold-deep); }
.contact__note { font-size: 12.5px; color: rgba(255,255,255,.5); }
.cta-final__media {
    position: relative;
    align-self: end;
}
.cta-final__media::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%,-50%);
    background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%);
}
.cta-final__media img,
.cta-final__media picture {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================================ COMPANY (footer dark) */
.company {
    background: var(--navy);
    padding: 80px 0 84px;
}
.company__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}
.company__title { font-size: 28px; font-weight: 300; margin: 0 0 22px; }
.company__text {
    font-size: 14.5px;
    color: rgba(255,255,255,.7);
    max-width: 440px;
    margin: 0 0 28px;
}
.company__panel {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 29px 33px;
}
.company__rows { margin: 0 0 22px; }
.company__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 15px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.company__row:last-child { border-bottom: none; padding-bottom: 0; }
.company__row dt {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}
.company__row dd {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #f4efe3;
    text-align: right;
}
.company__note {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,.55);
}
.company__note strong { color: #fff; }

/* ============================================================ FOOTER (light) */
.footer {
    background: var(--cream-warm);
    padding: 56px 0 30px;
}
.footer__top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 0 0 44px;
}
.footer__tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--muted);
    margin: 18px 0 20px;
}
.footer__social {
    display: flex;
    gap: 12px;
}
.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--blue);
}
.footer__social-icon { display: block; width: auto; height: 22px; }
.footer__col-title {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 18px;
}
.footer__menu { list-style: none; margin: 0; padding: 0; }
.footer__menu li { margin: 0 0 12px; }
.footer__menu a { font-size: 14px; color: var(--text); transition: .2s; }
.footer__menu a:hover { color: var(--blue); }

/* Контакты в футере */
.footer-phones,
.footer-contacts-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.footer-phones { margin: 0 0 20px; }
.footer-contacts-text p { margin: 0 0 12px; }
.footer-semibold {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}
.footer-text-blue {
    font-size: 12px;
    color: var(--blue);
    margin: 0 0 12px;
}
.footer-phones-number {
    display: inline-block;
    color: var(--text);
    transition: .2s;
}
.footer-phones-number:hover,
.footer-email a:hover { color: var(--blue); }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
}
.footer__copy { font-size: 12.5px; color: var(--muted); }
.footer__legal {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12.5px;
}
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--ink); }

/* ============================================================
 * Адаптив
 * ============================================================ */
@media (max-width: 1100px) {
    .hero__title { font-size: 60px; }
    .h-sec { font-size: 36px; }
    .founder__card { grid-template-columns: 0.9fr 1fr; gap: 36px; }
    .founder__body { padding: 44px 40px 44px 0; }
}

@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__intro { padding: 0; }

    /* на узких экранах — компактный кружок без текста */
    .chat-bubble { right: 16px; bottom: 16px; gap: 0; padding: 6px; }
    .chat-bubble__text { display: none; }

    .shift__cards { grid-template-columns: 1fr 1fr; }
    .process__track { grid-template-columns: 1fr 1fr; }
    .step { border-left: 1px solid var(--line); padding: 28px 26px; }
    .step:first-child { padding-left: 26px; }
    .step:nth-child(odd) { border-left: none; padding-left: 0; }

    .whyus__grid { grid-template-columns: 1fr; }
    .services__track { grid-template-columns: 1fr; }
    .pricing__track { grid-template-columns: 1fr 1fr; }
    .guarantee { grid-template-columns: 1fr; gap: 28px; }
    .reviews__grid { grid-template-columns: 1fr; }
    .team__grid { grid-template-columns: 1fr; }
    .team__grid--2 { grid-template-columns: 1fr; }

    .recover { flex-direction: column; align-items: stretch; gap: 28px; }
    .recover__stats {
        padding: 24px 0 0;
        border-top: 1px dashed var(--line);
        width: 100%;
    }

    .company__grid { grid-template-columns: 1fr; gap: 36px; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 720px) {
    .hero { padding: 40px 0 56px; }
    .hero__title { font-size: 46px; }
    .hero__lead { font-size: 20px; }
    div h2.h-sec { font-size: 30px; }
    .home h2[class] { font-size: 30px; }
    .shift, .services, .team, .faq, .legacy { padding-top: 56px; padding-bottom: 60px; }
    .whyus { padding: 56px 0; }

    .stats__bar { grid-template-columns: 1fr 1fr; gap: 26px 0; padding: 28px 10px; }
    .stat { padding: 4px 16px; }
    .stat:nth-child(odd) { border-left: none; }
    .stat:nth-child(even) { border-left: 1px solid rgba(255,244,200,.14); }

    .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .reviews__score { text-align: left; }

    .shift__cards { grid-template-columns: 1fr; }

    /* Process: горизонтальный swiper-слайдер на мобиле */
    .process__grid {
        overflow: hidden; /* swiper прячет соседние слайды */
        --swiper-pagination-color: var(--blue);
        --swiper-pagination-bullet-inactive-color: var(--line);
        --swiper-pagination-bullet-inactive-opacity: 1;
    }
    .process__track {
        display: flex; /* перебиваем grid — раскладкой управляет swiper */
        grid-template-columns: none;
        align-items: stretch; /* карточки равной высоты */
    }
    .step.swiper-slide,
    .step.swiper-slide:first-child {
        height: auto;
        border: 1px solid var(--line);
        border-top: 1px solid var(--line);
        border-radius: 6px;
        padding: 26px 22px;
        background: #fff;
    }
    .process__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        position: static; /* перебиваем абсолютное позиционирование swiper */
        margin-top: 22px;
    }

    /* В слайдере карточки появляются по свайпу — reveal-анимация лишняя */
    .process__track .step.reveal { opacity: 1; }
    .process__track .step.reveal.is-visible { animation: none; }

    /* Services: горизонтальный swiper-слайдер на мобиле */
    .services__grid {
        overflow: hidden; /* swiper прячет соседние слайды */
        --swiper-pagination-color: var(--blue);
        --swiper-pagination-bullet-inactive-color: var(--line);
        --swiper-pagination-bullet-inactive-opacity: 1;
    }
    .services__track {
        display: flex; /* перебиваем grid — раскладкой управляет swiper */
        grid-template-columns: none;
        gap: 0; /* сбрасываем grid-gap: отступы между слайдами задаёт swiper (spaceBetween) */
        align-items: stretch; /* карточки равной высоты */
    }
    .service.swiper-slide { height: auto; }
    .services__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        position: static; /* перебиваем абсолютное позиционирование swiper */
        margin-top: 22px;
    }
    .services__track .service.reveal { opacity: 1; }
    .services__track .service.reveal.is-visible { animation: none; }

    .pricing__track { grid-template-columns: 1fr; }
    .plan__name { min-height: 0; }

    /* Pricing: swiper-слайдер только на главной (part общий с tpl-pricing) */
    .home .pricing__grid {
        overflow: hidden; /* swiper прячет соседние слайды */
        --swiper-pagination-color: var(--blue);
        --swiper-pagination-bullet-inactive-color: var(--line);
        --swiper-pagination-bullet-inactive-opacity: 1;
    }
    .home .pricing__track {
        display: flex; /* перебиваем grid — раскладкой управляет swiper */
        grid-template-columns: none;
        gap: 0; /* сбрасываем grid-gap: отступы между слайдами задаёт swiper (spaceBetween) */
        align-items: stretch; /* карточки равной высоты */
    }
    .home .plan.swiper-slide { height: auto; }
    .home .pricing__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        position: static; /* перебиваем абсолютное позиционирование swiper */
        margin-top: 22px;
    }
    .home .pricing__track .plan.reveal { opacity: 1; }
    .home .pricing__track .plan.reveal.is-visible { animation: none; }

    .banner { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
    .banner__media { align-self: center; }

    .founder__card { grid-template-columns: 1fr; }
    .founder__media { max-height: 380px; }
    .founder__body { padding: 0 28px 40px; }
    .founder__title { font-size: 30px; }

    .guarantee { padding: 32px 26px; }
    .together__card { grid-template-columns: 1fr; gap: 30px; padding: 32px 28px; }

    .faq__grid { grid-template-columns: 1fr; }
    .faq__item, .faq__item:nth-child(odd), .faq__item:nth-child(even) {
        padding: 26px 0;
        border-right: none;
    }
    .faq__item:last-child { border-bottom: none; }

    .cta-final__card { grid-template-columns: 1fr; min-height: 0; }
    .cta-final__body { padding: 40px 28px; }
    .cta-final__title { font-size: 32px; }
    .cta-final__media { max-width: 340px; margin: 0 auto; }
    .cta-final .rule--light, .cta-final__text { max-width: none; }

    .pricing__milestones { flex-direction: column; align-items: flex-start; }
    .pricing__milestones-list { margin: 0; }

    .footer__top { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .footer__col--contacts { grid-column: 1 / -1; }
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============================================================
 * ABOUT PAGE — unique sections
 * ============================================================ */

/* ---- About Hero ---- */
.about-hero { background: var(--cream); padding: 70px 0; }
.about-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}
.about-hero__content {
    display: flex;
    flex-direction: column;
    gap: 21px;
}
.about-hero__heading { margin: 0; }
.about-hero__heading .line--serif {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 52px;
    line-height: 1.16;
    color: var(--navy);
    font-variation-settings: "SOFT" 0, "WONK" 1;
}
.about-hero__heading .line--italic {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 55.8px;
    line-height: 1.16;
    color: var(--blue);
    font-variation-settings: "SOFT" 0, "WONK" 1;
}
.about-hero__body {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 19px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 570px;
}
.about-hero__ctas {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-top: 17px;
    flex-wrap: wrap;
}
.about-hero__image {
    border-radius: 16px;
    overflow: hidden;
    height: 460px;
    background: var(--cream-warm);
}
.about-hero__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- About Mission ---- */
.about-mission { background: var(--cream); padding: 0 0 70px; }
.about-mission__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1px;
    gap: 24px;
}
.about-mission__heading {
    font-family: var(--font-display);
    font-size: 31.3px;
    font-weight: 400;
    line-height: 1.33;
    letter-spacing: -.02em;
    margin: 17px 0 0;
    font-variation-settings: "SOFT" 0, "WONK" 1;
}
.about-mission__heading .part--normal { font-weight: 600; color: var(--navy); }
.about-mission__heading .part--italic { font-style: italic; color: var(--blue); }
.about-mission__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    margin-top: 1px;
}
.about-mission__col {
    padding: 27px 27px 52px 26px;
    border-right: 1px solid var(--line);
}
.about-mission__col:last-child { border-right: none; }
.about-mission__col h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16.9px;
    line-height: 1.69;
    color: var(--navy);
    letter-spacing: -.01em;
    margin: 0 0 8px;
    font-variation-settings: "SOFT" 0, "WONK" 1;
}
.about-mission__col p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---- About Principles ---- */
.about-principles { background: var(--cream-warm); padding: 86px 0 78px; }
.about-principles__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 30px;
}
.about-principles__heading {
    font-family: var(--font-display);
    font-size: 27.7px;
    font-weight: 400;
    line-height: 1.32;
    letter-spacing: -.016em;
    margin: 8px 0 0;
    font-variation-settings: "SOFT" 0, "WONK" 1;
}
.about-principles__heading .part--normal { font-weight: 600; color: var(--navy); }
.about-principles__heading .part--italic { font-style: italic; color: var(--blue); }
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
}
.principle {
    display: flex;
    gap: 26px;
    align-items: flex-start;
    padding: 34px 36px 35px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.principle:nth-child(even) { border-right: none; }
.principle__badge {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    color: var(--blue);
}
.principle__body { flex: 1; }
.principle__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17.5px;
    line-height: 1.71;
    color: var(--navy);
    letter-spacing: -.01em;
    margin: 0 0 8px;
}
.principle__text { font-size: 14.5px; line-height: 1.58; color: var(--muted); margin: 0 0 8px; }
.principle__tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--muted);
    text-transform: uppercase;
    margin: 0;
}

/* ---- About responsive ---- */
@media (max-width: 1024px) {
    .about-hero__grid { grid-template-columns: 1fr; }
    .about-hero__image { height: 320px; }
    .about-mission__cols { grid-template-columns: repeat(2, 1fr); }
    .about-mission__col:nth-child(2) { border-right: none; }
    .principles-grid { grid-template-columns: 1fr; }
    .principle { border-right: none; }
}
@media (max-width: 640px) {
    .about-hero__heading .line--serif { font-size: 36px; }
    .about-hero__heading .line--italic { font-size: 38px; }
    .about-hero__ctas { flex-direction: column; align-items: flex-start; }
    .about-mission__cols { grid-template-columns: 1fr; }
    .about-mission__col { border-right: none; }
    .about-mission__header { flex-direction: column; align-items: flex-start; }
    .about-principles__header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================ SERVICES PAGE */

/* --- Utility --- */
.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
    background: var(--cream);
    padding: 10px 0;
    /* border-bottom: 1px solid var(--line); */
}
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--muted);
}
a.breadcrumbs__link {
    color: var(--muted);
    transition: color .15s;
}
a.breadcrumbs__link:hover { color: var(--ink); }
.breadcrumbs__separator { color: var(--muted); }
.breadcrumbs__current { color: var(--text); }

/* --- Services grid --- */
.svc-page {
    background: var(--cream);
    padding: 48px 0 80px;
}
.svc-page__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.svc-page__intro {
    align-self: start;
    padding: 20px 12px 0 0;
}
.svc-page__title {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -.02em;
    margin: 0 0 24px;
}
.svc-page__lead {
    font-size: 14px;
    color: var(--text);
    line-height: 1.65;
}

/* --- Service card --- */
.svc-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.svc-card__image {
    height: 128px;
    background: var(--cream-warm);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}
.svc-card__image--photo {
    padding: 0;
}
.svc-card__image picture,
.svc-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.svc-card__image-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.svc-card__body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.svc-card__title {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 10px;
}
.svc-card__desc {
    font-size: 13px;
    color: var(--text);
    line-height: 1.55;
    margin: 0 0 18px;
    flex: 1;
}
.svc-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.svc-card__btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
}
.svc-card__more {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    transition: border-color .2s;
}
.svc-card__more:hover { border-color: var(--ink); }

/* --- Why box --- */
.why-box {
    background: var(--cream);
    padding: 0 0 0;
}
.why-box__inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 40px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-left: 3px solid var(--gold-deep);
}
.why-box__quote {
    font-family: var(--font-display);
    font-size: 40px;
    line-height: 1;
    color: var(--gold-deep);
    flex: none;
    margin-top: 2px;
}
.why-box__title {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 10px;
}
.why-box__text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.65;
    margin: 0;
}

/* --- Speed table --- */
.speed {
    background: var(--cream);
    padding: 60px 0 96px;
}
.speed__heading {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.01em;
    margin: 0 0 32px;
}
.speed__heading em {
    color: var(--blue);
    font-style: italic;
}
.speed__table-wrap { overflow-x: auto; }
.speed__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.speed__th {
    background: var(--navy);
    color: rgba(255,255,255,.65);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: left;
    padding: 15px 28px;
}
.speed__th--term { width: 32%; }
.speed__row:nth-child(even) { background: var(--cream-warm); }
.speed__td {
    padding: 15px 28px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.speed__td--term {
    font-weight: 500;
    color: var(--ink);
}
.speed__td--accent { color: var(--blue); }

/* --- Services contact (dark) --- */
.svc-contact {
    background: var(--navy);
    padding: 90px 0 96px;
}
.svc-contact__inner {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 64px;
    align-items: start;
}
.svc-contact__title {
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -.01em;
    color: #f6f1e6;
    margin: 0 0 20px;
}
.svc-contact__text {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
    max-width: 440px;
    margin: 0;
}

/* --- Lead form — tod-forms dark theme --- */
#tod-form-lead_consultation.tod-form-wrapper {
    --tod-color-primary: #ffcc00;
    --tod-color-primary-hover: #f0c200;
    --tod-color-primary-focus: rgba(255,204,0,.15);
    --tod-color-input-bg: rgba(255,255,255,.07);
    --tod-color-input-bg-hover: rgba(255,255,255,.11);
    --tod-color-input-border: rgba(255,255,255,.14);
    --tod-color-error: #ff9b9b;
    --tod-color-error-bg: rgba(220,38,38,.16);
    --tod-color-error-border: #ff6b6d;
    --tod-color-text: #f4efe3;
    --tod-color-text-muted: rgba(255,255,255,.7);
    --tod-color-text-faint: rgba(255,255,255,.38);
    --tod-radius-input: var(--r-btn, 10px);
    --tod-radius-button: 8px;
    --tod-font-size-button: 16px;
}
#tod-form-lead_consultation .tod-form { margin-bottom: 0; }
#tod-form-lead_consultation .tod-form__title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: #f4efe3;
    margin: 0 0 16px;
}
#tod-form-lead_consultation .tod-form__title em { font-style: italic; color: var(--gold); }
#tod-form-lead_consultation .tod-form__subtitle {
    font-size: 16px;
    color: #a8b2c0;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 28px;
}
@media (max-width: 768px) {
    #tod-form-lead_consultation .tod-form__title { font-size: 32px; }
}
#tod-form-lead_consultation .tod-form__submit {
    color: #0a1f3a;
    width: 100%;
    justify-content: center;
    padding: 18px;
}

/* === tod-forms — глобальные переопределения ===
 * Размеры поля описаны переменными (--tod-input-pad-*, --tod-input-line):
 * из них считается высота абсолютной подписи ошибки. Формы, которым нужны
 * другие отступы, переопределяют переменные на .tod-form-wrapper, а не padding.
 * Селекторы .tod-form .tod-form__* — чтобы бить базовый tod-forms.css плагина
 * вне зависимости от порядка подключения. */
.tod-form-wrapper {
    --tod-input-pad-y: 14px;
    --tod-input-pad-x: 16px;
    --tod-input-line: 1.2;
}
.tod-form .tod-form__input,
.tod-form .tod-form__textarea,
.tod-form .tod-form__select {
    padding: var(--tod-input-pad-y) var(--tod-input-pad-x);
    color: var(--tod-color-text);
    line-height: var(--tod-input-line);
    letter-spacing: .3px;
}
/* Фокус: фон берём из темы формы, а не белый — иначе на тёмных секциях
 * получается светлый текст на белом фоне. */
.tod-form .tod-form__input:focus,
.tod-form .tod-form__textarea:focus,
.tod-form .tod-form__select:focus {
    background: var(--tod-color-input-bg-focus, var(--tod-color-input-bg-hover));
    color: var(--tod-color-text);
    border-color: var(--tod-color-primary);
}
.tod-form .tod-form__input--invalid,
.tod-form .tod-form__textarea.tod-form__input--invalid,
.tod-form .tod-form__select.tod-form__input--invalid {
    background: var(--tod-color-error-bg);
    color: var(--tod-color-text);
}
/* Подпись ошибки — плашка. Цвет текста just-validate ставит инлайном (#b81111),
 * CSS его не перебьёт, поэтому фон под подписью всегда светлый — иначе на тёмных
 * формах тёмно-красный текст не читается. */
.tod-form .tod-form__error {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--tod-color-error-chip-bg, #ffe4e4);
    line-height: 1.25;
}
/* Ошибка поля — у правого края инпута. На мобильных плашка компактнее и сидит
 * серединой на нижней границе поля (низ группы = низ инпута, т.к. инпут —
 * последний элемент в потоке). Только прямой потомок группы: у textarea ошибка
 * ложится в .tod-form__control, у радио/чекбоксов — в свои контейнеры, там она
 * остаётся в потоке. */
.tod-form__group {
    position: relative;
}
.tod-form__group > .tod-form__error {
    position: absolute;
    right: 8px;
    bottom: 0;
    transform: translateY(50%);
    max-width: 80%;
    margin: 0;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 11px;
    text-align: right;
    pointer-events: none;
}
/* С планшета плашка целиком помещается в поле — центрируем её по высоте инпута:
 * половина внутренней высоты поля + нижняя граница. */
@media (min-width: 768px) {
    .tod-form__group > .tod-form__error {
        bottom: calc((var(--tod-input-pad-y) * 2 + var(--tod-font-size-base) * var(--tod-input-line)) / 2 + 1px);
        max-width: 60%;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: var(--tod-font-size-small);
    }
}
/* У textarea высота произвольная — ошибку оставляем в потоке под полем. */
.tod-form__group:has(> .tod-form__textarea) > .tod-form__error {
    position: static;
    max-width: none;
    margin-top: 4px;
    transform: none;
    text-align: left;
}
div.tod-form__row {
    flex-direction: column;
}
.tod-form__checkbox a {
    text-decoration: underline;
}

/* ---- Services page responsive ---- */
@media (max-width: 1024px) {
    .svc-page__grid { grid-template-columns: repeat(2, 1fr); }
    .svc-contact__inner { grid-template-columns: 1fr; gap: 48px; }
    .svc-contact__title { font-size: 34px; }
}
@media (max-width: 720px) {
    .svc-page { padding: 32px 0 60px; }
    .svc-page__grid { grid-template-columns: 1fr; gap: 16px; }
    .svc-page__intro { padding: 0; }
    .svc-page__title { font-size: 40px; }
    .why-box__inner { flex-direction: column; gap: 8px; padding: 24px 24px; }
    .speed__heading { font-size: 32px; }
    .speed__td, .speed__th { padding: 12px 16px; }
    .svc-contact { padding: 60px 0 64px; }
    .svc-contact__title { font-size: 28px; }
}

/* ============================================================
 * PRICING PAGE
 * ============================================================ */

/* --- Hero --- */
.pricing-hero {
    background: var(--cream);
    padding: 64px 0 56px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.pricing-hero .eyebrow { margin-bottom: 20px; }
.pricing-hero__title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--navy);
    margin: 0 0 18px;
}
.pricing-hero__title em {
    font-style: italic;
    color: var(--blue);
}
.pricing-hero__subtitle {
    font-size: 16px;
    color: var(--slate);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}
.pricing-hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pricing-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: .02em;
}
.pricing-hero__badge-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* --- Plans (pricing cards section wrapper) --- */
.plans {
    background: var(--paper);
    padding: 56px 0 72px;
    border-bottom: 1px solid var(--line);
}

/* --- Compare All Packages --- */
.compare {
    background: #fff;
    padding: 81px 0;
    border-bottom: 1px solid var(--line);
}
.compare .eyebrow { margin-bottom: 12px; }
.compare__title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -.015em;
    color: var(--navy);
    text-align: center;
    margin: 0 0 11px;
}
.compare__subtitle {
    max-width: 520px;
    margin: 0 auto 48px;
    text-align: center;
    color: var(--slate);
    font-size: 15px;
    line-height: 1.6;
}
.compare__wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.compare__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 640px;
}
.compare__head-row .compare__th {
    background: #f7f2e8;
    border-bottom: 2px solid var(--line);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--slate);
    padding: 14px 18px 16px;
    text-align: center;
}
.compare__head-row .compare__th--feature {
    text-align: left;
    font-weight: 400;
    color: #6b7785;
}
.compare__head-row .compare__th--wrai {
    background: var(--navy);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.04px;
    border-radius: 8px 8px 0 0;
}
.compare__group-row .compare__group-th {
    background: #f7f2e8;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.76px;
    text-transform: uppercase;
    color: #6b7785;
    padding: 10px 18px 11px;
    text-align: left;
}
.compare__td {
    padding: 14px 18px;
    font-size: 13.5px;
    color: #2e3d52;
    border-bottom: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
}
.compare__td--label { text-align: left; font-weight: 500; color: var(--navy); }
.compare__td--wrai { background: rgba(10,31,58,.03); }
.compare__td--check { color: #2d6a4f; font-weight: 700; font-size: 16px; }
.compare__td--dash  { color: #6b7785; font-weight: 400; font-size: 16px; }
.compare__td--value { color: var(--blue); font-weight: 600; font-size: 13px; }
.compare__row:last-child .compare__td { border-bottom: 0; }

/* --- Cost of Waiting --- */
.cost-wait {
    background: #0e2a4a;
    padding: 64px 0;
}
.cost-wait__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.cost-wait__copy .eyebrow { margin-bottom: 16px; }
.cost-wait__title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.015em;
    color: #f4efe3;
    margin: 0 0 18px;
}
.cost-wait__title em { font-style: italic; color: var(--gold); }
.cost-wait__text {
    font-size: 15.5px;
    color: #a8b2c0;
    line-height: 1.7;
    margin: 0;
}
.cost-wait__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cost-wait__card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,244,200,.14);
    border-radius: 12px;
    padding: 20px 24px;
}
.cost-wait__icon {
    flex: none;
    width: 40px;
    height: 40px;
    background: rgba(255,204,0,.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.cost-wait__card-title {
    font-size: 14px;
    font-weight: 600;
    color: #f4efe3;
    letter-spacing: -.01em;
    margin: 0 0 4px;
}
.cost-wait__card-text {
    font-size: 13px;
    color: #a8b2c0;
    line-height: 1.55;
    margin: 0;
}

/* --- Payment Terms --- */
.payment {
    background: var(--cream);
    padding: 80px 0;
}
.payment .eyebrow { margin-bottom: 12px; }
.payment__title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -.015em;
    color: var(--navy);
    text-align: center;
    margin: 0 0 11px;
}
.payment__title em { font-style: italic; color: #1e3f73; }
.payment__subtitle {
    text-align: center;
    color: var(--slate);
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto 48px;
    line-height: 1.6;
}
.payment__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.payment-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 33px 29px;
}
.payment-card--featured { border: 2px solid var(--gold); padding: 34px 30px; }
.payment-card__icon {
    font-size: 22px;
    background: #f7f2e8;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.payment-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.015em;
    margin: 0 0 10px;
}
.payment-card__desc {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.6;
    margin: 0 0 16px;
}
.payment-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.payment-card__list li {
    font-size: 13px;
    color: #2e3d52;
    line-height: 1.6;
    padding: 4px 0 4px 16px;
    position: relative;
}
.payment-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--gold-deep);
    border-radius: 3px;
}
.payment-card__list--circle li {
    color: var(--slate);
    padding-left: 18px;
}
.payment-card__list--circle li::before {
    content: '○';
    background: none;
    width: auto;
    height: auto;
    top: auto;
    font-size: 12px;
    color: #6b7785;
}
.payment-card__sub-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6b7785;
    margin: 18px 0 6px;
}

/* --- Founder pledge --- */
.founder-pledge {
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(30, 63, 115, .5), rgba(30, 63, 115, 0) 70%),
        #06172e;
    padding: 80px 0;
}
.founder-pledge__grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: stretch;
}

/* author card */
.founder-pledge__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 33px;
    background: rgba(255, 244, 200, .05);
    border: 1px solid rgba(255, 244, 200, .1);
    border-radius: 16px;
}
.founder-pledge__avatar {
    flex: none;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #244a7c, #0a1f3a);
}
.founder-pledge__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    border-radius: 50%;
}
.founder-pledge__name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    color: #f4efe3;
    text-align: center;
    margin: 19px 0 0;
}
.founder-pledge__role {
    font-size: 12px;
    color: #a8b2c0;
    text-align: center;
    margin: 4px 0 0;
}
.founder-pledge__facts {
    list-style: none;
    width: 182px;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.founder-pledge__fact {
    font-size: 13px;
    line-height: 1.6;
    color: #a8b2c0;
}
.founder-pledge__fact-check {
    color: var(--gold);
    margin-right: 4px;
}

/* copy */
.founder-pledge__copy {
    align-self: center;
    display: flex;
    flex-direction: column;
}
.founder-pledge__eyebrow {
    margin: 0 0 20px;
    opacity: .85;
}
.founder-pledge__eyebrow.eyebrow--gold { color: var(--gold); }
.founder-pledge__eyebrow .eyebrow__dash {
    width: 20px;
    height: 2px;
    background: var(--gold);
}
.founder-pledge__title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.015em;
    color: #f4efe3;
    margin: 0 0 24px;
}
.founder-pledge__title em { font-style: italic; color: var(--gold); }
.founder-pledge__text {
    font-size: 16px;
    line-height: 1.75;
    color: #a8b2c0;
    margin: 0 0 16px;
}
.founder-pledge__text:last-of-type { margin-bottom: 28px; }
.founder-pledge__quote {
    margin: 0;
    padding: 20px 24px 20px 27px;
    background: rgba(255, 244, 200, .06);
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    line-height: 1.6;
    color: #f4efe3;
}

/* --- Guarantees --- */
.guarantees {
    background: #ede6d6;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 80px 0;
}
.guarantees__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}
.guarantees__copy .eyebrow { margin-bottom: 16px; }
.guarantees__title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--navy);
    margin: 0 0 16px;
    line-height: 1.15;
}
.guarantees__title em { font-style: italic; color: var(--blue); }
.guarantees__text {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.65;
    margin: 0;
}
.guarantees__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.guarantee-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
}
.guarantee-card--green {
    background: rgba(45,106,79,.04);
    border-color: #2d6a4f;
}
.guarantee-card__icon { font-size: 26px; margin-bottom: 10px; line-height: 1; }
.guarantee-card__title {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -.015em;
    margin: 0 0 8px;
}
.guarantee-card--green .guarantee-card__title { color: #2d6a4f; }
.guarantee-card:not(.guarantee-card--green) .guarantee-card__title { color: var(--navy); }
.guarantee-card__text {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.55;
    margin: 0;
}

/* --- WRAI vs Alternatives --- */
.vs-alt {
    background: #fff;
    padding: 80px 0;
}
.vs-alt .eyebrow { margin-bottom: 16px; }
.vs-alt__title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--navy);
    text-align: center;
    margin: 0 0 10px;
}
.vs-alt__title em { font-style: italic; color: var(--blue); }
.vs-alt__subtitle {
    text-align: center;
    color: var(--slate);
    font-size: 15px;
    margin: 0 0 40px;
}
.vs-alt__wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.vs-alt__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
.vs-alt__th {
    background: var(--cream-warm);
    border-bottom: 2px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    padding: 15px 20px;
    text-align: center;
}
.vs-alt__th--feature { background: var(--cream-warm); width: 240px; }
.vs-alt__th--wrai {
    background: var(--navy);
    color: var(--gold);
}
.vs-alt__td {
    padding: 14px 20px;
    font-size: 14px;
    color: #2e3d52;
    border-bottom: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
}
.vs-alt__td--label { text-align: left; font-weight: 500; color: var(--navy); }
.vs-alt__td--wrai {
    background: rgba(10,31,58,.03);
    font-weight: 600;
}
.vs-alt__td--good { color: #2d6a4f; font-weight: 600; }
.vs-alt__td--warn { color: var(--gold-deep); font-weight: 500; }
.vs-alt__td--bad  { color: #c0392b; font-weight: 500; }

/* --- Testimonials --- */
.pricing-reviews {
    background: var(--cream-warm);
    padding: 80px 0;
}
.pricing-reviews .eyebrow { margin-bottom: 16px; }
.pricing-reviews__title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--navy);
    text-align: center;
    margin: 0 0 10px;
}
.pricing-reviews__title em { font-style: italic; color: var(--blue); }
.pricing-reviews__subtitle {
    text-align: center;
    color: var(--slate);
    font-size: 15px;
    margin: 0 0 40px;
}
.pricing-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.review-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.review-card__stars {
    color: var(--gold-deep);
    font-size: 14px;
    letter-spacing: 2px;
}
.review-card__quote {
    font-style: italic;
    font-size: 14.5px;
    color: #2e3d52;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}
.review-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}
.review-card__avatar {
    flex: none;
    width: 40px;
    height: 40px;
    background: #ede6d6;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--navy);
}
.review-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.review-card__name {
    font-style: normal;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
}
.review-card__location {
    font-size: 12px;
    color: #6b7785;
    display: block;
}
.review-card__plan {
    display: inline-block;
    background: #fff1b3;
    color: var(--navy);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

/* --- FAQ section --- */
.faq {
    padding: 80px 0;
}
.faq__inner {
    max-width: 760px;
    margin: 0 auto;
}
.faq .eyebrow { margin-bottom: 16px; }
.faq__title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--navy);
    margin: 0 0 48px;
}
.faq__title em { font-style: italic; color: #1e3f73; }

/* --- Accordion component --- */
.accordion__item {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: -1px;
}
.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    letter-spacing: .1px;
    text-align: left;
    font-family: var(--font-body);
}
.accordion__question {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
}
.accordion__icon {
    flex: none;
    width: 24px;
    height: 24px;
    background: #ede6d6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}
.accordion__icon::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--slate);
    border-bottom: 2px solid var(--slate);
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s;
}
.accordion__item--open .accordion__icon::after {
    transform: translateY(2px) rotate(-135deg);
}
.accordion__panel {
    padding-bottom: 20px;
    letter-spacing: .1px;
}
.accordion__answer {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.7;
}

/* --- Pricing CTA --- */
.pricing-cta {
    background: #0a2240;
    padding: 88px 0 100px;
    text-align: center;
}
.pricing-cta .eyebrow { margin-bottom: 14px; }
.pricing-cta__title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: #f4efe3;
    margin: 0 0 16px;
}
.pricing-cta__title em { font-style: italic; color: var(--gold); }
.pricing-cta__subtitle {
    font-size: 16px;
    color: #a8b2c0;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 28px;
}
.pricing-cta__form {
    max-width: 480px;
    margin: 0 auto;
}
.pricing-cta__note {
    font-size: 14px;
    color: #a8b2c0;
    margin: 16px 0 0;
}

/* ---- Pricing page responsive ---- */
@media (max-width: 1200px) {
    .plans__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .cost-wait__inner   { grid-template-columns: 1fr; gap: 40px; }
    .guarantees__inner  { grid-template-columns: 1fr; gap: 40px; }
    .pricing-reviews__grid { grid-template-columns: 1fr 1fr; }
    .founder-pledge__grid { gap: 40px; }
}
@media (max-width: 768px) {
    .pricing-hero__title { font-size: 36px; }
    .plans__grid         { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .compare__title, .payment__title, .vs-alt__title,
    .pricing-reviews__title, .faq__title, .cost-wait__title,
    .guarantees__title  { font-size: 30px; }
    .founder-pledge__title { font-size: 32px; }
    .pricing-cta__title { font-size: 32px; }
    .payment__grid      { grid-template-columns: 1fr; }
    .guarantees__grid   { grid-template-columns: 1fr; }
    .pricing-reviews__grid { grid-template-columns: 1fr; }
    .founder-pledge__grid { grid-template-columns: 1fr; gap: 32px; }
    .founder-pledge__card { max-width: 360px; margin: 0 auto; }
    .pricing-hero { padding: 40px 0 36px; }
    .plans, .compare, .payment, .guarantees, .vs-alt,
    .pricing-reviews, .faq, .founder-pledge { padding: 56px 0; }
    .pricing-cta { padding: 60px 0 72px; }
}

/* ============================================================
 * === Knowledge Base (tpl-knowledge-base.php, category.php) ===
 * ============================================================ */

.kb-page {
    padding: 40px 0 0;
}

.kb-page__header {
    padding: 30px 0 0;
}

.kb-page__title {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1b2a3d;
    line-height: 1.05;
    margin: 0 0 18px;
}

.kb-page__title-accent {
    font-style: italic;
    color: #2b4c86;
}

.kb-page__lead {
    font-size: 18px;
    color: #50596a;
    line-height: 1.55;
    max-width: 612px;
    margin: 0 0 40px;
}

.kb-page__empty {
    color: var(--muted);
    font-size: 15px;
    padding: 40px 0 60px;
}

/* --- Grid --- */
.kb-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 0 0 22px;
}

/* --- Card --- */
.kb-card {
    background: #fff;
    border: 1px solid #eae3d3;
    border-radius: 16px;
    padding: 27px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
    text-decoration: none;
    color: inherit;
}

.kb-card:hover {
    box-shadow: 0 4px 18px -4px rgba(27,42,61,.1);
}

.kb-card__num-wrap {
    margin: 0 0 18px;
}

.kb-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #eae3d3;
    border-radius: 4px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    color: #2b4c86;
    line-height: 1;
}

.kb-card__title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1b2a3d;
    line-height: 1.2;
    margin: 0 0 10px;
}

.kb-card__desc {
    font-size: 13.5px;
    color: #50596a;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 20px;
}

.kb-card__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c9931c;
    transition: opacity .2s;
    margin-top: auto;
}

.kb-card__more:hover { opacity: .7; }

/* --- Category CTA Banner --- */
.category-cta {
    background: #0e2138;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 44px 48px;
    margin: 0 0 60px;
}

.category-cta__content { flex: 1; min-width: 0; }

.category-cta__title {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 10px;
}

.category-cta__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

.category-cta__text {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    line-height: 1.5;
}

.category-cta__btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    background: var(--gold);
    color: #0a1b2f;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 4px;
    padding: 14px 23px;
    white-space: nowrap;
    transition: background .2s;
}

.category-cta__btn:hover { background: #f0c200; }

/* --- Layout with sidebar --- */
.kb-page__inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}
.kb-page__main { min-width: 0; }
.kb-page__aside {
    position: sticky;
    top: 88px;
}

/* With sidebar: 2-column card grid */
.kb-page__main .kb-page__grid {
    grid-template-columns: repeat(2, 1fr);
}

/* --- Category sidebar widgets --- */
.cat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 60px;
}

.cat-sidebar-cats {
    background: #fff;
    border: 1px solid #ddd3bd;
    border-radius: 16px;
    overflow: hidden;
    padding: 18px 12px 10px;
    box-shadow: 0 6px 24px rgba(10,31,58,0.06);
}
.cat-sidebar-cats__label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8c9aad;
    margin: 0 0 8px 8px;
}
.cat-sidebar-cats__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cat-sidebar-cats__item {
    display: block;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #2e3d52;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    transition: background .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-sidebar-cats__item:hover { background: #edf1f8; }
.cat-sidebar-cats__item--active {
    background: #dde6f5;
    font-weight: 600;
    color: #0a1f3a;
    box-shadow: inset 3px 0 0 #ffcc00;
}

/* Sidebar form — category page */
#tod-form-cat_consultation.tod-form-wrapper {
    --tod-color-primary: #0a1f3a;
    --tod-color-primary-hover: #0e2a4a;
    --tod-color-primary-focus: rgba(10,31,58,.1);
    --tod-color-input-bg: #fbf7ee;
    --tod-color-input-bg-hover: #f5f0e3;
    --tod-color-input-border: #ddd3bd;
    --tod-color-text: #0a1f3a;
    --tod-color-text-muted: #5a6878;
    --tod-color-text-faint: #6b7785;
    --tod-radius-input: 8px;
    --tod-radius-button: 8px;
    --tod-font-size-button: 13px;
    --tod-font-size-base: 14px;
    --tod-font-size-label: 12px;
}
#tod-form-cat_consultation .tod-form { margin-bottom: 0; }
#tod-form-cat_consultation .tod-form__row { gap: 10px; margin-bottom: 10px; }
#tod-form-cat_consultation .tod-form__label { font-weight: 600; letter-spacing: 0.04em; }
#tod-form-cat_consultation .tod-form__submit { width: 100%; letter-spacing: 0.04em; margin-top: 6px; }
#tod-form-cat_consultation .tod-form__footer { text-align: center; font-size: 11.5px; }

/* --- Pagination --- */
.kb-pagination {
    margin: 40px 0 60px;
}
.kb-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.kb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd3bd;
    border-radius: 8px;
    background: #fff;
    color: #2e3d52;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.kb-pagination a.page-numbers:hover {
    background: #edf1f8;
    border-color: #c8d3e5;
}
.kb-pagination .page-numbers.current {
    background: #0a1f3a;
    border-color: #0a1f3a;
    color: #fff;
}
.kb-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .kb-page__inner { grid-template-columns: 1fr 300px; }
}

@media (max-width: 900px) {
    .kb-page__inner { grid-template-columns: 1fr; }
    .kb-page__aside { position: static; top: auto; }
    .kb-page__main .kb-page__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .kb-page__grid { grid-template-columns: repeat(2, 1fr); }
    .kb-page__title { font-size: 40px; }
}

@media (max-width: 768px) {
    .kb-page__grid { grid-template-columns: 1fr; }
    .kb-page__main .kb-page__grid { grid-template-columns: 1fr; }
    .kb-page__title { font-size: 32px; }
    .kb-page__lead { font-size: 16px; }
    .category-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 32px 24px;
    }
    .category-cta__title { font-size: 24px; }
    .category-cta__btn { justify-content: center; }
}

/* ============================================================
 * === Documents page ===
 * ============================================================ */

/* --- Breadcrumb --- */
.docs-breadcrumb {
    background: #f3eee5;
    border-bottom: 1px solid #ddd3bd;
    padding: 10px 0;
}
.docs-breadcrumb .breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.docs-breadcrumb .breadcrumb__link,
.docs-breadcrumb .breadcrumbs a {
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 12.5px;
    color: #5a6878;
    text-decoration: none;
    transition: color .15s;
}
.docs-breadcrumb .breadcrumb__link:hover,
.docs-breadcrumb .breadcrumbs a:hover { color: #0a1f3a; }
.docs-breadcrumb .breadcrumb__sep,
.docs-breadcrumb .breadcrumbs .sep {
    font-size: 12.5px;
    color: #0a1f3a;
}
.docs-breadcrumb .breadcrumb__current,
.docs-breadcrumb .breadcrumbs span:last-child {
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 12.5px;
    font-weight: 500;
    color: #2e3d52;
}

/* --- Hero --- */
.docs-hero {
    background: #fbf8f2;
    padding: 36px 0 28px;
}
.docs-hero__title {
    font-family: 'Spectral', serif;
    font-weight: 600;
    font-style: normal;
    font-size: 52px;
    color: #1b2a3d;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 20px;
}
.docs-hero__title-em {
    font-family: 'Spectral', serif;
    font-weight: 500;
    font-style: italic;
    color: #2b4c86;
}
.docs-hero__body {
    max-width: 813px;
    font-family: 'Spectral', serif;
    font-weight: 400;
    font-size: 18px;
    color: #50596a;
    line-height: 1.55;
}
.docs-hero__body p { margin: 0 0 6px; }
.docs-hero__body ul {
    list-style: none;
    margin: 4px 0 10px;
    padding-left: 20px;
}
.docs-hero__body li {
    position: relative;
    margin-bottom: 2px;
}
.docs-hero__body li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.docs-hero__body { margin-bottom: 28px; }

/* --- Layout --- */
.docs-layout {
    background: #fbf8f2;
    padding: 36px 0 80px;
}
.docs-layout__inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}
.docs-main { min-width: 0; }
.docs-aside {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Doc cards grid --- */
.doc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 56px;
}
.doc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eae3d3;
    border-radius: 16px;
    padding: 26px 24px 22px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, border-color .2s;
}
.doc-card:hover {
    border-color: #c9931c;
    box-shadow: 0 6px 20px rgba(10,31,58,0.08);
}
.doc-card__icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #0e2138;
    border-radius: 6px;
    margin-bottom: 18px;
    flex-shrink: 0;
}
.doc-card__title {
    font-family: 'Spectral', serif;
    font-weight: 600;
    font-size: 20px;
    color: #1b2a3d;
    letter-spacing: -0.01em;
    line-height: 1.22;
    margin: 0 0 10px;
}
.doc-card__desc {
    font-family: 'Hanken Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 13.5px;
    color: #50596a;
    line-height: 1.6;
    margin: 0 0 22px;
    flex: 1;
}
.doc-card__link {
    font-family: 'Hanken Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 11px;
    color: #c9931c;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    margin-top: auto;
}

/* --- Comments --- */
.doc-comments { padding-top: 4px; }
.doc-comments__title {
    font-family: 'Spectral', serif;
    font-weight: 600;
    font-size: 30px;
    color: #1b2a3d;
    letter-spacing: -0.01em;
    line-height: 1.5;
    margin: 0 0 4px;
}
.doc-comments__count {
    font-family: 'Hanken Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: #8c8576;
    margin: 0 0 4px;
}
.doc-comments__list { margin-top: 8px; }
.doc-comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid #e6decb;
}
.doc-comment--reply { margin-left: 56px; }
.doc-comment__avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: #f4efe3;
    border: 1px solid #eae3d3;
    font-family: 'Spectral', serif;
    font-weight: 600;
    font-size: 16px;
    color: #2b4c86;
    line-height: 1;
}
.doc-comment__avatar--staff {
    background: #0e2138;
    border-color: #0e2138;
    color: #e8a700;
}
.doc-comment__body { flex: 1; min-width: 0; }
.doc-comment__name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Spectral', serif;
    font-weight: 600;
    font-size: 16px;
    color: #1b2a3d;
    line-height: 1.5;
    margin: 0 0 8px;
}
.doc-comment__badge {
    display: inline-flex;
    align-items: center;
    background: #0e2138;
    color: #fbf8f2;
    font-family: 'Hanken Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 2px 8px;
    height: 19px;
    white-space: nowrap;
}
.doc-comment__text {
    font-family: 'Hanken Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    color: #50596a;
    line-height: 1.65;
    margin: 0 0 8px;
}
.doc-comment__date {
    display: block;
    font-family: 'Hanken Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    color: #8c8576;
    line-height: 1.5;
}

/* --- Sidebar --- */
.doc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Consultation form card */
.doc-sidebar-form {
    background: #fff;
    border: 1px solid #ddd3bd;
    border-top: 3px solid #ffcc00;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(10,31,58,0.06);
}
.doc-sidebar-form__head {
    background: #fbf7ee;
    border-bottom: 1px solid #ddd3bd;
    padding: 18px 22px 15px;
}
.doc-sidebar-form__title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 16px;
    color: #0a1f3a;
    line-height: 1.65;
    margin: 0 0 3px;
}
.doc-sidebar-form__subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 12.5px;
    color: #6b7785;
    line-height: 1.65;
    margin: 0;
}
.doc-sidebar-form__body { padding: 16px 22px 18px; }

/* Sidebar form — tod-forms beige/navy theme */
#tod-form-doc_consultation.tod-form-wrapper {
    --tod-color-primary: #0a1f3a;
    --tod-color-primary-hover: #0e2a4a;
    --tod-color-primary-focus: rgba(10,31,58,.1);
    --tod-color-input-bg: #fbf7ee;
    --tod-color-input-bg-hover: #f5f0e3;
    --tod-color-input-border: #ddd3bd;
    --tod-color-text: #0a1f3a;
    --tod-color-text-muted: #5a6878;
    --tod-color-text-faint: #6b7785;
    --tod-radius-input: 8px;
    --tod-radius-button: 8px;
    --tod-font-size-button: 13px;
    --tod-font-size-base: 14px;
    --tod-font-size-label: 12px;
}
#tod-form-doc_consultation .tod-form { margin-bottom: 0; }
#tod-form-doc_consultation .tod-form__row { gap: 10px; margin-bottom: 10px; }
#tod-form-doc_consultation .tod-form__label {
    font-weight: 600;
    letter-spacing: 0.04em;
}
#tod-form-doc_consultation .tod-form__submit {
    width: 100%;
    letter-spacing: 0.04em;
    margin-top: 6px;
}
#tod-form-doc_consultation .tod-form__footer { text-align: center; font-size: 11.5px; }

/* Related services card */
.doc-related {
    background: #fff;
    border: 1px solid #ddd3bd;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(10,31,58,0.06);
}
.doc-related__head {
    background: #fbf7ee;
    border-bottom: 1px solid #ddd3bd;
    padding: 18px 22px 15px;
}
.doc-related__title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 16px;
    color: #0a1f3a;
    line-height: 1.65;
    margin: 0 0 3px;
}
.doc-related__subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    color: #6b7785;
    margin: 0;
}
.doc-related__list {
    list-style: none;
    padding: 6px 12px 10px;
    margin: 0;
}
.doc-related__item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.doc-related__item:hover { background: #f7f2e8; }
.doc-related__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #f7f2e8;
    border: 1px solid #ddd3bd;
    border-radius: 8px;
    font-size: 14px;
}
.doc-related__label {
    flex: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    color: #2e3d52;
    line-height: 1;
}
.doc-related__arrow {
    font-size: 11px;
    color: #6b7785;
}

/* --- Contact CTA section --- */
.docs-cta {
    background: #0a2240;
    padding: 90px 0;
}
.docs-cta__inner {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: start;
}
.docs-cta__eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 12px;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 2.64px;
    margin: 0 0 18px;
}
.docs-cta__title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 44px;
    color: #fbf8f2;
    line-height: 1.1;
    margin: 0 0 20px;
}
.docs-cta__title-em {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-style: italic;
    color: #ffcc00;
}
.docs-cta__body {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 16px;
    color: rgba(243,238,229,0.7);
    line-height: 1.55;
    margin: 0;
    max-width: 420px;
}


/* --- Responsive --- */
@media (max-width: 1100px) {
    .docs-layout__inner { grid-template-columns: 1fr 300px; }
    .docs-cta__inner { grid-template-columns: 1fr; gap: 40px; }
    .docs-cta__body { max-width: 100%; }
    .docs-cta .lead-form { max-width: 480px; }
}

@media (max-width: 900px) {
    .docs-layout__inner {
        grid-template-columns: 1fr;
    }
    .docs-aside {
        position: static;
        top: auto;
    }
    .doc-sidebar { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .docs-hero__title { font-size: 36px; }
    .docs-hero__body { font-size: 16px; }
    .doc-grid { grid-template-columns: 1fr; }
    .doc-comment--reply { margin-left: 28px; }
    .docs-cta { padding: 60px 0; }
    .docs-cta__title { font-size: 32px; }
    .doc-sidebar { flex-direction: column; }
}

/* ============================================================
 * === Анимации и микровзаимодействия ===
 * ============================================================ */

/* --- Keyframes --- */
@keyframes reveal-up {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-scale {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes float-soft {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 177, 0, 0); }
    50%       { box-shadow: 0 0 0 6px rgba(224, 177, 0, .18); }
}

/* --- Scroll reveal --- */
@media (prefers-reduced-motion: no-preference) {
    .js-animate .reveal {
        opacity: 0;
    }

    .reveal.is-visible {
        animation: reveal-up 0.55s cubic-bezier(.22, .68, 0, 1.2) both;
    }
    .reveal--scale.is-visible {
        animation: reveal-scale 0.5s cubic-bezier(.22, .68, 0, 1.2) both;
    }
}

/* --- Hover: карточки --- */
@media (prefers-reduced-motion: no-preference) {
    .card,
    .service {
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
    }
    .card:hover,
    .service:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 34px -8px rgba(20, 34, 52, .14);
    }

    .svc-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .svc-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px -8px rgba(20, 34, 52, .13);
    }

    .person {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .person:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 22px -6px rgba(20, 34, 52, .11);
    }

    .review {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .review:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 26px -6px rgba(20, 34, 52, .12);
    }

    .review-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .review-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 26px -6px rgba(20, 34, 52, .12);
    }

    .plan {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .plan:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px -6px rgba(20, 34, 52, .14);
    }

    .payment-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .payment-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px -6px rgba(20, 34, 52, .12);
    }

    .guarantee-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .guarantee-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px -4px rgba(20, 34, 52, .1);
    }

    .cost-wait__card {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .cost-wait__card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px -4px rgba(10, 31, 58, .28);
    }

    .kb-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .kb-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px -6px rgba(27, 42, 61, .12);
    }

    .doc-card {
        transition: transform 0.25s ease, box-shadow 0.2s ease, border-color 0.2s;
    }
    .doc-card:hover {
        transform: translateY(-3px);
    }

    .principle {
        transition: background 0.2s ease, transform 0.25s ease;
    }
    .principle:hover {
        background: #fff;
        transform: translateY(-2px);
    }

    /* --- Hover: кнопки --- */
    .btn {
        transition: background 0.2s ease, border-color 0.2s ease,
                    transform 0.2s ease, box-shadow 0.2s ease;
    }
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px -4px rgba(20, 34, 52, .2);
    }

    /* --- Hover: статы --- */
    .stat {
        transition: background 0.2s;
        cursor: default;
    }
    .stat:hover .stat__num {
        animation: wiggle 0.45s ease;
    }

    /* --- Hover: бейдж у service --- */
    .service:hover .service__no {
        animation: float-soft 1.5s ease-in-out infinite;
    }

    /* --- Hover: eyebrow dash расширяется --- */
    .eyebrow__dash {
        transition: width 0.3s ease;
    }
    *:hover > .eyebrow .eyebrow__dash,
    *:hover > * > .eyebrow .eyebrow__dash {
        width: 38px;
    }

    /* --- Hover: социальные иконки в футере --- */
    .footer__social a {
        transition: transform 0.2s ease, color 0.2s;
    }
    .footer__social a:hover {
        transform: translateY(-3px) scale(1.15);
        color: var(--blue);
    }

    /* --- Hover: стрелка в kb-card --- */
    .kb-card__more {
        transition: gap 0.2s ease, opacity 0.2s;
    }
    .kb-card:hover .kb-card__more {
        gap: 8px;
    }

    /* --- Hover: accordion --- */
    .accordion__trigger:hover .accordion__icon {
        background: var(--line);
    }

    /* --- Hover: featured plan pulse --- */
    .plan--featured:hover {
        animation: pulse-gold 1.4s ease-in-out;
    }

    /* --- Hover: links в doc-related --- */
    .doc-related__item {
        transition: background 0.15s ease, transform 0.2s ease;
    }
    .doc-related__item:hover {
        transform: translateX(3px);
    }
}

/* ============================================================ CONTACTS PAGE */

/* --- Hero --- */
.contacts-hero {
    padding: 40px 0 0;
    background: var(--cream);
}
.contacts-hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1b2a3d;
    line-height: 1.05;
    margin: 0;
}
.contacts-hero__title em {
    font-style: italic;
    font-weight: 500;
    color: #2b4c86;
}

/* --- Info section (cards + map) --- */
.contacts-info {
    padding: 40px 0 80px;
    background: var(--cream);
}
.contacts-info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}
.contacts-info__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Contact card --- */
.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #eae3d3;
    border-radius: 16px;
    padding: 23px 25px;
}
.contact-card__icon-box {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #0e2138;
    border-radius: 6px;
}
.contact-card__icon {
    display: block;
    width: 20px;
    height: 20px;
}
.contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 2px;
    min-width: 0;
}
.contact-card__label {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8c8576;
    margin: 0 0 5px;
    line-height: 1.5;
}
.contact-card__value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    color: #1b2a3d;
    margin: 0;
    line-height: 1.35;
    display: block;
}
.contact-card__value--blue { color: #2b4c86; }
.contact-card__note {
    font-family: var(--font-body);
    font-size: 13px;
    color: #50596a;
    margin: 2px 0 0;
    line-height: 1.35;
}
.contact-card__note-link {
    color: #2b4c86;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.contact-card__note-link:hover { text-decoration: none; }

/* --- Map --- */
.contacts-info__map {
    border: 1px solid #eae3d3;
    border-radius: 16px;
    overflow: hidden;
    min-height: 440px;
}
.contacts-info__map .map-item {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
}

/* --- CTA dark section --- */
.contacts-cta {
    background: #0a2240;
    border-radius: var(--r-lg);
    padding: 68px 0 46px;
    margin: 30px 0;
}
.contacts-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contacts-cta .eyebrow {
    color: var(--gold);
    margin: 0 0 20px;
}
.contacts-cta .eyebrow__dash { background: var(--gold); }
.contacts-cta .contacts-cta__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 36px);
    font-weight: 600;
    color: #fbf8f2;
    margin: 0 0 20px;
    line-height: 1.1;
}
.contacts-cta .contacts-cta__title em {
    font-style: italic;
    font-weight: 500;
    color: var(--gold);
}
.contacts-cta .contacts-cta__desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: rgba(243, 238, 229, 0.7);
    line-height: 1.55;
    max-width: 420px;
    margin: 0;
}

/* ============================================================
 * === Israeli Citizenship page (tpl-citizenship.php)
 * ============================================================ */

/* ── Shared section typography ────────────────────────────── */
.cit-section-eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--slate);
}
.cit-section-eyebrow--center { text-align: center; }

.cit-section-title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: #0a1f3a;
    margin: 0 0 10px;
}
.cit-section-title em {
    font-style: italic;
    color: #1e3f73;
}
.cit-section-title--center { text-align: center; }

.cit-section-subtitle {
    font-size: 16px;
    color: var(--slate);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 0 48px;
}
.cit-section-subtitle--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ── HERO ─────────────────────────────────────────────────── */
.cit-hero {
    background: #06172e;
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}
.cit-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 20% 50%, rgba(30,63,115,.35) 0%, transparent 70%);
    pointer-events: none;
}
.cit-hero__inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start;
}
.cit-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cit-hero__title {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #f4efe3;
    margin: 0 0 8px;
}
.cit-hero__title em {
    font-style: italic;
    color: var(--gold);
    display: block;
}
.cit-hero__subtitle {
    font-size: 17px;
    color: #a8b2c0;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 0 24px;
}
.cit-hero__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 28px;
    margin: 0 0 12px;
}
.cit-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cit-hero__stars {
    font-size: 15px;
    color: var(--gold);
    letter-spacing: .05em;
}
.cit-hero__stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #f4efe3;
    line-height: 1;
}
.cit-hero__stat-label {
    font-size: 12px;
    color: #a8b2c0;
    line-height: 1.7;
}
.cit-hero__divider {
    width: 1px;
    height: 36px;
    background: rgba(255,244,200,.14);
    flex: none;
}
.cit-hero__badge {
    font-size: 13px;
    color: rgba(255,244,200,.55);
    margin: 2px 0 0;
    line-height: 1.7;
}
.cit-hero__link {
    color: inherit;
    text-decoration: underline;
}
.cit-hero__link:hover { color: var(--gold); }

/* Hero sticky form card */
.cit-hero__form-wrap {
    position: sticky;
    top: 80px;
}
.cit-hero__tod-form.tod-form-wrapper {
    --tod-input-pad-y: 12px;
    --tod-input-pad-x: 15px;
    --tod-font-size-base: 14px;
    --tod-color-input-bg: #fbf7ee;
    --tod-color-input-bg-hover: #f5f0e3;
    --tod-color-input-border: #ddd3bd;
    --tod-radius-input: 8px;
}
.cit-hero__tod-form {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    box-shadow: 0 32px 40px rgba(6,23,46,.35);
}
.cit-hero__tod-form .tod-form__head {
    margin-bottom: 16px;
}
.cit-hero__tod-form .tod-form__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    color: #0a1f3a;
    margin: 0 0 6px;
}
.cit-hero__tod-form .tod-form__desc {
    font-size: 13px;
    color: var(--slate);
    margin: 0;
    line-height: 1.6;
}
.cit-hero__tod-form .tod-form__row--col1 {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.cit-hero__tod-form .tod-form__group {
    gap: 5px;
}
.cit-hero__tod-form .tod-form__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--slate);
}
.cit-hero__tod-form .tod-form__submit {
    width: 100%;
    background: #0a1f3a;
    border-radius: 12px;
    font-size: 14px;
    padding: 14px 20px;
}
.cit-hero__tod-form .tod-form__submit:hover { background: #122b4a; }
.cit-hero__tod-form .tod-form__footer {
    text-align: center;
    font-size: 13px;
    color: var(--slate);
    margin-top: 10px;
    margin-bottom: 12px;
}
.cit-hero__tod-form .tod-form { margin: 0; }
.cit-hero__gdpr {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--slate);
    margin: 12px 0 0;
    padding-top: 14px;
    border-top: 1px solid #ddd3bd;
}
.cit-hero__gdpr svg { flex: none; color: var(--slate); }

/* ── WHAT IS IT ───────────────────────────────────────────── */
.cit-what {
    background: #fbf8f2;
    padding: 80px 0;
}
.cit-what__inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start;
    margin-top: 32px;
}
.cit-what__copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cit-what__copy p {
    font-size: 15.5px;
    color: #2e3d52;
    line-height: 1.75;
    margin: 0;
}
.cit-what__copy strong { color: #0a1f3a; font-weight: 600; }

.cit-what__quote {
    background: #0a1f3a;
    border-radius: 16px;
    padding: 32px;
    position: relative;
}
.cit-what__quote-mark {
    position: absolute;
    top: 28px;
    left: 26px;
    font-family: var(--font-display);
    font-size: 80px;
    line-height: .8;
    color: var(--gold);
    opacity: .3;
    pointer-events: none;
    user-select: none;
}
.cit-what__quote-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    color: #f4efe3;
    line-height: 1.65;
    margin: 28px 0 20px;
    padding: 0;
}
.cit-what__quote-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,244,200,.12);
}
.cit-what__quote-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #122b4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--gold);
    flex: none;
}
.cit-what__quote-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    font-style: normal;
    color: #f4efe3;
    line-height: 1.7;
}
.cit-what__quote-location {
    display: block;
    font-size: 12px;
    color: #a8b2c0;
    line-height: 1.7;
}

/* ── WHO QUALIFIES ────────────────────────────────────────── */
.cit-qualifies {
    background: #fbf8f2;
    padding: 0 0 80px;
}
.cit-qualifies__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cit-qualify-card {
    background: #fff;
    border: 1px solid #ddd3bd;
    border-radius: 16px;
    padding: 29px 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cit-qualify-card__icon {
    width: 44px;
    height: 44px;
    background: #dce5f1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: none;
    margin-bottom: 4px;
}
.cit-qualify-card__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 400;
    color: #0a1f3a;
    margin: 0;
    line-height: 1.7;
}
.cit-qualify-card__text {
    font-size: 13.5px;
    color: var(--slate);
    line-height: 1.6;
    margin: 0;
}

/* ── TIMELINE ─────────────────────────────────────────────── */
.cit-timeline {
    background: #fbf8f2;
    padding: 0 0 80px;
}
.cit-timeline__track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 48px;
    position: relative;
}
.cit-timeline__track::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(10% + 20px);
    right: calc(10% + 20px);
    height: 2px;
    background: linear-gradient(to right, #1e3f73, var(--gold));
    z-index: 0;
}
.cit-timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 8px 18px;
    position: relative;
    z-index: 1;
}
.cit-timeline__circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #1e3f73;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    color: #1e3f73;
    margin-bottom: 14px;
    flex: none;
}
.cit-timeline__step--last .cit-timeline__circle {
    background: var(--gold);
    border-color: #e0b100;
    color: #0a1f3a;
}
.cit-timeline__month {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 4px;
}
.cit-timeline__step-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0a1f3a;
    margin: 0 0 6px;
    line-height: 1.7;
}
.cit-timeline__step-text {
    font-size: 12px;
    color: var(--slate);
    line-height: 1.5;
    margin: 0;
}

/* ── WHAT'S INCLUDED ──────────────────────────────────────── */
.cit-included {
    background: #fbf8f2;
    padding: 0 0 80px;
}
.cit-included__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.cit-incl-card {
    background: #fff;
    border: 1px solid #ddd3bd;
    border-radius: 16px;
    padding: 33px;
}
.cit-incl-card__head {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    color: #0a1f3a;
    padding-bottom: 20px;
    margin: 0 0 20px;
    border-bottom: 1px solid #ddd3bd;
    line-height: 1.7;
}
.cit-incl-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cit-incl-card__list li {
    font-size: 14px;
    color: #2e3d52;
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
}
.cit-incl-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-size: 13px;
    font-weight: 700;
    color: #2d6a4f;
    line-height: 1.5;
}

/* ── COMPARISON TABLE ─────────────────────────────────────── */
.cit-compare {
    background: #fbf8f2;
    padding: 0 0 80px;
}
.cit-compare__wrap {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(10,31,58,.06);
}
.cit-compare__table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    min-width: 600px;
}
.cit-compare__th {
    padding: 18px 20px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #0a1f3a;
    border-bottom: 2px solid #ddd3bd;
    text-align: center;
}
.cit-compare__th--feature {
    width: 42%;
    text-align: left;
}
.cit-compare__th--wrai {
    background: #0a1f3a;
    color: var(--gold);
    border-radius: 12px 12px 0 0;
}
.cit-compare__row:nth-child(even) .cit-compare__td--wrai {
    background: rgba(10,31,58,.02);
}
.cit-compare__td {
    padding: 15px 20px;
    font-size: 13px;
    color: var(--slate);
    border-bottom: 1px solid #ddd3bd;
    text-align: center;
    vertical-align: middle;
}
.cit-compare__row:last-child .cit-compare__td { border-bottom: 0; }
.cit-compare__td--label {
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #0a1f3a;
}
.cit-compare__td--wrai { background: rgba(10,31,58,.01); }
.cit-compare__td--yes { color: #2d6a4f; font-size: 16px; font-weight: 700; }
.cit-compare__td--no  { color: #c0392b; font-size: 16px; font-weight: 700; }
.cit-compare__td--warn { color: #b07820; font-size: 13px; }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.cit-reviews {
    background: #ede6d6;
    padding: 80px 0;
}
.cit-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cit-review {
    background: #fff;
    border: 1px solid #ddd3bd;
    border-radius: 16px;
    padding: 29px;
    display: flex;
    flex-direction: column;
}
.cit-review__stars {
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 14px;
    letter-spacing: .05em;
}
.cit-review__quote {
    font-style: italic;
    font-size: 14.5px;
    color: #2e3d52;
    line-height: 1.7;
    margin: 0 0 auto;
    padding: 0;
    padding-bottom: 18px;
    flex: 1;
}
.cit-review__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #ddd3bd;
}
.cit-review__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dce5f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 14px;
    color: #1e3f73;
    flex: none;
}
.cit-review__name {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    font-style: normal;
    color: #0a1f3a;
    line-height: 1.7;
}
.cit-review__location {
    display: block;
    font-size: 12px;
    color: var(--slate);
    line-height: 1.7;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.cit-faq {
    background: #fbf7ee;
    padding: 80px 0 90px;
}
.cit-faq__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cit-faq__inner .cit-section-subtitle { margin-bottom: 48px; }
.cit-faq__inner .accordion {
    width: 100%;
    max-width: 760px;
}

/* ── FOUNDER ──────────────────────────────────────────────── */
.cit-founder {
    background: #06172e;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cit-founder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 80% 50%, rgba(30,63,115,.5) 0%, transparent 70%);
    pointer-events: none;
}
.cit-founder > .container { position: relative; }
.cit-founder__inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: center;
}
.cit-founder__copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cit-founder__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .85;
    margin: 0;
}
.cit-founder__eyebrow-dash {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    flex: none;
}
.cit-founder__title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    color: #f4efe3;
    margin: 4px 0 0;
}
.cit-founder__title em {
    font-style: italic;
    color: var(--gold);
    display: block;
}
.cit-founder__text {
    font-size: 16px;
    color: #a8b2c0;
    line-height: 1.75;
    margin: 0;
}
.cit-founder__blockquote {
    background: rgba(255,244,200,.06);
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px 20px 27px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    color: #f4efe3;
    line-height: 1.6;
    margin: 4px 0;
}
.cit-founder__sign {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 0;
    padding-top: 4px;
}
.cit-founder__sign-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    color: #f4efe3;
    line-height: 1.7;
}
.cit-founder__sign-role {
    font-size: 13px;
    color: #a8b2c0;
    line-height: 1.7;
}

/* Founder card (right column) */
.cit-founder__card {
    background: rgba(255,244,200,.05);
    border: 1px solid rgba(255,244,200,.1);
    border-radius: 16px;
    padding: 33px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
}
.cit-founder__avatar {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    background: linear-gradient(135deg, #244a7c 0%, #0a1f3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 48px;
    color: var(--gold);
    flex: none;
}
.cit-founder__avatar-caption {
    font-size: 12px;
    color: #a8b2c0;
    text-align: center;
    margin: 0;
    line-height: 1.7;
}
.cit-founder__creds {
    list-style: none;
    margin: 0;
    padding: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    border-top: 1px solid rgba(255,244,200,.08);
}
.cit-founder__creds li {
    font-size: 13px;
    color: #a8b2c0;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.cit-founder__cred-check {
    color: var(--gold);
    flex: none;
    line-height: 1.7;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .cit-hero__inner,
    .cit-what__inner {
        grid-template-columns: 1fr 340px;
        gap: 40px;
    }
    .cit-qualifies__grid { grid-template-columns: repeat(2, 1fr); }
    .cit-timeline__track { grid-template-columns: 1fr; }
    .cit-timeline__track::before { display: none; }
    .cit-timeline__step { align-items: flex-start; text-align: left; flex-direction: row; gap: 16px; padding: 0 0 28px; }
    .cit-timeline__circle { flex: none; margin-bottom: 0; }
    .cit-timeline__step > div,
    .cit-timeline__step > p,
    .cit-timeline__step > span { order: unset; }
    .cit-timeline__step-inner { display: flex; flex-direction: column; gap: 2px; }
}
@media (max-width: 900px) {
    .cit-hero__inner,
    .cit-what__inner {
        grid-template-columns: 1fr;
    }
    .cit-hero__form-wrap { position: static; }
    .cit-included__grid,
    .cit-reviews__grid { grid-template-columns: 1fr; }
    .cit-section-title { font-size: 32px; }
    .cit-hero__title { font-size: 38px; }
}
@media (max-width: 768px) {
    .cit-hero { padding: 48px 0 56px; }
    .cit-what,
    .cit-included,
    .cit-reviews,
    .cit-faq,
    .cit-founder { padding-top: 56px; padding-bottom: 56px; }
    .cit-qualifies,
    .cit-timeline,
    .cit-compare { padding-bottom: 56px; }
    .cit-qualifies__grid { grid-template-columns: 1fr; }
    .cit-section-subtitle { margin-bottom: 32px; }
}

/* tod-form overrides — dark background context */
.contacts-cta .tod-form-wrapper {
    --tod-color-primary:          #fc0;
    --tod-color-primary-hover:    #e6b800;
    --tod-color-primary-focus:    rgba(255, 204, 0, 0.2);
    --tod-color-input-bg:         rgba(255, 255, 255, 0.06);
    --tod-color-input-bg-hover:   rgba(255, 255, 255, 0.10);
    --tod-color-input-border:     rgba(255, 244, 200, 0.12);
    --tod-color-text:             #fbf8f2;
    --tod-color-text-muted:       rgba(243, 238, 229, 0.7);
    --tod-color-text-faint:       #a8b2c0;
    --tod-color-overlay-bg:       rgba(10, 34, 64, 0.6);
    --tod-color-error:            #ff9b9b;
    --tod-color-error-bg:         rgba(220, 38, 38, 0.16);
    --tod-color-error-border:     #ff6b6d;
    --tod-radius-input:           8px;
    --tod-radius-button:          8px;
}
.contacts-cta .tod-form__submit { color: #0a1f3a; }
.contacts-cta .tod-form { margin: 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .contacts-info__grid,
    .contacts-cta__inner {
        grid-template-columns: 1fr;
    }
    .contacts-info__map,
    .contacts-info__map .map-item {
        min-height: 320px;
    }
    .contacts-cta__desc { max-width: 100%; }
    .contacts-cta { padding: 70px 0; }
}

@media (max-width: 768px) {
    .contacts-hero { padding: 28px 0 0; }
    .contacts-hero__title { font-size: 36px; }
    .contacts-info { padding: 28px 0 56px; }
    .contacts-cta { padding: 56px 0; }
    .contacts-cta .contacts-cta__title { font-size: 32px; }
}


/* ============================================================
 * === SINGLE POST ===
 * ============================================================ */

/* --- Post header --- */
.post-header {
    background: #0e2a4a;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px 40px 36px;
    margin-bottom: 40px;
}
.post-header__inner {
    max-width: 773px;
}
.post-header__meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
    padding: 0;
    margin: 0 0 14px;
}
.post-header__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #ddd3bd;
    line-height: 1;
}
.post-header__meta-icon {
    width: 13px;
    height: 13px;
    color: #ddd3bd;
    flex: none;
}
.post-header__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #f3eee5;
    margin: 0 0 12px;
}
.post-header__title em {
    font-style: italic;
    color: var(--gold);
}
.post-header__lead {
    font-size: 16px;
    color: rgba(251, 248, 242, 0.82);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 0 24px;
}
.post-header__byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(221, 211, 189, 0.35);
}
.post-header__author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.post-header__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ede6d6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 14px;
    color: #5a6878;
    flex: none;
    overflow: hidden;
}
.post-header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-header__author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.post-header__author-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
}
.post-header__author-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}
.post-header__reviewer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Post layout (2-column grid) --- */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 47px;
    align-items: start;
    padding-bottom: 72px;
}
.post-article { min-width: 0; }

.post-aside {
    position: sticky;
    top: 88px;
}

/* --- Post sidebar wrapper --- */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Article content typography --- */
.post-content {
    font-size: 16px;
    color: #2e3d52;
    line-height: 1.75;
}

.post-content h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.33px;
    color: var(--navy);
    margin: 48px 0 14px;
    /* Offset anchor jumps so the sticky header doesn't cover the heading */
    scroll-margin-top: calc(var(--header-h, 76px) + 20px);
}
.post-content h2:first-child { margin-top: 0; }

.post-content h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 17px;
    color: var(--navy);
    line-height: 1.3;
    margin: 28px 0 8px;
}
.post-content h3:first-child { margin-top: 0; }

.post-content p {
    margin: 0 0 14px;
}
.post-content p:last-child { margin-bottom: 0; }

.post-content strong { font-weight: 600; color: var(--navy); }
.post-content em { font-style: italic; }
.post-content a { color: #1e3f73; text-decoration: underline; }
.post-content a:hover { text-decoration: none; }

.post-content ul,
.post-content ol {
    padding-left: 22px;
    margin: 0 0 14px;
}
.post-content li + li { margin-top: 4px; }
.post-content ul:last-child,
.post-content ol:last-child { margin-bottom: 0; }

/* Unordered lists — small circle markers in the text color */
.post-content ul {
    list-style: none;
    padding-left: 20px;
}
.post-content ul > li {
    position: relative;
}
.post-content ul > li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Ordered lists — minimal numbers, right-aligned in navy */
.post-content ol {
    list-style: none;
    padding-left: 28px;
    counter-reset: post-ol;
}
.post-content ol > li {
    position: relative;
    counter-increment: post-ol;
}
.post-content ol > li::before {
    content: counter(post-ol) '.';
    position: absolute;
    left: -28px;
    top: 0;
    width: 22px;
    text-align: right;
    font-weight: 600;
    color: var(--navy);
}

/* Blockquote — pale yellow bg, gold left border, right corners only */
.post-content blockquote {
    background: #fff1b3;
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    padding: 24px 20px 16px 23px;
    font-size: 15.5px;
    font-style: italic;
    line-height: 27px;
    color: #0a1f3a;
    margin: 0 0 14px;
}
.post-content blockquote:last-child { margin-bottom: 0; }

/* Table — flat rows, no verticals, horizontal scroll on overflow */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 14px;
    font-size: 15px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.post-content table:last-child { margin-bottom: 0; }

.post-content th,
.post-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e3e7ee;
}
/* .post-content th:first-child,
.post-content td:first-child { padding-left: 0; }
.post-content th:last-child,
.post-content td:last-child { padding-right: 0; } */

.post-content th {
    font-weight: 600;
    color: var(--navy);
    border-bottom: 2px solid var(--navy);
    white-space: nowrap;
}

.post-content tr:last-child td { border-bottom: none; }

.post-content thead tr,
table.table-head-left tr td:first-child {
    background-color: #CFE4FF !important; /* Цвет фона шапки таблицы */
    color: #2C2837;
    font-size: 20px;
    font-weight: 600;
}
table.table-head-left tr td:first-child {
    padding: 13px 10px 13px 28px;
    border-right: 1px solid #CCC;
}

/* Content blocks — raw HTML embedded directly in post content (not shortcodes) */
.post-content .post-note,
.post-content .post-tip,
.post-content .post-icon-list,
.post-content .post-checklist-grid,
.post-content .post-mistake-list {
    margin-top: 4px;
    margin-bottom: 14px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin-bottom: 14px;
}
.post-content img:last-child { margin-bottom: 0; }

.alignleft {
    float: left;
    margin: 7px 20px 20px 0;
}
.alignright {
    float: right;
    margin: 7px 0 20px 20px;
}

/* --- Note callout (blue card, full border) --- */
.post-note {
    background: #dce5f1;
    border: 1px solid #c0cedf;
    border-radius: 12px;
    padding: 29px 23px 21px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #1e3f73;
    margin: 0;
}
.post-note strong { color: #1e3f73; }

/* --- Tip callout (yellow, with icon) --- */
.post-tip {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #2e3d52;
    display: flex;
    gap: 12px;
}
.post-tip__icon { font-size: 18px; flex: none; }

/* --- Icon card list (services / steps) --- */
.post-icon-list {
    border: 1px solid #ddd3bd;
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
}
.post-icon-item {
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px 21px;
    border-bottom: 1px solid #ddd3bd;
}
.post-icon-item:last-child { border-bottom: none; }
.post-icon-item__badge {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex: none;
}
.post-icon-item__badge--num {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.post-icon-item__title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 4px;
    line-height: 1.3;
}
.post-icon-item__text {
    font-size: 14px;
    color: #5a6878;
    line-height: 21px;
    margin: 0;
}

/* --- Two-column document checklist (cards) --- */
.post-checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
}
.post-check-item {
    background: #fff;
    border: 1px solid #ddd3bd;
    border-radius: 12px;
    padding: 15px 17px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.post-check-item__icon {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #1e3f73;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex: none;
    line-height: 1;
}
.post-check-item__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 2px;
    line-height: 1.75;
}
.post-check-item__desc {
    font-size: 12.5px;
    color: #5a6878;
    line-height: 1.75;
    margin: 0;
}

/* --- Mistake list (red accent, right-corner rounded) --- */
.post-mistake-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}
.post-mistake-item {
    background: #fff;
    border: 1px solid #e8543a;
    border-left-width: 3px;
    border-radius: 0 12px 12px 0;
    padding: 17px 21px 17px 23px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.post-mistake-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.54px;
    text-transform: uppercase;
    color: #e8543a;
    margin: 0;
    line-height: 1.75;
}
.post-mistake-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    line-height: 1.75;
}
.post-mistake-text {
    font-size: 14px;
    color: #5a6878;
    line-height: 21px;
    margin: 0;
}
.post-mistake-fix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #2d6a4f;
    margin: 0;
}
.post-mistake-fix::before {
    content: '✓';
    color: #2d6a4f;
    font-size: 12px;
    font-weight: 700;
    flex: none;
}

/* ============================================================
 * === POST SIDEBAR ===
 * ============================================================ */

/* --- TOC widget --- */
.post-toc {
    background: #fff;
    border: 1px solid #ddd3bd;
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(10, 31, 58, 0.06);
    padding: 24px 25px 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.post-toc__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.98px;
    text-transform: uppercase;
    color: #6b7785;
    margin: 0;
    line-height: 1.65;
}

/* Kama-contents generated UL */
#tocmenu.content-about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    counter-reset: toc-counter;
}
#tocmenu.content-about-list .kamatoc__top {
    counter-increment: toc-counter;
}
#tocmenu.content-about-list .kamatoc__top a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px 7px 12px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    text-decoration: none;
    color: #5a6878;
    font-size: 13.5px;
    line-height: 1.4;
    transition: background 0.15s;
}
#tocmenu.content-about-list .kamatoc__top a::before {
    content: counter(toc-counter, decimal-leading-zero);
    font-size: 11px;
    font-weight: 700;
    color: #96a3b2;
    min-width: 18px;
    flex: none;
}
#tocmenu.content-about-list .kamatoc__top a:hover {
    background: #edf1f8;
    color: #1e3f73;
}
#tocmenu.content-about-list .kamatoc__top.is-active a {
    background: #dce5f1;
    border-left-color: var(--gold);
    color: #1e3f73;
    font-weight: 600;
}
#tocmenu.content-about-list .kamatoc__top.is-active a::before {
    color: #1e3f73;
}

/* --- Consultation form in article sidebar (gold top accent) --- */
.post-sidebar .doc-sidebar-form {
    border: 1px solid #ddd3bd;
    border-top: 3px solid var(--gold);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(10, 31, 58, 0.06);
    padding: 0;
}
.post-sidebar .doc-sidebar-form__head {
    background: #fbf7ee;
    border-bottom: 1px solid #ddd3bd;
    padding: 18px 22px 15px;
}
.post-sidebar .doc-sidebar-form__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    color: var(--navy);
    margin: 0 0 3px;
    line-height: 1.65;
}
.post-sidebar .doc-sidebar-form__subtitle {
    font-size: 12.5px;
    color: #6b7785;
    margin: 0;
    line-height: 1.65;
}
.post-sidebar .doc-sidebar-form__body {
    padding: 16px 22px 18px;
}

/* --- Related services in article sidebar (cream head, shadow) --- */
.post-sidebar .doc-related {
    border: 1px solid #ddd3bd;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(10, 31, 58, 0.06);
    padding: 0;
}
.post-sidebar .doc-related__head {
    background: #fbf7ee;
    border-bottom: 1px solid #ddd3bd;
    padding: 18px 22px 15px;
}
.post-sidebar .doc-related__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    color: var(--navy);
    margin: 0 0 3px;
}
.post-sidebar .doc-related__subtitle {
    font-size: 12.5px;
    color: #6b7785;
    margin: 0;
}
.post-sidebar .doc-related__list {
    padding: 8px 12px 12px;
    gap: 2px;
}
.post-sidebar .doc-related__item {
    border-radius: 8px;
    height: 48px;
}
.post-sidebar .doc-related__icon {
    width: 28px;
    height: 28px;
    background: #f7f2e8;
    border: 1px solid #ddd3bd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex: none;
    padding: 0;
}
.post-sidebar .doc-related__label {
    font-size: 13.5px;
    color: #2e3d52;
}
.post-sidebar .doc-related__arrow {
    font-size: 11px;
    color: #6b7785;
    margin-left: auto;
}

/* --- Testimonial / review card --- */
.post-review {
    background: #fff;
    border: 1px solid #ddd3bd;
    border-radius: 12px;
    padding: 21px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.post-review__stars {
    color: var(--gold);
    font-size: 12px;
    margin: 0;
}
.post-review__quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    color: var(--navy);
    line-height: 23.1px;
    margin: 6px 0 0;
}
.post-review__author {
    font-size: 12px;
    font-weight: 600;
    color: #2e3d52;
    margin: 7px 0 0;
}
.post-review__result {
    font-size: 11px;
    color: #2d6a4f;
    margin: 0;
}

/* --- Download checklist widget (sidebar) --- */
.post-checklist-widget {
    background: linear-gradient(134.84deg, #0a1f3a 0%, #1e3f73 100%);
    border-radius: var(--r-lg);
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-checklist-widget__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 244, 200, 0.12);
    border: 1px solid rgba(255, 244, 200, 0.14);
    border-radius: 100px;
    height: 28px;
    padding: 0 12px 0 8px;
    width: fit-content;
}
.post-checklist-widget__badge-icon {
    width: 10px;
    height: 10px;
    color: var(--gold);
    flex: none;
}
.post-checklist-widget__badge-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}
.post-checklist-widget__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 17px;
    color: #f4efe3;
    line-height: 1.3;
    letter-spacing: -0.255px;
    margin: 0;
}
.post-checklist-widget__text {
    font-size: 13px;
    color: #a8b2c0;
    line-height: 1.55;
    margin: 0;
}
.post-checklist-widget__list {
    list-style: none;
    padding: 8px 0 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.post-checklist-widget__item {
    position: relative;
    padding-left: 18px;
    font-size: 12.5px;
    color: #a8b2c0;
    line-height: 1.6;
}
.post-checklist-widget__item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.post-checklist-widget__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 14px 27px 15px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.52px;
    color: var(--navy);
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}
.post-checklist-widget__btn:hover { background: #f0c200; }

/* ============================================================
 * === RELATED POSTS ===
 * ============================================================ */
.related-posts {
    padding: 64px 0;
    border-top: 1px solid var(--line);
}
.related-posts__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 32px;
}
.related-posts__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted, #8a8a82);
    margin: 0 0 6px;
}
.related-posts__eyebrow-dash {
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--line);
}
.related-posts__h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 34px;
    letter-spacing: -0.01em;
    color: #1b2a3d;
    margin: 0;
}
.related-posts__all {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e3f73;
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 4px;
    transition: opacity 0.2s;
}
.related-posts__all:hover { opacity: 0.7; }
.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Related article card */
.related-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.related-card:hover { box-shadow: 0 4px 18px rgba(27, 42, 61, 0.1); }

.related-card__image {
    display: block;
    height: 140px;
    background: #e8eef5;
    position: relative;
    flex: none;
    overflow: hidden;
}
.related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.related-card__cat {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    padding: 3px 10px;
    background: rgba(27, 42, 61, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
}
.related-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.related-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.25;
    color: #1b2a3d;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.related-card__title a {
    text-decoration: none;
    color: inherit;
}
.related-card__title a:hover { color: #1e3f73; }
.related-card__desc {
    font-size: 13.5px;
    color: #50596a;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.related-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 16px;
}
.related-card__time { font-size: 12px; color: #8a8a82; }
.related-card__link {
    font-size: 12.5px;
    font-weight: 600;
    color: #1e3f73;
    text-decoration: none;
}
.related-card__link:hover { text-decoration: underline; }

/* ============================================================
 * === POST CTA ===
 * ============================================================ */
.post-cta {
    background: #06172e;
    padding: 80px 0;
}
.post-cta__inner {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.post-cta__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}
.post-cta__eyebrow-dash {
    display: inline-block;
    width: 20px;
    height: 1px;
    background: rgba(255, 204, 0, 0.5);
}
.post-cta__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 38px;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: #f3eee5;
    margin: 0;
}
.post-cta__title em {
    font-style: italic;
    color: var(--gold);
}
.post-cta__text {
    font-size: 16px;
    color: rgba(243, 238, 229, 0.75);
    line-height: 1.62;
    margin: 0;
}
.post-cta__btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}
.post-cta__btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--navy);
    text-decoration: none;
    transition: background 0.2s;
}
.post-cta__btn-primary:hover { background: #f0c200; }
.post-cta__btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(243, 238, 229, 0.25);
    border-radius: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f3eee5;
    text-decoration: none;
    transition: border-color 0.2s;
}
.post-cta__btn-ghost:hover { border-color: rgba(243, 238, 229, 0.6); }
.post-cta__trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    padding: 0;
    margin: 2px 0 0;
}
.post-cta__trust-item {
    font-size: 12.5px;
    color: rgba(244, 239, 227, 0.7);
}
.post-cta__trust-item::before {
    content: '✓ ';
    color: var(--gold);
}

/* ============================================================
 * === SINGLE POST — Responsive ===
 * ============================================================ */
@media (max-width: 1100px) {
    .post-layout {
        grid-template-columns: 1fr 300px;
        gap: 36px;
    }
}

@media (max-width: 900px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 56px;
    }
    .post-aside {
        position: static;
    }
    .post-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    /* .post-toc,
    .doc-sidebar-form,
    .post-review,
    .doc-related,
    .post-checklist-widget {
        flex: 1 1 280px;
    } */
    .post-header { padding: 18px 24px 32px; }
    .post-header__title { font-size: 32px; }
    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-header { padding: 16px 20px 28px; }
    .post-header__inner { display: flex; flex-direction: column; }
    .post-header__title { order: -1; font-size: 30px; }
    .post-header__lead { font-size: 15px; }
    .post-header__byline { flex-direction: column; align-items: flex-start; gap: 8px; }
    .post-content h2 { font-size: 22px; }
    .post-checklist-grid { grid-template-columns: 1fr; }
    .related-posts { padding: 48px 0; }
    .related-posts__grid { grid-template-columns: 1fr; }
    .related-posts__header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .related-posts__h2 { font-size: 28px; }
    .post-cta { padding: 56px 0; }
    .post-cta__title { font-size: 30px; }
    .post-cta__btns { flex-direction: column; width: 100%; }
    .post-cta__btn-primary,
    .post-cta__btn-ghost { width: 100%; justify-content: center; }
    .post-sidebar {
        flex-direction: column;
    }
}

/* === Quiz === */
.quiz {
    --quiz-soft: #fbf7ee;
    --quiz-cta: #22304a;
    --quiz-mark: #8f99a6;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: 0 6px 12px rgba(10, 31, 58, .06);
    font-family: var(--font-body);
}

/* header */
.quiz__badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}
.quiz__badge-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(255, 204, 0, .45);
    animation: quiz-pulse 2s ease-out infinite;
}
@keyframes quiz-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, .45);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 204, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .quiz__badge-dot {
        animation: none;
        box-shadow: 0 0 0 3px rgba(255, 204, 0, .18);
    }
}
.quiz__title {
    margin: 0 0 10px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -.6px;
    line-height: 1.1;
}
.quiz__title-em {
    color: var(--blue-soft);
    font-style: italic;
}
.quiz__sub {
    margin: 0 0 20px;
    color: var(--slate);
    font-size: 13.5px;
    line-height: 1.55;
}

/* progress */
.quiz__progress {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.quiz__progress-seg {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--line);
    transition: background .25s;
}
.quiz__progress-seg--on {
    background: var(--gold);
}

/* step */
.quiz__step {
    margin: 0;
    padding: 0;
    border: 0;
}
.quiz__step[hidden] {
    display: none;
}
.quiz__steplabel {
    padding: 0;
    margin-bottom: 13px;
    color: var(--slate);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.89px;
    text-transform: uppercase;
}
.quiz__question {
    margin: 0 0 20px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -.22px;
    line-height: 1.25;
}

/* options */
.quiz__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.quiz__option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    background: var(--quiz-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.quiz__option:hover {
    border-color: var(--gold-muted);
}
.quiz__option:has(.quiz__option-input:checked) {
    background: #fff;
    border-color: var(--blue-soft);
}
.quiz__option-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.quiz__option-mark {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 1px solid var(--quiz-mark);
    border-radius: 50%;
    transition: border-color .15s, box-shadow .15s;
}
.quiz__option-input:checked + .quiz__option-mark {
    border-color: var(--blue-soft);
    box-shadow: inset 0 0 0 3px var(--blue-soft);
}
.quiz__option-input:focus-visible + .quiz__option-mark {
    box-shadow: 0 0 0 3px rgba(30, 63, 115, .25);
}
.quiz__option-text {
    color: var(--slate-deep);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
}

/* footer */
.quiz__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.quiz__back,
.quiz__next {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .72px;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
}
.quiz__back {
    padding: 10px 4px;
    background: none;
    color: var(--slate);
}
.quiz__back:disabled {
    opacity: .3;
    cursor: default;
}
.quiz__next {
    padding: 12px 22px;
    background: var(--quiz-cta);
    color: #f4efe3;
    transition: opacity .15s, background .15s;
}
.quiz__next:not(:disabled):hover {
    background: #2c3a57;
}
.quiz__next:disabled {
    background: var(--quiz-mark);
    opacity: .5;
    cursor: not-allowed;
}

/* result */
.quiz__result-title {
    margin: 0 0 16px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -.22px;
    line-height: 1.25;
}
.quiz__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.quiz__chips:empty {
    display: none;
}
.quiz__chip {
    padding: 6px 11px;
    background: var(--cream);
    border: 1px solid #ece7da;
    border-radius: 999px;
    color: #3a4358;
    font-size: 11.5px;
    font-weight: 500;
}
.quiz__result-body {
    margin: 0 0 20px;
    color: #8c9098;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.62;
}
.quiz__cta {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--quiz-cta);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background .15s;
}
.quiz__cta:hover {
    background: #2c3a57;
}
.quiz__cta-note {
    margin: 12px 0 20px;
    color: #8c9098;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}
.quiz__specialist {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f0eee9;
}
.quiz__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--cream);
    border: 1px solid #d8c388;
    border-radius: 50%;
    color: #bf9a36;
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
}
.quiz__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quiz__who {
    display: flex;
    flex-direction: column;
}
.quiz__who-name {
    color: #3a4358;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.quiz__who-role {
    color: #8c9098;
    font-size: 12px;
    line-height: 1.4;
}
.quiz__restart {
    margin: 16px auto 0;
    padding: 0;
    background: none;
    border: 0;
    color: #9aa0a8;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}
.quiz__restart:hover {
    color: var(--slate);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .quiz {
        padding: 31px;
    }
    .quiz__title {
        font-size: 30px;
    }
}

/* ============================================================
 * === Popup: Expert Call (template-parts/popup-expert-call.php)
 * Лид-попап, открывается через Fancybox (.js-popup / baseClass popup-fancybox).
 * ============================================================ */

/* --- Fancybox-обёртка --- */
.popup-fancybox .fancybox-bg {
    background: #0a1526;
}
.popup-fancybox .fancybox-slide {
    padding: 30px 16px;
}

/* --- Карточка ---
 * Fancybox вешает класс .fancybox-content на сам #popup-expert-call,
 * поэтому .popup-expert (грузится после fancybox.css, та же специфичность)
 * сам перекрывает дефолтные фон/паддинг/overflow .fancybox-content. */
.popup-expert {
    position: relative;
    box-sizing: border-box;
    width: 640px;
    max-width: 100%;
    padding: 40px 24px 32px;
    text-align: left;
    background: var(--paper);
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 40px 60px rgba(15, 22, 40, 0.45);
}

.popup-expert__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 22, 40, 0.12);
    color: var(--navy);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}
.popup-expert__close:hover {
    background: var(--cream-warm);
}

/* --- Плашка над заголовком --- */
.popup-expert__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
}
.popup-expert__spark {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 1px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* --- Аватар + заголовок --- */
.popup-expert__hero {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 24px;
}
.popup-expert__avatar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #f1eadb;
    background: var(--cream-warm);
    box-shadow: 0 6px 9px rgba(15, 22, 40, 0.14);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    color: var(--navy);
    overflow: hidden;
}
.popup-expert__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.popup-expert__intro {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.popup-expert__title {
    margin: 0;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 6px 18px 18px 18px;
    background: var(--cream-warm);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.3;
    color: var(--ink);
}
.popup-expert__accent {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    color: var(--blue);
}
.popup-expert__byline {
    margin: 0;
    padding-left: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}
.popup-expert__byline strong {
    color: var(--ink);
    font-weight: 600;
}
/* Квиз-попап: фото Марты стоит рядом с её именем. */
.popup-expert__byline--photo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
}
.popup-expert__byline-photo {
    flex: none;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f1eadb;
    box-shadow: 0 4px 8px rgba(15, 22, 40, 0.14);
}
.popup-expert__byline-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Рекап ответов квиза (variant=quiz) внутри бабла-заголовка --- */
.popup-expert__title--quiz {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
}
.popup-expert__recap-label {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.popup-expert__answers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.popup-expert__answer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 14px;
    border-left: 2px solid var(--gold);
}
.popup-expert__answer-cat {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.popup-expert__answer-val {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.3;
}
.popup-expert__recap-cta {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.4;
}

/* --- Форма (переопределения TOD Forms под макет) ---
 * Оба попапа: expert_call (шапка/футер) и eligibility_check (квиз-попап
 * #quiz-callback). ID-селекторы — чтобы бить базовый .tod-form-wrapper вне
 * зависимости от порядка подключения style.css и tod-forms.css плагина.
 * Citizenship-форму не задевает — там id cit-hero-form-eligibility_check. */
#tod-form-expert_call,
#tod-form-eligibility_check {
    --tod-color-primary: var(--blue);
    --tod-color-primary-hover: #00257a;
    --tod-color-primary-focus: rgba(0, 51, 153, 0.15);
    --tod-color-input-bg: #fff;
    --tod-color-input-bg-hover: #fff;
    --tod-color-input-border: var(--line);
    --tod-radius-input: 12px;
    --tod-radius-button: 999px;
    --tod-font-size-base: 15px;
    --tod-font-size-button: 17px;
    --tod-input-pad-y: 16px;
    --tod-input-pad-x: 18px;
}
#tod-form-expert_call .tod-form,
#tod-form-eligibility_check .tod-form {
    margin: 0;
}
#tod-form-expert_call .tod-form__row,
#tod-form-eligibility_check .tod-form__row {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}
#tod-form-expert_call .tod-form__checkbox-group,
#tod-form-eligibility_check .tod-form__checkbox-group {
    margin: 4px 0 20px;
}
#tod-form-expert_call .tod-form__checkbox,
#tod-form-eligibility_check .tod-form__checkbox {
    align-items: center;
    gap: 10px;
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.4;
}
#tod-form-expert_call .tod-form__checkbox input,
#tod-form-eligibility_check .tod-form__checkbox input {
    flex: none;
    width: 18px;
    height: 18px;
    accent-color: var(--navy);
}
#tod-form-expert_call .tod-form__checkbox a,
#tod-form-eligibility_check .tod-form__checkbox a {
    color: var(--ink);
}
#tod-form-expert_call .tod-form__submit,
#tod-form-eligibility_check .tod-form__submit {
    width: 100%;
    padding: 19px 30px;
    font-weight: 700;
    box-shadow: 0 14px 22px rgba(255, 204, 0, 0.38);
}
#tod-form-expert_call .tod-form__submit:hover,
#tod-form-eligibility_check .tod-form__submit:hover {
    box-shadow: 0 10px 18px rgba(255, 204, 0, 0.45);
}

/* --- 404 --- */
.page__404__section {
    margin: 50px 0 50px;
    padding: 50px 0;
    background-image: url('../images/moise@2x-min.png');
    background-repeat: no-repeat;
    background-position: right;
    background-size: 745px;
}
.title-404 {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 35px;
    color: var(--blue);
}
.description-404 {
    position: relative;
    font-size: 33px;
    font-weight: 300;
    color: var(--ink);
    margin: 0 0 47px;
    width: fit-content;
}
.description-404::after {
    position: absolute;
    content: "";
    top: 10px;
    right: -150px;
    width: 240px;
    height: 200px;
    display: block;
    background-image: url('../images/arrow-yellow-min.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 240px;
    z-index: -1;
}
.description-404-highlight {
    font-weight: 500;
    color: var(--blue);
}
.links-404 {
    max-width: 422px;
}
.title-links-404 {
    text-align: center;
    font-size: 30px;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 21px;
}
.button-link-404 {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 25px;
    color: var(--ink);
    border: 3px solid var(--gold);
    border-radius: 42px;
    padding: 6px 0;
    margin: 0 0 12px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}
.button-link-404::after {
    height: 0;
    left: 50%;
    top: 50%;
    width: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}
.button-link-404::before, .button-link-404::after {
    content: '';
    position: absolute;
    z-index: -1;
    background-color: var(--gold);
    border-radius: 50px;
}
.button-link-404:hover {
    color: var(--navy);
}
.button-link-404:hover:after {
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .popup-expert {
        width: 660px;
        padding: 56px 48px 46px;
        border-radius: 30px;
    }
    .popup-expert__close {
        top: 18px;
        right: 18px;
    }
    .popup-expert__hero {
        gap: 18px;
    }
    .popup-expert__avatar {
        width: 90px;
        height: 90px;
        font-size: 30px;
    }
    .popup-expert__title {
        padding: 16px 20px;
        font-size: 22px;
    }
    .popup-expert__byline {
        font-size: 13.5px;
    }
    .popup-expert__title--quiz {
        font-size: 16px;
    }
    .popup-expert__answer-val {
        font-size: 15px;
    }
    .popup-expert__recap-cta {
        font-size: 16px;
    }
}

/* ============================================================
 * === SEARCH (searchform.php, search.php) ===
 * ============================================================ */

/* --- Форма поиска (базовый вид) --- */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form__input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}

.search-form__input::placeholder { color: var(--muted); }

.search-form__input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(10, 31, 58, .08);
}

.search-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--navy);
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.search-form__submit:hover {
    background: #13294a;
    border-color: #13294a;
}

.search-form__submit .icon {
    width: 18px;
    height: 18px;
}

/* --- Шапка страницы результатов --- */
.search-form--page {
    max-width: 520px;
    margin: 0 0 40px;
}

/* --- Футер: лупа, открывающая попап поиска --- */
.footer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.footer__search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.footer__search:hover {
    border-color: var(--blue);
    background: #fff;
}

.footer__search .icon {
    width: 18px;
    height: 18px;
}

/* --- Попап поиска (template-parts/popup-search.php) --- */
.popup-search {
    position: relative;
    box-sizing: border-box;
    width: 738px;
    max-width: 100%;
    padding: 40px 42px 36px;
    text-align: left;
    background: #fff;
    border-radius: 26px;
    overflow: visible;
    box-shadow: 0 40px 45px rgba(15, 22, 40, 0.55);
}

.popup-search__close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9a927e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.popup-search__close:hover {
    background: var(--cream-warm);
    color: var(--navy);
}

.popup-search__title {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 30px;
    line-height: 1.2;
    color: #16233f;
}
.popup-search__title-accent {
    font-style: italic;
    color: var(--blue);
}

/* --- Форма поиска в попапе: поле с иконкой + отдельная кнопка --- */
.search-form--popup {
    gap: 14px;
}

.search-form--popup .search-form__field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 58px;
    border: 1px solid #e6dec9;
    border-radius: 14px;
    background: #fbf8f0;
    transition: border-color .15s, box-shadow .15s;
}
.search-form--popup .search-form__field:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 153, .08);
}

.search-form--popup .search-form__field .icon {
    flex: none;
    width: 19px;
    height: 19px;
    margin: 0 12px 0 18px;
    color: #9a927e;
}

.search-form--popup .search-form__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 16px 0 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    color: var(--ink);
}
.search-form--popup .search-form__input:focus {
    outline: none;
    box-shadow: none;
}
.search-form--popup .search-form__input::placeholder { color: #a39b86; }

.search-form--popup .search-form__submit {
    width: auto;
    height: 58px;
    padding: 0 30px;
    border-color: var(--blue);
    border-radius: 14px;
    background: var(--blue);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.search-form--popup .search-form__submit:hover {
    background: #002a80;
    border-color: #002a80;
}

/* --- Популярные запросы --- */
.popup-search__popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
}
.popup-search__popular-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #9a927e;
}
.popup-search__tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #ece3cd;
    border-radius: 999px;
    background: #f9f5eb;
    font-size: 13px;
    font-weight: 600;
    color: #16233f;
    transition: background .15s, border-color .15s;
}
.popup-search__tag:hover {
    background: #fff;
    border-color: var(--blue);
    color: var(--blue);
}

/* --- Карточка результата: вместо номера — рубрика и дата --- */
.kb-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8c9aad;
}

.kb-card__type { color: #2b4c86; }

.kb-card__type + .kb-card__date::before {
    content: '·';
    margin-right: 8px;
}

.kb-card--search .kb-card__title a {
    color: inherit;
    transition: color .15s;
}

.kb-card--search .kb-card__title a:hover { color: var(--blue); }

/* --- Подсветка слов запроса в карточке --- */
.search-mark {
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(255, 204, 0, .35);
    color: inherit;
    font-weight: inherit;
}

@media (max-width: 768px) {
    .search-form--page { max-width: none; }
}

/* --- Попап поиска: адаптив --- */
@media (max-width: 560px) {
    .popup-search {
        padding: 34px 20px 26px;
        border-radius: 20px;
    }
    .popup-search__title { font-size: 24px; }
    .search-form--popup { flex-direction: column; align-items: stretch; gap: 10px; }
    .search-form--popup .search-form__field { flex: none; width: 100%; }
    .search-form--popup .search-form__submit { width: 100%; }
}
