/* home.css — Logozavr homepage: onboarding, roles, hero dino, manifest */
/* Design tokens: all values use --lg-* from logozavr.css */

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

/* ============================================================
   HERO — dino Lottie container + CSS emoji fallback
   ============================================================ */

.lg-hero__dino-lottie {
    display: block;
    width: min(140px, 36vw);
    height: min(140px, 36vw);
    margin: 0 auto 8px;
    flex-shrink: 0;
}
.lg-hero__dino-lottie[hidden] { display: none; }

@keyframes dino-bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%       { transform: translateY(-10px) rotate(2deg); }
}
.lg-hero__dino-fallback {
    display: block;
    font-size: clamp(56px, 14vw, 96px);
    line-height: 1;
    text-align: center;
    animation: dino-bob 2.8s ease-in-out infinite;
    user-select: none;
}
@media (prefers-reduced-motion: reduce) {
    .lg-hero__dino-fallback { animation: none; }
}

/* Breathing room between hero elements */
.lg-hero__tagline {
    margin-top: 4px;
}

/* ============================================================
   MANIFEST / ABOUT SECTION
   ============================================================ */

.lg-about {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.lg-about__title {
    margin: 0 0 12px;
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 700;
    color: var(--lg-blue);
    line-height: 1.3;
    letter-spacing: -.01em;
}

.lg-about__text {
    margin: 0;
    font-size: clamp(15px, 3.5vw, 17px);
    color: var(--lg-muted);
    line-height: 1.65;
    max-width: 62ch;
    margin-inline: auto;
}

/* ============================================================
   ROLES SECTION — 3-column bento grid
   ============================================================ */

.lg-roles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
}

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

.lg-role-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px 20px;
    border-radius: var(--lg-radius);
    border: 1px solid var(--lg-border);
    background: var(--lg-surface);
    transition: box-shadow .2s ease, transform .2s ease;
    outline: none;
}

.lg-role-card:hover {
    box-shadow: 0 6px 20px rgba(15, 45, 82, .09);
    transform: translateY(-2px);
}

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

/* Colour accent on left border per role */
.lg-role-card--parents  { border-left: 3px solid var(--lg-emerald); }
.lg-role-card--spec     { border-left: 3px solid var(--lg-blue-soft); }
.lg-role-card--centers  { border-left: 3px solid #d97706; }

.lg-role-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.lg-role-card--parents .lg-role-card__icon  { background: #e0f2ec; color: var(--lg-emerald); }
.lg-role-card--spec    .lg-role-card__icon  { background: #dce8f5; color: var(--lg-blue); }
.lg-role-card--centers .lg-role-card__icon  { background: #fef3c7; color: #d97706; }

.lg-role-card__label {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--lg-muted);
}

.lg-role-card__title {
    margin: 0;
    font-size: clamp(16px, 3.5vw, 18px);
    font-weight: 800;
    color: var(--lg-blue);
    line-height: 1.25;
    letter-spacing: -.01em;
}

.lg-role-card__lead {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--lg-emerald);
    line-height: 1.3;
}

.lg-role-card--centers .lg-role-card__lead { color: #d97706; }
.lg-role-card--spec    .lg-role-card__lead { color: var(--lg-blue-soft); }

.lg-role-card__text {
    margin: 0;
    font-size: 14px;
    color: var(--lg-muted);
    line-height: 1.6;
    flex: 1;
    max-width: 48ch;
}

.lg-role-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
    align-self: flex-start;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lg-role-card--parents .lg-role-card__cta {
    background: var(--lg-emerald);
    color: #fff;
}
.lg-role-card--parents .lg-role-card__cta:hover { background: var(--lg-emerald-hover); }

.lg-role-card--spec .lg-role-card__cta {
    background: var(--lg-blue);
    color: #fff;
}
.lg-role-card--spec .lg-role-card__cta:hover { background: var(--lg-blue-soft); }

.lg-role-card--spec .lg-role-card__cta--secondary {
    background: #fff;
    color: var(--lg-blue);
    box-shadow: inset 0 0 0 1.5px var(--lg-blue);
}
.lg-role-card--spec .lg-role-card__cta--secondary:hover {
    background: #eff6ff;
}

.lg-role-card--spec .lg-role-card__cta + .lg-role-card__cta {
    margin-top: 8px;
}

.lg-role-card--centers .lg-role-card__cta {
    background: #d97706;
    color: #fff;
}
.lg-role-card--centers .lg-role-card__cta:hover { background: #b45309; }

.lg-role-card__cta:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Mobile: stack cards horizontally on small tablets */
@media (min-width: 480px) and (max-width: 679px) {
    .lg-roles {
        grid-template-columns: 1fr 1fr;
    }
    .lg-role-card:last-child {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   ONBOARDING OVERLAY
   ============================================================ */

.lg-onb-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(10, 20, 40, .72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: lgOnbFadeIn .3s ease both;
}

.lg-onb-overlay[hidden] {
    display: none !important;
}

.lg-onb-overlay.is-open {
    display: flex;
}

/* Клавиатура открыта: якорим к верху visual viewport, даём скролл до поля ввода */
.lg-onb-overlay.is-keyboard {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
}

.lg-onb-overlay.is-keyboard .lg-onb-card {
    margin-top: 0;
    margin-bottom: 12px;
    padding-top: 20px;
    padding-bottom: 16px;
    animation: none;
}

.lg-onb-overlay.is-keyboard .lg-onb-lottie {
    width: min(88px, 26vw);
    height: min(88px, 26vw);
    margin-bottom: 0;
}

.lg-onb-overlay.is-keyboard .lg-onb-dots {
    margin-bottom: 10px;
}

.lg-onb-overlay.is-keyboard .lg-onb-step {
    gap: 8px;
}

.lg-onb-overlay.is-hiding {
    animation: lgOnbFadeOut .25s ease both;
}

@keyframes lgOnbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes lgOnbFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.lg-onb-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    background: var(--lg-surface);
    border-radius: 20px;
    padding: 32px 28px 28px;
    box-shadow: 0 24px 64px rgba(10, 20, 40, .28);
    animation: lgOnbSlideUp .35s cubic-bezier(.16,1,.3,1) both;
}

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

@media (max-width: 440px) {
    .lg-onb-card {
        padding: 24px 20px 20px;
        border-radius: 16px;
    }
}

.lg-onb-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0 0;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    color: var(--lg-muted);
    border-radius: 8px;
    transition: color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.lg-onb-login-link:hover {
    color: var(--lg-blue);
    background: rgba(15, 45, 82, .04);
}

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

.lg-onb-login-link__label {
    color: inherit;
    font-weight: 400;
}

.lg-onb-login-link__action {
    color: var(--lg-emerald);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s;
}

.lg-onb-login-link:hover .lg-onb-login-link__action {
    color: var(--lg-emerald-hover, #047857);
}

.lg-onb-skip {
    display: inline-block;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    color: #9aa8b6;
    color: color-mix(in srgb, var(--lg-muted) 50%, transparent);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
    cursor: pointer;
    min-height: 0;
    text-align: center;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
}

.lg-onb-skip:hover {
    color: var(--lg-muted);
    background: none;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lg-onb-skip:focus,
.lg-onb-skip:focus-visible {
    outline: none;
    box-shadow: none;
    color: var(--lg-muted);
}

/* Step indicator dots */
.lg-onb-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 20px;
}

.lg-onb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lg-border);
    transition: background .2s, width .2s;
}

.lg-onb-dot.is-active {
    background: var(--lg-emerald);
    width: 20px;
    border-radius: 3px;
}

/* Step panels */
@keyframes lgOnbStepIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lg-onb-step {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 100%;
}

.lg-onb-step.is-active {
    display: flex;
}

@media (prefers-reduced-motion: no-preference) {
    .lg-onb-step.is-active {
        animation: lgOnbStepIn .25s ease both;
    }
}

/* Lottie container inside onboarding steps */
.lg-onb-lottie {
    width: min(200px, 56vw);
    height: min(200px, 56vw);
    margin: 0 auto 4px;
    flex-shrink: 0;
    overflow: hidden;
    pointer-events: none;
    position: relative;
}

.lg-onb-lottie svg {
    pointer-events: none;
}

.lg-onb-fallback-emoji {
    font-size: 72px;
    line-height: 1;
    display: block;
    text-align: center;
    user-select: none;
}

.lg-onb-title {
    margin: 4px 0 0;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 800;
    color: var(--lg-blue);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.lg-onb-sub {
    margin: 0;
    font-size: 14px;
    color: var(--lg-muted);
    line-height: 1.55;
    max-width: 34ch;
}

/* Step 2 — name input */
.lg-onb-field {
    width: 100%;
    margin-top: 4px;
}

.lg-onb-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--lg-blue);
}

.lg-onb-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--lg-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: var(--lg-text);
    background: var(--lg-bg);
    transition: border-color .15s;
    outline: none;
}

.lg-onb-input:focus { border-color: var(--lg-emerald); }

/* Step 3 — role buttons */
.lg-onb-roles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.lg-onb-role-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--lg-border);
    border-radius: 12px;
    background: var(--lg-surface);
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, background .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
    min-height: 60px;
}

.lg-onb-role-btn:hover {
    border-color: var(--lg-emerald);
    background: #f0faf6;
    transform: scale(1.01);
}

.lg-onb-role-btn:focus-visible {
    outline: 2px solid var(--lg-emerald);
    outline-offset: 2px;
}

.lg-onb-role-btn:active { transform: scale(.98); }

.lg-onb-role-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
    background: var(--lg-bg-alt);
    color: var(--lg-blue);
    transition: background .15s;
}

.lg-onb-role-btn:hover .lg-onb-role-btn__icon { background: #e0f2ec; color: var(--lg-emerald); }

.lg-onb-role-btn__text { flex: 1; min-width: 0; }

.lg-onb-role-btn__label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--lg-blue);
    line-height: 1.2;
}

.lg-onb-role-btn__hint {
    display: block;
    font-size: 12px;
    color: var(--lg-muted);
    margin-top: 2px;
    line-height: 1.3;
}

/* Continue button inside onboarding */
.lg-onb-continue {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    background: var(--lg-emerald);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    min-height: 48px;
    width: 100%;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}

.lg-onb-continue:hover { background: var(--lg-emerald-hover); }
.lg-onb-continue:focus-visible { outline: 2px solid var(--lg-emerald); outline-offset: 3px; }
.lg-onb-continue:active { transform: scale(.98); }

/* ============================================================
   PREFERS-REDUCED-MOTION — disable all transitions/animations
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .lg-onb-overlay,
    .lg-onb-card,
    .lg-role-card,
    .lg-onb-role-btn {
        animation: none;
        transition: none;
    }
}

/* ============================================================
   HOME HUB (app-like) — mobile base, scaled up on desktop
   ============================================================ */

.lg-home-hub {
    display: block;
    padding: 8px 0 4px;
}

.lg-home-hub__inner {
    padding: 0 16px;
    max-width: var(--lg-max);
    margin: 0 auto;
}

/* Compact hero: search-first, no logo (all viewports) */
.lg-page-home .lg-hero__dino-lottie,
.lg-page-home .lg-hero__logo,
.lg-page-home .lg-hero__tagline,
.lg-page-home .lg-hero__lead,
.lg-page-home .lg-hero__sub,
.lg-page-home .lg-hero__join {
    display: none !important;
}

.lg-page-home .lg-hero,
.lg-page-home .lg-hero--search-first {
    padding: 10px 16px 4px;
    min-height: 0;
}

.lg-page-home .lg-hero__actions--search {
    margin-top: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}

/* Instagram-style story rings above search */
.lg-stories-rail {
    margin: 0 0 12px;
    width: 100%;
}

.lg-stories-rail__scroll {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lg-stories-rail__scroll::-webkit-scrollbar {
    display: none;
}

.lg-stories-ring {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 76px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--lg-blue);
    font: inherit;
    cursor: pointer;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    outline: none;
}

.lg-stories-ring:focus,
.lg-stories-ring:focus-visible,
.lg-stories-ring:active {
    outline: none;
}

.lg-stories-ring:active {
    transform: scale(.96);
}

.lg-stories-rail__defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.lg-stories-ring__frame {
    position: relative;
    width: 72px;
    height: 72px;
    isolation: isolate;
    overflow: visible;
}

.lg-stories-ring__progress {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.lg-stories-ring__track {
    fill: none;
    stroke: rgba(15, 45, 82, .14);
    stroke-width: 3.5;
}

.lg-stories-ring__loader {
    fill: none;
    stroke: #10b981;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 207.35;
    stroke-dashoffset: 207.35;
    animation: lgStoriesRingLoad 2.8s ease-out var(--ring-delay, 0s) 1 forwards;
}

.lg-stories-ring.is-viewed .lg-stories-ring__loader {
    stroke: #c5d0dc;
    stroke-dashoffset: 0;
    animation: none;
}

.lg-stories-ring__avatar {
    position: absolute;
    inset: 5px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(155deg, #ecfdf5 0%, #eff6ff 46%, #f5f3ff 100%);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.lg-stories-ring__lottie {
    position: relative;
    width: 112%;
    height: 112%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lg-stories-ring__lottie svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.lg-stories-ring__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.lg-stories-ring__fallback[hidden] {
    display: none !important;
}

.lg-stories-ring__lottie-mount {
    width: 100%;
    height: 100%;
}

.lg-stories-ring__lottie-mount svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.lg-stories-ring__label {
    max-width: 76px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: var(--lg-blue);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ПК: крупнее и ровно по центру контейнера поиска */
@media (min-width: 768px) {
    .lg-stories-rail {
        margin: 0 0 18px;
    }

    .lg-stories-rail__scroll {
        justify-content: space-evenly;
        align-items: flex-start;
        gap: 0;
        overflow: visible;
        padding: 4px 4px 6px;
        scroll-snap-type: none;
    }

    .lg-stories-ring {
        width: 108px;
        gap: 8px;
    }

    .lg-stories-ring__frame {
        width: 96px;
        height: 96px;
    }

    .lg-stories-ring__avatar {
        inset: 6px;
    }

    .lg-stories-ring__fallback {
        font-size: 40px;
    }

    .lg-stories-ring__label {
        max-width: 108px;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;
    }
}

@media (min-width: 1024px) {
    .lg-stories-rail__scroll {
        padding: 6px 8px 8px;
    }

    .lg-stories-ring {
        width: 118px;
    }

    .lg-stories-ring__frame {
        width: 104px;
        height: 104px;
    }

    .lg-stories-ring__label {
        max-width: 118px;
        font-size: 13.5px;
    }
}

@keyframes lgStoriesRingLoad {
    from { stroke-dashoffset: 207.35; }
    to { stroke-dashoffset: 0; }
}

.lg-page-home .lg-home-legacy {
    display: none !important;
}

.lg-page-home #specialists .lg-section__intro {
    display: none;
}

.lg-home-hub__eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--lg-muted);
}

.lg-home-hub__actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.lg-home-hub__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.lg-home-hub__feat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    aspect-ratio: 1 / 1;
    width: 100%;
    padding: 8px 6px 10px;
    border: 1px solid rgba(15, 45, 82, .08);
    border-radius: 20px;
    background: #fff;
    color: var(--lg-blue);
    font: inherit;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

.lg-home-hub__feat:hover,
.lg-home-hub__feat:focus-visible {
    border-color: rgba(5, 150, 105, .35);
    background: rgba(5, 150, 105, .04);
    outline: none;
}

.lg-home-hub__feat:active {
    transform: scale(.98);
}

.lg-home-hub__feat-anim {
    flex: 1 1 auto;
    width: 82%;
    max-height: 78%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lg-home-hub__feat-anim svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
}

.lg-home-hub__feat-fallback {
    font-size: clamp(40px, 13vw, 60px);
    line-height: 1;
    user-select: none;
}

.lg-home-hub__feat-label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--lg-blue);
    padding: 0 6px;
}

.lg-home-hub__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    border: 1px solid rgba(15, 45, 82, .08);
    border-radius: 16px;
    background: #fff;
    color: var(--lg-blue);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 76px;
}

.lg-home-hub__action:hover,
.lg-home-hub__action:focus-visible {
    border-color: rgba(5, 150, 105, .35);
    background: rgba(5, 150, 105, .06);
    outline: none;
}

.lg-home-hub__action:active {
    transform: scale(.98);
}

.lg-home-hub__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(15, 45, 82, .06);
    color: var(--lg-blue);
    font-size: 15px;
}

.lg-home-hub__action-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
}

.lg-home-hub__tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.lg-home-hub__tile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 45, 82, .08);
    border-radius: 16px;
    background: #fff;
    color: var(--lg-blue);
    text-align: left;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
    -webkit-tap-highlight-color: transparent;
}

a.lg-home-hub__tile:hover,
a.lg-home-hub__tile:focus-visible {
    color: var(--lg-blue);
    text-decoration: none;
}

.lg-home-hub__tile:hover,
.lg-home-hub__tile:focus-visible {
    border-color: rgba(5, 150, 105, .35);
    background: rgba(5, 150, 105, .05);
    outline: none;
}

.lg-home-hub__tile:active {
    transform: scale(.98);
}

.lg-home-hub__tile-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(15, 45, 82, .07);
    color: var(--lg-emerald);
    font-size: 16px;
}

.lg-home-hub__tile-label {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
}

/* WhatsApp: подбор специалиста (над рекламным баннером) */
.lg-home-hub__match {
    margin: 0 0 18px;
    text-align: center;
}

.lg-home-hub__match-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    text-decoration: none;
    color: #fff;
    font-weight: 750;
    font-size: 15px;
    letter-spacing: .02em;
    line-height: 1.2;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #25d366 0%, var(--lg-emerald, #059669) 48%, #047857 100%);
    box-shadow:
        0 4px 18px rgba(5, 150, 105, .32),
        0 1px 0 rgba(255, 255, 255, .18) inset,
        0 -1px 0 rgba(0, 0, 0, .08) inset;
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    animation: lg-home-match-pulse 2.8s ease-in-out infinite;
}

.lg-home-hub__match-btn-shine {
    position: absolute;
    inset: -1px;
    z-index: 0;
    background: linear-gradient(
        105deg,
        transparent 32%,
        rgba(255, 255, 255, .08) 42%,
        rgba(255, 255, 255, .55) 50%,
        rgba(255, 255, 255, .08) 58%,
        transparent 68%
    );
    background-size: 220% 100%;
    animation: lg-home-match-shimmer 3.4s ease-in-out infinite;
    pointer-events: none;
}

.lg-home-hub__match-btn-glass {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, .22) 0%,
        rgba(255, 255, 255, .06) 38%,
        transparent 55%,
        rgba(0, 0, 0, .07) 100%
    );
    pointer-events: none;
}

.lg-home-hub__match-btn-inner {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lg-home-hub__match-btn-icon {
    font-size: 22px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .15));
}

.lg-home-hub__match-btn-label {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: .06em;
}

.lg-home-hub__match-btn:hover,
.lg-home-hub__match-btn:focus-visible {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.04);
    box-shadow:
        0 8px 26px rgba(5, 150, 105, .38),
        0 1px 0 rgba(255, 255, 255, .22) inset;
    outline: none;
}

.lg-home-hub__match-btn:focus-visible {
    box-shadow:
        0 8px 26px rgba(5, 150, 105, .38),
        0 0 0 3px rgba(5, 150, 105, .28);
}

.lg-home-hub__match-btn:active {
    transform: translateY(0) scale(.99);
    filter: brightness(.98);
}

.lg-home-hub__match-hint {
    margin: 9px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--lg-muted, #5a6b7d);
    opacity: .52;
}

@keyframes lg-home-match-pulse {
    0%, 100% {
        box-shadow:
            0 4px 18px rgba(5, 150, 105, .28),
            0 1px 0 rgba(255, 255, 255, .18) inset;
    }
    50% {
        box-shadow:
            0 6px 28px rgba(5, 150, 105, .42),
            0 0 0 4px rgba(37, 211, 102, .12),
            0 1px 0 rgba(255, 255, 255, .22) inset;
    }
}

@keyframes lg-home-match-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Home ad: fixed window; image fills edge-to-edge; scale = zoom; clip only by block */
.lg-home-hub__ad {
    --lg-home-ad-scale: 1;
    --lg-home-ad-h: calc(2 * 64px + 20px);
    position: relative;
    height: var(--lg-home-ad-h);
    margin: 0 0 22px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 45, 82, .08);
    background: #fff;
}

.lg-home-hub__ad-link {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s ease;
}

.lg-home-hub__ad-link:hover,
.lg-home-hub__ad-link:focus-visible {
    opacity: .92;
    outline: none;
}

.lg-home-hub__ad-link:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(5, 150, 105, .35);
}

.lg-home-hub__ad-link:active {
    opacity: .85;
}

.lg-home-hub__ad-img {
    /* Full bitmap in layout (no object-fit crop). Scale zooms; block clips. */
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: unset;
    transform: translate(-50%, -50%) scale(var(--lg-home-ad-scale, 1));
    transform-origin: center center;
}

.lg-home-hub__block {
    margin: 0 0 24px;
    padding: 16px;
    border-radius: 20px;
    background: var(--lg-bg-alt);
    border: 1px solid rgba(15, 45, 82, .06);
}

.lg-home-hub__block-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.lg-home-hub__block-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--lg-blue);
    line-height: 1.25;
}

.lg-home-hub__block-lead {
    margin: 0;
    font-size: 13px;
    color: var(--lg-muted);
    line-height: 1.4;
}

.lg-home-hub__see-all {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 650;
    color: var(--lg-emerald);
    text-decoration: none;
    padding-top: 2px;
}

.lg-home-hub__see-all:hover,
.lg-home-hub__see-all:focus-visible {
    text-decoration: underline;
    outline: none;
}

.lg-home-spec-rail,
.lg-home-jobs-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 4px 16px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lg-home-spec-rail::-webkit-scrollbar,
.lg-home-jobs-rail::-webkit-scrollbar {
    display: none;
}

.lg-home-spec-card {
    flex: 0 0 148px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(15, 45, 82, .08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .15s ease, transform .1s ease;
}

.lg-home-spec-card:hover,
.lg-home-spec-card:focus-visible {
    border-color: rgba(5, 150, 105, .4);
    outline: none;
}

.lg-home-spec-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--lg-bg);
    overflow: hidden;
}

.lg-home-spec-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lg-home-spec-card__body {
    padding: 10px 10px 12px;
}

.lg-home-spec-card__name {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lg-blue);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lg-home-spec-card__skill,
.lg-home-spec-card__city,
.lg-home-spec-card__rating {
    margin: 0;
    font-size: 11px;
    color: var(--lg-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lg-home-spec-card__rating {
    color: var(--lg-emerald);
    font-weight: 650;
}

.lg-home-job-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 128px;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(15, 45, 82, .08);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease;
}

.lg-home-job-card:hover,
.lg-home-job-card:focus-visible {
    border-color: rgba(5, 150, 105, .4);
    outline: none;
}

.lg-home-job-card__badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--lg-emerald);
    background: rgba(5, 150, 105, .1);
    padding: 3px 8px;
    border-radius: 999px;
}

.lg-home-job-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--lg-blue);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lg-home-job-card__meta {
    font-size: 12px;
    color: var(--lg-muted);
    line-height: 1.3;
}

.lg-home-hub__job-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.lg-home-hub__job-ctas .lg-btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
    font-size: 13px;
}

.lg-home-hub__empty {
    margin: 0;
    font-size: 14px;
}

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

/* Home hub info modals */
.lg-home-info-modal .lg-spec-modal__panel {
    width: min(440px, 100%);
    border-radius: 18px;
}

.lg-home-info-modal .lg-spec-modal__head h3 {
    font-family: var(--lg-font-brand);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.lg-home-info-modal .lg-spec-modal__body {
    padding: 12px 14px 14px;
}

.lg-home-info {
    display: grid;
    gap: 12px;
}

.lg-home-info__lead {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--lg-text);
}

.lg-home-info__banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(5, 150, 105, .07);
    border: 1px solid rgba(5, 150, 105, .14);
}

.lg-home-info__banner-text {
    margin: 0;
    padding-top: 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--lg-blue);
}

.lg-home-info__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lg-home-info__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 45, 82, .05);
    border: 1px solid rgba(15, 45, 82, .08);
    color: var(--lg-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.2;
}

.lg-home-info__pill i {
    color: var(--lg-emerald);
    font-size: 11px;
}

.lg-home-info__rows,
.lg-home-info__cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.lg-home-info__row,
.lg-home-info__card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: var(--lg-bg);
    border: 1px solid rgba(15, 45, 82, .07);
}

.lg-home-info__row-text {
    padding-top: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--lg-blue);
}

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

.lg-home-info__icon--lg {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 16px;
}

.lg-home-info__icon--wa {
    background: rgba(37, 211, 102, .14);
    color: #128c7e;
}

.lg-home-info__card-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.lg-home-info__card-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--lg-blue);
}

.lg-home-info__card-text {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--lg-muted);
}

.lg-home-info__callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(37, 211, 102, .08);
    border: 1px solid rgba(18, 140, 126, .16);
}

.lg-home-info__callout-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.lg-home-info__note {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--lg-muted);
}

.lg-home-info__subhead {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lg-muted);
}

.lg-home-info-modal .lg-spec-modal__foot {
    display: grid;
    gap: 8px;
    padding: 10px 14px 12px;
}

.lg-home-info-modal .lg-spec-modal__foot .lg-btn {
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    border-radius: 12px;
}

@media (max-width: 400px) {
    .lg-home-info-modal.lg-spec-modal {
        padding: 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .lg-home-info-modal .lg-spec-modal__panel {
        max-height: calc(100vh - 20px - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 20px - env(safe-area-inset-bottom, 0px));
        border-radius: 16px;
    }

    .lg-home-info-modal .lg-spec-modal__head {
        padding: 12px 14px;
    }

    .lg-home-info-modal .lg-spec-modal__head h3 {
        font-size: 15px;
    }

    .lg-home-info-modal .lg-spec-modal__body {
        padding: 10px 12px 12px;
    }

    .lg-home-info {
        gap: 10px;
    }

    .lg-home-info__lead,
    .lg-home-info__banner-text {
        font-size: 13px;
    }

    .lg-home-info__banner,
    .lg-home-info__row,
    .lg-home-info__card,
    .lg-home-info__callout {
        padding: 10px;
        gap: 10px;
        border-radius: 12px;
    }

    .lg-home-info__icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 13px;
    }

    .lg-home-info__icon--lg {
        width: 36px;
        height: 36px;
    }

    .lg-home-info__row-text,
    .lg-home-info__card-title {
        font-size: 13px;
    }

    .lg-home-info__card-text {
        font-size: 12px;
    }

    .lg-home-info__pill {
        padding: 4px 8px;
        font-size: 10px;
        gap: 5px;
    }

    .lg-home-info-modal .lg-spec-modal__foot .lg-btn {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .lg-home-info-modal .lg-spec-modal__foot .lg-btn {
        font-size: 11px;
        letter-spacing: -0.01em;
    }
}

/* Tablet / desktop: same hub, larger & airier */
@media (min-width: 768px) {
    .lg-page-home .lg-hero,
    .lg-page-home .lg-hero--search-first {
        padding: 28px 24px 12px;
    }

    .lg-page-home .lg-hero__actions--search {
        max-width: 720px;
        margin-inline: auto;
    }

    .lg-page-home .lg-hero-search__input {
        min-height: 60px;
        font-size: 17px;
        border-radius: 16px;
        padding: 17px 56px 13px 18px;
        box-shadow:
            0 6px 24px rgba(15, 45, 82, .09),
            inset 0 0 0 1px #d8e0ea;
    }

    .lg-page-home .lg-hero-search__icon {
        right: 10px;
        left: auto;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 15px;
    }

    .lg-page-home .lg-hero-search__ph {
        left: 18px;
        right: 56px;
        transform: translateY(calc(-50% + 1px));
    }

    .lg-home-hub {
        padding: 12px 0 32px;
    }

    .lg-home-hub__inner {
        padding: 0 24px;
    }

    .lg-home-hub__eyebrow {
        margin-bottom: 14px;
        font-size: 14px;
        letter-spacing: .03em;
    }

    .lg-home-hub__actions {
        gap: 12px;
        margin-bottom: 20px;
    }

    .lg-home-hub__action {
        gap: 10px;
        padding: 16px 10px;
        border-radius: 18px;
        min-height: 96px;
    }

    .lg-home-hub__action:hover,
    .lg-home-hub__action:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 45, 82, .08);
    }

    .lg-home-hub__action-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 18px;
    }

    .lg-home-hub__action-label {
        font-size: 13px;
        font-weight: 650;
    }

    .lg-home-hub__features {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .lg-home-hub__feat {
        border-radius: 24px;
        padding: 14px 12px 16px;
        aspect-ratio: 16 / 10;
        max-height: 260px;
    }

    .lg-home-hub__feat:hover,
    .lg-home-hub__feat:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(15, 45, 82, .08);
    }

    .lg-home-hub__feat-fallback {
        font-size: 72px;
    }

    .lg-home-hub__feat-label {
        font-size: 16px;
        padding: 0 10px;
    }

    .lg-home-hub__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 28px;
        width: 100%;
        max-width: none;
    }

    .lg-home-hub__ad {
        --lg-home-ad-h: clamp(160px, 16vw, 200px);
        margin-bottom: 28px;
        border-radius: 18px;
        width: 100%;
        max-width: none;
    }

    .lg-home-hub__match {
        margin-bottom: 22px;
    }

    .lg-home-hub__match-btn {
        min-height: 56px;
        padding: 16px 24px;
        border-radius: 18px;
        font-size: 16px;
    }

    .lg-home-hub__match-btn-label {
        font-size: 15px;
    }

    .lg-home-hub__match-btn-icon {
        font-size: 24px;
    }

    .lg-home-hub__match-hint {
        font-size: 13px;
        margin-top: 10px;
    }

    .lg-home-hub__tile {
        min-height: 80px;
        padding: 18px 20px;
        border-radius: 18px;
        gap: 14px;
    }

    .lg-home-hub__tile:hover,
    .lg-home-hub__tile:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 45, 82, .08);
    }

    .lg-home-hub__tile-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 18px;
    }

    .lg-home-hub__tile-label {
        font-size: 16px;
        font-weight: 700;
    }

    .lg-home-hub__block {
        margin: 0 0 28px;
        padding: 24px;
        border-radius: 24px;
    }

    .lg-home-hub__block-head {
        margin-bottom: 16px;
        align-items: center;
    }

    .lg-home-hub__block-title {
        font-size: 22px;
    }

    .lg-home-hub__block-lead {
        font-size: 15px;
        max-width: 52ch;
    }

    .lg-home-hub__see-all {
        font-size: 14px;
    }

    .lg-home-spec-rail,
    .lg-home-jobs-rail {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
        gap: 16px;
        overflow: visible;
        margin: 0;
        padding: 0;
        scroll-snap-type: none;
    }

    .lg-home-jobs-rail {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .lg-home-spec-card {
        flex: none;
        width: auto;
        border-radius: 18px;
        transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    }

    .lg-home-spec-card:hover,
    .lg-home-spec-card:focus-visible {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(15, 45, 82, .1);
    }

    .lg-home-spec-card__body {
        padding: 12px 12px 14px;
    }

    .lg-home-spec-card__name {
        font-size: 14px;
    }

    .lg-home-spec-card__skill,
    .lg-home-spec-card__city,
    .lg-home-spec-card__rating {
        font-size: 12px;
    }

    .lg-home-job-card {
        flex: none;
        width: auto;
        min-height: 148px;
        padding: 18px;
        border-radius: 18px;
        transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    }

    .lg-home-job-card:hover,
    .lg-home-job-card:focus-visible {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(15, 45, 82, .1);
    }

    .lg-home-job-card__title {
        font-size: 15px;
    }

    .lg-home-job-card__meta {
        font-size: 13px;
    }

    .lg-home-hub__job-ctas {
        gap: 12px;
        margin-top: 18px;
    }

    .lg-home-hub__job-ctas .lg-btn {
        flex: 0 1 auto;
        min-width: 160px;
        font-size: 14px;
    }

    .lg-page-home #specialists {
        padding-top: 8px;
    }

    .lg-page-home #specialists .lg-section__title {
        font-size: clamp(22px, 2.5vw, 28px);
    }

    .lg-home-info-modal .lg-spec-modal__panel {
        max-width: 560px;
    }
}

@media (min-width: 1024px) {
    .lg-page-home .lg-hero,
    .lg-page-home .lg-hero--search-first {
        padding: 36px 24px 16px;
    }

    .lg-page-home .lg-hero__actions--search {
        max-width: 780px;
    }

    .lg-home-hub__actions {
        gap: 14px;
        margin-bottom: 24px;
    }

    .lg-home-hub__features {
        gap: 20px;
        margin-bottom: 28px;
    }

    .lg-home-hub__feat {
        max-height: 280px;
        border-radius: 28px;
    }

    .lg-home-hub__tiles {
        gap: 16px;
        margin-bottom: 32px;
    }

    .lg-home-hub__ad {
        --lg-home-ad-h: clamp(168px, 14vw, 220px);
        margin-bottom: 32px;
    }

    .lg-home-hub__match {
        margin-bottom: 26px;
    }

    .lg-home-hub__match-btn {
        min-height: 58px;
        border-radius: 20px;
    }

    .lg-home-hub__block {
        padding: 28px 28px 24px;
        margin-bottom: 32px;
    }

    .lg-home-spec-rail {
        grid-template-columns: repeat(6, 1fr);
    }

    .lg-home-jobs-rail {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-stories-ring__loader {
        animation: none;
        stroke-dashoffset: 0;
    }

    .lg-stories-ring.is-viewed .lg-stories-ring__loader {
        stroke: #c5d0dc;
    }

    .lg-home-hub__action,
    .lg-home-hub__tile,
    .lg-home-hub__feat,
    .lg-home-hub__ad-link,
    .lg-home-hub__match-btn,
    .lg-home-spec-card,
    .lg-home-job-card {
        transition: none;
    }

    .lg-home-hub__match-btn,
    .lg-home-hub__match-btn-shine {
        animation: none;
    }

    .lg-home-hub__action:hover,
    .lg-home-hub__action:focus-visible,
    .lg-home-hub__tile:hover,
    .lg-home-hub__tile:focus-visible,
    .lg-home-hub__feat:hover,
    .lg-home-hub__feat:focus-visible,
    .lg-home-spec-card:hover,
    .lg-home-spec-card:focus-visible,
    .lg-home-job-card:hover,
    .lg-home-job-card:focus-visible {
        transform: none;
    }
}
