/* =========================================================================
   «Наш Город» — дизайн-система по макету Figma (NFESfLOV7xF61O9cI5q3La)
   ========================================================================= */

:root {
    --ng-red: #BC2021;
    --ng-red-dark: #9E1A1B;
    --ng-red-soft: #FFC9C9;
    --ng-dark: #202020;
    --ng-black: #111111;
    --ng-text: #202020;
    --ng-text-2: #374151;
    --ng-muted: #6B7280;
    --ng-muted-2: #9CA3AF;
    --ng-muted-3: #99A1AF;
    --ng-line: #E5E7EB;
    --ng-line-soft: #F3F4F6;
    --ng-bg: #FFFFFF;
    --ng-bg-soft: #F9FAFB;
    --ng-bg-gray: #F3F4F6;

    --ng-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --ng-body: 'Manrope', 'Segoe UI', Arial, sans-serif;

    --ng-radius: 0px;

    --ng-header-h: 64px;
    --ng-container: 1280px;
    --ng-gutter: 32px;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--ng-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ng-text);
    background: var(--ng-bg);
    padding-top: var(--ng-header-h);
    -webkit-font-smoothing: antialiased;
}

body.ng-lock { overflow: hidden; }

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ng-red); }

h1, h2, h3, h4, h5 { font-family: var(--ng-head); font-weight: 900; color: var(--ng-text); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ng-red); color: #fff; }

.ng-container {
    width: 100%;
    max-width: var(--ng-container);
    margin: 0 auto;
    padding: 0 var(--ng-gutter);
}

.ng-section { padding: 32px 0; }
.ng-section--lg { padding: 40px 0; }
.ng-section--soft { background: var(--ng-bg-soft); }
.ng-section--dark { background: var(--ng-dark); }
.ng-section--tight { padding: 20px 0; }

/* ---------- typography helpers ---------- */
.ng-h1 {
    font-family: var(--ng-head);
    font-weight: 600;
    font-size: 60px;
    line-height: 1.25;
    letter-spacing: -1.2px;
    text-transform: uppercase;
}
.ng-h2 {
    font-family: var(--ng-head);
    font-weight: 900;
    font-size: 38.4px;
    line-height: 48px;
    letter-spacing: -0.384px;
    text-transform: uppercase;
}
.ng-h2 .ng-accent { color: var(--ng-red); border-bottom: 2px solid var(--ng-red); }
.ng-lead { font-size: 14px; line-height: 22.75px; color: var(--ng-muted); }

.ng-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ng-red);
}
.ng-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--ng-red); flex: none; }

/* ---------- buttons ---------- */
.ng-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--ng-body);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
    text-align: center;
}
.ng-btn--primary { background: var(--ng-red); color: #fff; border-color: var(--ng-red); }
.ng-btn--primary:hover { background: var(--ng-red); color: var(--ng-red); border-color: var(--ng-red); }
.ng-btn--outline { border-color: var(--ng-line); color: var(--ng-text); background: #fff; }
.ng-btn--outline:hover { border-color: var(--ng-red); color: #fff; }
.ng-btn--dark { background: var(--ng-dark); color: #fff; }
.ng-btn--dark:hover { background: var(--ng-dark); color: #fff; }
.ng-btn--sm { padding: 10px 20px; font-size: 13px; }
.ng-btn--block { display: flex; width: 100%; }
.ng-btn svg { flex: none; }

.ng-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ng-red);
}
.ng-link:hover { color: var(--ng-red-dark); }
.ng-link svg { flex: none; }

/* ---------- icons ---------- */
.ng-ico { display: inline-block; flex: none; vertical-align: middle; }
.ng-ico svg { display: block; width: 100%; height: 100%; }

/* ---------- header ---------- */
.ng-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--ng-line);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.ng-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--ng-header-h);
    gap: 16px;
}

.ng-logo { display: flex; align-items: center; gap: 12px; }
.ng-logo:hover { color: inherit; }
.ng-logo__mark { width: 38px; height: 39.8px; flex: none; }
.ng-logo__mark svg,
.ng-logo__mark img { display: block; width: 38px; height: 39.8px; }
.ng-logo__name {
    display: block;
    font-family: var(--ng-head);
    font-weight: 900;
    font-size: 17.27px;
    line-height: 25.9px;
    letter-spacing: .4317px;
    color: var(--ng-text);
    white-space: nowrap;
}
.ng-logo__sub {
    display: block;
    font-family: var(--ng-head);
    font-weight: 500;
    font-size: 9.18px;
    line-height: 12.24px;
    color: #6A7282;
    white-space: nowrap;
}

.ng-nav { display: flex; align-items: center; gap: 24px; }
.ng-nav a {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--ng-text);
    white-space: nowrap;
    position: relative;
    padding: 4px 0;
}
.ng-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: var(--ng-red);
    transition: right .25s;
}
.ng-nav a:hover { color: var(--ng-red); }
.ng-nav a:hover::after,
.ng-nav a.is-active::after { right: 0; }
.ng-nav a.is-active { color: var(--ng-red); }

.ng-header__actions { display: flex; align-items: center; gap: 12px; }

.ng-iconbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ng-line);
    border-radius: var(--ng-radius);
    background: #fff;
    color: var(--ng-text);
    transition: border-color .2s, color .2s;
}
.ng-iconbtn:hover { border-color: var(--ng-red); color: var(--ng-red); }
.ng-iconbtn__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: var(--ng-radius);
    background: var(--ng-red);
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    font-weight: 600;
    text-align: center;
}

/* burger */
.ng-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ng-line);
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}
.ng-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ng-text);
    transition: transform .25s, opacity .2s;
}
.ng-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ng-burger.is-open span:nth-child(2) { opacity: 0; }
.ng-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.ng-drawer {
    position: fixed;
    top: var(--ng-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 1029;
    padding: 24px var(--ng-gutter) 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: none;
}
.ng-drawer.is-open { transform: translateX(0); }
.ng-drawer__nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--ng-line);
    font-family: var(--ng-head);
    font-weight: 600;
    font-size: 16px;
}
.ng-drawer__contacts { margin-top: 28px; display: grid; gap: 12px; }
.ng-drawer__contacts a,
.ng-drawer__contacts span { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ng-muted); }
.ng-drawer__contacts .ng-ico { color: var(--ng-red); }

/* ---------- social rail ---------- */
.ng-rail {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.ng-rail__items { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ng-rail a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--ng-radius);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, filter .3s, opacity .25s;
}
.ng-rail a:hover { transform: translateX(-8px) scale(1.06); box-shadow: 0 12px 24px rgba(0,0,0,.24); filter: brightness(1.08); color: #fff; }
.ng-rail a.is-max { background: #8B5CF6; }
.ng-rail a.is-vk { background: #0077FF; }
.ng-rail a.is-tg { background: #29A9EB; }
.ng-rail a.is-bid { background: var(--ng-dark); }
.ng-rail a.is-call { background: var(--ng-red); }
.ng-rail svg { width: 22px; height: 22px; }
/* закрытое состояние: пункты спрятаны за кнопкой, выезжают снизу с задержкой по --i (ближние к кнопке — первыми) */
.ng-rail:not(.is-open) .ng-rail__items a {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(56px + var(--i, 0) * 56px)) scale(.4);
    transition-delay: calc(var(--i, 0) * 30ms);
}
.ng-rail.is-open .ng-rail__items a { transition-delay: calc((4 - var(--i, 0)) * 45ms); }
.ng-rail__toggle {
    position: relative;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: var(--ng-radius);
    background: #16A34A;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(22, 163, 74, .4);
    display: grid;
    place-items: center;
    transition: background-color .3s, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.ng-rail__toggle:hover { transform: scale(1.06); box-shadow: 0 12px 26px rgba(22, 163, 74, .5); }
.ng-rail__toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid #16A34A;
    animation: ngRailPulse 2.4s ease-out infinite;
    pointer-events: none;
}
.ng-rail.is-open .ng-rail__toggle { background: var(--ng-dark); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.ng-rail.is-open .ng-rail__toggle::before { animation: none; opacity: 0; }
.ng-rail__ico { grid-area: 1 / 1; display: flex; transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .2s; }
.ng-rail__ico .ng-ico { width: 26px; height: 26px; }
.ng-rail__ico--close .ng-ico { width: 22px; height: 22px; }
.ng-rail__ico--phone { animation: ngRailRing 2.4s ease-in-out infinite; }
.ng-rail__ico--close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.ng-rail.is-open .ng-rail__ico--phone { opacity: 0; transform: rotate(90deg) scale(.5); animation: none; }
.ng-rail.is-open .ng-rail__ico--close { opacity: 1; transform: rotate(0) scale(1); }
@keyframes ngRailPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes ngRailRing {
    0%, 60%, 100% { transform: rotate(0); }
    64% { transform: rotate(-14deg); } 68% { transform: rotate(12deg); } 72% { transform: rotate(-10deg); } 76% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } 84% { transform: rotate(0); }
}

/* ---------- hero ---------- */
.ng-hero {
    position: relative;
    min-height: 788px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #202020;
}
.ng-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.ng-hero__bg::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.ng-hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 80px; padding-bottom: 80px; text-align: center; }
.ng-hero__title { color: #fff; max-width: 992px; margin: 0 auto; }
.ng-hero__sub {
    margin: 20px auto 0;
    max-width: 576px;
    font-size: 16px;
    line-height: 24px;
    color: #D1D5DC;
}

/* ---------- hero search ---------- */
.ng-search {
    max-width: 896px;
    margin: 40px auto 0;
    background: #fff;
    border-radius: var(--ng-radius);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
}
.ng-search__tabs {
    display: flex;
    border-bottom: 1px solid var(--ng-line-soft);
    overflow-x: auto;
    scrollbar-width: none;
}
.ng-search__tabs::-webkit-scrollbar { display: none; }
.ng-search__tab {
    flex: 1 0 auto;
    min-width: 110px;
    padding: 14px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: #fff;
    font-family: var(--ng-body);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--ng-muted);
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.ng-search__tab:hover { color: var(--ng-text); }
.ng-search__tab.is-active { color: var(--ng-red); border-bottom-color: var(--ng-red); }
.ng-search__body { padding: 20px; }
.ng-search__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.ng-search__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
}
.ng-search__row .ng-field { flex: 1 1 auto; }
.ng-search__row .ng-suggest-wrap { flex: 1 1 auto; position: relative; }
.ng-suggest-wrap .ng-field { width: 100%; }
.ng-search__ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border: 0;
    background: none;
    font-family: var(--ng-body);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--ng-text);
    white-space: nowrap;
    cursor: pointer;
}
.ng-search__ghost:hover { color: var(--ng-red); }
.ng-search__round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 0;
    border-radius: var(--ng-radius);
    background: var(--ng-bg-gray);
    color: var(--ng-text);
    cursor: pointer;
}
.ng-search__round:hover { background: var(--ng-line); color: var(--ng-red); }

/* fields */
.ng-field {
    position: relative;
    display: block;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: var(--ng-radius);
    background: var(--ng-bg-gray);
    padding: 0 16px;
    font-family: var(--ng-body);
    font-size: 14px;
    color: var(--ng-text);
    appearance: none;
    outline: none;
}
.ng-field::placeholder { color: rgba(32, 32, 32, .5); }
.ng-field:focus { box-shadow: 0 0 0 2px rgba(188, 32, 33, .25); }
select.ng-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%239CA3AF' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ---------- benefits (dark strip) ---------- */
.ng-benefits { background: var(--ng-dark); padding: 32px 0; }
.ng-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ng-benefit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-right: 1px solid rgba(255, 255, 255, .08);
}
.ng-benefit:last-child { border-right: 0; }
.ng-benefit__icon {
    width: 40px;
    height: 40px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ng-red);
    color: #fff;
}
.ng-benefit__title { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: #fff; }
.ng-benefit__text { display: block; padding-top: 2px; font-size: 12px; line-height: 16px; color: var(--ng-muted-3); }

/* ---------- section head ---------- */
.ng-sec-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.ng-sec-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ng-head);
    font-weight: 900;
    font-size: 24px;
    line-height: 32px;
    color: var(--ng-text);
}
.ng-sec-title::before { content: ''; width: 4px; height: 32px; background: var(--ng-red); flex: none; }
.ng-sec-sub { margin-top: 8px; padding-left: 16px; font-size: 13px; color: var(--ng-muted); }
.ng-sec-nav { display: flex; gap: 8px; flex: none; }
.ng-sec-nav button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ng-line);
    background: #fff;
    color: var(--ng-text-2);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.ng-sec-nav button:hover { border-color: var(--ng-red); color: var(--ng-red); }
.ng-sec-nav button:disabled { opacity: .4; cursor: default; }

/* ---------- property card ---------- */
.ng-grid { display: grid; gap: 16px; }
.ng-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ng-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ng-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ng-grid--1 { grid-template-columns: minmax(0, 1fr); gap: 24px; }

.ng-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ng-line);
    height: 100%;
    transition: box-shadow .25s, transform .25s;
}
.ng-pcard:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.ng-pcard__media {
    position: relative;
    display: block;
    height: 186px;
    overflow: hidden;
    background: var(--ng-bg-gray);
}
.ng-pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ng-pcard:hover .ng-pcard__media img { transform: scale(1.04); }
.ng-pcard__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    background: var(--ng-red);
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
}
.ng-pcard__tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.ng-pcard__tool {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    color: var(--ng-text);
    border: 0;
    cursor: pointer;
}
.ng-pcard__tool:hover,
.ng-pcard__tool.is-active { background: var(--ng-red); color: #fff; }
.ng-pcard__body { display: flex; flex-direction: column; padding: 16px; flex: 1 1 auto; }
.ng-pcard__title {
    font-family: var(--ng-head);
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: var(--ng-text);
    margin-bottom: 4px;
}
.ng-pcard__addr {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 16px;
    color: var(--ng-muted-2);
    margin-bottom: 4px;
}
.ng-pcard__addr .ng-ico { width: 12px; height: 12px; }
.ng-pcard__meta { font-size: 12px; line-height: 16px; color: var(--ng-muted-2); margin-bottom: 12px; }
.ng-pcard__price {
    font-family: var(--ng-body);
    font-weight: 800;
    font-size: 16px;
    line-height: 24px;
    color: var(--ng-red);
    margin-bottom: 12px;
    margin-top: auto;
}
.ng-pcard__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--ng-line);
    background: #fff;
    font-family: var(--ng-body);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: var(--ng-text-2);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.ng-pcard__phone:hover { border-color: var(--ng-red); color: var(--ng-red); }

.ng-sec-more { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- about ---------- */
.ng-about__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: center;
}
.ng-about__visual { position: relative; min-height: 480px; }
.ng-about__img-main { position: relative; width: 100%; max-width: 516px; height: 420px; }
.ng-about__img-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ng-about__img-main::before {
    content: '';
    position: absolute;
    left: -10px;
    top: -10px;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--ng-red);
    pointer-events: none;
}
.ng-about__img-sub {
    position: absolute;
    left: 296px;
    top: 280px;
    width: 200px;
    height: 200px;
    border: 3.5px solid var(--ng-dark);
    background: #fff;
    overflow: hidden;
}
.ng-about__img-sub img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ng-about__stat-badge {
    position: absolute;
    left: 370px;
    top: 276px;
    min-width: 140px;
    padding: 16px 20px;
    background: var(--ng-red);
    color: #fff;
}
.ng-about__stat-badge b { display: block; font-family: var(--ng-head); font-weight: 900; font-size: 32px; line-height: 32px; }
.ng-about__stat-badge span { display: block; padding-top: 4px; font-size: 12px; line-height: 16px; color: var(--ng-red-soft); }

.ng-about__title { margin-top: 20px; }
.ng-about__text { padding-top: 24px; }
.ng-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.ng-stats > div { border: 1px solid var(--ng-line); border-right: 0; padding: 16px; text-align: center; }
.ng-stats > div:last-child { border-right: 1px solid var(--ng-line); }
.ng-stats b { display: block; font-family: var(--ng-head); font-weight: 900; font-size: 28px; line-height: 28px; color: var(--ng-red); }
.ng-stats span { display: block; padding-top: 4px; font-size: 12px; line-height: 16px; color: var(--ng-muted); }

.ng-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
.ng-checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ng-text-2); }
.ng-checks .ng-ico { width: 16px; height: 16px; margin-top: 2px; color: var(--ng-red); }

/* ---------- services ---------- */
.ng-scard {
    display: flex;
    flex-direction: column;
    background: var(--ng-bg-soft);
    border: 1px solid var(--ng-line);
    height: 100%;
    transition: box-shadow .25s, transform .25s;
}
.ng-scard:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.ng-scard__media { height: 168px; overflow: hidden; background: var(--ng-bg-gray); }
.ng-scard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ng-scard:hover .ng-scard__media img { transform: scale(1.04); }
.ng-scard__body { padding: 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.ng-scard__title {
    font-family: var(--ng-head);
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: var(--ng-text);
    margin-bottom: 10px;
}
.ng-scard__text { font-size: 13px; line-height: 20px; color: var(--ng-muted); margin-bottom: 16px; }
.ng-scard__link { margin-top: auto; font-size: 13px; }

/* ---------- team ---------- */
.ng-tcard { display: flex; flex-direction: column; height: 100%; }
.ng-tcard__media { height: 220px; overflow: hidden; background: var(--ng-bg-gray); }
.ng-tcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ng-tcard:hover .ng-tcard__media img { transform: scale(1.04); }
.ng-tcard__name {
    font-family: var(--ng-head);
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    text-align: center;
    margin-top: 16px;
}
.ng-tcard__role { font-size: 13px; line-height: 18px; color: var(--ng-muted); text-align: center; margin: 4px 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ng-tcard .ng-btn { margin-top: auto; }

/* ---------- blog ---------- */
.ng-bcard {
    display: flex;
    flex-direction: column;
    background: var(--ng-bg-soft);
    border: 1px solid var(--ng-line);
    height: 100%;
    transition: box-shadow .25s, transform .25s;
}
.ng-bcard:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.ng-bcard__media { height: 160px; overflow: hidden; background: var(--ng-bg-gray); }
.ng-bcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ng-bcard:hover .ng-bcard__media img { transform: scale(1.04); }
.ng-bcard__body { padding: 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.ng-bcard__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ng-muted-2); margin-bottom: 10px; }
.ng-bcard__meta span { display: inline-flex; align-items: center; gap: 4px; }
.ng-bcard__title {
    font-family: var(--ng-head);
    font-weight: 600;
    font-size: 15px;
    line-height: 21px;
    color: var(--ng-text);
    margin-bottom: 16px;
}
.ng-bcard__link { margin-top: auto; font-size: 13px; }

/* ---------- reviews ---------- */
.ng-rcard {
    background: #fff;
    border: 1px solid var(--ng-line);
    border-left: 3px solid var(--ng-red);
    padding: 20px 24px;
    height: 100%;
}
.ng-rcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ng-rcard__name { font-family: var(--ng-head); font-weight: 600; font-size: 15px; line-height: 20px; }
.ng-rcard__date { font-size: 12px; color: var(--ng-muted-2); margin-top: 2px; }
.ng-rcard__stars { display: flex; gap: 2px; color: var(--ng-red); flex: none; }
.ng-rcard__stars .ng-ico { width: 14px; height: 14px; }
.ng-rcard__text { margin-top: 14px; font-size: 13px; line-height: 20px; color: var(--ng-muted); }

/* ---------- partners ---------- */
.ng-partners { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.ng-partners__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--ng-line);
}
.ng-partners__item img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.ng-partners__item:hover img { filter: none; opacity: 1; }

/* ---------- callback ---------- */
.ng-callback { background: var(--ng-bg-soft); padding: 32px 0; }
.ng-callback__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #fff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .07);
}
.ng-callback__form { padding: 48px; }
.ng-callback__visual { position: relative; min-height: 480px; border-top: 4px solid var(--ng-red); overflow: hidden; }
.ng-callback__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ng-callback__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .75) 100%); }
.ng-callback__caption { position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 2; }
.ng-callback__caption b { display: block; font-family: var(--ng-head); font-weight: 700; font-size: 22px; line-height: 30px; color: #fff; }
.ng-callback__caption span { display: block; font-family: var(--ng-head); font-weight: 700; font-size: 16px; color: var(--ng-red); }

.ng-form__group { margin-bottom: 16px; }
.ng-form__label { display: block; font-size: 12px; font-weight: 600; color: var(--ng-text); margin-bottom: 6px; }
.ng-form__label .req { color: var(--ng-red); }
.ng-form__control {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid var(--ng-line);
    border-radius: var(--ng-radius);
    background: var(--ng-bg-soft);
    font-family: var(--ng-body);
    font-size: 14px;
    color: var(--ng-text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.ng-form__control::placeholder { color: var(--ng-muted-2); }
.ng-form__control:focus { border-color: var(--ng-red); box-shadow: 0 0 0 3px rgba(188, 32, 33, .12); }
textarea.ng-form__control { min-height: 104px; resize: vertical; }
.ng-form__consent { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0; font-size: 12px; line-height: 18px; color: var(--ng-muted); }
.ng-form__consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--ng-red); flex: none; }
.ng-form__consent a { color: var(--ng-red); text-decoration: underline; }

/* ---------- page header (inner pages) ---------- */
.ng-page-head { background: var(--ng-dark); color: #fff; padding: 48px 0; }
.ng-page-head h1 {
    font-family: var(--ng-head);
    font-weight: 900;
    font-size: 38.4px;
    line-height: 46px;
    letter-spacing: -0.384px;
    text-transform: uppercase;
    color: #fff;
}
.ng-page-head p { margin-top: 12px; font-size: 14px; line-height: 22px; color: var(--ng-muted-3); max-width: 640px; }
.ng-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--ng-muted-3); margin-bottom: 16px; }
.ng-crumbs a { color: var(--ng-muted-3); }
.ng-crumbs a:hover { color: #fff; }
.ng-crumbs span.sep { opacity: .5; }

/* ---------- pagination ---------- */
.ng-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.ng-pagination .page-item .page-link,
.ng-pagination a,
.ng-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ng-line);
    background: #fff;
    color: var(--ng-text);
    font-size: 14px;
}
.ng-pagination .active span,
.ng-pagination .page-item.active .page-link { background: var(--ng-red); border-color: var(--ng-red); color: #fff; }

/* ---------- prose (article/service body) ---------- */
.ng-prose { font-size: 15px; line-height: 26px; color: var(--ng-text-2); }
.ng-prose h2, .ng-prose h3, .ng-prose h4 { font-family: var(--ng-head); margin: 32px 0 12px; }
.ng-prose h2 { font-size: 24px; line-height: 32px; }
.ng-prose h3 { font-size: 19px; line-height: 26px; }
.ng-prose p { margin-bottom: 16px; }
.ng-prose ul, .ng-prose ol { margin: 0 0 16px 20px; list-style: disc; }
.ng-prose ol { list-style: decimal; }
.ng-prose li { margin-bottom: 8px; }
.ng-prose img { display: block; margin: 24px 0; }
.ng-prose a { color: var(--ng-red); text-decoration: underline; }

/* ---------- ипотечный калькулятор ---------- */
.ng-calc { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
.ng-calc__panel { background: #fff; border: 1px solid var(--ng-line); padding: 32px; }
.ng-calc__panel h2 { font-family: var(--ng-head); font-weight: 700; font-size: 20px; margin-bottom: 24px; }
.ng-calc__row { margin-bottom: 28px; }
.ng-calc__row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.ng-calc__row-head label { font-size: 13px; color: var(--ng-muted); }
.ng-calc__row-head .ng-calc__note { font-size: 12px; color: var(--ng-red); font-weight: 600; }
.ng-calc__field { position: relative; }
.ng-calc__field input {
    width: 100%;
    height: 52px;
    padding: 0 56px 0 18px;
    border: 1px solid var(--ng-line);
    background: #fff;
    font-family: var(--ng-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--ng-text);
    outline: none;
}
.ng-calc__field input:focus { border-color: var(--ng-red); }
.ng-calc__field .ng-calc__unit { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ng-muted-2); }
.ng-calc__range { width: 100%; height: 3px; margin: 10px 0 4px; accent-color: var(--ng-red); appearance: none; background: var(--ng-line); }
.ng-calc__range::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: var(--ng-radius); background: var(--ng-red); cursor: pointer; }
.ng-calc__range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: var(--ng-radius); background: var(--ng-red); cursor: pointer; }
.ng-calc__hint { display: flex; justify-content: space-between; font-size: 11px; color: var(--ng-muted-2); }

.ng-calc__programs { margin-top: 8px; }
.ng-calc__programs > span { display: block; font-size: 12px; color: var(--ng-muted); margin-bottom: 10px; }
.ng-calc__programs div { display: flex; flex-wrap: wrap; gap: 8px; }
.ng-calc__programs button {
    border: 1px solid var(--ng-line);
    background: #fff;
    padding: 8px 14px;
    font-family: var(--ng-body);
    font-size: 12px;
    color: var(--ng-text);
    cursor: pointer;
}
.ng-calc__programs button b { color: var(--ng-red); margin-left: 6px; }
.ng-calc__programs button:hover,
.ng-calc__programs button.is-active { border-color: var(--ng-red); }

.ng-calc__result { background: var(--ng-dark); color: #fff; padding: 28px; }
.ng-calc__result > span { display: block; font-size: 12px; color: var(--ng-muted-3); }
.ng-calc__result strong { display: block; font-family: var(--ng-head); font-weight: 900; font-size: 40px; line-height: 48px; color: #fff; margin: 6px 0 2px; }
.ng-calc__result .ng-calc__per { font-size: 12px; color: var(--ng-muted-3); }
.ng-calc__rows { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ng-calc__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 12px; }
.ng-calc__rows span { color: var(--ng-muted-3); }
.ng-calc__rows b { color: #fff; font-weight: 600; }

.ng-calc__card { background: #fff; border: 1px solid var(--ng-line); padding: 20px; margin-top: 16px; }
.ng-calc__card span { display: block; font-size: 12px; color: var(--ng-muted); }
.ng-calc__card b { display: block; font-family: var(--ng-head); font-weight: 900; font-size: 20px; margin: 4px 0; }
.ng-calc__card .ng-btn { margin-top: 10px; }
.ng-calc__card .ng-btn--tg { background: #29A9EB; color: #fff; }
.ng-calc__card .ng-btn--tg:hover { background: #1c93d1; color: #fff; }

/* ---------- footer ---------- */
.ng-footer { background: var(--ng-black); color: #fff; }
.ng-footer__inner { padding-top: 48px; padding-bottom: 24px; }
.ng-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ng-footer .ng-logo__name { color: #fff; }
.ng-footer__about { padding-top: 16px; font-size: 12px; line-height: 19.5px; color: #4A5565; max-width: 280px; }
.ng-footer__soc { display: flex; gap: 8px; padding-top: 20px; }
.ng-footer__soc a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #333;
    border-radius: var(--ng-radius);
    color: var(--ng-muted);
    transition: border-color .2s, color .2s;
}
.ng-footer__soc a:hover { border-color: var(--ng-red); color: var(--ng-red); }
.ng-footer__title {
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
}
.ng-footer__list { padding-top: 16px; }
.ng-footer__list li { padding-top: 8px; }
.ng-footer__list a { font-size: 12px; line-height: 16px; color: #6A7282; }
.ng-footer__list a:hover { color: #fff; }
.ng-footer__office { display: flex; align-items: flex-start; gap: 8px; padding-top: 16px; }
.ng-footer__office:first-child { padding-top: 0; }
.ng-footer__office .ng-ico { width: 14px; height: 14px; margin-top: 2px; color: var(--ng-red); }
.ng-footer__office b { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ng-muted-3); }
.ng-footer__office span { display: block; font-size: 12px; line-height: 16px; color: #4A5565; }
.ng-footer__contact { display: flex; align-items: center; gap: 8px; padding-top: 12px; font-size: 12px; line-height: 16px; color: var(--ng-muted-3); }
.ng-footer__contact:first-child { padding-top: 0; }
.ng-footer__contact .ng-ico { width: 14px; height: 14px; color: var(--ng-red); }
.ng-footer__contact:hover { color: #fff; }
.ng-footer__bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #222;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 32px;
    align-items: center;
}
.ng-footer__bottom p,
.ng-footer__bottom a { font-size: 12px; line-height: 16px; color: #364153; }
.ng-footer__bottom a:hover { color: var(--ng-muted); }
.ng-footer__req { display: flex; gap: 6px 20px; flex-wrap: wrap; align-items: center; margin: 0; }
.ng-footer__req span { white-space: nowrap; }
.ng-footer__req a { text-decoration: underline; text-underline-offset: 3px; }
.ng-footer__copy { text-align: right; white-space: nowrap; margin: 0; }

.ng-devby { background: var(--ng-black); padding: 16px 0 28px; display: flex; justify-content: center; }
.ng-devby img { height: 41px; width: auto; opacity: .9; }
.ng-devby a:hover img { opacity: 1; }

/* ---------- utilities ---------- */
.ng-mt-0 { margin-top: 0 !important; }
.ng-mt-16 { margin-top: 16px; }
.ng-mt-24 { margin-top: 24px; }
.ng-mt-32 { margin-top: 32px; }
.ng-mt-40 { margin-top: 40px; }
.ng-center { text-align: center; }
.ng-empty { padding: 48px 0; text-align: center; color: var(--ng-muted); }

/* scroll progress */
.ng-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--ng-red); z-index: 1040; transition: width .1s linear; }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
    .ng-h1 { font-size: 46px; letter-spacing: -.8px; }
    .ng-h2 { font-size: 30px; line-height: 38px; }
    .ng-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ng-partners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ng-about__grid { gap: 40px; }
    .ng-about__img-sub { left: auto; right: 0; top: 260px; }
    .ng-about__stat-badge { left: auto; right: 0; top: 256px; }
}

@media (max-width: 991.98px) {
    :root { --ng-gutter: 20px; }
    .ng-nav { display: none; }
    .ng-burger { display: inline-flex; }
    .ng-drawer { display: block; }
    .ng-header__actions .ng-iconbtn { width: 40px; height: 40px; }

    .ng-hero { min-height: 640px; }
    .ng-h1 { font-size: 34px; line-height: 1.2; }
    .ng-hero__sub { font-size: 14px; }
    .ng-search__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ng-search__row { flex-wrap: wrap; }
    .ng-search__row .ng-field,
    .ng-search__row .ng-suggest-wrap { flex: 1 0 100%; }
    .ng-search__row .ng-btn { flex: 1 1 auto; }

    .ng-benefits__grid { grid-template-columns: 1fr; }
    .ng-benefit { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .ng-benefit:last-child { border-bottom: 0; }

    .ng-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ng-about__grid { grid-template-columns: 1fr; }
    .ng-about__visual { min-height: 0; margin-bottom: 40px; }
    .ng-about__img-main { height: 320px; max-width: 100%; }
    .ng-about__img-sub { display: none; }
    .ng-about__stat-badge { right: 0; top: auto; bottom: -20px; }

    .ng-callback__grid { grid-template-columns: 1fr; }
    .ng-callback__form { padding: 32px 24px; }
    .ng-callback__visual { min-height: 280px; order: -1; }

    .ng-calc { grid-template-columns: 1fr; }
    .ng-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ng-footer__bottom { grid-template-columns: 1fr; }
    .ng-footer__copy { text-align: left; }
    .ng-page-head h1 { font-size: 28px; line-height: 34px; }
}

@media (max-width: 767.98px) {
    .ng-section { padding: 24px 0; }
    .ng-section--lg { padding: 28px 0; }
    .ng-grid--4,
    .ng-grid--3,
    .ng-grid--2 { grid-template-columns: 1fr; }
    .ng-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ng-sec-head { flex-direction: column; gap: 12px; }
    .ng-stats { grid-template-columns: 1fr; }
    .ng-stats > div { border-right: 1px solid var(--ng-line); border-bottom: 0; }
    .ng-stats > div:last-child { border-bottom: 1px solid var(--ng-line); }
    .ng-checks { grid-template-columns: 1fr; }
    .ng-footer__grid { grid-template-columns: 1fr; }
    .ng-rail { right: 12px; bottom: 12px; }
    .ng-rail a { width: 42px; height: 42px; }
    .ng-rail a.is-call { width: 50px; height: 50px; }
    .ng-search__grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .ng-logo__name { font-size: 15px; }
    .ng-logo__sub { font-size: 8px; }
    .ng-h1 { font-size: 27px; }
    .ng-hero__inner { padding-top: 48px; padding-bottom: 48px; }
}

/* ---------- фильтры / поисковая панель ---------- */
.ng-search__panel { background: #fff; }
.ng-search .ng-search__panel { border-radius: var(--ng-radius); }

.ng-sel { position: relative; }
.ng-sel > .ng-form__label { margin-bottom: 6px; }
.ng-sel .ts-wrapper { width: 100%; }
.ng-sel .ts-control {
    min-height: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--ng-radius);
    background: var(--ng-bg-gray);
    padding: 0 40px 0 16px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 14px;
    box-shadow: none;
}
.ng-sel .ts-control::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 6px;
    margin-top: -3px;
    background: currentColor;
    color: var(--ng-muted-2);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    pointer-events: none;
}
.ng-sel .ts-control > input { font-size: 14px; }
.ng-sel .ts-control > input::placeholder { color: rgba(32, 32, 32, .5); }
.ng-sel .ts-wrapper.focus .ts-control { box-shadow: 0 0 0 2px rgba(188, 32, 33, .25); }
.ng-sel .ts-control > .item { background: transparent; border: 0; padding: 0; font-size: 14px; color: var(--ng-text); }

.ng-range { position: relative; }
.ng-range .ng-field { padding-right: 40px; cursor: pointer; }
.ng-range__caret { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ng-muted-2); pointer-events: none; }
.ng-range .ng-form__label + .ng-field + .ng-range__panel,
.ng-range__panel {
    display: none;
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--ng-line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
    padding: 12px;
    gap: 10px;
    min-width: 220px;
}
.ng-range__panel.visible { display: flex; }
.ng-range__panel label { flex: 1 1 0; font-size: 12px; color: var(--ng-muted); }
.ng-range__panel .ng-field { margin-top: 4px; cursor: text; }

.ng-tabs-pill { display: inline-flex; flex-wrap: wrap; background: var(--ng-bg-gray); padding: 4px; gap: 4px; }
.ng-tabs-pill button,
.ng-tabs-pill a {
    border: 0;
    background: none;
    padding: 8px 20px;
    font-family: var(--ng-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--ng-muted);
    cursor: pointer;
}
.ng-tabs-pill button.active,
.ng-tabs-pill a.is-active { background: var(--ng-red); color: #fff; }
.ng-tabs-pill a:hover { color: var(--ng-red); }

.ng-search__submit { flex: none; padding: 12px 20px; border-radius: var(--ng-radius); }
.ng-search__panel .ng-search__row .ng-field { flex: 1 1 200px; }

/* формы заявок внутри поисковой панели */
.ng-search__lead { padding: 20px; }
.ng-search__lead .ng-grid { gap: 12px; }

/* ---------- баннер внутренней страницы ---------- */
.ng-hero-page {
    position: relative;
    min-height: 345px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--ng-dark);
    overflow: hidden;
}
.ng-hero-page__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ng-hero-page__bg::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.ng-hero-page__inner { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 56px; width: 100%; }
.ng-hero-page h1 {
    font-family: var(--ng-head);
    font-weight: 900;
    font-size: 48px;
    line-height: 58px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #fff;
}
.ng-hero-page h1::after { content: ''; display: block; width: 60px; height: 3px; background: var(--ng-red); margin: 16px auto 0; }
.ng-hero-page p { margin-top: 16px; font-size: 14px; line-height: 22px; color: #D1D5DC; max-width: 620px; margin-left: auto; margin-right: auto; }
.ng-hero-page .ng-crumbs { justify-content: center; margin-bottom: 12px; }

/* ---------- панель каталога ---------- */
.ng-catalog-bar { background: var(--ng-bg-soft); border-bottom: 1px solid var(--ng-line); padding: 24px 0; }
.ng-catalog-bar .ng-tabs-pill { background: #fff; border: 1px solid var(--ng-line); margin-bottom: 16px; flex-wrap: wrap; }
.ng-catalog-bar__top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.ng-catalog-bar__count { margin: 0 0 16px; }
/* страница карты: панель фильтров липнет под шапкой, карта занимает остаток экрана */
.ng-catalog-bar--map { position: sticky; top: var(--ng-header-h); z-index: 1020; padding: 16px 0; box-shadow: 0 6px 16px -12px rgba(0,0,0,.25); }
/* на карте панель во всю ширину, без контейнера 1280 */
.ng-container-fluid { width: 100%; padding-left: 24px; padding-right: 24px; }
@media (min-width: 1400px) { .ng-catalog-bar--map .ng-search__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 992px) and (max-width: 1399.98px) { .ng-catalog-bar--map .ng-search__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* компактная компоновка панели на карте: слева вкладки+счётчик, справа фильтры в 2 строки, поля 36px */
@media (min-width: 992px) {
    .ng-catalog-bar--map { padding: 10px 0; }
    .ng-catalog-bar--map .ng-container-fluid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; align-items: start; }
    .ng-catalog-bar--map .ng-catalog-bar__top { flex-direction: column; align-items: flex-start; gap: 6px; }
    .ng-catalog-bar--map .ng-tabs-pill { margin: 0; padding: 3px; }
    .ng-catalog-bar--map .ng-tabs-pill button { padding: 0 16px; height: 30px; line-height: 30px; font-size: 13px; }
    .ng-catalog-bar--map .ng-catalog-bar__count { margin: 0; font-size: 12px; line-height: 16px; white-space: nowrap; }
    .ng-catalog-bar--map .ng-search__grid { gap: 8px; }
    .ng-catalog-bar--map .ng-search__row { padding-top: 8px; gap: 8px; }
    .ng-catalog-bar--map .ng-field { height: 36px; padding: 0 12px; font-size: 13px; }
    .ng-catalog-bar--map .ng-sel .ts-control { min-height: 36px; height: 36px; padding: 0 32px 0 12px; font-size: 13px; }
    .ng-catalog-bar--map .ng-sel .ts-control > input, .ng-catalog-bar--map .ng-sel .ts-control > .item { font-size: 13px; }
    .ng-catalog-bar--map .ng-sel .ts-control::after { right: 12px; }
    .ng-catalog-bar--map .ts-wrapper.multi .ts-control > .item { margin: 0 4px 0 0; padding: 1px 6px; font-size: 12px; }
    .ng-catalog-bar--map .ng-range__caret { right: 12px; }
    .ng-catalog-bar--map .ng-search__round { width: 36px; height: 36px; }
    .ng-catalog-bar--map .ng-search__submit { padding: 8px 18px; height: 36px; font-size: 13px; }
    .ng-catalog-bar--map .ng-search__ghost { font-size: 13px; padding: 0 4px; }
}
@media (max-width: 767.98px) { .ng-container-fluid { padding-left: 16px; padding-right: 16px; } }
.ng-catalog-bar--map .ng-tabs-pill { margin-bottom: 12px; }
.ng-map { width: 100%; height: calc(100vh - var(--ng-header-h) - 190px); min-height: 480px; }
@media (max-width: 991.98px) {
    .ng-catalog-bar--map { position: static; box-shadow: none; }
    .ng-map { height: 70vh; min-height: 420px; }
}
.ng-catalog-bar .ng-search__panel { background: transparent; }
.ng-catalog-bar .ng-search__body { padding: 0; }
.ng-catalog-bar .ng-field,
.ng-catalog-bar .ts-control { background: #fff; border: 1px solid var(--ng-line); }
.ng-catalog-count { font-size: 14px; color: var(--ng-muted); margin-bottom: 24px; }
.ng-catalog-count b { color: var(--ng-text); }
.ng-loader { display: none; margin: 32px auto; width: 34px; height: 34px; border: 3px solid var(--ng-line); border-top-color: var(--ng-red); border-radius: var(--ng-radius); animation: ngspin .8s linear infinite; }
@keyframes ngspin { to { transform: rotate(360deg); } }

/* круглые кнопки на карточке — как в макете */
.ng-pcard__tool { border-radius: var(--ng-radius); width: 32px; height: 32px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); color: var(--ng-red); }
.ng-pcard__tool.block-sravneniya { color: var(--ng-text); }
.ng-pcard__tool.liked,
.ng-pcard__tool.in-compare { background: var(--ng-red); color: #fff; }

/* ---------- контакты ---------- */
.ng-contact-hero { text-align: center; padding: 32px 0 20px; }
.ng-contact-hero img { width: 84px; height: auto; }
.ng-contact-hero b { display: block; margin-top: 16px; font-family: var(--ng-head); font-weight: 900; font-size: 22px; letter-spacing: .5px; }
.ng-contact-hero span { display: block; font-family: var(--ng-head); font-weight: 500; font-size: 12px; color: var(--ng-muted-2); }

.ng-contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ng-contact-card { border: 1px solid var(--ng-line); border-right: 0; padding: 32px 24px; text-align: center; }
.ng-contact-card:last-child { border-right: 1px solid var(--ng-line); }
.ng-contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(188, 32, 33, .08);
    color: var(--ng-red);
    margin-bottom: 16px;
}
.ng-contact-card__label { font-size: 15px; color: var(--ng-muted-2); margin-bottom: 8px; }
.ng-contact-card a,
.ng-contact-card p.value { display: block; font-size: 22px; line-height: 32px; font-weight: 700; color: var(--ng-text); overflow-wrap: break-word; }
.ng-contact-card a:hover { color: var(--ng-red); }
.ng-contact-card .muted { font-size: 16px; font-weight: 400; color: var(--ng-muted-2); }

.ng-office { background: #fff; border: 1px solid var(--ng-line); display: flex; flex-direction: column; height: 100%; }
.ng-office__map { height: 180px; border-bottom: 2px solid var(--ng-red); background: var(--ng-bg-gray); overflow: hidden; }
.ng-office__map iframe,
.ng-office__map img { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.ng-office__body { padding: 20px; }
.ng-office__row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ng-text-2); margin-bottom: 10px; }
.ng-office__row .ng-ico { color: var(--ng-red); margin-top: 2px; }
.ng-office__row b { font-family: var(--ng-head); font-weight: 600; }

/* ---------- страница объекта ---------- */
.ng-realty__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.ng-realty__gallery { position: relative; }
.ng-realty__gallery img { width: 100%; display: block; }
.ng-realty__main-img { height: 480px; object-fit: cover; }
.ng-realty__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ng-realty__thumbs img { height: 84px; object-fit: cover; cursor: pointer; }
.ng-realty__price { font-family: var(--ng-head); font-weight: 900; font-size: 32px; line-height: 40px; color: var(--ng-red); }
.ng-realty__side { background: #fff; border: 1px solid var(--ng-line); padding: 24px; position: sticky; top: 88px; }
.ng-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ng-line); border: 1px solid var(--ng-line); }
.ng-specs > div { background: #fff; padding: 14px 16px; }
.ng-specs dt { font-size: 12px; color: var(--ng-muted-2); }
.ng-specs dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--ng-text); }
.ng-agent { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--ng-line); margin-top: 16px; }
.ng-agent img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--ng-radius); }
.ng-agent b { display: block; font-family: var(--ng-head); font-size: 14px; }
.ng-agent span { display: block; font-size: 12px; color: var(--ng-muted); }

@media (max-width: 991.98px) {
    .ng-hero-page h1 { font-size: 30px; line-height: 38px; }
    .ng-hero-page { min-height: 240px; }
    .ng-contact-cards { grid-template-columns: 1fr; }
    .ng-contact-card { border-right: 1px solid var(--ng-line); border-bottom: 0; }
    .ng-contact-card:last-child { border-bottom: 1px solid var(--ng-line); }
    .ng-realty__grid { grid-template-columns: minmax(0, 1fr); }
    .ng-realty__side { position: static; }
    .ng-realty__main-img { height: 300px; }
    .ng-realty__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- страница объекта: детали ---------- */
.ng-realty__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ng-realty__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ng-realty__actions .ng-btn.liked,
.ng-realty__actions .ng-btn.in-compare { border-color: var(--ng-red); color: var(--ng-red); }

.ng-realty__pricebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--ng-bg-soft);
    border: 1px solid var(--ng-line);
    padding: 20px 24px;
    margin-top: 24px;
}
.ng-realty__permeter { font-size: 12px; color: var(--ng-muted-2); margin-top: 2px; }
.ng-realty__addr { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ng-muted); margin-top: 8px; }
.ng-realty__addr .ng-ico { color: var(--ng-red); }
.ng-realty__keys { display: flex; gap: 1px; background: var(--ng-line); border: 1px solid var(--ng-line); }
.ng-realty__keys > div { background: #fff; padding: 10px 18px; text-align: center; min-width: 84px; }
.ng-realty__keys span { display: block; font-size: 11px; color: var(--ng-muted-2); }
.ng-realty__keys b { display: block; font-family: var(--ng-head); font-weight: 600; font-size: 14px; margin-top: 4px; }
.ng-realty__meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--ng-muted-2); padding: 12px 0; border-bottom: 1px solid var(--ng-line); }
.ng-realty__meta span { display: inline-flex; align-items: center; gap: 4px; }

.ng-realty__h2 {
    font-family: var(--ng-head);
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    margin: 40px 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ng-red);
    display: inline-block;
}
.ng-proplist { display: block; margin: 0; border: 1px solid var(--ng-line); }
.ng-proplist > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.ng-proplist > div:nth-child(odd) { background: var(--ng-bg-soft); }
.ng-proplist dt { font-size: 13px; color: var(--ng-muted); font-weight: 400; }
.ng-proplist dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--ng-text); text-align: right; }
.ng-realty__map { height: 380px; border: 1px solid var(--ng-line); background: var(--ng-bg-gray); }

.ng-realty__side { border-top: 3px solid var(--ng-red); }
.ng-agent-card { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--ng-line); }
.ng-agent-card img { width: 56px; height: 56px; border-radius: var(--ng-radius); object-fit: cover; }
.ng-agent-card b { display: block; font-family: var(--ng-head); font-weight: 700; font-size: 16px; }
.ng-agent-card__badge { display: inline-block; margin-top: 4px; padding: 2px 8px; background: rgba(188, 32, 33, .08); color: var(--ng-red); font-size: 11px; }

.ng-phone-reveal {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 12px 16px;
    border: 1px solid var(--ng-line);
    background: var(--ng-bg-soft);
    font-family: var(--ng-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--ng-text);
    cursor: pointer;
}
.ng-phone-reveal .ng-ico { color: var(--ng-red); }
.ng-phone-reveal__cta { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ng-red); }
.ng-realty__id { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ng-line); font-size: 12px; color: var(--ng-muted-2); }

/* ---------- тёмная полоса цифр ---------- */
.ng-calc__disclaimer { margin-top: 10px; font-size: 12px; line-height: 18px; color: var(--ng-muted); }

.ng-statstrip { background: var(--ng-dark); }
.ng-statstrip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ng-statstrip__item { padding: 28px 24px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .08); }
.ng-statstrip__item:last-child { border-right: 0; }
.ng-statstrip__item .ng-ico { color: var(--ng-red); margin-bottom: 10px; }
.ng-statstrip__item b { display: block; font-family: var(--ng-head); font-weight: 900; font-size: 28px; line-height: 34px; color: #fff; }
.ng-statstrip__item span { display: block; margin-top: 4px; font-size: 12px; color: var(--ng-muted-3); }

/* ---------- принципы ---------- */
.ng-principle { background: #fff; border: 1px solid var(--ng-line); padding: 28px 24px; height: 100%; }
.ng-principle__num { font-family: var(--ng-head); font-weight: 900; font-size: 34px; line-height: 1; color: rgba(188, 32, 33, .18); }
.ng-principle__title { font-family: var(--ng-head); font-weight: 600; font-size: 16px; margin: 16px 0 8px; }
.ng-principle__text { font-size: 13px; line-height: 20px; color: var(--ng-muted); }

/* ---------- about: бейдж года ---------- */
.ng-about__stat-badge.is-year b { font-size: 26px; }

/* ---------- блог ---------- */
.ng-article__grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.ng-article__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ng-muted-2); margin-bottom: 20px; }
.ng-article__tag { background: var(--ng-red); color: #fff; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.ng-article__meta span { display: inline-flex; align-items: center; gap: 4px; }
.ng-article h1 { font-family: var(--ng-head); font-weight: 900; font-size: 34px; line-height: 44px; margin-bottom: 24px; }
.ng-article__cover { width: 100%; max-height: 460px; object-fit: cover; display: block; margin-bottom: 28px; }
.ng-article__lead { border-left: 3px solid var(--ng-red); background: var(--ng-bg-soft); padding: 18px 24px; font-size: 15px; line-height: 24px; color: var(--ng-text-2); margin-bottom: 28px; }

.ng-aside__title { font-family: var(--ng-head); font-weight: 700; font-size: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ng-red); margin-bottom: 8px; }
.ng-aside__item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ng-line); }
.ng-aside__item img { width: 56px; height: 46px; object-fit: cover; flex: none; }
.ng-aside__item b { display: block; font-family: var(--ng-head); font-weight: 600; font-size: 13px; line-height: 18px; }
.ng-aside__item span { display: block; font-size: 11px; color: var(--ng-muted-2); margin-top: 4px; }
.ng-aside__box { background: #fff; border: 1px solid var(--ng-line); border-top: 3px solid var(--ng-red); padding: 20px; }

/* ---------- страница специалиста ---------- */
.ng-person-hero { background: var(--ng-dark); color: #fff; padding: 48px 0 56px; }
.ng-person-hero__grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.ng-person-hero__photo { width: 100%; height: 320px; object-fit: cover; display: block; }
.ng-person-hero__badge { display: inline-block; background: var(--ng-red); color: #fff; padding: 5px 12px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.ng-person-hero h1 { font-family: var(--ng-head); font-weight: 900; font-size: 38px; line-height: 46px; color: #fff; }
.ng-person-hero__text { margin-top: 16px; font-size: 14px; line-height: 22px; color: #D1D5DC; max-width: 640px; }
.ng-person-stats { display: inline-flex; gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; }
.ng-person-stats > div { background: var(--ng-dark); padding: 12px 28px; text-align: center; }
.ng-person-stats b { display: block; font-family: var(--ng-head); font-weight: 900; font-size: 22px; color: #fff; }
.ng-person-stats span { display: block; font-size: 11px; color: var(--ng-muted-3); margin-top: 2px; }
.ng-person-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.ng-person-tags span { background: rgba(255, 255, 255, .08); padding: 6px 12px; font-size: 12px; color: #D1D5DC; }
.ng-person__grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.ng-person__list li { background: var(--ng-bg-soft); border: 1px solid var(--ng-line); padding: 14px 18px; margin-bottom: 8px; display: flex; gap: 10px; font-size: 14px; color: var(--ng-text-2); }
.ng-person__list .ng-ico { color: var(--ng-red); margin-top: 2px; }
.ng-person-link { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ng-line); }
.ng-person-link img { width: 36px; height: 36px; border-radius: var(--ng-radius); object-fit: cover; }
.ng-person-link b { display: block; font-size: 13px; font-family: var(--ng-head); font-weight: 600; }
.ng-person-link span { display: block; font-size: 11px; color: var(--ng-muted-2); }

@media (max-width: 991.98px) {
    .ng-article__grid,
    .ng-person__grid { grid-template-columns: 1fr; }
    .ng-person-hero__grid { grid-template-columns: 1fr; }
    .ng-person-hero h1 { font-size: 26px; line-height: 34px; }
    .ng-article h1 { font-size: 24px; line-height: 32px; }
}

/* баннер с выравниванием по левому краю (страницы услуг) */
.ng-hero-page--left { text-align: left; }
.ng-hero-page--left h1::after { margin-left: 0; margin-right: 0; }
.ng-hero-page--left .ng-crumbs { justify-content: flex-start; }
.ng-hero-page--left p { margin-left: 0; }

/* выноска «Об услуге» */
.ng-callout { background: var(--ng-bg-soft); border-left: 3px solid var(--ng-red); padding: 24px 28px; }
.ng-callout h2 { font-family: var(--ng-head); font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.ng-callout p { font-size: 14px; line-height: 24px; color: var(--ng-text-2); }

/* тёмный блок «Что вы получаете» */
.ng-darkbox { background: var(--ng-dark); color: #fff; padding: 32px; }
.ng-darkbox h2 { font-family: var(--ng-head); font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 20px; }
.ng-darkbox .ng-checks li { color: #D1D5DC; }

/* ---------- рейтинг звёздами ---------- */
.ng-rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.ng-rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.ng-rating label { color: var(--ng-line); cursor: pointer; transition: color .15s; }
.ng-rating input:checked ~ label,
.ng-rating label:hover,
.ng-rating label:hover ~ label { color: var(--ng-red); }
.ng-form__error { color: var(--ng-red); font-size: 13px; margin-bottom: 12px; }

/* ---------- таблица сравнения ---------- */
.ng-compare__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.ng-compare__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.ng-compare__hint { font-size: 12px; color: var(--ng-muted); margin: 0; }
.ng-compare__nav { display: flex; gap: 8px; }
.ng-compare__nav button {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ng-line); background: #fff; color: var(--ng-text); cursor: pointer;
    transition: border-color .2s, color .2s, background-color .2s, transform .2s;
}
.ng-compare__nav button:hover { border-color: var(--ng-red); color: var(--ng-red); transform: translateY(-1px); }
.ng-compare__nav button:disabled { opacity: .35; cursor: default; transform: none; border-color: var(--ng-line); color: var(--ng-text); }
.ng-compare__table-wrap {
    position: relative; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: thin; scrollbar-color: var(--ng-red) var(--ng-bg-soft);
    -webkit-overflow-scrolling: touch;
}
.ng-compare__table-wrap::-webkit-scrollbar { height: 8px; }
.ng-compare__table-wrap::-webkit-scrollbar-thumb { background: var(--ng-red); }
.ng-compare__table-wrap::-webkit-scrollbar-track { background: var(--ng-bg-soft); }
/* ширины колонок фиксированы: подпись 200px, каждый объект 280px — таблица шире контейнера листается вбок */
.ng-compare__table { table-layout: fixed; width: auto; min-width: 0; border-collapse: collapse; }
.ng-compare__col-label { width: 200px; }
.ng-compare__col-item { width: 280px; }
.ng-compare__table td,
.ng-compare__table thead th:not(:first-child) { width: 280px; min-width: 280px; max-width: 280px; overflow-wrap: break-word; }
.ng-compare__table thead th:first-child,
.ng-compare__table tbody th { width: 200px; min-width: 200px; max-width: 200px; box-shadow: 4px 0 12px -6px rgba(0,0,0,.18); }
.ng-compare__scroller { position: relative; }
.ng-compare__scroller::before,
.ng-compare__scroller::after {
    content: ''; position: absolute; top: 0; bottom: 8px; width: 56px; pointer-events: none; z-index: 4;
    opacity: 0; transition: opacity .25s;
}
.ng-compare__scroller::before { left: 200px; background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,0)); }
.ng-compare__scroller::after { right: 0; background: linear-gradient(270deg, rgba(255,255,255,.95), rgba(255,255,255,0)); }
.ng-compare__scroller.has-prev::before,
.ng-compare__scroller.has-next::after { opacity: 1; }
.ng-compare__table th,
.ng-compare__table td { border: 1px solid var(--ng-line); padding: 12px 16px; font-size: 13px; text-align: left; }
.ng-compare__table thead th { background: var(--ng-bg-soft); font-family: var(--ng-head); font-weight: 600; }
.ng-compare__table tbody th { background: var(--ng-bg-soft); font-weight: 400; color: var(--ng-muted); position: sticky; left: 0; z-index: 2; }
.ng-compare__table thead th:first-child { position: sticky; left: 0; z-index: 3; }
.ng-compare__table td.is-better { background: rgba(22, 163, 74, .08); font-weight: 600; }
.ng-compare__table td.is-equal { background: var(--ng-bg-soft); }
.ng-compare__table td.is-empty { color: var(--ng-muted-2); }
.ng-compare__head { display: flex; align-items: center; gap: 10px; }
.ng-compare__head img { width: 42px; height: 42px; object-fit: cover; }

@media (max-width: 991.98px) {
    .ng-compare__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- умный поиск: выпадающие подсказки ---------- */
.ng-suggest {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--ng-line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
    max-height: 320px;
    overflow-y: auto;
}
.ng-suggest__group {
    padding: 10px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--ng-muted-2);
}
.ng-suggest__item {
    display: block;
    width: 100%;
    border: 0;
    background: none;
    padding: 8px 16px;
    text-align: left;
    font-family: var(--ng-body);
    font-size: 14px;
    line-height: 20px;
    color: var(--ng-text);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ng-suggest__item:hover,
.ng-suggest__item.is-active { background: var(--ng-bg-gray); color: var(--ng-red); }

/* ---------- сводные адаптивные фиксы ---------- */
.ng-realty__title { font-size: 30px; line-height: 38px; text-transform: none; }

@media (max-width: 1199.98px) {
    /* между 992 и 1200 узкая колонка контента: ужимаем сайдбар объекта */
    .ng-realty__grid { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 991.98px) {
    .ng-realty__grid { grid-template-columns: minmax(0, 1fr); }
    .ng-realty__title { font-size: 24px; line-height: 32px; }
}

/* ---------- устойчивость к масштабированию шрифта на телефонах ----------
   При увеличенном системном шрифте/зуме эффективная CSS-ширина падает до ~260px:
   контент не должен распирать страницу и уводить текст за экран. */
html, body { overflow-x: clip; }
.ng-prose,
.ng-proplist dt,
.ng-proplist dd,
.ng-realty__addr,
.ng-realty__title { overflow-wrap: break-word; min-width: 0; }
.ng-proplist > div { flex-wrap: wrap; }

@media (max-width: 419.98px) {
    .ng-header__inner { gap: 8px; }
    .ng-header__actions { gap: 6px; }
    .ng-header__actions .ng-iconbtn,
    .ng-burger { width: 36px; height: 36px; }
    .ng-logo { gap: 8px; }
    .ng-logo__mark,
    .ng-logo__mark svg,
    .ng-logo__mark img { width: 30px; height: 31.4px; }
    .ng-logo__name { font-size: 13px; line-height: 18px; letter-spacing: .2px; }
    .ng-logo__sub { font-size: 7.5px; line-height: 10px; }
    .ng-realty__keys > div { min-width: 0; flex: 1 1 84px; padding: 10px 8px; }
    .ng-search__tab { min-width: 80px; }
}

/* сравнение на мобилке: колонки уже, шапка переносится, первая колонка липкая */
@media (max-width: 767.98px) {
    .ng-compare__table th,
    .ng-compare__table td { padding: 10px; font-size: 12px; }
    .ng-compare__col-label,
    .ng-compare__table thead th:first-child,
    .ng-compare__table tbody th { min-width: 112px; max-width: 112px; width: 112px; }
    .ng-compare__col-item,
    .ng-compare__table td,
    .ng-compare__table thead th:not(:first-child) { width: 180px; min-width: 180px; max-width: 180px; }
    .ng-compare__bar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ng-compare__scroller::before { left: 112px; }
    .ng-compare__head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .ng-compare__head img { width: 64px; height: 44px; }
    .ng-compare__head span { white-space: normal; overflow-wrap: break-word; }
}

@media (max-width: 359.98px) {
    .ng-header__inner { gap: 6px; }
    .ng-header__actions { gap: 4px; }
    .ng-header__actions .ng-iconbtn,
    .ng-burger { width: 32px; height: 32px; }
    .ng-logo__sub { display: none; }
    .ng-logo__name { font-size: 12px; line-height: 16px; }
}

@media (max-width: 767.98px) {
    .ng-hero { min-height: 520px; }
    /* табы поиска в хиро: перенос вместо скрытого горизонтального скролла */
    .ng-search__tabs { flex-wrap: wrap; }
    .ng-search__tab { flex: 1 1 auto; min-width: 96px; border-bottom: 1px solid var(--ng-line-soft); }
    .ng-search__tab.is-active { border-bottom: 2px solid var(--ng-red); }
    .ng-realty__pricebar { padding: 16px; }
    .ng-realty__keys { flex-wrap: wrap; }
    .ng-realty__keys > div { flex: 1 1 auto; }
}

@media (max-width: 575.98px) {
    .ng-hero { min-height: 0; }
    .ng-hero__inner { padding-top: 40px; padding-bottom: 40px; }

    /* модалки: убираем десктопные отступы */
    .ng-modal .modal-body { padding: 24px 20px; }
    .ng-modal .modal-header,
    .ng-modal .modal-footer { padding: 14px 20px; }

    /* ипотечный калькулятор */
    .ng-calc__panel { padding: 24px 20px; }
    .ng-calc__result { padding: 20px; }
    .ng-calc__result strong { font-size: 30px; line-height: 38px; }

    /* галерея объекта */
    .ng-realty__main-img { height: 240px; }
    .ng-realty__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ng-realty__thumbs img { height: 72px; }
    .ng-realty__title { font-size: 21px; line-height: 28px; }

    /* сравнение: карточки в одну колонку */
    .ng-compare__cards { grid-template-columns: 1fr; }

    /* бейдж статистики в «О компании» не должен вылезать за экран */
    .ng-about__stat-badge { right: 0; }
}


/* ==========================================================================
   Движение (09.09.2026): ховеры кнопок, прелоадер, WOW
   ========================================================================== */

/* --- кнопки: косой заливающий свип + блик от точки входа курсора + сдвиг иконки --- */
.ng-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color .25s, border-color .25s, transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .3s;
}
.ng-btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: var(--ng-red-dark);
    transform: translateX(-112%) skewX(-18deg);
    transform-origin: left center;
    transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.ng-btn::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    width: 0; height: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 70%);
    transition: width .5s ease, height .5s ease, opacity .5s;
    opacity: 0;
}
.ng-btn:hover::before,
.ng-btn:focus-visible::before { transform: translateX(0) skewX(0); }
.ng-btn:hover::after { width: 260%; height: 600%; opacity: 1; }
.ng-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(188, 32, 33, .6); }
.ng-btn:active { transform: translateY(0) scale(.98); box-shadow: none; transition-duration: .1s; }
/* красная кнопка: косым сдвигом заливается белым, остаётся красная рамка, текст и иконка краснеют чуть позже фронта заливки */
.ng-btn--primary::before { background: #fff; }
.ng-btn--primary::after { background: radial-gradient(circle, rgba(188,32,33,.14) 0%, rgba(188,32,33,0) 70%); }
.ng-btn--primary { transition: color .3s .12s, border-color .25s, transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .3s; }
.ng-btn--primary:hover { box-shadow: 0 12px 24px -12px rgba(188, 32, 33, .45); }
.ng-btn--outline::before { background: var(--ng-red); }
.ng-btn--dark::before { background: var(--ng-red); }
.ng-btn--tg::before { background: #1c93d1; }
.ng-btn .ng-ico { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.ng-btn:hover .ng-ico { transform: translateX(4px) rotate(-8deg); }
.ng-btn > span,
.ng-btn > b { position: relative; }

/* кнопка «Показать номер» на карточке и иконки шапки/рейла */
.ng-pcard__phone { position: relative; overflow: hidden; isolation: isolate; transition: color .25s, border-color .25s; }
.ng-pcard__phone::before {
    content: ''; position: absolute; inset: -1px; z-index: -1; background: var(--ng-red);
    transform: translateY(101%); transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.ng-pcard__phone:hover { color: #fff; border-color: var(--ng-red); }
.ng-pcard__phone:hover::before { transform: translateY(0); }
.ng-iconbtn { transition: border-color .25s, color .25s, transform .25s, box-shadow .25s; }
.ng-iconbtn:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgba(0,0,0,.35); }
.ng-iconbtn .ng-ico { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.ng-iconbtn:hover .ng-ico { transform: scale(1.18) rotate(-10deg); }
.ng-rail a .ng-ico { transition: transform .35s; }
.ng-rail a:hover .ng-ico { transform: rotate(-12deg) scale(1.1); }
.ng-search__tab,
.ng-nav a { transition: color .2s, background-color .2s, transform .2s; }
.ng-search__tab:hover { transform: translateY(-1px); }

/* --- прелоадер: отрисовка логотипа штрихом, затем заливка --- */
.ng-preloader {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: var(--ng-black, #111);
    color: #fff;
    transition: opacity .6s ease .1s, transform .8s cubic-bezier(.76,0,.24,1);
}
.ng-preloader.is-skip { display: none; }
.ng-preloader.is-done { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.ng-preloader__box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ng-preloader__logo { width: 96px; height: 101px; overflow: visible; }
.ng-preloader__body {
    fill: rgba(188, 32, 33, 0);
    stroke: var(--ng-red);
    stroke-width: .45;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ngDraw 1.4s cubic-bezier(.65,0,.35,1) forwards, ngFill .6s ease 1.25s forwards;
}
.ng-preloader__lines line {
    stroke: var(--ng-red);
    stroke-width: .32;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ngDraw .6s ease forwards;
}
.ng-preloader__lines line:nth-child(1)  { animation-delay: .55s; }
.ng-preloader__lines line:nth-child(2)  { animation-delay: .6s; }
.ng-preloader__lines line:nth-child(3)  { animation-delay: .65s; }
.ng-preloader__lines line:nth-child(4)  { animation-delay: .7s; }
.ng-preloader__lines line:nth-child(5)  { animation-delay: .75s; }
.ng-preloader__lines line:nth-child(6)  { animation-delay: .8s; }
.ng-preloader__lines line:nth-child(7)  { animation-delay: .85s; }
.ng-preloader__lines line:nth-child(8)  { animation-delay: .9s; }
.ng-preloader__lines line:nth-child(9)  { animation-delay: .95s; }
.ng-preloader__lines line:nth-child(10) { animation-delay: 1s; }
.ng-preloader__lines line:nth-child(11) { animation-delay: 1.05s; }
.ng-preloader__lines line:nth-child(12) { animation-delay: 1.1s; }
.ng-preloader__name {
    font-family: var(--ng-head); font-weight: 900; font-size: 22px; letter-spacing: 3px; line-height: 1;
    opacity: 0; transform: translateY(10px);
    animation: ngRise .6s ease 1.2s forwards;
}
.ng-preloader__sub {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ng-muted-3, #99A1AF);
    opacity: 0; transform: translateY(8px);
    animation: ngRise .6s ease 1.4s forwards;
}
@keyframes ngDraw { to { stroke-dashoffset: 0; } }
@keyframes ngFill { to { fill: var(--ng-red); } }
@keyframes ngRise { to { opacity: 1; transform: translateY(0); } }

/* --- WOW: мягче и короче стандартных animate.css --- */
.wow.animated { animation-duration: .8s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.22,.61,.36,1); }
.wow.fadeInUp { animation-name: ngFadeInUp; }
@keyframes ngFadeInUp { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .ng-btn::before, .ng-btn::after, .ng-pcard__phone::before { transition: none; }
    .ng-btn:hover, .ng-iconbtn:hover, .ng-rail a:hover { transform: none; }
    .ng-preloader { display: none; }
}

/* --- стрелочные ссылки/кнопки «Подробнее ↗»: стрелка улетает вверх-вправо и влетает снизу-слева, у ссылок дорисовывается подчёркивание --- */
.ng-link { position: relative; overflow: hidden; padding-bottom: 2px; transition: color .25s; }
.ng-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.ng-link:hover::after { transform: scaleX(1); transform-origin: left; }
.ng-link .ng-ico { transition: transform .3s; }
.ng-link:hover .ng-ico[data-icon="arrow-up-right"],
.ng-btn:hover .ng-ico[data-icon="arrow-up-right"] { animation: ngArrowUpRight .55s cubic-bezier(.22,.61,.36,1) forwards; transform: none; }
.ng-link:hover .ng-ico[data-icon="arrow-right"],
.ng-btn:hover .ng-ico[data-icon="arrow-right"] { animation: ngArrowRight .55s cubic-bezier(.22,.61,.36,1) forwards; transform: none; }
@keyframes ngArrowUpRight {
    0% { transform: translate(0, 0); opacity: 1; }
    45% { transform: translate(110%, -110%); opacity: 0; }
    50% { transform: translate(-110%, 110%); opacity: 0; }
    100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes ngArrowRight {
    0% { transform: translateX(0); opacity: 1; }
    45% { transform: translateX(140%); opacity: 0; }
    50% { transform: translateX(-140%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .ng-rail__toggle::before, .ng-rail__ico--phone { animation: none; }
    .ng-link:hover .ng-ico, .ng-btn:hover .ng-ico { animation: none; }
}

/* ---------- правки 15.09.2026: партнёры по центру и в цвете, крошки на фото, соцсети в шторке ---------- */
.ng-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ng-partners__item { flex: 0 1 calc((100% - 6 * 16px) / 7); min-width: 150px; }
.ng-partners__item img { filter: none; opacity: 1; }
.ng-partners__item:hover { border-color: var(--ng-red); }
@media (max-width: 1199px) { .ng-partners__item { flex-basis: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 767px) { .ng-partners__item { flex-basis: calc((100% - 16px) / 2); min-width: 0; } }

.ng-hero-page .ng-crumbs {
    display: inline-flex; padding: 7px 14px; margin-bottom: 14px;
    background: rgba(17, 17, 17, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 13px;
}
.ng-hero-page .ng-crumbs a { color: #fff; opacity: .85; }
.ng-hero-page .ng-crumbs a:hover { opacity: 1; color: #fff; }
.ng-hero-page .ng-crumbs span.sep { opacity: .55; }

.ng-drawer__soc { margin-top: 24px; }
.ng-drawer__soc-label { display: block; margin-bottom: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ng-muted); }
.ng-drawer__soc-links { display: flex; gap: 10px; }
.ng-drawer__soc-links a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--ng-line); color: var(--ng-text); transition: background .2s, color .2s, border-color .2s; }
.ng-drawer__soc-links a:hover, .ng-drawer__soc-links a:active { background: var(--ng-red); border-color: var(--ng-red); color: #fff; }

/* ---------- карта: панель со всеми объектами кластера на одной точке (15.09.2026) ---------- */
.ng-map-wrap { position: relative; overflow: hidden; }
.ng-map-panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; width: min(420px, 100%); display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--ng-line); box-shadow: -12px 0 32px rgba(0,0,0,.14); animation: ngPanelIn .25s ease-out; }
.ng-map-panel[hidden] { display: none; }
@keyframes ngPanelIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.ng-map-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ng-line); }
.ng-map-panel__title { display: block; font-size: 16px; line-height: 1.25; }
.ng-map-panel__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--ng-muted); }
.ng-map-panel__close { flex: 0 0 auto; border: 0; background: transparent; cursor: pointer; font-size: 26px; line-height: 1; padding: 0 2px; color: var(--ng-muted); }
.ng-map-panel__close:hover { color: var(--ng-text); }
.ng-map-panel__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.ng-map-panel__body .ng-pcard { width: 100%; }
.ng-map-panel__loading { padding: 24px 0; text-align: center; color: var(--ng-muted); font-size: 14px; }
@media (max-width: 767.98px) {
    .ng-map-panel { top: auto; left: 0; width: 100%; height: 72%; border-left: 0; border-top: 1px solid var(--ng-line); box-shadow: 0 -12px 32px rgba(0,0,0,.14); animation-name: ngPanelUp; }
    @keyframes ngPanelUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
    .ng-map-panel__head { padding: 12px 16px; }
    .ng-map-panel__body { padding: 12px 16px 20px; }
}

/* ---------- каталог: верхние вкладки равной ширины по центру (15.09.2026) ---------- */
@media (min-width: 768px) {
    .ng-catalog-bar:not(.ng-catalog-bar--map) .ng-tabs-pill { display: flex; width: 100%; }
    .ng-catalog-bar:not(.ng-catalog-bar--map) .ng-tabs-pill > * { flex: 1 1 0; min-width: 0; text-align: center; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
}

/* ---------- отзывы на главной: слайдер (16.09.2026) ---------- */
.ng-reviews .splide__slide { display: flex; }
.ng-reviews .ng-rcard { width: 100%; display: flex; flex-direction: column; }
.ng-reviews .ng-rcard__text { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
