/**
 * Оболочка «ДОКИ» вокруг [yvo_contract_form] (см. views/partials/doki-contract-hero.php).
 * Раньше здесь скрывали .yvo-cab-topbar — теперь шапка Dokii в контенте (doki-contract-hero),
 * а дубликат в wp_body_open не выводится (см. yvo_contract_page_uses_doki_hero_header).
 */

/*
 * Ширина без 100vw + отрицательных margin: иначе появляется горизонтальный скролл
 * (100vw включает полосу прокрутки не везде одинаково) и обрезаются кнопки справа.
 * Разворачиваем контент через max-width у обёрток темы ниже + width: 100%.
 */
html:has(.yvo-doki-contract-page),
html.yvo-contract-form-doki-page {
    overflow-x: clip;
}

body.yvo-contract-form-doki-page,
body:has(.yvo-doki-contract-page) {
    overflow-x: clip;
}

body.yvo-contract-form-doki-page .yvo-doki-contract-page,
body:has(.yvo-doki-contract-page) .yvo-doki-contract-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(0.65rem, 2.5vw, 2rem);
    padding-right: clamp(0.65rem, 2.5vw, 2rem);
    box-sizing: border-box;
}

body.yvo-contract-form-doki-page .yvo-frontend-page,
body:has(.yvo-doki-contract-page) .yvo-frontend-page {
    max-width: none !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Типичные обёртки тем (Blocksy, Astra, Twenty*) — не сжимать контент */
body.yvo-contract-form-doki-page .entry-content,
body.yvo-contract-form-doki-page .site-content,
body.yvo-contract-form-doki-page #primary,
body.yvo-contract-form-doki-page .content-area,
body:has(.yvo-doki-contract-page) .entry-content,
body:has(.yvo-doki-contract-page) .site-content,
body:has(.yvo-doki-contract-page) #primary,
body:has(.yvo-doki-contract-page) .content-area {
    max-width: none !important;
}

.yvo-doki-contract-page {
    --ink: #1b2330;
    --muted: #6a778a;
    --line: rgba(20, 30, 50, 0.12);
    --shadow-sm: 0 10px 24px rgba(16, 24, 40, 0.1);
    box-sizing: border-box;
    margin: 0 0 1rem;
    padding: max(0.2rem, env(safe-area-inset-top)) max(0.65rem, env(safe-area-inset-right)) 0 max(0.65rem, env(safe-area-inset-left));
    background: radial-gradient(circle at 10% 20%, #e6edf7, #eef2f7);
    background-image:
        radial-gradient(circle at 10% 20%, #e6edf7 0%, #eef2f7 45%),
        radial-gradient(circle at 20% 10%, rgba(44, 102, 197, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 90% 30%, rgba(246, 180, 10, 0.1) 0%, transparent 40%),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.018) 0px, rgba(0, 0, 0, 0.018) 2px, transparent 2px, transparent 9px);
    color: var(--ink);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* Главная — белый фон; форма договоров — neomorphic подложка */
.yvo-doki-contract-page.yvo-doki-home-page {
    background: #fff;
    background-image: none;
}

.yvo-doki-contract-page:has(.yvo-doki-form-skin) {
    background: #f7f3f0;
    background-image:
        radial-gradient(circle at 8% 14%, rgba(251, 140, 0, 0.16) 0%, transparent 42%),
        radial-gradient(circle at 94% 12%, rgba(110, 168, 255, 0.14) 0%, transparent 40%),
        radial-gradient(circle at 48% 92%, rgba(255, 183, 77, 0.12) 0%, transparent 38%);
}

@media (min-width: 768px) {
    body.yvo-contract-form-doki-page .yvo-doki-contract-page,
    body:has(.yvo-doki-contract-page) .yvo-doki-contract-page {
        padding-top: 0.35rem;
        padding-bottom: 0;
    }
}

.yvo-doki-contract-page *,
.yvo-doki-contract-page *::before,
.yvo-doki-contract-page *::after {
    box-sizing: border-box;
}

.yvo-doki-contract-page .doki-brand--link {
    text-decoration: none;
    color: inherit;
}

.yvo-doki-contract-page .doki-top {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.yvo-doki-contract-page .doki-brand {
    min-width: 0;
}

.yvo-doki-contract-page .doki-brand-main {
    display: block;
    font-weight: 900;
    font-size: clamp(1.1rem, 4.8vw, 1.45rem);
    letter-spacing: 0.14em;
    color: var(--ink);
}

.yvo-doki-contract-page .doki-brand-sub {
    display: block;
    margin-top: 0.25rem;
    font-size: clamp(0.76rem, 3.2vw, 0.88rem);
    color: var(--muted);
    font-weight: 600;
}

.yvo-doki-contract-page .doki-auth {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.yvo-doki-contract-page .doki-auth-btn {
    border: 1px solid rgba(20, 30, 50, 0.18);
    background: linear-gradient(165deg, #ffffff 0%, #f0f3f9 55%, #e6ecf4 100%);
    color: var(--ink);
    font-weight: 900;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    box-shadow:
        0 12px 28px rgba(110, 125, 155, 0.26),
        0 4px 10px rgba(255, 255, 255, 0.98) inset,
        0 -6px 18px rgba(165, 178, 200, 0.2) inset;
    text-decoration: none;
    font-size: 0.9rem;
}

.yvo-doki-contract-page .doki-auth-user__name {
    font-weight: 900;
    font-size: 0.82rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yvo-doki-contract-page .doki-auth-link {
    border: none;
    background: transparent;
    color: rgba(27, 35, 48, 0.85);
    font-weight: 800;
    cursor: pointer;
    padding: 4px 6px;
    text-decoration: none;
    font-size: 0.82rem;
}

.yvo-doki-contract-page .doki-auth-link:hover {
    color: #2c66c5;
}

.yvo-doki-contract-page .doki-auth-link.is-active {
    color: #2c66c5;
}

/* --- Mobile header menu (transparent + dropdown on right) --- */
.yvo-doki-contract-page .doki-top {
    position: relative;
}

.yvo-doki-contract-page .doki-nav {
    display: none;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.yvo-doki-contract-page .doki-nav a {
    color: rgba(27, 35, 48, 0.80);
    font-weight: 900;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.yvo-doki-contract-page .doki-nav a.is-active {
    background: rgba(44, 102, 197, 0.10);
    color: #1e40af;
    border: 1px solid rgba(44, 102, 197, 0.14);
}

.yvo-doki-contract-page .doki-menu {
    position: relative;
    flex: 0 0 auto;
}

.yvo-doki-contract-page .doki-menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(20, 30, 50, 0.16);
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.10);
}

.yvo-doki-contract-page .doki-menu-btn:active {
    transform: translateY(1px);
}

.yvo-doki-contract-page .doki-menu-icon {
    width: 18px;
    height: 12px;
    position: relative;
}

.yvo-doki-contract-page .doki-menu-icon span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: rgba(27, 35, 48, 0.72);
}

.yvo-doki-contract-page .doki-menu-icon span:nth-child(1) { top: 0; }
.yvo-doki-contract-page .doki-menu-icon span:nth-child(2) { top: 5px; opacity: 0.85; }
.yvo-doki-contract-page .doki-menu-icon span:nth-child(3) { bottom: 0; opacity: 0.7; }

.yvo-doki-contract-page .doki-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(240px, 88vw);
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.16);
    padding: 10px;
    display: none;
    z-index: 60;
}

.yvo-doki-contract-page .doki-menu-panel.is-open {
    display: block;
}

.yvo-doki-contract-page .doki-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(15, 23, 42, 0.90);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.yvo-doki-contract-page .doki-menu-link:hover {
    background: rgba(29, 78, 216, 0.08);
}

.yvo-doki-contract-page .doki-menu-link small {
    color: rgba(71, 85, 105, 0.85);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
    font-size: 12px;
}

@media (min-width: 900px) {
    .yvo-doki-contract-page .doki-nav { display: inline-flex; }
    .yvo-doki-contract-page .doki-menu { display: none; }
}

@media (max-width: 900px) {
    /* прозрачная шапка, чтобы было видно фон */
    .yvo-doki-contract-page .doki-top {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
        margin-bottom: 0.65rem;
        padding-left: 0;
        padding-right: 0;
    }
    .yvo-doki-contract-page .doki-auth-btn {
        background: rgba(255, 255, 255, 0.55);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 520px) {
    .yvo-doki-contract-page .doki-top {
        padding: 0.55rem 0.75rem;
    }
    .yvo-doki-contract-page .doki-auth-user__name {
        max-width: 110px;
    }
}

.yvo-doki-contract-page .doki-hero {
    margin-bottom: 0.65rem;
}

/* Подменю «Профиль»: в одну линию с «Кабинет» / «Тарифы» (cabinet-auth задаёт inline-block — ломает baseline) */
.yvo-doki-contract-page .doki-auth .doki-auth-profile-dropdown.yvo-cab-topbar-dropdown {
    position: relative;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    align-self: auto;
    vertical-align: middle;
}

.yvo-doki-contract-page .doki-auth .doki-auth-profile-trigger.yvo-cab-topbar-dropdown__trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    line-height: 1.25;
    margin: 0;
}

.yvo-doki-contract-page .doki-auth .doki-auth-profile-trigger.is-active {
    color: #2c66c5;
}

/* Меньше пустоты между hero и заголовком формы / контентом темы */
body:has(.yvo-doki-contract-page) .entry-content > .yvo-doki-contract-page:first-child,
body:has(.yvo-doki-contract-page) .site-main .yvo-doki-contract-page:first-child {
    margin-top: 0;
}

/*
 * Заголовок страницы темы («Договоры» и т.п.) — дублирует навигацию; убираем полностью.
 */
body.yvo-contract-form-page .wp-block-post-title,
body.yvo-contract-form-doki-page .wp-block-post-title,
body.yvo-contract-form-page .entry-title:not(.yvo-fp-title),
body.yvo-contract-form-doki-page .entry-title:not(.yvo-fp-title),
body.yvo-contract-form-page h1.entry-title:not(.yvo-fp-title),
body.yvo-contract-form-doki-page h1.entry-title:not(.yvo-fp-title),
body:has(.yvo-doki-contract-page) .wp-block-post-title,
body:has(.yvo-doki-contract-page) .entry-title:not(.yvo-fp-title),
body:has(.yvo-doki-contract-page) h1.entry-title:not(.yvo-fp-title) {
    display: none !important;
}

body.yvo-contract-form-page .page-title:not(.yvo-fp-title),
body.yvo-contract-form-doki-page .page-title:not(.yvo-fp-title),
body:has(.yvo-doki-contract-page) .page-title:not(.yvo-fp-title) {
    display: none !important;
}

/* Типичные обёртки заголовка записи — без лишней полосы после скрытия h1 */
body.yvo-contract-form-page .entry-header,
body.yvo-contract-form-doki-page .entry-header,
body:has(.yvo-doki-contract-page) .entry-header,
body.yvo-contract-form-page header.page-header,
body.yvo-contract-form-doki-page header.page-header,
body:has(.yvo-doki-contract-page) header.page-header {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
    min-height: 0 !important;
}

/* Dream Home / классические темы: верхняя шапка сайта и блок с заголовком страницы над формой */
body.yvo-contract-form-page:not(.wp-admin) #masthead,
body.yvo-contract-form-doki-page:not(.wp-admin) #masthead,
body:has(.yvo-doki-contract-page):not(.wp-admin) #masthead {
    display: none !important;
}

body.yvo-contract-form-page:not(.wp-admin) article .entry-header:first-of-type,
body.yvo-contract-form-doki-page:not(.wp-admin) article .entry-header:first-of-type,
body:has(.yvo-doki-contract-page):not(.wp-admin) article .entry-header:first-of-type {
    display: none !important;
}

body.yvo-contract-form-page:not(.wp-admin) .wp-site-blocks > header,
body.yvo-contract-form-doki-page:not(.wp-admin) .wp-site-blocks > header,
body:has(.yvo-doki-contract-page):not(.wp-admin) .wp-site-blocks > header {
    display: none !important;
}

/* Dream Home: #Tab-NaviagtionBX { padding: 40px 0 60px } — убираем пустоту под admin bar */
body.yvo-contract-form-page:not(.wp-admin) #Tab-NaviagtionBX,
body.yvo-contract-form-doki-page:not(.wp-admin) #Tab-NaviagtionBX,
body:has(.yvo-doki-contract-page):not(.wp-admin) #Tab-NaviagtionBX {
    padding-top: 0 !important;
}

body.yvo-contract-form-page:not(.wp-admin) .yvo-cab-contract-head,
body.yvo-contract-form-doki-page:not(.wp-admin) .yvo-cab-contract-head,
body:has(.yvo-doki-contract-page):not(.wp-admin) .yvo-cab-contract-head {
    margin-top: 0 !important;
}

.yvo-doki-contract-page .doki-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 900px) {
    body.yvo-contract-form-doki-page .yvo-doki-contract-page .doki-layout,
    body:has(.yvo-doki-contract-page) .yvo-doki-contract-page .doki-layout {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: center;
        gap: 1.5rem 2.5rem;
    }
}

.yvo-doki-contract-page .doki-circle {
    width: min(198px, 72vw);
    height: min(198px, 72vw);
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #dfe6f0);
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.18),
        inset 0 6px 12px rgba(255, 255, 255, 0.9),
        inset 0 -10px 28px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    font-size: clamp(12px, 3.4vw, 15px);
    line-height: 1.35;
    color: var(--ink);
    flex-shrink: 0;
}

.yvo-doki-contract-page .doki-circle span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    opacity: 0.65;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.yvo-doki-contract-page .doki-pill-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 900px) {
    body.yvo-contract-form-doki-page .yvo-doki-contract-page .doki-pill-stack,
    body:has(.yvo-doki-contract-page) .yvo-doki-contract-page .doki-pill-stack {
        flex: 1 1 420px;
        max-width: min(960px, 100%);
    }
}

.yvo-doki-contract-page .doki-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 999px;
    color: #fff;
    position: relative;
    transform-style: preserve-3d;
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.22),
        inset 0 3px 0 rgba(255, 255, 255, 0.45),
        inset 0 -10px 26px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1),
        box-shadow 0.32s ease,
        filter 0.28s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font: inherit;
}

.yvo-doki-contract-page a.doki-pill {
    color: #fff;
}

@media (hover: hover) {
    .yvo-doki-contract-page .doki-pill:hover {
        transform: translateY(-3px);
        filter: brightness(1.03);
        box-shadow:
            0 20px 48px rgba(0, 0, 0, 0.26),
            inset 0 3px 0 rgba(255, 255, 255, 0.5),
            inset 0 -10px 26px rgba(0, 0, 0, 0.18);
    }

    .yvo-doki-contract-page .doki-pill:hover .doki-pill-icon .doki-pill-icon__img,
    .yvo-doki-contract-page .doki-pill:hover .doki-pill-icon .yvo-doki-btn-icon {
        transform: scale(1.06);
        transition: transform 0.22s ease;
    }
}

.yvo-doki-contract-page .doki-pill.blue {
    background: linear-gradient(135deg, #6ea8ff, #4a5bff);
}
.yvo-doki-contract-page .doki-pill.orange {
    background: linear-gradient(135deg, #ff7e3d, #ffb347);
}
.yvo-doki-contract-page .doki-pill.purple {
    background: linear-gradient(135deg, #7a6cff, #c94cff);
}
.yvo-doki-contract-page .doki-pill.dark {
    background: linear-gradient(135deg, #2c2c2c, #0a0a0a);
}

.yvo-doki-contract-page .doki-pill-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.yvo-doki-contract-page .doki-pill-icon .doki-pill-icon__img,
.yvo-doki-contract-page .doki-pill-icon .yvo-doki-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    transition: transform 0.22s ease;
}

.yvo-doki-contract-page .doki-pill-icon .doki-pill-icon__img img,
.yvo-doki-contract-page .doki-pill-icon .yvo-doki-btn-icon img {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0;
    object-fit: contain;
    object-position: center;
    filter: brightness(0) invert(1);
}

.yvo-doki-contract-page .doki-pill-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.yvo-doki-contract-page .doki-pill-text {
    flex: 1;
    min-width: 0;
}

.yvo-doki-contract-page .doki-pill-title {
    font-weight: 800;
    font-size: clamp(13px, 3.7vw, 16px);
}

.yvo-doki-contract-page .doki-pill-desc {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
}

.yvo-doki-contract-page .doki-pill-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.yvo-doki-contract-page .doki-pill.dark .doki-pill-badge {
    display: none;
}

.yvo-doki-contract-page .doki-demo-embed-section {
    margin-bottom: 1.25rem;
}

.yvo-doki-contract-page .doki-gen2-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
}

.yvo-doki-contract-page .doki-gen2-embed__iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: min(460px, 54vh);
    margin: 0 auto;
    border: 0;
    background: transparent;
    overflow: hidden;
}

@media (max-width: 720px) {
    .yvo-doki-contract-page .doki-gen2-embed__iframe {
        max-width: 100%;
        height: min(700px, calc(100dvh - 72px));
    }
}

.yvo-doki-contract-page .yvo-frontend-page {
    margin-top: 0;
}

/* ——— Вход через Яндекс на главной ——— */
.yvo-doki-contract-page .doki-yandex-auth {
    width: 100%;
    margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
}

.yvo-doki-contract-page .doki-yandex-auth__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff9db 0%, #fff 55%, #f8fafc 100%);
    border: 1px solid rgba(252, 204, 0, 0.35);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.yvo-doki-contract-page .doki-yandex-auth__lead {
    margin: 0;
    flex: 1 1 220px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #334155;
}

.yvo-doki-contract-page .doki-yandex-auth__action {
    margin: 0;
    flex: 0 0 auto;
}

.yvo-doki-contract-page .doki-yandex-auth__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.yvo-doki-contract-page .doki-yandex-auth__alt {
    margin: 0;
    width: 100%;
    font-size: 0.82rem;
    color: #64748b;
}

.yvo-doki-contract-page .doki-yandex-auth__alt a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.yvo-doki-contract-page .doki-yandex-auth__alt a:hover {
    text-decoration: underline;
}

.yvo-doki-contract-page .doki-yandex-auth__missing {
    margin: 0;
    font-size: 0.84rem;
    color: #64748b;
}

.yvo-doki-contract-page.depth-stage {
    perspective: 1200px;
    perspective-origin: 50% 18%;
}

.yvo-doki-contract-page .doki-flow-guide__card.card3d {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    overflow: hidden;
}

.yvo-doki-contract-page .doki-flow-guide__card.card3d::after {
    content: "";
    position: absolute;
    inset: -8px -10px -12px -10px;
    background: radial-gradient(60% 60% at 30% 20%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 55%);
    opacity: 0.42;
    pointer-events: none;
    transform: translateZ(1px);
    border-radius: inherit;
    mix-blend-mode: soft-light;
}

.yvo-doki-contract-page .doki-flow-guide__card.card3d::before {
    content: "";
    position: absolute;
    inset: 10px 14px -18px 14px;
    background: radial-gradient(70% 70% at 50% 30%, rgba(16, 24, 40, 0.18) 0%, rgba(16, 24, 40, 0.02) 55%, rgba(16, 24, 40, 0) 75%);
    filter: blur(6px);
    opacity: 0.85;
    pointer-events: none;
    transform: translateZ(-20px);
    border-radius: 22px;
}

@keyframes dokiFlowHeadIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dokiFlowCardIn {
    from {
        opacity: 0;
        transform: translateY(28px) rotateX(14deg) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

@keyframes dokiFlowIconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.04);
    }
}

@keyframes dokiFlowArrowPulse {
    0%, 100% {
        opacity: 0.35;
        transform: rotate(45deg) translateX(0);
    }
    50% {
        opacity: 0.85;
        transform: rotate(45deg) translateX(3px);
    }
}

@keyframes dokiFlowSheen {
    0% {
        transform: translateX(-120%) skewX(-12deg);
        opacity: 0;
    }
    15% {
        opacity: 0.55;
    }
    100% {
        transform: translateX(220%) skewX(-12deg);
        opacity: 0;
    }
}

/* ——— Инструкция «Как формируется договор» — горизонтальная лента ——— */
.yvo-doki-contract-page .doki-flow-guide {
    width: 100%;
    max-width: 1120px;
    margin: clamp(1.75rem, 3.5vw, 2.75rem) auto clamp(1.25rem, 2.5vw, 2rem);
    padding: clamp(1.5rem, 3vw, 2rem) clamp(0.75rem, 2.2vw, 1.25rem) 0;
    border-top: 1px solid #e2e8f0;
}

.yvo-doki-contract-page .doki-flow-guide__head {
    margin: 0 0 clamp(1.15rem, 2.5vw, 1.55rem);
    text-align: left;
    opacity: 0;
    animation: dokiFlowHeadIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.yvo-doki-contract-page .doki-flow-guide__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

.yvo-doki-contract-page .doki-flow-guide__lead {
    margin: 0;
    max-width: 40rem;
    font-size: clamp(0.84rem, 1.8vw, 0.95rem);
    line-height: 1.55;
    color: #64748b;
}

.yvo-doki-contract-page .doki-flow-guide__track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.8vw, 1rem);
    width: 100%;
}

.yvo-doki-contract-page .doki-flow-guide__item {
    position: relative;
    margin: 0;
    padding: 0;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.yvo-doki-contract-page .doki-flow-guide__item--blue {
    --flow-accent: #2563eb;
    --flow-soft: #dbeafe;
}

.yvo-doki-contract-page .doki-flow-guide__item--orange {
    --flow-accent: #ea580c;
    --flow-soft: #ffedd5;
}

.yvo-doki-contract-page .doki-flow-guide__item--sky {
    --flow-accent: #7c3aed;
    --flow-soft: #ede9fe;
}

.yvo-doki-contract-page .doki-flow-guide__item--pink {
    --flow-accent: #7c3aed;
    --flow-soft: #f3e8ff;
}

.yvo-doki-contract-page .doki-flow-guide__item--purple {
    --flow-accent: #7c3aed;
    --flow-soft: #f3e8ff;
}

.yvo-doki-contract-page .doki-flow-guide__item--dark {
    --flow-accent: #171717;
    --flow-soft: #e7e5e4;
}

.yvo-doki-contract-page .doki-flow-guide__card {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.15rem 1.05rem 1.2rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    transition:
        transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1),
        box-shadow 0.32s ease,
        border-color 0.28s ease;
    opacity: 0;
    animation: dokiFlowCardIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.12s + var(--flow-delay, 0s));
    overflow: hidden;
}

.yvo-doki-contract-page .doki-flow-guide__accent {
    display: block;
    height: 3px;
    margin: -1.15rem -1.05rem 0.55rem;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, var(--flow-accent, #2563eb), color-mix(in srgb, var(--flow-accent, #2563eb) 45%, #ffffff));
    position: relative;
    z-index: 2;
    box-shadow: none;
}

.yvo-doki-contract-page .doki-flow-guide__card > *:not(.doki-flow-guide__accent) {
    position: relative;
    z-index: 2;
}

@media (hover: hover) {
    .yvo-doki-contract-page .doki-flow-guide__card.is-tilting {
        transform: translateY(-10px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1.025);
        box-shadow:
            0 28px 54px rgba(15, 23, 42, 0.18),
            0 0 28px color-mix(in srgb, var(--flow-accent, #2563eb) 24%, transparent),
            inset 0 2px 0 rgba(255, 255, 255, 1),
            inset 0 -14px 24px rgba(15, 23, 42, 0.08);
        filter: saturate(1.05);
    }

    .yvo-doki-contract-page .doki-flow-guide__card.is-tilting::after {
        animation: dokiFlowSheen 1.05s ease-out 1;
    }

    .yvo-doki-contract-page .doki-flow-guide__card.is-tilting .doki-flow-guide__icon {
        animation: dokiFlowIconFloat 0.65s ease-in-out 1;
    }
}

.yvo-doki-contract-page .doki-flow-guide__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.yvo-doki-contract-page .doki-flow-guide__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--flow-soft, #eef2ff);
    color: var(--flow-accent, #4a5bff);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.yvo-doki-contract-page .doki-flow-guide__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    background: var(--flow-soft, #eef2ff);
    flex-shrink: 0;
    box-shadow:
        0 6px 14px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.28s ease;
}

.yvo-doki-contract-page .doki-flow-guide__item .doki-flow-guide__icon {
    animation: dokiFlowIconFloat 3.2s ease-in-out infinite;
    animation-delay: calc(0.8s + var(--flow-delay, 0s));
}

.yvo-doki-contract-page .doki-flow-guide__icon-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.yvo-doki-contract-page .doki-flow-guide__icon-img img {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.yvo-doki-contract-page .doki-flow-guide__item-title {
    margin: 0;
    font-size: clamp(0.9rem, 1.6vw, 0.98rem);
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.yvo-doki-contract-page .doki-flow-guide__item-text {
    margin: 0;
    font-size: clamp(0.76rem, 1.45vw, 0.84rem);
    line-height: 1.55;
    color: #64748b;
}

.yvo-doki-contract-page .doki-flow-guide__arrow {
    display: none;
}

@media (min-width: 900px) {
    .yvo-doki-contract-page .doki-flow-guide__track {
        gap: 0;
    }

    .yvo-doki-contract-page .doki-flow-guide__item:not(.is-last) {
        padding-right: 1.35rem;
    }

    .yvo-doki-contract-page .doki-flow-guide__arrow {
        display: block;
        position: absolute;
        top: 50%;
        right: 0.15rem;
        width: 0.85rem;
        height: 0.85rem;
        margin-top: -0.42rem;
        border-top: 2px solid rgba(100, 116, 139, 0.35);
        border-right: 2px solid rgba(100, 116, 139, 0.35);
        transform: rotate(45deg);
        pointer-events: none;
    }

    .yvo-doki-contract-page .doki-flow-guide__arrow {
        animation: dokiFlowArrowPulse 1.8s ease-in-out infinite;
        animation-delay: calc(0.5s + var(--flow-delay, 0s));
    }
}

@media (max-width: 900px) {
    .yvo-doki-contract-page .doki-flow-guide__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .yvo-doki-contract-page .doki-flow-guide__head {
        text-align: center;
    }

    .yvo-doki-contract-page .doki-flow-guide__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .yvo-doki-contract-page .doki-flow-guide__track {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yvo-doki-contract-page .doki-flow-guide__head,
    .yvo-doki-contract-page .doki-flow-guide__card,
    .yvo-doki-contract-page .doki-flow-guide__icon,
    .yvo-doki-contract-page .doki-flow-guide__arrow {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .yvo-doki-contract-page .doki-flow-guide__card,
    .yvo-doki-contract-page .doki-pill {
        transition: none !important;
    }
}

/* ——— УТП: editorial + bento (Linear/Stripe/PropTech). Без градиентного фона. Кнопки без изменений. ——— */
.yvo-doki-home-page .doki-usp {
    position: relative;
    width: 100%;
    margin: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem);
    padding: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    overflow: visible;
    isolation: isolate;
}

.yvo-doki-home-page .doki-usp__frame {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 2.2vw, 1.25rem);
}

.yvo-doki-home-page .doki-usp__head {
    text-align: left;
    max-width: 720px;
    margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
}

.yvo-doki-home-page .doki-usp__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2563eb;
}

.yvo-doki-home-page .doki-usp__eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 999px;
}

.yvo-doki-home-page .doki-usp__title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 5vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: #0f172a;
}

.yvo-doki-home-page .doki-usp__lead {
    margin: 0 0 1.15rem;
    max-width: 38rem;
    font-size: clamp(1rem, 2.1vw, 1.15rem);
    line-height: 1.6;
    color: #64748b;
}

.yvo-doki-home-page .doki-usp__hook {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0 0 1.35rem;
    max-width: 40rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #0f172a;
    font-size: clamp(0.98rem, 2vw, 1.12rem);
    font-weight: 700;
    line-height: 1.45;
}

.yvo-doki-home-page .doki-usp__hook-mark {
    flex-shrink: 0;
    width: 4px;
    align-self: stretch;
    min-height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb 0%, #7c3aed 55%, #ea580c 100%);
}

.yvo-doki-home-page .doki-usp__hook-text {
    padding-top: 0.15rem;
}

.yvo-doki-home-page .doki-usp__head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-start;
    margin: 0;
}

.yvo-doki-home-page .doki-usp__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 clamp(2rem, 4vw, 2.75rem);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    overflow: hidden;
}

.yvo-doki-home-page .doki-usp__metric {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem 1.35rem 1.35rem;
    border-right: 1px solid #e2e8f0;
}

.yvo-doki-home-page .doki-usp__metric:last-child {
    border-right: 0;
}

.yvo-doki-home-page .doki-usp__metric-val {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.yvo-doki-home-page .doki-usp__metric-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.35;
}

.yvo-doki-home-page .doki-usp__metric--time .doki-usp__metric-val { color: #2563eb; }
.yvo-doki-home-page .doki-usp__metric--price .doki-usp__metric-val { color: #ea580c; }
.yvo-doki-home-page .doki-usp__metric--auto .doki-usp__metric-val { color: #7c3aed; }

.yvo-doki-home-page .doki-usp__pains {
    margin: 0 0 clamp(2.25rem, 4.5vw, 3.25rem);
    padding: clamp(1.35rem, 3vw, 1.85rem) 0 0;
    border-top: 1px solid #e2e8f0;
}

.yvo-doki-home-page .doki-usp__pains-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 1rem 2rem;
    align-items: end;
    margin: 0 0 1.35rem;
}

.yvo-doki-home-page .doki-usp__pains-title {
    margin: 0;
    font-size: clamp(1.55rem, 3.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.yvo-doki-home-page .doki-usp__pains-bridge {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.55;
    color: #64748b;
}

.yvo-doki-home-page .doki-usp__pains-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
}

.yvo-doki-home-page .doki-usp__pain {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem 1rem;
    align-items: start;
    margin: 0;
    padding: 1.25rem 1.3rem 1.35rem;
    border: 0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: none;
    border-radius: 0;
    position: relative;
}

.yvo-doki-home-page .doki-usp__pain:nth-child(2n) { border-right: 0; }
.yvo-doki-home-page .doki-usp__pain:nth-child(n+3) { border-bottom: 0; }

.yvo-doki-home-page .doki-usp__pain::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--pain-accent, #171717);
}

.yvo-doki-home-page .doki-usp__pain--fear { --pain-accent: #171717; }
.yvo-doki-home-page .doki-usp__pain--money { --pain-accent: #ea580c; }
.yvo-doki-home-page .doki-usp__pain--time { --pain-accent: #2563eb; }
.yvo-doki-home-page .doki-usp__pain--rush { --pain-accent: #7c3aed; }

.yvo-doki-home-page .doki-usp__pain-n {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--pain-accent, #171717);
    opacity: 0.75;
    padding-top: 0.2rem;
}

.yvo-doki-home-page .doki-usp__pain-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.yvo-doki-home-page .doki-usp__pain-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
}

.yvo-doki-home-page .doki-usp__benefits-head {
    margin: 0 0 1.15rem;
}

.yvo-doki-home-page .doki-usp__benefits-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.yvo-doki-home-page .doki-usp__benefits-lead {
    margin: 0;
    max-width: 36rem;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #64748b;
}

.yvo-doki-home-page .doki-usp__bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(150px, auto);
    gap: 0.85rem;
    margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
}

.yvo-doki-home-page .doki-usp__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    grid-column: span 2;
    min-height: 100%;
    padding: 1.25rem 1.2rem 1.3rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

.yvo-doki-home-page .doki-usp__tile--wide {
    grid-column: span 4;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.06), transparent 42%),
        #fff;
}

.yvo-doki-home-page .doki-usp__tile--tall {
    grid-column: span 2;
}

.yvo-doki-home-page .doki-usp__tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--usp-accent, #2563eb), color-mix(in srgb, var(--usp-accent, #2563eb) 35%, #fff));
}

.yvo-doki-home-page .doki-usp__tile--blue { --usp-accent: #2563eb; }
.yvo-doki-home-page .doki-usp__tile--orange { --usp-accent: #ea580c; }
.yvo-doki-home-page .doki-usp__tile--purple { --usp-accent: #7c3aed; }
.yvo-doki-home-page .doki-usp__tile--dark { --usp-accent: #171717; }

.yvo-doki-home-page .doki-usp__tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.yvo-doki-home-page .doki-usp__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--usp-accent, #2563eb) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--usp-accent, #2563eb) 18%, #e2e8f0);
    transition: transform 0.3s ease;
}

.yvo-doki-home-page .doki-usp__icon-img,
.yvo-doki-home-page .doki-usp__icon .yvo-doki-btn-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.yvo-doki-home-page .doki-usp__icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.yvo-doki-home-page .doki-usp__stat {
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--usp-accent, #2563eb);
    background: color-mix(in srgb, var(--usp-accent, #2563eb) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--usp-accent, #2563eb) 16%, transparent);
    white-space: nowrap;
}

.yvo-doki-home-page .doki-usp__tile-title {
    margin: 0.15rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: #0f172a;
}

.yvo-doki-home-page .doki-usp__tile--wide .doki-usp__tile-title {
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    max-width: 22ch;
}

.yvo-doki-home-page .doki-usp__tile-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #64748b;
    max-width: 46ch;
}

@media (hover: hover) {
    .yvo-doki-home-page .doki-usp__tile.is-tilting {
        transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
        border-color: color-mix(in srgb, var(--usp-accent, #2563eb) 35%, #e2e8f0);
        box-shadow:
            0 22px 44px rgba(15, 23, 42, 0.1),
            0 0 0 1px color-mix(in srgb, var(--usp-accent, #2563eb) 18%, transparent);
    }

    .yvo-doki-home-page .doki-usp__tile.is-tilting .doki-usp__icon {
        transform: scale(1.06);
    }
}

.yvo-doki-home-page .doki-usp__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem;
    padding: clamp(1.25rem, 2.8vw, 1.65rem) clamp(1.2rem, 2.8vw, 1.75rem);
    border-radius: 22px;
    background: #0f172a;
    border: 1px solid #0f172a;
    box-shadow: none;
}

.yvo-doki-home-page .doki-usp__cta-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.yvo-doki-home-page .doki-usp__cta-lead {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 36rem;
}

.yvo-doki-home-page .doki-usp__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* Кнопки — не менять */
.yvo-doki-home-page .doki-usp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.yvo-doki-home-page .doki-usp__btn--primary {
    background: linear-gradient(105deg, #1d4ed8 0%, #2563eb 45%, #60a5fa 100%);
    color: #fff !important;
    box-shadow:
        0 12px 26px rgba(37, 99, 235, 0.35),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -8px 14px rgba(0, 0, 0, 0.18);
}

.yvo-doki-home-page .doki-usp__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.42);
}

.yvo-doki-home-page .doki-usp__btn--ghost {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    color: #0f172a !important;
    box-shadow:
        0 10px 20px rgba(15, 23, 42, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.95),
        inset 0 -8px 14px rgba(15, 23, 42, 0.06);
}

.yvo-doki-home-page .doki-usp__btn--ghost:hover {
    transform: translateY(-2px);
}

.yvo-doki-home-page .doki-usp__btn--link {
    background: transparent;
    color: #7c3aed !important;
    min-height: 40px;
    padding: 0.45rem 0.75rem;
}

.yvo-doki-home-page .doki-usp__cta .doki-usp__btn--link {
    color: #c4b5fd !important;
}

.yvo-doki-home-page .doki-usp__btn--link:hover {
    text-decoration: underline;
}

.yvo-doki-home-page .doki-usp-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--usp-delay, 0s);
}

.yvo-doki-home-page.js-usp-animate .doki-usp-reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
}

.yvo-doki-home-page .doki-usp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .yvo-doki-home-page .doki-usp__pains-head {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .yvo-doki-home-page .doki-usp__bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yvo-doki-home-page .doki-usp__tile,
    .yvo-doki-home-page .doki-usp__tile--wide,
    .yvo-doki-home-page .doki-usp__tile--tall {
        grid-column: span 1;
    }
}

@media (max-width: 720px) {
    .yvo-doki-home-page .doki-usp__metrics {
        grid-template-columns: 1fr;
    }

    .yvo-doki-home-page .doki-usp__metric {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .yvo-doki-home-page .doki-usp__metric:last-child {
        border-bottom: 0;
    }

    .yvo-doki-home-page .doki-usp__pains-list {
        grid-template-columns: 1fr;
    }

    .yvo-doki-home-page .doki-usp__pain {
        border-right: 0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .yvo-doki-home-page .doki-usp__pain:last-child {
        border-bottom: 0 !important;
    }

    .yvo-doki-home-page .doki-usp__bento {
        grid-template-columns: 1fr;
    }

    .yvo-doki-home-page .doki-usp__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .yvo-doki-home-page .doki-usp__cta-actions {
        width: 100%;
    }

    .yvo-doki-home-page .doki-usp__cta-actions .doki-usp__btn--primary,
    .yvo-doki-home-page .doki-usp__cta-actions .doki-usp__btn--ghost {
        flex: 1 1 auto;
    }

    .yvo-doki-home-page .doki-usp__head-actions {
        width: 100%;
    }

    .yvo-doki-home-page .doki-usp__head-actions .doki-usp__btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yvo-doki-home-page .doki-usp-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .yvo-doki-home-page .doki-usp__tile.is-tilting {
        transform: none !important;
    }
}
