/* Logozavr — флэт, mobile-first. Синий доверия + изумруд роста */
@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/assets/fonts/nunito-800-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/assets/fonts/nunito-800-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/assets/fonts/nunito-800-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 {
    --lg-blue: #0f2d52;
    --lg-blue-soft: #1a3d66;
    --lg-emerald: #059669;
    --lg-emerald-hover: #047857;
    --lg-bg: #f8fafc;
    --lg-bg-alt: #eef2f7;
    --lg-surface: #ffffff;
    --lg-border: #d8e0ea;
    --lg-text: #0f2d52;
    --lg-muted: #5a6b7d;
    --lg-radius: 12px;
    --lg-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --lg-font-brand: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --lg-max: 1040px;
    --lg-safe-bottom: env(safe-area-inset-bottom, 0px);
    --lg-app-inset-top: 0px;
}

/* Android-приложение: отступ под статус-бар, если оболочка не паддит WebView сама.
   Новые сборки (data-lg-chrome-pad) паддят native — тогда --lg-app-inset-top остаётся 0. */
html.lg-native-app {
    --lg-app-inset-top: max(28px, env(safe-area-inset-top, 0px));
}

html.lg-native-app[data-lg-chrome-pad="1"] {
    --lg-app-inset-top: 0px;
}

html.lg-native-app .lg-header,
html.lg-native-app .lg-hdr {
    padding-top: var(--lg-app-inset-top);
}

* { box-sizing: border-box; }

[hidden] {
    display: none !important;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--lg-font);
    background: var(--lg-bg);
    color: var(--lg-text);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

input,
textarea,
select,
[contenteditable="true"],
.lg-allow-select,
.lg-allow-select * {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

img,
video,
svg,
canvas {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* PWA / WebView: clip надёжнее hidden, но без поддержки — остаётся hidden выше */
@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

/* Sticky footer — только страницы с .lg-footer */
body.lg-page-home,
body.lg-page-profile {
    display: flex;
    flex-direction: column;
}

body.lg-page-home > main,
body.lg-page-profile > main {
    flex: 1 0 auto;
}

body.lg-modal-open {
    overflow: hidden;
}

a { color: var(--lg-blue-soft); }

/* iOS Safari: при font-size < 16px поля зумятся при фокусе */
textarea,
select,
input.lg-phone-display,
input[type="tel"],
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
.wj-field input,
.wj-field select,
.wj-field textarea,
.wj-search input,
.wj-wa-search-wrap input {
    font-size: 16px;
    line-height: 1.35;
    touch-action: manipulation;
}

textarea {
    font-size: 16px;
}

select {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--lg-bg);
}

input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

@media (pointer: coarse) {
    textarea,
    select,
    input.lg-phone-display,
    input[type="tel"],
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="search"],
    input[type="url"],
    input[type="number"],
    .wj-field input,
    .wj-field select,
    .wj-search input,
    .wj-wa-search-wrap input {
        min-height: 44px;
    }

    .lg-btn,
    .lg-login-submit,
    .lg-pass-toggle,
    .lg-auth-tab,
    .cb-tab,
    button[type="submit"] {
        min-height: 44px;
    }
}

/* Header — frosted glass (Apple-like) */
.lg-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    margin: 0;
    z-index: 100;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: rgba(248, 250, 252, 0.72);
    border-bottom: 1px solid rgba(15, 45, 82, 0.08);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .lg-header {
        background: rgba(248, 250, 252, 0.96);
    }
}

.lg-header__inner {
    max-width: min(var(--lg-max), 100%);
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
}

.lg-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 0;
}

.lg-header__brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
}

.lg-header__back {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--lg-blue, #0f2d52);
    background: rgba(15, 45, 82, .06);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.lg-header__back:hover,
.lg-header__back:focus-visible {
    background: rgba(5, 150, 105, .12);
    color: var(--lg-emerald, #059669);
    outline: none;
}

.lg-brand__icon {
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.lg-brand__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    line-height: 1.1;
}

.lg-brand__wordmark {
    display: block;
    font-family: var(--lg-font-brand);
    font-size: 20px;
    font-weight: 800;
    font-synthesis: none;
    letter-spacing: -.02em;
    color: var(--lg-blue);
    line-height: 1.05;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.lg-brand__z {
    color: var(--lg-emerald);
    font-weight: 800;
}

.lg-brand-block__page {
    display: none;
    align-items: center;
    gap: 5px;
    margin: 0;
    max-width: min(200px, 46vw);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--lg-blue);
    min-width: 0;
}

.lg-brand-block--has-page .lg-brand-block__page {
    display: inline-flex;
}

.lg-brand-block__push {
    flex-shrink: 0;
    font-size: 10px;
    color: var(--lg-emerald, #059669);
    line-height: 1;
}

.lg-brand-block__page-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lg-brand__logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(168px, 46vw);
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.lg-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.lg-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lg-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 8px;
}

.lg-nav__link i {
    width: 1em;
    text-align: center;
    font-size: 13px;
    opacity: .88;
    flex-shrink: 0;
}

.lg-nav__link--accent { color: var(--lg-emerald); }

.lg-nav__avatar-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    text-decoration: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: box-shadow .15s ease, transform .1s ease;
}

/* Unread notifications on header avatar (home + public pages) */
.lg-nav__avatar-link .lg-badge-dot {
    position: absolute;
    box-sizing: border-box;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    border: 2px solid var(--lg-surface, #fff);
    pointer-events: none;
    z-index: 1;
}

.lg-nav__avatar-link .lg-badge-dot.is-visible,
.lg-nav__avatar-link .lg-badge-dot:not([hidden]) {
    display: inline-flex;
}

.lg-nav__avatar-link .lg-badge-dot[hidden] {
    display: none !important;
}

.lg-badge-dot--avatar {
    top: -2px;
    right: -3px;
}

.lg-nav__avatar-link:hover {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, .2);
}

.lg-nav__avatar-link:active { transform: scale(.96); }

.lg-nav__avatar-link:focus-visible {
    outline: 2px solid var(--lg-emerald);
    outline-offset: 2px;
}

/* Account menu modal */
.lg-account-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.lg-account-menu[hidden] { display: none !important; }

.lg-account-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 45, 82, .45);
}

.lg-account-menu__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    max-height: min(88vh, 560px);
    margin: 0;
    border-radius: 20px 20px 0 0;
    background: var(--lg-surface, #fff);
    box-shadow: 0 -8px 32px rgba(15, 45, 82, .14);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 640px) {
    .lg-account-menu {
        align-items: center;
        padding: 24px;
    }

    .lg-account-menu__panel {
        border-radius: 16px;
        max-height: min(80vh, 520px);
    }
}

.lg-account-menu__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--lg-border);
}

.lg-account-menu__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lg-account-menu__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lg-border);
    flex-shrink: 0;
    background: var(--lg-bg);
}

.lg-account-menu__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--lg-blue);
    line-height: 1.3;
}

.lg-account-menu__sub {
    margin: 2px 0 0;
    font-size: 13px;
}

.lg-account-menu__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--lg-bg-alt);
    color: var(--lg-blue);
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}

.lg-account-menu__close:hover {
    background: rgba(5, 150, 105, .12);
    color: var(--lg-emerald);
}

.lg-account-menu__close:focus-visible {
    outline: 2px solid var(--lg-emerald);
    outline-offset: 2px;
}

.lg-account-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 8px 12px 16px;
    gap: 4px;
    overflow-y: auto;
}

.lg-account-menu__item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--lg-blue);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease;
}

.lg-account-menu__item:hover {
    background: rgba(5, 150, 105, .08);
}

.lg-account-menu__item:focus-visible {
    outline: 2px solid var(--lg-emerald);
    outline-offset: 1px;
}

.lg-account-menu__item--danger {
    color: #b91c1c;
    margin-top: 4px;
}

.lg-account-menu__item--danger:hover {
    background: rgba(185, 28, 28, .08);
}

.lg-account-menu__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(5, 150, 105, .12);
    color: var(--lg-emerald);
    flex-shrink: 0;
    font-size: 15px;
}

.lg-account-menu__item--danger .lg-account-menu__icon {
    background: rgba(185, 28, 28, .1);
    color: #b91c1c;
}

body.lg-account-menu-open {
    overflow: hidden;
}

.lg-nav__avatar {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lg-border);
    background: var(--lg-bg);
}

.lg-lang-toggle {
    display: inline-flex;
    flex-shrink: 0;
    border: 1px solid var(--lg-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--lg-surface);
}

.lg-lang-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--lg-muted);
    text-decoration: none;
    line-height: 1;
    transition: background .15s, color .15s;
}

.lg-lang-opt:hover { color: var(--lg-blue); }

.lg-lang-opt.is-active {
    background: rgba(5, 150, 105, .12);
    color: var(--lg-emerald);
}

.lg-login-header .lg-lang-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lg-login-header .lg-header__inner {
    position: relative;
}

@media (max-width: 640px) {
    .lg-header__inner {
        padding: 10px 12px;
        gap: 8px;
    }

    .lg-brand {
        min-width: 0;
        flex-shrink: 1;
        gap: 6px;
    }

    .lg-brand__icon {
        width: 28px;
        height: 28px;
    }

    .lg-brand__wordmark {
        font-size: 17px;
    }

    .lg-brand-block__page {
        font-size: 10px;
        max-width: min(168px, 42vw);
    }

    .lg-brand__logo {
        height: 30px;
        max-width: min(132px, 38vw);
    }

    .lg-nav {
        gap: 6px;
    }

    .lg-nav__link:not(.lg-nav__link--accent) { display: none; }

    .lg-nav__link--accent {
        font-size: 13px;
        padding: 4px 2px;
        white-space: nowrap;
    }

    .lg-lang-opt {
        min-width: 30px;
        padding: 5px 6px;
        font-size: 10px;
    }

    .lg-nav__avatar-link {
        display: inline-flex;
        width: 36px;
        height: 36px;
    }

    .lg-nav__avatar {
        width: 32px;
        height: 32px;
    }
}

/* Hero */
.lg-hero {
    max-width: var(--lg-max);
    margin: 0 auto;
    padding: 20px 12px 36px;
    text-align: center;
}

@media (min-width: 640px) {
    .lg-hero {
        padding: 24px 20px 48px;
    }
}

.lg-review-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.4;
    white-space: nowrap;
}

.lg-review-badge--parent {
    background: #e0f2ec;
    color: var(--lg-emerald);
}

.lg-review-badge--specialist {
    background: #e8eef5;
    color: var(--lg-blue);
}

.lg-review-badge--center {
    background: #fef3c7;
    color: #92400e;
}

.lg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0f2ec;
    color: var(--lg-emerald);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.lg-hero__logo {
    display: block;
    margin: -40px auto 18px;
    width: min(300px, 82vw);
    height: auto;
}

.lg-hero__logo--secret,
.lg-brand--secret {
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lg-brand__logo--secret {
    cursor: default;
}

.lg-hero__tagline {
    margin: 0 auto 16px;
    max-width: 680px;
    font-size: clamp(22px, 5.5vw, 32px);
    font-weight: 700;
    color: var(--lg-blue);
    line-height: 1.3;
}

.lg-hero__lead {
    margin: 0 auto 12px;
    max-width: 620px;
    font-size: clamp(16px, 3.5vw, 18px);
    font-weight: 600;
    color: var(--lg-blue-soft);
}

.lg-hero__sub {
    margin: 0 auto 28px;
    max-width: 580px;
    color: var(--lg-muted);
    font-size: 16px;
}

.lg-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
    align-items: center;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.lg-hero__actions--search {
    flex-direction: column;
    align-items: stretch;
    max-width: 560px;
    gap: 14px;
}

.lg-hero__actions--search .lg-btn,
.lg-hero__join {
    align-self: center;
}

@media (min-width: 640px) {
    .lg-hero__actions--search {
        max-width: 640px;
        gap: 16px;
    }
}

.lg-hero-search-panel {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    transition: padding .2s ease;
}

.lg-hero-search-panel.is-expanded {
    padding: 0;
}

@media (min-width: 640px) {
    .lg-hero-search-panel {
        padding: 0;
        border-radius: 0;
    }
}

.lg-hero-search-panel__extra {
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    transition: max-height .28s ease, opacity .2s ease, margin .2s ease, visibility 0s linear .28s;
}

.lg-hero-search-panel.is-expanded .lg-hero-search-panel__extra:not([hidden]) {
    max-height: 280px;
    opacity: 1;
    margin-top: 12px;
    pointer-events: auto;
    visibility: visible;
    transition: max-height .28s ease, opacity .2s ease, margin .2s ease, visibility 0s;
}

.lg-hero-search-panel__label {
    margin: 0 2px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lg-muted);
}

.lg-hero-search {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.lg-hero-search__icon {
    position: absolute;
    right: 8px;
    left: auto;
    top: 0;
    bottom: 0;
    margin: auto 0;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e8eef5;
    color: var(--lg-blue);
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

.lg-hero-search__icon i {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-align: center;
}

.lg-hero-search:has(.lg-hero-search__clear:not([hidden])) .lg-hero-search__icon {
    opacity: 0;
    visibility: hidden;
}

.lg-hero-search__input {
    width: 100%;
    min-height: 52px;
    padding: 15px 52px 11px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--lg-surface);
    color: var(--lg-text);
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    outline: none;
    box-shadow:
        0 4px 16px rgba(15, 45, 82, .08),
        inset 0 0 0 1px #d8e0ea;
    transition: box-shadow .18s ease, min-height .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lg-hero-search__input::-webkit-search-decoration,
.lg-hero-search__input::-webkit-search-cancel-button,
.lg-hero-search__input::-webkit-search-results-button,
.lg-hero-search__input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.lg-hero-search-panel.is-expanded .lg-hero-search__input {
    min-height: 56px;
    padding-top: 16px;
    padding-bottom: 12px;
    box-shadow:
        0 8px 24px rgba(15, 45, 82, .1),
        inset 0 0 0 2px var(--lg-emerald);
}

.lg-hero-search__input::placeholder {
    color: transparent;
    font-weight: 400;
}

.lg-hero-search__input:hover {
    box-shadow:
        0 4px 16px rgba(15, 45, 82, .1),
        inset 0 0 0 1px #b7c5d6;
}

.lg-hero-search__input:focus {
    border-color: transparent;
    box-shadow:
        0 8px 24px rgba(15, 45, 82, .1),
        inset 0 0 0 2px var(--lg-emerald);
}

.lg-hero-search__ph {
    position: absolute;
    left: 16px;
    right: 52px;
    top: 50%;
    transform: translateY(calc(-50% + 1.5px));
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    color: #8a9aab;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lg-hero-search__ph[hidden],
.lg-hero-search.is-filled .lg-hero-search__ph,
.lg-hero-search.is-focused .lg-hero-search__ph {
    display: none;
}

.lg-hero-search__ph-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .28s ease, transform .28s ease;
}

.lg-hero-search__ph-text.is-out {
    opacity: 0;
    transform: translateY(-8px);
}

.lg-hero-search__ph-text.is-in {
    opacity: 0;
    transform: translateY(8px);
}

.lg-hero-search__clear {
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--lg-muted);
    cursor: pointer;
    z-index: 2;
    transition: color .15s, background-color .15s;
}

.lg-hero-search__clear:hover,
.lg-hero-search__clear:focus-visible {
    color: var(--lg-blue);
    background: var(--lg-bg-alt);
    outline: none;
}

.lg-hero-search__suggest {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 5;
}

.lg-hero-chips {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.lg-hero-chips[data-lg-chip-pack].is-packed {
    flex-direction: column;
    flex-wrap: nowrap;
}

.lg-hero-chips[data-lg-chip-pack] .lg-hero-chip {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
    line-height: 1.25;
    text-align: left;
}

.lg-hero-chips:not(.is-ready) {
    opacity: 0;
}

.lg-hero-chips.is-ready {
    opacity: 1;
}

.lg-hero-chips:not(.is-expanded) {
    max-height: calc(34px * 4 + 6px * 3);
    overflow: hidden;
}

.lg-hero-chips.is-packed:not(.is-expanded) {
    max-height: none;
    overflow: visible;
}

.lg-hero-chip {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-height: 30px;
    max-width: 100%;
    padding: 4px 11px;
    border: 1px solid #d2dde9;
    border-radius: 999px;
    background: var(--lg-surface);
    color: var(--lg-blue-soft);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.lg-hero-chip--fill {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 22px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.lg-hero-chip--more {
    flex: 0 0 auto;
    border-style: dashed;
    border-color: #b7c5d6;
    background: transparent;
    color: var(--lg-muted);
    font-variant-numeric: tabular-nums;
}

.lg-hero-chip--more:hover,
.lg-hero-chip--more:focus-visible {
    border-color: var(--lg-emerald);
    border-style: solid;
    color: var(--lg-emerald);
    background: #ecfdf5;
}

@media (min-width: 640px) {
    .lg-hero-chips {
        gap: 6px 8px;
    }

    .lg-hero-chips:not(.is-expanded) {
        max-height: calc(36px * 4 + 6px * 3);
    }

    .lg-hero-chip {
        min-height: 32px;
        padding: 5px 12px;
        font-size: 13px;
    }

    .lg-hero-chip--fill {
        line-height: 22px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

.lg-hero-chip:hover,
.lg-hero-chip:focus-visible {
    border-color: #9ed4c0;
    background: #ecfdf5;
    color: var(--lg-emerald);
    outline: none;
}

.lg-hero-chip.is-active {
    border-color: var(--lg-emerald);
    background: #059669;
    color: #fff;
}

.lg-hero-chip.is-active:hover,
.lg-hero-chip.is-active:focus-visible {
    background: var(--lg-emerald-hover);
    border-color: var(--lg-emerald-hover);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .lg-hero-search__input,
    .lg-hero-chip,
    .lg-hero-search__clear,
    .lg-hero-search-panel__extra,
    .lg-hero-search__ph-text {
        transition: none;
    }

    .lg-hero-chip:active {
        transform: none;
    }
}

.lg-catalog-search {
    position: relative;
    margin: 0 0 20px;
}

.lg-catalog-search__field {
    position: relative;
    display: flex;
    align-items: center;
}

.lg-catalog-search__field > i {
    position: absolute;
    left: 14px;
    color: var(--lg-muted);
    pointer-events: none;
}

.lg-catalog-search__field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 44px 12px 42px;
    border: 2px solid var(--lg-border);
    border-radius: 12px;
    background: var(--lg-surface);
    color: var(--lg-text);
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.lg-catalog-search__field input:focus {
    border-color: var(--lg-emerald);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, .12);
}

.lg-catalog-search__clear {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--lg-muted);
    cursor: pointer;
}

.lg-catalog-search__clear:hover,
.lg-catalog-search__clear:focus-visible {
    color: var(--lg-blue);
    background: var(--lg-bg-alt, #f1f5f9);
    outline: none;
}

.lg-catalog-search__suggest {
    list-style: none;
    margin: 6px 0 0;
    padding: 6px;
    border: 1px solid var(--lg-border);
    border-radius: 12px;
    background: var(--lg-surface);
    box-shadow: 0 12px 32px rgba(15, 45, 82, .12);
    position: absolute;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: min(70vh, 420px);
    overflow: auto;
}

.lg-catalog-search__suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--lg-text);
}

.lg-catalog-search__suggest-item--profile {
    align-items: flex-start;
    padding: 12px;
}

.lg-catalog-search__suggest-item:hover,
.lg-catalog-search__suggest-item:focus {
    background: #f0faf6;
    outline: none;
}

.lg-catalog-search__suggest-item > i {
    color: var(--lg-emerald);
    width: 1.1em;
    text-align: center;
    flex-shrink: 0;
}

.lg-catalog-search__suggest-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(5, 150, 105, .1);
    color: var(--lg-emerald);
    font-size: 14px;
}

.lg-catalog-search__suggest-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.lg-catalog-search__suggest-top {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lg-catalog-search__suggest-label {
    font-weight: 700;
    color: var(--lg-blue);
    line-height: 1.25;
}

.lg-catalog-search__suggest-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--lg-muted);
    line-height: 1.3;
}

.lg-catalog-search__suggest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: flex-start;
}

.lg-catalog-search__suggest-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(5, 150, 105, .16);
    background: rgba(5, 150, 105, .08);
    color: var(--lg-emerald);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.lg-catalog-search__suggest-chip i {
    font-size: 9px;
    opacity: .9;
}

.lg-catalog-search__suggest-chip--more {
    border-style: dashed;
    background: transparent;
    color: var(--lg-muted);
}

.lg-catalog-search__suggest-meta {
    margin-left: auto;
    font-size: 12px;
    color: var(--lg-muted);
    white-space: nowrap;
}

.lg-catalog-search__meta {
    margin: 8px 0 0;
    font-size: 13px;
}

.lg-specialist-card.is-collapsed,
.lg-specialist-card[hidden] {
    display: none !important;
}

.lg-catalog-more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.lg-catalog-more__btn {
    min-width: min(100%, 280px);
}

.lg-hero__note {
    margin: 0;
    font-size: 13px;
    color: var(--lg-muted);
}

/* Sections */
.lg-section {
    padding: 32px 12px;
}

@media (min-width: 640px) {
    .lg-section {
        padding: 48px 20px;
    }
}

.lg-section--alt {
    background: var(--lg-bg-alt);
}

.lg-section--cta {
    background: var(--lg-blue);
    color: #fff;
}

.lg-section--cta .lg-section__title,
.lg-section--cta p { color: #fff; }

.lg-section__inner {
    max-width: var(--lg-max);
    margin: 0 auto;
}

.lg-section__title {
    margin: 0 0 10px;
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 800;
    color: var(--lg-blue);
    letter-spacing: -.02em;
    line-height: 1.25;
}

.lg-title-icon {
    display: inline-block;
    width: 1.15em;
    margin-right: .35em;
    text-align: center;
    vertical-align: -0.06em;
    color: var(--lg-emerald);
    font-size: .88em;
}

.lg-section--cta .lg-title-icon {
    color: rgba(255, 255, 255, .92);
}

.lg-icon-row {
    display: grid;
    grid-template-columns: 1.15em 1fr;
    column-gap: .55em;
    align-items: start;
}

.lg-icon-row > i:first-child {
    margin-top: .18em;
    text-align: center;
    font-size: .92em;
    line-height: 1;
    opacity: .9;
}

.lg-icon-row > span {
    min-width: 0;
}

.lg-section__intro {
    margin: 0 0 24px;
    max-width: 640px;
    color: var(--lg-muted);
    font-size: 16px;
    line-height: 1.55;
}

.lg-section__intro.lg-icon-row,
.lg-community .lg-icon-row {
    max-width: 640px;
}

.lg-muted {
    color: var(--lg-muted);
    font-size: 14px;
}

/* Audience cards (platform sections) */
.lg-audience {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.lg-audience--2 {
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .lg-audience { grid-template-columns: repeat(3, 1fr); }
    .lg-audience--2 { grid-template-columns: repeat(2, 1fr); }
}

.lg-audience__card {
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
    padding: 20px;
}

.lg-audience__card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--lg-blue);
    line-height: 1.35;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.lg-audience__card h3 i {
    color: var(--lg-emerald);
    margin-top: 2px;
    flex-shrink: 0;
    width: 1.1em;
    text-align: center;
}

.lg-audience__card p {
    margin: 0;
    font-size: 14px;
    color: var(--lg-muted);
    line-height: 1.5;
}

.lg-section__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lg-catalog-empty {
    margin: 0;
    padding: 20px;
    text-align: center;
    background: var(--lg-surface);
    border: 1px dashed var(--lg-border);
    border-radius: var(--lg-radius);
}

.lg-community-divider {
    height: 1px;
    background: var(--lg-border);
    margin: 28px 0 20px;
}

.lg-community__sub {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--lg-blue);
}

.lg-community__actions--stack {
    margin-bottom: 4px;
}

/* Pillars */
.lg-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .lg-pillars { grid-template-columns: repeat(3, 1fr); }
}

.lg-pillar {
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
    padding: 22px;
}

.lg-pillar h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--lg-emerald);
    line-height: 1.3;
}

.lg-pillar p {
    margin: 0;
    font-size: 14px;
    color: var(--lg-muted);
    line-height: 1.5;
}

/* Directions */
.lg-directions {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.lg-directions li {
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
    padding: 16px 18px;
    font-size: 15px;
    color: var(--lg-muted);
    line-height: 1.5;
}

.lg-directions strong {
    color: var(--lg-blue);
}

/* Values */
.lg-values {
    display: grid;
    gap: 16px;
}

.lg-value {
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
    padding: 18px 20px;
    border-left: 3px solid var(--lg-emerald);
}

.lg-value h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--lg-blue);
}

.lg-value p {
    margin: 0;
    font-size: 14px;
    color: var(--lg-muted);
    line-height: 1.5;
}

/* Community */
.lg-community__note {
    margin: 12px 0 20px;
    max-width: 560px;
    line-height: 1.5;
}

.lg-community .lg-muted {
    line-height: 1.5;
}

.lg-community__actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

/* CTA block */
.lg-cta {
    text-align: center;
}

.lg-cta .lg-section__title {
    text-align: center;
}

.lg-cta .lg-icon-row {
    max-width: 480px;
    margin: 0 auto 24px;
    text-align: left;
    opacity: .92;
}

.lg-cta p {
    margin: 0 auto 24px;
    max-width: 480px;
    opacity: .92;
}

/* Buttons */
.lg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.lg-btn--primary {
    background: var(--lg-emerald);
    color: #fff;
}

.lg-btn:disabled,
.lg-btn[disabled],
.lg-btn[aria-disabled="true"] {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.lg-btn--primary:hover { background: var(--lg-emerald-hover); }
.lg-btn--primary:disabled:hover,
.lg-btn--primary[disabled]:hover,
.lg-btn--primary[aria-disabled="true"]:hover {
    background: var(--lg-emerald);
}

.lg-section--cta .lg-btn--primary {
    background: #fff;
    color: var(--lg-blue);
}

.lg-btn--ghost {
    background: transparent;
    border: 2px solid var(--lg-border);
    color: var(--lg-blue);
}

.lg-btn--secondary {
    background: var(--lg-bg);
    border: 1px solid var(--lg-border);
    color: var(--lg-blue);
}

.lg-btn--secondary:hover {
    background: #fff;
    border-color: #b8c5d4;
}

.lg-btn--secondary:focus-visible {
    outline: 2px solid var(--lg-blue);
    outline-offset: 2px;
}

.lg-btn--large {
    padding: 14px 28px;
    font-size: 16px;
    width: 100%;
    max-width: 320px;
}

.lg-btn > i {
    flex-shrink: 0;
    width: 1.1em;
    text-align: center;
}

/* Login (служебная) + общие страницы */
.lg-main {
    max-width: min(var(--lg-max), 100%);
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 32px 20px 60px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.lg-login {
    max-width: 400px;
    margin: 40px auto;
    padding: 28px;
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
}

.lg-login h1 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--lg-blue);
}

.lg-login .lg-muted {
    margin: 0 0 20px;
}

.lg-field { margin-bottom: 14px; }

.lg-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lg-muted);
}

.lg-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.lg-field textarea,
.lg-field select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--lg-border);
    background: var(--lg-bg);
    color: var(--lg-text);
    font-family: inherit;
    font-size: 16px;
}

.lg-field textarea {
    resize: vertical;
    min-height: 88px;
}

.lg-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
}

/* Public specialists — компактно на мобилке, крупное фото на планшете/десктопе */
.lg-specialists {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.lg-specialist-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 14px;
    border: 1px solid var(--lg-border);
    background: var(--lg-surface);
    box-shadow: 0 1px 6px rgba(15, 45, 82, .05);
    scroll-margin-top: 80px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.lg-specialist-card__link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.lg-specialist-card__link:active .lg-specialist-card__body {
    background: rgba(5, 150, 105, .04);
}

.lg-specialist-card:target {
    border-color: var(--lg-emerald);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, .18);
}

.lg-specialist-card__media {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    min-height: 120px;
    background: linear-gradient(180deg, #e8eef4 0%, #f1f5f9 100%);
    overflow: hidden;
}

.lg-specialist-card__photo:not(.lg-avatar--stock) {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    object-position: center top;
    background: var(--lg-bg);
}

/* Стоковые динозаврики в каталоге — одно правило, без дубля в media */
.lg-specialist-card__media--stock {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: #fff;
    padding: 4px 6px 14px 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.lg-specialist-card__media--stock .lg-specialist-card__photo.lg-avatar--stock {
    display: block;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: 10% 55%;
    background: #fff;
}

/* Стоковые динозаврики — общие сбросы (каталог переопределяет object-fit/position ниже) */
.lg-avatar--stock {
    box-sizing: border-box;
    background-color: #fff;
}

.lg-nav__avatar.lg-avatar--stock {
    padding: 4px 3px 3px 6px;
    object-fit: contain;
    object-position: left top;
}

.lg-pf-hero__ava.lg-avatar--stock,
.cb-profile-hero__ava.lg-avatar--stock {
    padding: 8px 5px 5px 10px;
}

.cb-parent-history-item__ava.lg-avatar--stock {
    padding: 4px 3px 3px 6px;
}

.lg-specialist-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px;
    transition: background .15s;
}

.lg-specialist-card__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.lg-specialist-card__name {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--lg-blue);
}

.lg-specialist-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
}

.lg-specialist-card__kind,
.lg-specialist-card__city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--lg-muted);
    line-height: 1.3;
}

.lg-specialist-card__kind {
    color: var(--lg-blue-soft);
}

.lg-specialist-card__kind i,
.lg-specialist-card__city i {
    font-size: 10px;
    opacity: .75;
    color: var(--lg-emerald);
}

.lg-specialist-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: flex-start;
    margin: 2px 0 0;
}

.lg-specialist-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(5, 150, 105, .16);
    background: rgba(5, 150, 105, .08);
    color: var(--lg-emerald);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
}

.lg-specialist-card__chip i {
    font-size: 9px;
    opacity: .92;
    flex-shrink: 0;
}

.lg-specialist-card__chip--more {
    border-style: dashed;
    background: transparent;
    color: var(--lg-muted);
    font-weight: 700;
}

.lg-specialist-card__format {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--lg-muted, #64748b);
}

.lg-specialist-card__format i {
    margin-right: 4px;
    color: var(--lg-emerald);
}

.lg-specialist-card__rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--lg-blue);
}

.lg-specialist-card__rating i {
    color: #d97706;
    font-size: 12px;
}

.lg-specialist-card__rating-count {
    font-weight: 600;
    font-size: 11px;
    color: var(--lg-muted);
}

.lg-specialist-card__bio {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--lg-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .lg-specialists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .lg-specialist-card {
        border-radius: 16px;
        transition: box-shadow .2s, transform .2s;
    }

    .lg-specialist-card:hover {
        box-shadow: 0 8px 24px rgba(15, 45, 82, .1);
        transform: translateY(-2px);
    }

    .lg-specialist-card__link {
        flex-direction: column;
    }

    .lg-specialist-card__link:hover .lg-specialist-card__body {
        background: rgba(5, 150, 105, .03);
    }

    .lg-specialist-card__media {
        flex: none;
        width: 100%;
        min-height: 0;
        aspect-ratio: 3 / 4;
        max-height: 220px;
    }

    .lg-specialist-card__media--stock {
        justify-content: flex-end;
        padding: 10px 18px 8px 6px;
    }

    .lg-specialist-card__media--stock .lg-specialist-card__photo.lg-avatar--stock {
        width: 92%;
        margin-left: auto;
        object-position: 60% 62%;
    }

    .lg-specialist-card__photo:not(.lg-avatar--stock) {
        min-height: 0;
        height: 100%;
    }

    .lg-specialist-card__body {
        gap: 6px;
        padding: 14px 14px 16px;
    }

    .lg-specialist-card__name {
        font-size: 17px;
    }

    .lg-specialist-card__chip {
        font-size: 12px;
    }

    .lg-specialist-card__bio {
        font-size: 14px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
        flex: 1;
    }

    .lg-specialist-card__meta {
        gap: 8px 12px;
    }
}

@media (min-width: 960px) {
    .lg-specialists {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .lg-specialist-card__media {
        max-height: 260px;
    }

    .lg-specialist-card__body {
        padding: 16px 16px 18px;
        gap: 8px;
    }

    .lg-specialist-card__name {
        font-size: 18px;
    }

    .lg-specialist-card__bio {
        -webkit-line-clamp: 4;
    }
}

/* Share link preview (cabinet + profile + OG reference layout) */
.lg-share-lead {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--lg-muted);
    text-align: left;
}

.lg-share-preview {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 0;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid var(--lg-border);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 45, 82, .08);
}

.lg-share-preview__media {
    background: #eef2f7;
    display: grid;
    place-items: center;
    min-height: 108px;
}

.lg-share-preview__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lg-share-preview__body {
    padding: 10px 12px;
    min-width: 0;
}

.lg-share-preview__host {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--lg-muted);
    text-transform: lowercase;
}

.lg-share-preview__title {
    display: block;
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--lg-blue);
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lg-share-preview__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--lg-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.lg-footer {
    flex-shrink: 0;
    margin-top: auto;
    text-align: center;
    padding: 28px 20px calc(32px + var(--lg-safe-bottom));
    color: var(--lg-muted);
    font-size: 13px;
    border-top: 1px solid var(--lg-border);
    background: var(--lg-surface);
}

.lg-footer p {
    margin: 0 0 6px;
}

.lg-footer__team a {
    color: var(--lg-muted);
    font-size: 12px;
    text-decoration: none;
}

.lg-footer__team a:hover { color: var(--lg-blue); }

/* Toast — единый стек сверху, одна строка, спуск вниз */
.lg-toast-host {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: calc(10px + max(var(--lg-app-inset-top, 0px), env(safe-area-inset-top, 0px))) 14px 0;
    pointer-events: none;
    box-sizing: border-box;
}

.lg-toast {
    box-sizing: border-box;
    display: block;
    width: max-content;
    max-width: min(420px, calc(100vw - 28px));
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--lg-blue);
    color: #fff;
    font-family: var(--lg-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow:
        0 10px 28px rgba(15, 45, 82, .16),
        0 2px 8px rgba(15, 45, 82, .08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    transition:
        transform .38s cubic-bezier(.22, 1, .36, 1),
        opacity .28s ease;
}

.lg-toast.is-show {
    transform: translateY(0);
    opacity: 1;
}

.lg-toast.is-hide {
    transform: translateY(-28px);
    opacity: 0;
    transition-duration: .24s;
}

.lg-toast--ok {
    background: var(--lg-emerald);
}

.lg-toast--err {
    background: #b91c1c;
}

.lg-toast--info {
    background: var(--lg-blue-soft);
}

.lg-toast--default {
    background: var(--lg-blue);
}

@media (prefers-reduced-motion: reduce) {
    .lg-toast {
        transition: opacity .15s ease;
        transform: none;
    }

    .lg-toast.is-show {
        transform: none;
    }

    .lg-toast.is-hide {
        transform: none;
    }
}

/* Push toggle */
.lg-push-card {
    padding: 14px;
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
    background: var(--lg-surface);
}

.lg-push-card__actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--lg-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lg-push-card__actions .lg-btn {
    gap: 8px;
}

.lg-push-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--lg-muted);
    background: var(--lg-bg-alt);
}

.lg-push-notice i {
    margin-top: 2px;
    color: var(--lg-blue-soft);
    flex-shrink: 0;
}

.lg-push-notice--warn {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.lg-push-notice--warn i {
    color: #b45309;
}

.cb-section--push .cb-section__title i {
    margin-right: 6px;
    color: var(--lg-emerald);
}

.lg-btn--compact {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
}

.lg-btn--danger {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.lg-btn--danger:hover {
    background: #991b1b;
    border-color: #991b1b;
}

.lg-btn--danger:focus-visible {
    outline: 2px solid #b91c1c;
    outline-offset: 2px;
}

/* Logout confirm — в lg_ui_shell на всех страницах; не зависит от cabinet.css */
.lg-logout-modal {
    position: fixed;
    inset: 0;
    z-index: 460;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.lg-logout-modal[hidden] {
    display: none !important;
}

.lg-logout-modal .cb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 45, 82, .45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.lg-logout-modal .cb-modal__panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--lg-surface, #fff);
    border-radius: 18px;
    border: 1px solid var(--lg-border, #e2e8f0);
    box-shadow: 0 20px 50px rgba(15, 45, 82, .2);
    animation: lgLogoutModalIn .22s ease;
}

@keyframes lgLogoutModalIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.lg-logout-modal .cb-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--lg-border, #e2e8f0);
}

.lg-logout-modal .cb-modal__head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--lg-blue, #0f2d52);
}

.lg-logout-modal .cb-modal__close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: var(--lg-bg, #f1f5f9);
    color: var(--lg-muted, #64748b);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
}

.lg-logout-modal .cb-modal__close:hover {
    color: var(--lg-blue, #0f2d52);
    background: #e8eef5;
}

.lg-logout-modal .cb-modal__close:focus-visible {
    outline: 2px solid var(--lg-blue, #0f2d52);
    outline-offset: 2px;
}

.lg-logout-modal .cb-modal__body {
    display: block;
    padding: 18px 18px 8px;
}

.lg-logout-modal__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--lg-muted, #64748b);
}

.lg-logout-modal .cb-modal__foot,
.lg-logout-modal__foot {
    display: flex;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--lg-border, #e2e8f0);
}

.lg-logout-modal .cb-modal__foot .lg-btn,
.lg-logout-modal__foot .lg-btn {
    flex: 1;
    min-height: 44px;
}

@media (min-width: 640px) {
    .lg-logout-modal {
        align-items: center;
        padding-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-logout-modal .cb-modal__panel {
        animation: none;
    }
}

.lg-contact-gate-modal {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.lg-contact-gate-modal.is-visible,
.lg-contact-gate-modal:not([hidden]) {
    display: flex !important;
}

.lg-contact-gate-modal[hidden] {
    display: none !important;
}

.lg-contact-gate-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 45, 82, .52);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lg-contact-gate-modal__panel {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 28px 22px 22px;
    border-radius: 22px;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(37, 211, 102, .14), transparent 55%),
        var(--lg-surface, #fff);
    border: 1px solid rgba(15, 45, 82, .08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .7) inset,
        0 24px 56px rgba(15, 45, 82, .22);
    text-align: center;
    animation: lgContactGateIn .28s ease;
}

@keyframes lgContactGateIn {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lg-contact-gate-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: rgba(15, 45, 82, .06);
    color: var(--lg-muted, #64748b);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 15px;
    appearance: none;
    -webkit-appearance: none;
}

.lg-contact-gate-modal__close:hover {
    color: var(--lg-blue, #0f2d52);
    background: rgba(15, 45, 82, .1);
}

.lg-contact-gate-modal__icon {
    width: 56px;
    height: 56px;
    margin: 4px auto 14px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
}

.lg-contact-gate-modal__title {
    margin: 0 0 10px;
    padding: 0 28px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--lg-blue, #0f2d52);
}

.lg-contact-gate-modal__text {
    margin: 0 auto 20px;
    max-width: 30em;
    font-size: 14px;
    line-height: 1.55;
    color: var(--lg-muted, #64748b);
}

.lg-contact-gate-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lg-contact-gate-modal__btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border-radius: 14px;
    font-weight: 700;
}

.lg-contact-gate-modal__btn--wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 211, 102, .28);
}

.lg-contact-gate-modal__btn--wa:hover {
    background: #1ebe57;
    border-color: #1ebe57;
    color: #fff;
}

body.lg-contact-gate-open .lg-app-dock {
    z-index: 1;
}

.lg-map-popup__btn--wa[data-lg-contact-gate] {
    border: none;
    cursor: pointer;
    font: inherit;
}

.lg-pf-partner-modal__wa[data-lg-contact-gate] {
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .lg-contact-gate-modal__panel {
        animation: none;
    }
}

.lg-push-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    border-top: none;
    margin-top: 0;
}

.lg-push-row__text strong {
    display: block;
    font-size: 14px;
    color: var(--lg-text);
    margin-bottom: 4px;
}

.lg-push-row__text small {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: var(--lg-muted);
}

.lg-push-toggle {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.lg-push-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lg-push-toggle__track {
    display: block;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: var(--lg-border);
    transition: background .2s ease;
    cursor: pointer;
}

.lg-push-toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 45, 82, .18);
    transition: transform .2s ease;
}

.lg-push-toggle input:checked + .lg-push-toggle__track {
    background: var(--lg-emerald);
}

.lg-push-toggle input:checked + .lg-push-toggle__track::after {
    transform: translateX(20px);
}

.lg-push-toggle input:focus-visible + .lg-push-toggle__track {
    outline: 2px solid var(--lg-emerald);
    outline-offset: 2px;
}

.lg-push-toggle input:disabled + .lg-push-toggle__track {
    opacity: .55;
    cursor: not-allowed;
}

/* Online presence indicator */
.lg-presence-dot {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, .35);
    z-index: 2;
    display: none;
    pointer-events: none;
}

.lg-presence-dot.is-online {
    display: block;
}

.lg-specialist-card__media .lg-presence-dot {
    right: 8px;
    bottom: 8px;
}
/* ============================================================
   GLOBAL APP DOCK (public pages, mobile-first)
   ============================================================ */

.lg-app-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 400;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 2px;
    min-height: 58px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(15, 45, 82, .08);
    border-radius: 22px;
    box-shadow:
        0 8px 28px rgba(15, 45, 82, .12),
        0 2px 8px rgba(15, 45, 82, .06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
    isolation: isolate;
}

body.lg-has-app-dock .lg-app-dock {
    display: grid;
}

body.lg-has-app-dock {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* Пока открыта модалка — док не мешает */
body.lg-modal-open .lg-app-dock,
body.lg-spec-modal-open .lg-app-dock,
body.cb-settings-open .lg-app-dock,
body.cb-modal-open .lg-app-dock {
    display: none !important;
}

.lg-app-dock__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 46px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--lg-muted);
    text-decoration: none;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    border-radius: 14px;
    transition: color .15s ease, background .15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lg-app-dock__item i {
    font-size: 16px;
    pointer-events: none;
}

.lg-app-dock__item span {
    pointer-events: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lg-app-dock__item.is-active,
.lg-app-dock__item:hover {
    color: var(--lg-emerald);
}

.lg-app-dock__item.is-active {
    background: rgba(5, 150, 105, .1);
}

.lg-app-dock__item:focus-visible {
    outline: 2px solid var(--lg-emerald);
    outline-offset: -2px;
}

.lg-app-dock__create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--lg-emerald);
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 4px 12px rgba(5, 150, 105, .32);
    transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lg-app-dock__create:hover {
    background: var(--lg-emerald-hover);
    box-shadow: 0 6px 16px rgba(5, 150, 105, .4);
    color: #fff;
}

.lg-app-dock__create:active {
    transform: scale(.96);
}

.lg-app-dock__create:focus-visible {
    outline: 2px solid var(--lg-emerald);
    outline-offset: 3px;
}

@media (min-width: 768px) {
    /* Dock stays visible on desktop too (cabinet / day / auth flows). */
    body.lg-has-app-dock .lg-app-dock {
        display: grid;
        left: 50%;
        right: auto;
        bottom: 16px;
        width: min(560px, calc(100% - 32px));
        transform: translateX(-50%);
    }
    body.lg-has-app-dock {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }
}

/* Day schedule page — force readable main on all viewports */
body.lg-page-appt-day {
    background: var(--lg-bg, #f8fafc);
    color: var(--lg-text, #0f2d52);
}
body.lg-page-appt-day #lgDaySchedule,
body.lg-page-appt-day .lgd-main {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
    color: #0f2d52 !important;
    min-height: 50vh;
}
body.lg-page-appt-day .lg-footer {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: reduce) {
    .lg-app-dock__item,
    .lg-app-dock__create {
        transition: none;
    }
}
