@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* bm_* из приложения */
    --bm-screen-bg: #EEF5FB;
    --bm-white: #FFFFFF;
    --bm-primary: #2F5FD0;
    --bm-primary-hover: #284FB0;
    --bm-primary-active: #23489E;
    --bm-primary-soft: #AFC6FF;
    --bm-primary-ripple: rgba(47, 95, 208, 0.10);
    --bm-text: #17315C;
    --bm-text-2: #6E83A3;
    --bm-stroke: #D9E5F4;
    --bm-row-bg: #F7FAFF;
    --bm-neutral-bg: #EAF2FF;
    --bm-logo-tile: #E9F1FF;
    --bm-red: #D94B61;
    --bm-red-bg: #FDECEF;
    --bm-green: #1F8A5B;
    --bm-green-bg: #E3F5EC;

    --radius-sm: 12px;
    --radius: 16px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --shadow-sm: 0 1px 2px rgba(23, 49, 92, 0.06), 0 2px 8px rgba(23, 49, 92, 0.04);
    --shadow-md: 0 8px 24px rgba(23, 49, 92, 0.08);
    --shadow-lg: 0 24px 64px rgba(23, 49, 92, 0.18);

    --header-h: 68px;
    --wrap: 1180px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    --font: 'Manrope', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--bm-text);
    background: var(--bm-screen-bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--bm-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--bm-primary-hover);
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

strong {
    font-weight: 700;
}

.icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex: 0 0 auto;
}

:focus-visible {
    outline: 3px solid var(--bm-primary-soft);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--bm-primary);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

.wrap {
    width: min(var(--wrap), 100% - 40px);
    margin-inline: auto;
}

/* =====================================================================
   Шапка
   ===================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(238, 245, 251, 0.82);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--bm-stroke);
    background: rgba(255, 255, 255, 0.86);
}

.header-inner {
    width: min(var(--wrap), 100% - 40px);
    margin-inline: auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--bm-text);
    flex: 0 0 auto;
}

.brand:hover {
    color: var(--bm-text);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bm-white);
    border: 1px solid var(--bm-stroke);
    display: grid;
    place-items: center;
}

.brand-name {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}

.site-nav a {
    position: relative;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bm-text-2);
    text-decoration: none;
    transition: color 150ms ease, background 150ms ease;
}

.site-nav a:hover {
    color: var(--bm-text);
    background: var(--bm-primary-ripple);
}

.site-nav a.is-active {
    color: var(--bm-primary);
    background: var(--bm-neutral-bg);
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--bm-text-2);
    text-decoration: none;
}

.lang-btn .icon {
    width: 18px;
    height: 18px;
}

.lang-btn:hover {
    color: var(--bm-primary);
    background: var(--bm-primary-ripple);
}

.header-btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.header-btn-ghost {
    background: var(--bm-white);
    border-color: var(--bm-stroke);
    color: var(--bm-text);
}

.header-btn-ghost:hover {
    border-color: var(--bm-primary-soft);
    color: var(--bm-primary);
}

.header-btn-primary {
    background: var(--bm-primary);
    color: #fff;
}

.header-btn-primary:hover {
    background: var(--bm-primary-hover);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--bm-stroke);
    border-radius: 12px;
    background: var(--bm-white);
    padding: 0 10px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--bm-text);
    transition: transform 200ms var(--ease), opacity 150ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =====================================================================
   Общие элементы
   ===================================================================== */

.tile {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--bm-logo-tile);
    color: var(--bm-primary);
    flex: 0 0 auto;
}

.tile-green {
    background: var(--bm-green-bg);
    color: var(--bm-green);
}

.tile-inverse {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bm-primary);
    margin-bottom: 12px;
}

.section {
    padding: 96px 0;
}

.section-tint {
    background: var(--bm-white);
    border-block: 1px solid var(--bm-stroke);
}

.section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(28px, 2.2vw + 16px, 42px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.section-lead {
    margin-top: 16px;
    font-size: 18px;
    color: var(--bm-text-2);
    max-width: 62ch;
}

/* =====================================================================
   Кнопки (в модалках и секциях)
   Важно: JS меняет style.display на 'block' / 'none', поэтому
   базовое отображение кнопок — block (без зависимости от flex).
   ===================================================================== */

.submit-btn {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: none;
    border-radius: 18px;
    background: var(--bm-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    transition: background 150ms ease, transform 100ms ease, opacity 150ms ease;
}

.submit-btn:hover {
    background: var(--bm-primary-hover);
}

.submit-btn:active {
    background: var(--bm-primary-active);
    transform: translateY(1px);
}

.submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.submit-btn-tonal {
    background: var(--bm-neutral-bg);
    color: var(--bm-primary);
}

.submit-btn-tonal:hover {
    background: #DCE8FF;
}

.submit-btn-tonal:active {
    background: #D0E0FF;
}

.submit-btn-text {
    min-height: 44px;
    background: transparent;
    color: var(--bm-text-2);
}

.submit-btn-text:hover {
    background: var(--bm-row-bg);
    color: var(--bm-text);
}

.submit-btn-text:active {
    background: var(--bm-neutral-bg);
}

.submit-btn-inverse {
    background: #fff;
    color: var(--bm-primary);
}

.submit-btn-inverse:hover {
    background: var(--bm-neutral-bg);
}

.submit-btn-inverse:active {
    background: #DCE8FF;
}

.link-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--bm-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-btn:hover {
    color: var(--bm-primary-hover);
}

/* =====================================================================
   Hero
   ===================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 88px;
}

.hero::before {
    /* шевроны логотипа как фоновый узор */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 520px at 85% 10%, rgba(47, 95, 208, 0.10), transparent 60%),
        radial-gradient(700px 360px at 0% 70%, rgba(175, 198, 255, 0.30), transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 48px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bm-white);
    border: 1px solid var(--bm-stroke);
    font-size: 14px;
    font-weight: 700;
    color: var(--bm-text);
}

.dot-online {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bm-green);
    box-shadow: 0 0 0 4px var(--bm-green-bg);
}

.hero h1 {
    margin-top: 20px;
    font-size: clamp(38px, 4.2vw + 14px, 68px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero h1 .accent {
    color: var(--bm-primary);
}

.hero-lead {
    margin-top: 20px;
    font-size: clamp(17px, 0.4vw + 15px, 20px);
    color: var(--bm-text-2);
    max-width: 34em;
}

.hero-lead strong {
    color: var(--bm-text);
}

.store-buttons {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 10px 22px 10px 18px;
    border-radius: 18px;
    background: var(--bm-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.1;
    box-shadow: 0 8px 20px rgba(47, 95, 208, 0.25);
    transition: background 150ms ease, transform 150ms var(--ease), box-shadow 150ms ease;
}

.store-btn small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 2px;
}

.store-btn:hover {
    color: #fff;
    background: var(--bm-primary-hover);
    transform: translateY(-1px);
}

.store-btn-light {
    background: var(--bm-white);
    color: var(--bm-text);
    border: 1px solid var(--bm-stroke);
    box-shadow: var(--shadow-sm);
}

.store-btn-light:hover {
    color: var(--bm-text);
    background: var(--bm-white);
    border-color: var(--bm-primary-soft);
}

.rustore-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--bm-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    letter-spacing: 0;
}

.text-cta {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    padding: 4px 0;
    font-weight: 700;
    color: var(--bm-primary);
}

.text-cta .icon {
    width: 18px;
    height: 18px;
    transition: transform 150ms var(--ease);
}

.text-cta:hover .icon {
    transform: translateX(3px);
}

/* Телефоны */

.phone {
    position: relative;
    border-radius: 38px;
    padding: 9px;
    background: #10223F;
    box-shadow: var(--shadow-lg);
}

.phone img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top;
    border-radius: 30px;
    background: var(--bm-screen-bg);
}

.hero-visual {
    position: relative;
    min-height: 600px;
}

.hero-glow {
    position: absolute;
    inset: 8% 6% 8% 14%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(47, 95, 208, 0.22), transparent);
    filter: blur(10px);
}

.hero-visual .phone {
    position: absolute;
    width: min(300px, 52%);
}

.phone-front {
    right: 8%;
    top: 0;
    z-index: 2;
}

.phone-back {
    left: 4%;
    top: 64px;
    transform: rotate(-6deg);
    opacity: 0.96;
}

.float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--bm-stroke);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    max-width: 270px;
}

.float-card strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.float-card small {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    color: var(--bm-text-2);
}

.float-card-bt {
    left: 0;
    bottom: 96px;
}

.float-card-ok {
    right: 0;
    bottom: 18px;
}

/* =====================================================================
   Возможности: вкладки + сцена со скриншотом
   ===================================================================== */

.showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 40px;
    align-items: start;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-tab {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bm-stroke);
    background: var(--bm-white);
    text-align: left;
    transition: border-color 150ms ease, box-shadow 200ms ease, background 150ms ease;
}

.feature-tab:hover {
    border-color: var(--bm-primary-soft);
}

.feature-tab.is-active {
    border-color: var(--bm-primary);
    box-shadow: 0 0 0 3px var(--bm-primary-ripple), var(--shadow-md);
}

.feature-tab.is-active .tile {
    background: var(--bm-primary);
    color: #fff;
}

.feature-text strong {
    display: block;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.feature-text span {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--bm-text-2);
}

.showcase-stage {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 20px;
    border-radius: var(--radius-lg);
    background: var(--bm-white);
    border: 1px solid var(--bm-stroke);
    overflow: hidden;
}

.stage-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 320px at 50% 35%, rgba(47, 95, 208, 0.12), transparent 70%),
        repeating-linear-gradient(45deg, transparent 0 22px, rgba(47, 95, 208, 0.035) 22px 24px),
        repeating-linear-gradient(-45deg, transparent 0 22px, rgba(47, 95, 208, 0.035) 22px 24px);
    pointer-events: none;
}

.device {
    position: relative;
    z-index: 1;
    transition: opacity 220ms ease, transform 300ms var(--ease);
}

.device.is-swapping {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
}

.device.phone {
    width: min(290px, 100%);
}

.device.browser {
    width: min(360px, 100%);
    border-radius: 18px;
    overflow: hidden;
    background: #0F1A2B;
    box-shadow: var(--shadow-lg);
}

.device.browser[hidden],
.device.phone[hidden] {
    display: none;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #1B2A42;
}

.browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3A4D6B;
}

.browser-bar em {
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 8px;
    background: #0F1A2B;
    color: #8FA3C4;
    font-size: 12px;
    font-style: normal;
}

.device.browser img {
    width: 100%;
    aspect-ratio: 688 / 1094;
    object-fit: cover;
    object-position: top;
}

.stage-nav {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--bm-stroke);
    background: var(--bm-white);
    color: var(--bm-primary);
    font-size: 24px;
    line-height: 1;
    display: grid;
    place-items: center;
    padding-bottom: 3px;
}

.nav:hover {
    background: var(--bm-neutral-bg);
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    border: none;
    background: var(--bm-stroke);
    transition: width 200ms var(--ease), background 200ms ease;
}

.dot.active {
    width: 24px;
    background: var(--bm-primary);
}

/* =====================================================================
   Как это работает
   ===================================================================== */

.flow {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 16px;
}

.flow-step {
    padding: 28px 24px;
    border-radius: var(--radius-md);
    background: var(--bm-row-bg);
    border: 1px solid var(--bm-stroke);
}

.flow-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--bm-primary);
    color: #fff;
    margin-bottom: 18px;
}

.flow-icon .icon {
    width: 26px;
    height: 26px;
}

.flow-icon-green {
    background: var(--bm-green);
}

.flow-step h3 {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.flow-step p {
    margin-top: 6px;
    color: var(--bm-text-2);
    font-size: 15px;
}

.flow-arrow {
    display: grid;
    place-items: center;
    color: var(--bm-primary);
    position: relative;
    width: 40px;
}

.flow-arrow::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 2px dashed var(--bm-primary-soft);
}

.flow-arrow .icon {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 50%;
    background: var(--bm-white);
    border: 1px solid var(--bm-stroke);
}

.how-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.info-card {
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bm-stroke);
    background: var(--bm-white);
}

.info-card h3 {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 800;
}

.info-card p {
    margin-top: 6px;
    color: var(--bm-text-2);
    font-size: 15px;
}

/* =====================================================================
   Как начать
   ===================================================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.step-card {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius-md);
    background: var(--bm-white);
    border: 1px solid var(--bm-stroke);
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--bm-neutral-bg);
    color: var(--bm-primary);
    font-weight: 800;
    font-size: 18px;
}

.step-card h3 {
    margin-top: 18px;
    font-size: 19px;
    font-weight: 800;
}

.step-card p {
    margin-top: 8px;
    color: var(--bm-text-2);
    font-size: 15px;
}

.step-card p strong {
    color: var(--bm-text);
}

.note-card {
    margin-top: 16px;
    border-radius: var(--radius-md);
    background: var(--bm-white);
    border: 1px solid var(--bm-stroke);
    overflow: hidden;
}

.note-card summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
}

.note-card summary::-webkit-details-marker {
    display: none;
}

.note-card summary:hover {
    background: var(--bm-row-bg);
}

.note-title {
    font-weight: 800;
    font-size: 17px;
    flex: 1;
}

.chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--bm-text-2);
    border-bottom: 2px solid var(--bm-text-2);
    transform: rotate(45deg);
    margin-right: 6px;
    transition: transform 200ms var(--ease);
}

.note-card[open] .chev {
    transform: rotate(-135deg);
}

.note-body {
    padding: 4px 20px 22px 78px;
    color: var(--bm-text-2);
    font-size: 15px;
}

.note-body p + p {
    margin-top: 10px;
}

.note-body strong {
    color: var(--bm-text);
}

/* =====================================================================
   Установка
   ===================================================================== */

.install-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.install-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bm-row-bg);
    border: 1px solid var(--bm-stroke);
}

.install-card h3 {
    margin-top: 20px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.install-card p {
    margin-top: 8px;
    color: var(--bm-text-2);
}

.install-card-accent {
    background: linear-gradient(150deg, #2F5FD0 0%, #23489E 100%);
    border-color: transparent;
    color: #fff;
}

.install-card-accent p {
    color: rgba(255, 255, 255, 0.82);
}

.button-group {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.response.hidden {
    display: none;
}

/* =====================================================================
   Подвал
   ===================================================================== */

.site-footer {
    padding: 56px 0 40px;
    background: var(--bm-screen-bg);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-brand p {
    margin-top: 12px;
    color: var(--bm-text-2);
}

.bottom-info h3 {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bm-text-2);
    margin-bottom: 12px;
}

.bottom-info p {
    font-size: 15px;
    line-height: 1.9;
}

.bottom-info a {
    color: var(--bm-text);
    text-decoration: none;
}

.bottom-info a:hover {
    color: var(--bm-primary);
}

/* =====================================================================
   Модальные окна (размытие фона как в MVDrive)
   JS переключает style.display = 'block' / 'none'.
   ===================================================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
    padding: 6vh 16px 32px;
    background: rgba(23, 49, 92, 0.28);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    backdrop-filter: blur(10px) saturate(1.1);
    animation: bm-fade 180ms ease;
    overscroll-behavior: contain;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .modal {
        background: rgba(23, 49, 92, 0.55);
    }
}

/* дополнительно размываем саму страницу, когда открыта модалка */
body.modal-open .page,
body.modal-open .site-header,
body.modal-open .site-footer {
    filter: blur(2px);
    transition: filter 200ms ease;
}

.modal-content {
    position: relative;
    width: min(480px, 100%);
    margin: 0 auto;
    background: var(--bm-white);
    border-radius: var(--radius-lg);
    border-top: 5px solid var(--bm-primary);
    box-shadow: var(--shadow-lg);
    animation: bm-pop 240ms var(--ease);
}

#signUpModal .modal-content {
    width: min(560px, 100%);
}

@keyframes bm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bm-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--bm-stroke);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--bm-logo-tile);
    color: var(--bm-primary);
    flex: 0 0 auto;
}

.modal-header h2 {
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.modal-subtitle {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--bm-text-2);
}

.close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: none;
    border-radius: 12px;
    background: var(--bm-row-bg);
    color: var(--bm-text-2);
    font-size: 26px;
    line-height: 1;
    display: grid;
    place-items: center;
    padding-bottom: 3px;
    transition: background 150ms ease, color 150ms ease;
}

.close:hover {
    background: var(--bm-neutral-bg);
    color: var(--bm-text);
}

.modal-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* скрытые блоки: JS показывает их через style.display = 'block' */
.form-group[hidden],
.submit-btn[hidden] {
    display: none;
}

.form-group-code {
    padding: 14px;
    border-radius: var(--radius);
    background: var(--bm-neutral-bg);
    animation: bm-pop 220ms var(--ease);
}

.form-group-code label {
    display: block;
    margin-bottom: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--bm-text);
}

.label-hint {
    font-weight: 500;
    color: var(--bm-text-2);
}

.label-hint::before {
    content: "· ";
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="password"],
.modal input[type="number"] {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--bm-stroke);
    background: var(--bm-row-bg);
    font: inherit;
    font-size: 16px;
    color: var(--bm-text);
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
    -moz-appearance: textfield;
}

.modal input::-webkit-outer-spin-button,
.modal input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal input::placeholder {
    color: #9AAAC2;
}

.modal input:hover {
    border-color: var(--bm-primary-soft);
}

.modal input:focus {
    outline: none;
    background: var(--bm-white);
    border-color: var(--bm-primary);
    box-shadow: 0 0 0 4px var(--bm-primary-ripple);
}

.modal input:disabled {
    background: #F1F4F9;
    color: #9AAAC2;
    border-color: var(--bm-stroke);
    cursor: not-allowed;
}

.form-group-verify {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.form-group-verify .submit-btn {
    width: auto;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 14px;
}

.bm-id-group .submit-btn,
.form-group > .submit-btn {
    margin-top: 2px;
}

/* Переключатель «без приложения» в стиле Material-свитча приложения */

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--bm-row-bg);
    border: 1px solid var(--bm-stroke);
    cursor: pointer;
}

.switch-text strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.switch-text span {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: var(--bm-text-2);
}

.switch {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 32px;
}

.switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.switch-track {
    position: absolute;
    inset: 0;
    border-radius: 99px;
    background: #E1E7F0;
    border: 2px solid #A9B6CA;
    transition: background 150ms ease, border-color 150ms ease;
    pointer-events: none;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #7D8BA1;
    transform: translateY(-50%);
    transition: left 180ms var(--ease), width 180ms var(--ease), height 180ms var(--ease), background 150ms ease;
}

.switch input:checked + .switch-track {
    background: var(--bm-primary);
    border-color: var(--bm-primary);
}

.switch input:checked + .switch-track::after {
    left: 22px;
    width: 22px;
    height: 22px;
    background: #fff;
}

.switch input:focus-visible + .switch-track {
    outline: 3px solid var(--bm-primary-soft);
    outline-offset: 2px;
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--bm-text-2);
    cursor: pointer;
}

.form-group-checkbox input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--bm-primary);
    cursor: pointer;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.modal-switch {
    text-align: center;
    font-size: 14px;
    color: var(--bm-text-2);
}

/* =====================================================================
   Реклама Яндекса (логика выбора площадки не менялась)
   ===================================================================== */

.desktop-content {
    display: block;
}

.mobile-content {
    display: none;
}

/* =====================================================================
   Адаптивность
   ===================================================================== */

@media (max-width: 1080px) {
    .site-nav a {
        padding: 8px 10px;
        font-size: 14px;
    }

    .header-inner {
        gap: 16px;
    }
}

@media (max-width: 960px) {
    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 12px 20px 20px;
        background: var(--bm-white);
        border-bottom: 1px solid var(--bm-stroke);
        box-shadow: var(--shadow-md);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 180ms ease, transform 220ms var(--ease), visibility 0s linear 220ms;
    }

    .site-nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: opacity 180ms ease, transform 220ms var(--ease);
    }

    .site-nav a {
        padding: 12px 14px;
        font-size: 16px;
    }

    .header-buttons {
        margin-left: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-visual {
        min-height: 520px;
        max-width: 520px;
        width: 100%;
        margin-inline: auto;
    }

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

    .showcase-stage {
        position: relative;
        top: 0;
        order: -1;
    }

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

    .flow-arrow {
        width: auto;
        height: 36px;
    }

    .flow-arrow::before {
        left: 50%;
        right: auto;
        top: 0;
        bottom: 0;
        border-top: none;
        border-left: 2px dashed var(--bm-primary-soft);
    }

    .how-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .install-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    :root {
        --header-h: 60px;
    }

    .desktop-content {
        display: none;
    }

    .mobile-content {
        display: block;
    }

    .wrap,
    .header-inner {
        width: min(var(--wrap), 100% - 32px);
    }

    .site-header .brand-name {
        display: none;
    }

    .header-buttons {
        gap: 6px;
    }

    .header-btn {
        height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }

    .lang-btn {
        padding: 0 8px;
    }

    .lang-btn .icon {
        display: none;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .section {
        padding: 64px 0;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .section-lead {
        font-size: 16px;
    }

    .hero {
        padding: 32px 0 56px;
    }

    .store-buttons {
        flex-direction: column;
    }

    .store-btn {
        justify-content: center;
    }

    .hero-visual {
        min-height: 430px;
    }

    .hero-visual .phone {
        width: 58%;
        border-radius: 30px;
        padding: 7px;
    }

    .hero-visual .phone img {
        border-radius: 24px;
    }

    .phone-front {
        right: 2%;
    }

    .phone-back {
        left: 0;
        top: 48px;
    }

    .float-card {
        max-width: 230px;
        padding: 10px 12px 10px 10px;
    }

    .float-card .tile {
        width: 38px;
        height: 38px;
    }

    .float-card-bt {
        bottom: 72px;
    }

    .float-card-ok {
        bottom: 6px;
    }

    .feature-tab {
        padding: 16px;
        gap: 14px;
    }

    .feature-text strong {
        font-size: 17px;
    }

    .showcase-stage {
        padding: 24px 16px 16px;
    }

    .device.phone {
        width: min(240px, 78%);
    }

    .device.browser {
        width: min(300px, 90%);
    }

    .note-body {
        padding: 4px 20px 20px;
    }

    .install-card {
        padding: 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 12px 10px 24px;
    }

    .modal-header {
        padding: 18px 18px 14px;
    }

    .modal-body {
        padding: 16px 18px 20px;
    }

    .modal-icon {
        display: none;
    }

    .modal-header h2 {
        font-size: 19px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .header-btn-ghost {
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ACCSEC-FORGOT: восстановление доступа по почте */
.forgot-link {
    margin: -4px 0 0;
    text-align: right;
    font-size: 14px;
}

.forgot-status,
.forgot-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.forgot-status {
    background: var(--bm-green-bg);
    color: var(--bm-green);
}

.forgot-error {
    background: var(--bm-red-bg);
    color: var(--bm-red);
}

.forgot-status[hidden],
.forgot-error[hidden],
#forgotModal [hidden] {
    display: none !important;
}

/* FORMS-FIX: ошибки в формах и подтверждённый код */
.form-alert {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bm-red-bg);
    color: var(--bm-red);
    font-size: 14px;
    line-height: 1.4;
}

.form-alert[hidden],
.code-status[hidden] {
    display: none;
}

.modal input.is-invalid,
.modal input.is-invalid:focus {
    border-color: var(--bm-red);
    background: var(--bm-red-bg);
    box-shadow: 0 0 0 4px rgba(217, 75, 97, 0.12);
}

.form-group-checkbox input.is-invalid {
    outline: 2px solid var(--bm-red);
    outline-offset: 2px;
}

.form-group-code.is-verified {
    background: var(--bm-green-bg);
    box-shadow: inset 0 0 0 1px var(--bm-green);
}

.form-group-code.is-verified label {
    color: var(--bm-green);
}

.modal input.is-valid,
.modal input.is-valid:disabled {
    border-color: var(--bm-green);
    background: #F3FBF7;
    color: var(--bm-green);
    box-shadow: 0 0 0 3px rgba(31, 138, 91, 0.12);
    font-weight: 700;
    cursor: default;
}

.form-group-code.is-verified .form-group-verify {
    grid-template-columns: 1fr;
}

.code-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--bm-green);
}

.code-status::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bm-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.submit-btn.is-busy {
    opacity: 0.7;
    cursor: progress;
}
