:root {
    --ns-bg: #f4f7ff;
    --ns-bg-2: #eefcff;
    --ns-surface: rgba(255, 255, 255, 0.88);
    --ns-surface-solid: #ffffff;
    --ns-text: #111827;
    --ns-muted: #647084;
    --ns-soft: #eef2ff;
    --ns-soft-2: #ecfeff;
    --ns-border: rgba(21, 30, 55, 0.09);
    --ns-border-strong: rgba(21, 30, 55, 0.14);
    --ns-primary: #5368ff;
    --ns-primary-2: #7447ff;
    --ns-cyan: #16c9c3;
    --ns-shadow: 0 24px 70px rgba(19, 31, 58, 0.11);
    --ns-shadow-soft: 0 14px 36px rgba(19, 31, 58, 0.08);
    --ns-radius-xl: 34px;
    --ns-radius-lg: 26px;
    --ns-radius-md: 18px;
    --ns-radius-sm: 14px;
    --ns-container: 1180px;
    --ns-transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.new-specialists-body {
    margin: 0;
    min-height: 100vh;
    color: var(--ns-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 9% 8%, rgba(116, 71, 255, 0.13), transparent 32%),
        radial-gradient(circle at 88% 12%, rgba(22, 201, 195, 0.18), transparent 35%),
        linear-gradient(180deg, #f8fbff 0%, var(--ns-bg) 44%, #ffffff 100%);
}

body.new-specialists-body a {
    color: inherit;
}

body.new-specialists-body img {
    max-width: 100%;
    display: block;
}

.new-specialists-container {
    width: min(var(--ns-container), calc(100% - 40px));
    margin: 0 auto;
}

.new-specialists-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--ns-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.new-specialists-header__inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.new-specialists-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ns-text);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.new-specialists-logo__mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ns-primary), var(--ns-primary-2));
    box-shadow: 0 14px 28px rgba(83, 104, 255, 0.25);
}

.new-specialists-logo__text {
    font-size: 18px;
}

.new-specialists-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.new-specialists-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    color: #5a6378;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: background var(--ns-transition), color var(--ns-transition), transform var(--ns-transition), box-shadow var(--ns-transition);
}

.new-specialists-nav a:hover,
.new-specialists-nav a.is-active {
    color: var(--ns-text);
    background: rgba(17, 24, 39, 0.055);
}

.new-specialists-nav__login {
    background: #fff !important;
    border: 1px solid var(--ns-border-strong);
    color: var(--ns-text) !important;
}

.new-specialists-nav__cta {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ns-primary), var(--ns-primary-2)) !important;
    box-shadow: 0 14px 34px rgba(83, 104, 255, 0.22);
}

.new-specialists-nav__cta:hover {
    transform: translateY(-1px);
}

.new-specialists-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ns-border-strong);
    border-radius: 14px;
    background: #fff;
    color: var(--ns-text);
    cursor: pointer;
    padding: 0;
}

.new-specialists-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform var(--ns-transition), opacity var(--ns-transition);
}

.new-specialists-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.new-specialists-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.new-specialists-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.new-specialists-main {
    overflow: hidden;
}

.new-specialists-hero {
    padding: 72px 0 30px;
}

.new-specialists-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
}

.new-specialists-hero__content {
    position: relative;
    padding: 44px;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--ns-border);
    border-radius: var(--ns-radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7)),
        radial-gradient(circle at 90% 10%, rgba(22, 201, 195, 0.18), transparent 38%),
        radial-gradient(circle at 8% 88%, rgba(83, 104, 255, 0.16), transparent 38%);
    box-shadow: var(--ns-shadow);
}

.new-specialists-hero__content::after {
    content: "";
    position: absolute;
    right: -82px;
    top: -98px;
    width: 240px;
    height: 240px;
    border-radius: 58px;
    background: linear-gradient(135deg, rgba(83, 104, 255, 0.16), rgba(22, 201, 195, 0.16));
    transform: rotate(22deg);
}

.new-specialists-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--ns-primary);
    background: rgba(83, 104, 255, 0.11);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.new-specialists-kicker i {
    color: var(--ns-cyan);
}

.new-specialists-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--ns-text);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.075em;
    font-weight: 900;
}

.new-specialists-hero p {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--ns-muted);
    font-size: 18px;
    line-height: 1.62;
    font-weight: 550;
}

.new-specialists-hero__panel {
    position: relative;
    padding: 26px;
    display: grid;
    gap: 14px;
    align-content: center;
    border: 1px solid var(--ns-border);
    border-radius: var(--ns-radius-xl);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--ns-shadow-soft);
    overflow: hidden;
}

.new-specialists-hero__panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ns-primary), var(--ns-cyan), var(--ns-primary-2));
}

.new-specialists-stat {
    padding: 20px;
    border: 1px solid var(--ns-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
}

.new-specialists-stat strong {
    display: block;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.new-specialists-stat span {
    display: block;
    margin-top: 8px;
    color: var(--ns-muted);
    font-size: 14px;
    font-weight: 800;
}

.new-specialists-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--ns-transition), box-shadow var(--ns-transition), background var(--ns-transition), color var(--ns-transition), opacity var(--ns-transition);
}

.new-specialists-btn:hover {
    transform: translateY(-1px);
}

.new-specialists-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--ns-primary), var(--ns-primary-2));
    box-shadow: 0 16px 36px rgba(83, 104, 255, 0.22);
}

.new-specialists-btn--soft {
    color: var(--ns-primary);
    background: rgba(83, 104, 255, 0.1);
}

.new-specialists-btn--ghost {
    color: var(--ns-text);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--ns-border-strong);
}

.new-specialists-btn.is-loading,
.new-specialists-btn:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.new-specialists-search {
    padding: 8px 0 28px;
}

.new-specialists-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 300px) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border: 1px solid var(--ns-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--ns-shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.new-specialists-filter__field label {
    display: block;
    margin: 0 0 8px;
    color: var(--ns-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.new-specialists-input-wrap,
.new-specialists-select-wrap {
    position: relative;
}

.new-specialists-input-wrap i,
.new-specialists-select-wrap i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ns-primary);
    pointer-events: none;
}

.new-specialists-input-wrap i {
    left: 17px;
}

.new-specialists-select-wrap i {
    right: 17px;
}

.new-specialists-filter input,
.new-specialists-filter select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--ns-border-strong);
    border-radius: 18px;
    background: #fff;
    color: var(--ns-text);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    outline: none;
    transition: border-color var(--ns-transition), box-shadow var(--ns-transition), background var(--ns-transition);
}

.new-specialists-filter input {
    padding: 0 16px 0 46px;
}

.new-specialists-filter select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0 46px 0 16px;
}

.new-specialists-filter input:focus,
.new-specialists-filter select:focus {
    border-color: rgba(83, 104, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(83, 104, 255, 0.13);
}

.new-specialists-filter__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.new-specialists-catalog {
    padding: 22px 0 82px;
}

.new-specialists-layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.new-specialists-sidebar,
.new-specialists-results {
    border: 1px solid var(--ns-border);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--ns-shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.new-specialists-sidebar {
    position: sticky;
    top: 94px;
    padding: 20px;
    border-radius: 28px;
}

.new-specialists-sidebar__head h2,
.new-specialists-results__head h2 {
    margin: 12px 0 0;
    color: var(--ns-text);
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.new-specialists-profession-list {
    display: grid;
    gap: 8px;
    max-height: 520px;
    overflow: auto;
    margin-top: 18px;
    padding-right: 4px;
}

.new-specialists-profession-list::-webkit-scrollbar {
    width: 6px;
}

.new-specialists-profession-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(83, 104, 255, 0.24);
}

.new-specialists-profession {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #5b6478;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: background var(--ns-transition), color var(--ns-transition), border-color var(--ns-transition), transform var(--ns-transition);
}

.new-specialists-profession i {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--ns-transition), transform var(--ns-transition);
}

.new-specialists-profession:hover,
.new-specialists-profession.is-active {
    color: var(--ns-text);
    background: rgba(83, 104, 255, 0.08);
    border-color: rgba(83, 104, 255, 0.12);
}

.new-specialists-profession:hover i,
.new-specialists-profession.is-active i {
    opacity: 1;
    transform: translateX(0);
}

.new-specialists-results {
    padding: 24px;
    border-radius: 32px;
}

.new-specialists-results__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.new-specialists-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.new-specialists-active-filters span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--ns-primary);
    background: rgba(83, 104, 255, 0.1);
    font-size: 13px;
    font-weight: 900;
}

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

.new-specialists-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ns-border);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(19, 31, 58, 0.06);
    overflow: hidden;
    transition: transform var(--ns-transition), box-shadow var(--ns-transition), border-color var(--ns-transition);
}

.new-specialists-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ns-primary), var(--ns-cyan));
    opacity: 0;
    transition: opacity var(--ns-transition);
}

.new-specialists-card:hover {
    transform: translateY(-3px);
    border-color: rgba(83, 104, 255, 0.2);
    box-shadow: 0 24px 60px rgba(19, 31, 58, 0.1);
}

.new-specialists-card:hover::before {
    opacity: 1;
}

.new-specialists-card__avatar {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 26px auto 0;
    border-radius: 28px;
    text-decoration: none;
}

.new-specialists-card__avatar img {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
}

.new-specialists-card__badge {
    position: absolute;
    right: -8px;
    bottom: -7px;
    min-height: 26px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--ns-primary), var(--ns-primary-2));
    border: 3px solid #fff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.new-specialists-card__body {
    padding: 18px 22px 0;
    text-align: center;
}

.new-specialists-card__body h3 {
    margin: 0;
    color: var(--ns-text);
    font-size: 20px;
    line-height: 1.18;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.new-specialists-card__body p {
    display: -webkit-box;
    min-height: 72px;
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--ns-muted);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 550;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.new-specialists-card__professions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    margin-top: 16px;
}

.new-specialists-card__professions span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--ns-primary);
    background: rgba(83, 104, 255, 0.1);
    font-size: 12px;
    font-weight: 900;
}

.new-specialists-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 20px 22px 22px;
    margin-top: auto;
}

.new-specialists-empty {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 64px 22px;
    border: 1px dashed rgba(83, 104, 255, 0.24);
    border-radius: 26px;
    background: rgba(83, 104, 255, 0.045);
}

.new-specialists-empty span {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: var(--ns-primary);
    background: rgba(83, 104, 255, 0.12);
    font-size: 24px;
}

.new-specialists-empty h3 {
    margin: 18px 0 0;
    font-size: 26px;
    letter-spacing: -0.055em;
}

.new-specialists-empty p {
    max-width: 430px;
    margin: 10px 0 22px;
    color: var(--ns-muted);
    line-height: 1.55;
}

.new-specialists-footer {
    color: #dce5ff;
    background: #111827;
}

.new-specialists-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.9fr) minmax(220px, 0.8fr);
    gap: 30px;
    padding: 46px 0 32px;
}

.new-specialists-logo--footer {
    color: #fff;
}

.new-specialists-footer p {
    margin: 14px 0 0;
    color: #9ca8c4;
    line-height: 1.6;
}

.new-specialists-footer__links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.new-specialists-footer__links a {
    width: fit-content;
    color: #dce5ff;
    text-decoration: none;
    font-weight: 750;
}

.new-specialists-footer__links a:hover {
    color: #fff;
}

.new-specialists-footer__contact span {
    color: #fff;
    font-weight: 900;
}

.new-specialists-footer__bottom {
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.new-specialists-footer__bottom p {
    margin: 0;
    color: #818ca8;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .new-specialists-hero__inner {
        grid-template-columns: 1fr;
    }

    .new-specialists-hero__panel {
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
        align-items: center;
    }

    .new-specialists-layout {
        grid-template-columns: 1fr;
    }

    .new-specialists-sidebar {
        position: static;
    }

    .new-specialists-profession-list {
        display: flex;
        overflow-x: auto;
        max-height: none;
        padding: 0 0 4px;
        scroll-snap-type: x proximity;
    }

    .new-specialists-profession {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
    }
}

@media (max-width: 880px) {
    .new-specialists-container {
        width: min(100% - 28px, var(--ns-container));
    }

    .new-specialists-header__inner {
        min-height: 68px;
    }

    .new-specialists-menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .new-specialists-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--ns-border);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--ns-shadow);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .new-specialists-nav.is-open {
        display: flex;
    }

    .new-specialists-nav a {
        justify-content: flex-start;
        width: 100%;
    }

    .new-specialists-hero {
        padding: 34px 0 20px;
    }

    .new-specialists-hero__content {
        min-height: auto;
        padding: 28px;
        border-radius: 26px;
    }

    .new-specialists-hero h1 {
        font-size: clamp(34px, 10vw, 52px);
    }

    .new-specialists-hero p {
        font-size: 16px;
    }

    .new-specialists-hero__panel {
        grid-template-columns: 1fr 1fr;
        padding: 18px;
        border-radius: 24px;
    }

    .new-specialists-hero__panel .new-specialists-btn {
        grid-column: 1 / -1;
    }

    .new-specialists-filter {
        grid-template-columns: 1fr;
        padding: 14px;
        border-radius: 24px;
    }

    .new-specialists-filter__actions {
        justify-content: stretch;
    }

    .new-specialists-filter__actions .new-specialists-btn {
        flex: 1;
    }

    .new-specialists-results {
        padding: 18px;
        border-radius: 26px;
    }

    .new-specialists-results__head {
        flex-direction: column;
        align-items: stretch;
    }

    .new-specialists-active-filters {
        justify-content: flex-start;
    }

    .new-specialists-grid {
        grid-template-columns: 1fr;
    }

    .new-specialists-footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .new-specialists-container {
        width: min(100% - 22px, var(--ns-container));
    }

    .new-specialists-logo__text {
        font-size: 17px;
    }

    .new-specialists-hero__content {
        padding: 22px;
    }

    .new-specialists-hero h1 {
        letter-spacing: -0.065em;
    }

    .new-specialists-hero__panel {
        grid-template-columns: 1fr;
    }

    .new-specialists-stat {
        padding: 16px;
    }

    .new-specialists-stat strong {
        font-size: 34px;
    }

    .new-specialists-filter__actions {
        flex-direction: column;
    }

    .new-specialists-sidebar,
    .new-specialists-results {
        border-radius: 22px;
    }

    .new-specialists-sidebar {
        padding: 16px;
    }

    .new-specialists-card__avatar,
    .new-specialists-card__avatar img {
        width: 84px;
        height: 84px;
        border-radius: 25px;
    }

    .new-specialists-card__body {
        padding: 17px 18px 0;
    }

    .new-specialists-card__actions {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
