@import url('fonts.css');

:root {
    --t-paper: #F7F3EC;
    --t-paper-2: #EFE8DC;
    --t-white: #FFFDF9;
    --t-ink: #1F2A24;
    --t-ink-2: #3B4A42;
    --t-muted: #6E7C74;
    --t-gold: #9A7B4F;
    --t-gold-2: #C2A57B;
    --t-green: #7C8C82;
    --t-line: #DCD3C5;
    --t-gold-dark: #7E6440;
    --t-shadow: 0 24px 60px rgba(31, 42, 36, .12);
    --t-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --t-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Палитра базового realty переводится на цвета Terra, чтобы синие
       и бирюзовые детали не оставались в неперекрытых компонентах. */
    --rt-ink: var(--t-ink);
    --rt-body: var(--t-ink-2);
    --rt-muted: var(--t-muted);
    --rt-line: var(--t-line);
    --rt-bg: var(--t-paper-2);
    --rt-accent: var(--t-gold);
    --rt-accent-d: var(--t-gold-dark);
    --rt-blue: var(--t-ink);
    --rt-blue-d: var(--t-gold);
    --rt-dark: var(--t-ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--t-paper);
    color: var(--t-ink-2);
    font-family: var(--t-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--t-gold-dark); color: var(--t-white); }

.t-wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.t-wrap--narrow { width: min(980px, calc(100% - 64px)); margin: 0 auto; }

.t-eyebrow {
    font-size: 12px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--t-gold);
    margin: 0 0 16px;
}
.t-display {
    font-family: var(--t-serif);
    font-weight: 500;
    color: var(--t-ink);
    line-height: .98;
    letter-spacing: -.02em;
    margin: 0;
}
.t-display em { font-style: italic; color: var(--t-green); }
.t-h1 { font-size: clamp(44px, 5.4vw, 76px); }
.t-h2 { font-size: clamp(30px, 3.4vw, 48px); }
.t-lead { font-size: 16px; line-height: 1.8; color: var(--t-muted); max-width: 520px; }
.t-muted { color: var(--t-muted); }
.t-gold { color: var(--t-gold); }

.t-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--t-ink);
    background: var(--t-ink);
    color: var(--t-paper);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.t-btn:hover { background: var(--t-gold); border-color: var(--t-gold); color: #fff; }
.t-btn--ghost { background: transparent; color: var(--t-ink); }
.t-btn--ghost:hover { background: var(--t-ink); color: var(--t-paper); border-color: var(--t-ink); }
.t-btn--light { background: var(--t-paper); color: var(--t-ink); border-color: var(--t-paper); }
.t-btn--light:hover { background: var(--t-gold-2); border-color: var(--t-gold-2); color: var(--t-ink); }

/* ===== Top bar and header ===== */
.t-topbar {
    border-bottom: 1px solid var(--t-line);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--t-muted);
}
.t-topbar__inner { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; }
.t-topbar__group { display: flex; gap: 26px; flex-wrap: wrap; }
.t-topbar a:hover { color: var(--t-ink); }

.t-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 243, 236, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.t-header.is-stuck { border-color: var(--t-line); box-shadow: 0 10px 30px rgba(31, 42, 36, .06); }
.t-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 84px; }
.t-brand {
    font-family: var(--t-serif);
    font-size: 27px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--t-ink);
    white-space: nowrap;
}
.t-nav { display: flex; align-items: center; gap: 30px; }
.t-nav a {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--t-ink-2);
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}
.t-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--t-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.t-nav a:hover,
.t-nav a:focus { text-decoration: none; }
.t-nav a:hover::after, .t-nav a.is-active::after { transform: scaleX(1); }
.t-header__side { display: flex; align-items: center; gap: 18px; }
.t-header__phone { font-size: 14px; letter-spacing: .05em; color: var(--t-ink); white-space: nowrap; }
.t-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--t-line); background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.t-burger span { display: block; width: 18px; height: 1px; background: var(--t-ink); }

/* ===== Hero ===== */
.t-hero { padding: 64px 0 42px; }
.t-hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.t-hero .t-lead { margin: 22px 0 34px; }
.t-hero__media { position: relative; }
.t-hero__photo {
    height: 570px;
    border-radius: 280px 280px 18px 18px;
    overflow: hidden;
    background: var(--t-paper-2);
}
.t-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; filter: saturate(.72) contrast(1.05) brightness(1.03); }
.t-hero__photo::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(247,243,236,0) 55%, rgba(31,42,36,.18) 100%);
}
.t-hero__badge {
    position: absolute;
    left: -28px;
    bottom: 42px;
    background: var(--t-paper);
    padding: 18px 22px;
    box-shadow: var(--t-shadow);
    min-width: 150px;
}
.t-hero__badge b { display: block; font-family: var(--t-serif); font-size: 34px; line-height: 1; color: var(--t-ink); }
.t-hero__badge span { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--t-muted); }
.t-hero__note {
    position: absolute;
    right: -18px;
    top: 34%;
    writing-mode: vertical-rl;
    font-size: 12px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--t-gold);
}

/* ===== Search ===== */
.t-search {
    background: var(--t-white);
    border: 1px solid var(--t-line);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: stretch;
}
.t-search__field { padding: 13px 16px 12px; border-right: 1px solid var(--t-line); min-width: 0; }
.t-search__field:last-of-type { border-right: 0; }
.t-search__field span { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--t-gold); margin-bottom: 3px; }
.t-search__field b { display: block; font-size: 14px; font-weight: 500; color: var(--t-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-search__go {
    width: 58px;
    border: 0;
    background: var(--t-ink);
    color: var(--t-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background .18s ease;
}
.t-search__go:hover { background: var(--t-gold); }

/* ===== Stats ===== */
.t-stats { border-top: 1px solid var(--t-line); border-bottom: 1px solid var(--t-line); margin-top: 20px; }
.t-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.t-stat { padding: 26px 28px; border-right: 1px solid var(--t-line); }
.t-stat:last-child { border-right: 0; }
.t-stat b { display: block; font-family: var(--t-serif); font-size: 38px; line-height: 1; color: var(--t-ink); }
.t-stat span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--t-muted); }

/* ===== Sections ===== */
.t-section { padding: 84px 0; }
.t-section--tight { padding: 58px 0; }
.t-section--paper { background: var(--t-paper-2); }
.t-section--dark { background: var(--t-ink); color: var(--t-paper); }
.t-section--dark .t-display { color: var(--t-paper); }
.t-section--dark .t-lead { color: rgba(247,243,236,.66); }
.t-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.t-section__head .t-h2 { max-width: 620px; }
.t-section__link { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--t-gold); border-bottom: 1px solid var(--t-gold); padding-bottom: 4px; white-space: nowrap; }
.t-section__link:hover { color: var(--t-ink); border-color: var(--t-ink); }

/* ===== Object cards ===== */
.t-objects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-object { background: var(--t-white); border: 1px solid var(--t-line); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.t-object:hover { transform: translateY(-4px); box-shadow: var(--t-shadow); }
.t-object__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--t-paper-2); }
.t-object__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.04); transition: transform .5s ease; }
.t-object:hover .t-object__media img { transform: scale(1.04); }
.t-object__tag { position: absolute; top: 14px; left: 14px; background: rgba(247,243,236,.92); color: var(--t-ink); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; }
.t-object__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.t-object__place { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--t-gold); margin-bottom: 7px; }
.t-object__title { font-family: var(--t-serif); font-size: 23px; line-height: 1.15; color: var(--t-ink); margin: 0 0 12px; }
.t-object__specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--t-muted); margin-bottom: 16px; }
.t-object__specs span { position: relative; }
.t-object__specs span + span::before { content: '·'; position: absolute; left: -9px; color: var(--t-line); }
.t-object__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--t-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.t-object__price { font-family: var(--t-serif); font-size: 22px; color: var(--t-ink); }
.t-object__more { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--t-gold); }

/* ===== Districts ===== */
.t-districts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* Карточка целиком является ссылкой, поэтому цвет и подчёркивание фиксируем
   принудительно: иначе браузерные стили ссылок рисуют синий заголовок. */
.t-district,
.t-district:link,
.t-district:visited,
.t-district:hover,
.t-district:focus,
.t-district:active { position: relative; min-height: 250px; overflow: hidden; display: flex; align-items: flex-end; padding: 22px; color: #fff !important; text-decoration: none !important; }
.t-district:focus-visible { outline: 2px solid var(--t-gold); outline-offset: -2px; }
.t-district img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; filter: saturate(.7) brightness(.72); }
.t-district:hover img { transform: scale(1.05); }
.t-district::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,42,36,.05), rgba(31,42,36,.72)); }
.t-district__body { position: relative; z-index: 2; }
.t-district b { display: block; font-family: var(--t-serif); font-size: 26px; font-weight: 500; line-height: 1.1; transition: color .2s ease; }
.t-district:hover b { color: var(--t-gold-2); }
.t-district span { display: block; margin-top: 5px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* ===== Services ===== */
.t-services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--t-line); }
.t-service { display: flex; flex-direction: column; padding: 28px 28px 32px; border-right: 1px solid var(--t-line); }
.t-service:first-child { padding-left: 0; }
.t-service:last-child { border-right: 0; padding-right: 0; }
.t-service__num { font-size: 12px; letter-spacing: .18em; color: var(--t-gold); }
.t-service h3 { font-family: var(--t-serif); font-size: 24px; font-weight: 500; line-height: 1.1; color: var(--t-ink); margin: 14px 0 10px; }
.t-service h3 a { font: inherit; letter-spacing: 0; text-transform: none; color: inherit; border: 0; padding: 0; }
.t-service h3 a:hover { color: var(--t-gold); }
.t-service p { font-size: 15px; line-height: 1.7; color: var(--t-muted); margin: 0 0 18px; }
.t-service > a { align-self: flex-start; margin-top: auto; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--t-ink); border-bottom: 1px solid var(--t-line); padding-bottom: 3px; }
.t-service > a:hover { color: var(--t-gold); border-color: var(--t-gold); }

/* ===== About ===== */
.t-about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.t-about__photo { position: relative; }
.t-about__photo img { width: 100%; height: 480px; object-fit: cover; filter: saturate(.75) contrast(1.03); }
.t-about__photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--t-gold-2); z-index: -1; }
.t-about__quote { font-family: var(--t-serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; color: var(--t-ink); margin: 0 0 22px; }
.t-about__text { font-size: 15px; line-height: 1.85; color: var(--t-muted); max-width: 520px; }
.t-about__sign { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.t-about__sign b { display: block; font-size: 14px; color: var(--t-ink); }
.t-about__sign span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--t-muted); }
.t-about__mark { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--t-gold); color: var(--t-gold); display: flex; align-items: center; justify-content: center; font-family: var(--t-serif); font-size: 18px; }

/* ===== Reviews ===== */
.t-reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.t-review { display: flex; flex-direction: column; border: 1px solid var(--t-line); padding: 30px 32px; background: var(--t-white); }
.t-reviews--page { margin-top: 24px; }
.t-review__stars { color: var(--t-gold); letter-spacing: .2em; font-size: 14px; margin-bottom: 16px; }
.t-review p { font-family: var(--t-serif); font-size: 22px; line-height: 1.35; color: var(--t-ink); margin: 0 0 22px; }
.t-review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-review__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--t-paper-2); display: flex; align-items: center; justify-content: center; font-family: var(--t-serif); font-size: 17px; color: var(--t-gold); }
.t-review__author b { display: block; font-size: 12px; color: var(--t-ink); }
.t-review__author span { display: block; font-size: 12px; color: var(--t-muted); }
.t-review__title,
.t-review__title:link,
.t-review__title:visited { display: block; font-size: 12px; color: var(--t-muted) !important; text-decoration: underline !important; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.t-review__title:hover { color: var(--t-gold) !important; }

/* ===== CTA ===== */
.t-cta { padding: 72px 0; }
.t-cta__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.t-cta__phone { display: inline-block; margin-top: 22px; font-family: var(--t-serif); font-size: 34px; color: var(--t-paper); }
.t-cta__form { display: grid; gap: 12px; }
.t-field { display: block; }
.t-field span { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(247,243,236,.55); margin-bottom: 7px; }
.t-field input, .t-field select {
    width: 100%;
    height: 48px;
    background: transparent;
    border: 1px solid rgba(247,243,236,.24);
    color: var(--t-paper);
    padding: 0 14px;
    outline: none;
}
.t-field input::placeholder { color: rgba(247,243,236,.38); }
.t-field input:focus, .t-field select:focus { border-color: var(--t-gold-2); }
.t-cta__note { font-size: 12px; color: rgba(247,243,236,.45); line-height: 1.6; }

/* ===== Footer ===== */
.t-footer { background: var(--t-paper-2); border-top: 1px solid var(--t-line); padding: 58px 0 26px; }
.t-footer__grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 44px; }
.t-footer__brand { font-family: var(--t-serif); font-size: 26px; letter-spacing: .22em; text-transform: uppercase; color: var(--t-ink); }
.t-footer p { font-size: 14px; line-height: 1.8; color: var(--t-muted); max-width: 300px; }
.t-footer__title { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--t-gold); margin-bottom: 16px; }
.t-footer__links { display: grid; gap: 9px; }
.t-footer__links a { font-size: 14px; color: var(--t-ink-2); }
.t-footer__links a:hover { color: var(--t-gold); }
.t-footer__bottom { margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--t-line); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--t-muted); }

/* ===== Breadcrumbs ===== */
.t-crumbs { padding: 22px 0 0; font-size: 12px; letter-spacing: .06em; color: var(--t-muted); }
.t-crumbs a:hover { color: var(--t-gold); }
.t-crumbs a + a::before, .t-crumbs a + span::before { content: '/'; margin: 0 8px; color: var(--t-line); }

/* ===== Category page ===== */
.t-cat-hero { padding: 40px 0 0; }
.t-cat-hero__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin: 22px 0 30px; }
.t-cat-hero__count { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--t-muted); }
.t-filters { background: var(--t-white); border: 1px solid var(--t-line); display: grid; grid-template-columns: repeat(5, 1fr) auto; }
.t-filters .t-search__field { border-right: 1px solid var(--t-line); }
.t-filters .t-search__go { width: 64px; }
.t-listing { padding: 40px 0 20px; }
.t-listing .t-objects { grid-template-columns: repeat(3, 1fr); }
.t-pagination { display: flex; align-items: center; gap: 8px; margin: 38px 0 0; }
.t-pagination a, .t-pagination span {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--t-line); font-size: 12px; color: var(--t-ink-2); background: transparent;
}
.t-pagination .is-active { background: var(--t-ink); border-color: var(--t-ink); color: var(--t-paper); }
.t-seo { padding: 54px 0 84px; border-top: 1px solid var(--t-line); margin-top: 54px; }
.t-seo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.t-seo h2 { font-family: var(--t-serif); font-size: 30px; font-weight: 500; color: var(--t-ink); margin: 0 0 14px; }
.t-seo p { font-size: 14px; line-height: 1.85; color: var(--t-muted); margin: 0 0 12px; }

/* ===== Item page ===== */
.t-item { padding: 32px 0 0; }
.t-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin: 20px 0 28px; }
.t-item__title { font-family: var(--t-serif); font-size: clamp(34px, 4vw, 54px); font-weight: 500; line-height: 1.02; color: var(--t-ink); margin: 8px 0 10px; }
.t-item__addr { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--t-muted); }
.t-item__price { font-family: var(--t-serif); font-size: clamp(30px, 3.4vw, 44px); color: var(--t-ink); white-space: nowrap; }
.t-item__price span { display: block; font-family: var(--t-sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--t-muted); text-align: right; margin-top: 4px; }
.t-gallery { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.t-gallery__main { position: relative; min-height: 520px; overflow: hidden; background: var(--t-paper-2); }
.t-gallery__main img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.t-gallery__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.t-gallery__side a { position: relative; overflow: hidden; min-height: 0; background: var(--t-paper-2); }
.t-gallery__side img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .4s ease; }
.t-gallery__side a:hover img { transform: scale(1.04); }
.t-gallery__more { position: absolute; right: 14px; bottom: 14px; background: rgba(247,243,236,.92); color: var(--t-ink); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; }
.t-item__layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; padding: 54px 0 84px; }
.t-specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--t-line); border-left: 1px solid var(--t-line); margin: 26px 0 34px; }
.t-spec { padding: 16px 18px; border-right: 1px solid var(--t-line); border-bottom: 1px solid var(--t-line); }
.t-spec span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--t-gold); margin-bottom: 3px; }
.t-spec b { font-size: 14px; font-weight: 500; color: var(--t-ink); }
.t-item__text h2 { font-family: var(--t-serif); font-size: 30px; font-weight: 500; color: var(--t-ink); margin: 0 0 14px; }
.t-item__text p { font-size: 15px; line-height: 1.9; color: var(--t-muted); margin: 0 0 14px; }
.t-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.t-feature { font-size: 12px; letter-spacing: .04em; color: var(--t-ink-2); border: 1px solid var(--t-line); padding: 7px 11px; background: var(--t-white); }
.t-agent { background: var(--t-white); border: 1px solid var(--t-line); padding: 28px; position: sticky; top: 110px; align-self: start; }
.t-agent__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.t-agent__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.t-agent__photo--initials { display: flex; align-items: center; justify-content: center; background: var(--t-paper-2); color: var(--t-gold); font-family: var(--t-serif); font-size: 22px; }
.t-agent__name { font-family: var(--t-serif); font-size: 24px; color: var(--t-ink); }
.t-agent__role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--t-muted); }
.t-agent p { font-size: 14px; line-height: 1.75; color: var(--t-muted); }
.t-agent__phone { display: block; margin: 18px 0 14px; font-family: var(--t-serif); font-size: 28px; color: var(--t-ink); }
.t-agent .t-btn { width: 100%; }
.t-agent__note { margin-top: 12px; font-size: 12px; color: var(--t-muted); text-align: center; }
.t-similar { padding: 0 0 84px; }
.t-similar .t-objects { grid-template-columns: repeat(3, 1fr); }

/* ===== Mobile ===== */
@media (max-width: 1100px) {
    .t-hero__grid, .t-about, .t-cta__inner { grid-template-columns: 1fr; gap: 40px; }
    .t-hero__photo { height: 460px; }
    .t-hero__badge { left: 18px; bottom: 18px; }
    .t-hero__note { display: none; }
    .t-objects, .t-listing .t-objects, .t-similar .t-objects { grid-template-columns: 1fr 1fr; }
    .t-districts, .t-services { grid-template-columns: 1fr 1fr; }
    .t-service:nth-child(odd) { padding-left: 0; }
    .t-service:nth-child(even) { border-right: 0; padding-right: 0; }
    .t-service:nth-child(n+3) { border-top: 1px solid var(--t-line); }
    .t-gallery, .t-item__layout { grid-template-columns: 1fr; }
    .t-gallery__main { min-height: 420px; }
    .t-gallery__side { grid-template-columns: 1fr 1fr; grid-template-rows: 180px; }
    .t-agent { position: static; }
    .t-nav { display: none; }
    .t-header__phone { display: none; }
    .t-burger { display: inline-flex; }
    .t-header.is-open .t-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--t-paper);
        border-bottom: 1px solid var(--t-line);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 20px 20px;
        box-shadow: var(--t-shadow);
    }
    .t-header.is-open .t-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--t-line); }
}
@media (max-width: 860px) {
    .t-wrap, .t-wrap--narrow { width: min(100% - 40px, 1240px); }
    .t-topbar__group:last-child { display: none; }
    .t-header__inner { min-height: 70px; }
    .t-nav { display: none; }
    .t-header__phone { display: inline-block; font-size: 12px; }
    .t-header__side { gap: 10px; }
    .t-header__side .t-btn { display: none; }
    .t-burger { display: inline-flex; }
    .t-header.is-open .t-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--t-paper);
        border-bottom: 1px solid var(--t-line);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 20px 20px;
        box-shadow: var(--t-shadow);
    }
    .t-header.is-open .t-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--t-line); }
    .t-hero { padding-top: 40px; }
    .t-hero__photo { height: 400px; }
    .t-search, .t-filters { grid-template-columns: 1fr 1fr; }
    .t-search__field:nth-child(2n) { border-right: 0; }
    .t-search__go, .t-filters .t-search__go { grid-column: 1 / -1; width: 100%; height: 48px; }
    .t-stats__grid { grid-template-columns: 1fr 1fr; }
    .t-stat:nth-child(2) { border-right: 0; }
    .t-stat:nth-child(-n+2) { border-bottom: 1px solid var(--t-line); }
    .t-section { padding: 58px 0; }
    .t-section__head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .t-objects, .t-listing .t-objects, .t-similar .t-objects, .t-reviews, .t-seo__grid, .t-footer__grid { grid-template-columns: 1fr; }
    .t-districts { grid-template-columns: 1fr 1fr; }
    .t-services { grid-template-columns: 1fr; }
    .t-service { border-right: 0; border-bottom: 1px solid var(--t-line); padding: 22px 0; }
    .t-item__head { flex-direction: column; gap: 12px; }
    .t-item__price { text-align: left; }
    .t-item__price span { text-align: left; }
    .t-footer__bottom { flex-direction: column; }
}
@media (max-width: 560px) {
    .t-wrap, .t-wrap--narrow { width: calc(100% - 32px); }
    .t-topbar__inner { justify-content: center; }
    .t-topbar__group { gap: 14px; }
    .t-hero__photo { height: 330px; border-radius: 170px 170px 12px 12px; }
    .t-hero__badge { padding: 12px 14px; min-width: 120px; }
    .t-hero__badge b { font-size: 26px; }
    .t-search, .t-filters { grid-template-columns: 1fr; }
    .t-search__field { border-right: 0; border-bottom: 1px solid var(--t-line); }
    .t-search__field:last-of-type { border-bottom: 0; }
    .t-districts { grid-template-columns: 1fr; }
    .t-district { min-height: 200px; }
    .t-gallery__side { grid-template-columns: 1fr; grid-template-rows: 140px 140px; }
}

/* ===== Inner pages ===== */
.t-page-hero { padding: 46px 0 30px; }
.t-page-hero .t-lead { margin-top: 20px; }
.t-page-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }

.t-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.t-service-card { background: var(--t-white); border: 1px solid var(--t-line); padding: 28px 26px 26px; display: flex; flex-direction: column; min-height: 250px; transition: transform .2s ease, box-shadow .2s ease; }
.t-service-card:hover { transform: translateY(-4px); box-shadow: var(--t-shadow); }
.t-service-card__num { font-size: 12px; letter-spacing: .18em; color: var(--t-gold); }
.t-service-card h3 { font-family: var(--t-serif); font-size: 27px; font-weight: 500; line-height: 1.1; color: var(--t-ink); margin: 16px 0 10px; }
.t-service-card p { font-size: 14px; line-height: 1.75; color: var(--t-muted); margin: 0 0 18px; }
.t-service-card a { margin-top: auto; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--t-gold); border-bottom: 1px solid var(--t-gold); padding-bottom: 3px; align-self: flex-start; }

.t-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--t-line); }
.t-step { padding: 26px 26px 0 0; border-right: 1px solid var(--t-line); }
.t-step:last-child { border-right: 0; padding-right: 0; }
.t-step b { display: block; font-family: var(--t-serif); font-size: 34px; font-weight: 500; color: var(--t-gold); line-height: 1; }
.t-step h3 { font-family: var(--t-serif); font-size: 22px; font-weight: 500; color: var(--t-ink); margin: 12px 0 8px; }
.t-step p { font-size: 14px; line-height: 1.7; color: var(--t-muted); margin: 0; }

.t-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-review-grid .t-review { padding: 24px 24px 22px; }
.t-review-grid .t-review p { font-size: 19px; }
.t-rating { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.t-rating b { font-family: var(--t-serif); font-size: 54px; line-height: 1; color: var(--t-ink); }
.t-rating span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--t-muted); }
.t-rating__stars { color: var(--t-gold); letter-spacing: .18em; font-size: 15px; }

.t-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.t-contact-list { display: grid; gap: 22px; margin-top: 26px; }
.t-contact-item span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--t-gold); margin-bottom: 4px; }
.t-contact-item b, .t-contact-item a { font-size: 16px; font-weight: 500; color: var(--t-ink); }
.t-contact-item a:hover { color: var(--t-gold); }
.t-contact-form { background: var(--t-white); border: 1px solid var(--t-line); padding: 30px; display: grid; gap: 14px; }
.t-contact-form .t-field span { color: var(--t-gold); }
.t-contact-form .t-field input, .t-contact-form .t-field select, .t-contact-form .t-field textarea {
    border-color: var(--t-line);
    color: var(--t-ink);
    background: transparent;
}
.t-contact-form .t-field input::placeholder, .t-contact-form .t-field textarea::placeholder { color: var(--t-muted); }
.t-contact-form .t-field textarea { min-height: 100px; padding: 12px 14px; resize: vertical; }
.t-map { height: 380px; margin-top: 54px; background: var(--t-paper-2); border: 1px solid var(--t-line); position: relative; overflow: hidden; }
.t-map::before { content: ''; position: absolute; inset: -20%; background-image: linear-gradient(90deg, transparent 49.4%, rgba(31,42,36,.08) 49.4%, rgba(31,42,36,.08) 50.6%, transparent 50.6%), linear-gradient(0deg, transparent 49.4%, rgba(31,42,36,.08) 49.4%, rgba(31,42,36,.08) 50.6%, transparent 50.6%); background-size: 90px 90px; transform: rotate(-12deg); }
.t-map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); text-align: center; }
.t-map__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--t-gold); border: 4px solid var(--t-paper); box-shadow: 0 0 0 1px var(--t-gold); margin: 0 auto; }
.t-map__label { margin-top: 10px; background: var(--t-paper); border: 1px solid var(--t-gold); padding: 8px 12px; font-size: 12px; letter-spacing: .06em; color: var(--t-ink); white-space: nowrap; }

.t-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.t-person { background: var(--t-white); border: 1px solid var(--t-line); }
.t-person__avatar { height: 280px; background: var(--t-paper-2); display: flex; align-items: center; justify-content: center; font-family: var(--t-serif); font-size: 64px; color: var(--t-gold-2); }
.t-person__body { padding: 18px 20px 22px; }
.t-person__body b { display: block; font-family: var(--t-serif); font-size: 24px; font-weight: 500; color: var(--t-ink); }
.t-person__body span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--t-muted); margin-top: 4px; }
.t-person__body p { font-size: 14px; line-height: 1.7; color: var(--t-muted); margin: 12px 0 0; }

.t-article { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; padding: 46px 0 84px; }
.t-article h2 { font-family: var(--t-serif); font-size: 30px; font-weight: 500; color: var(--t-ink); margin: 0 0 14px; }
.t-article p { font-size: 15px; line-height: 1.9; color: var(--t-muted); margin: 0 0 14px; }
.t-article ul { margin: 0 0 22px; padding: 0 0 0 18px; color: var(--t-muted); font-size: 15px; line-height: 2; }
.t-article li::marker { color: var(--t-gold); }
.t-sidecard { background: var(--t-white); border: 1px solid var(--t-line); padding: 28px; position: sticky; top: 110px; align-self: start; }
.t-sidecard__price { font-family: var(--t-serif); font-size: 34px; color: var(--t-ink); margin-bottom: 6px; }
.t-sidecard__note { font-size: 12px; color: var(--t-muted); margin-bottom: 20px; }
.t-sidecard .t-btn { width: 100%; margin-bottom: 10px; }
.t-sidecard__list { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--t-line); }
.t-sidecard__list span { font-size: 12px; color: var(--t-muted); }
.t-sidecard__list b { color: var(--t-ink); font-weight: 500; }

@media (max-width: 1100px) {
    .t-service-grid, .t-review-grid, .t-team { grid-template-columns: 1fr 1fr; }
    .t-steps { grid-template-columns: 1fr 1fr; }
    .t-step:nth-child(2) { border-right: 0; }
    .t-contact-grid, .t-article { grid-template-columns: 1fr; gap: 36px; }
    .t-sidecard { position: static; }
}
@media (max-width: 860px) {
    .t-page-hero__row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .t-service-grid, .t-review-grid, .t-team, .t-steps { grid-template-columns: 1fr; }
    .t-step { border-right: 0; border-bottom: 1px solid var(--t-line); padding: 22px 0; }
    .t-step:last-child { border-bottom: 0; }
    .t-map { height: 300px; margin-top: 36px; }
}

/* ===== CMS integration: Terra over the realty markup ===== */
.t-search select,
.t-search input {
    width: 100%;
    height: 22px;
    border: 0;
    background: transparent;
    color: var(--t-ink);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}
.t-search select { cursor: pointer; }

.t-content { padding: 0; }

.t-up {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1036;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--t-ink);
    color: var(--t-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 22px rgba(31,42,36,.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.t-up.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.rt-debug-fab {
    position: fixed;
    right: 16px;
    bottom: 72px;
    z-index: 1037;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--t-ink);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(31,42,36,.25);
}
.rt-debug-fab:hover { background: var(--t-gold); color: #fff; }
.rt-debug-fab .icms-svg-icon { width: 20px; height: 20px; }

/* Category page */
body.t-body .rt-hero {
    background: var(--t-paper) !important;
    color: var(--t-ink);
    padding: 0;
}
body.t-body .rt-hero::before { display: none !important; }
body.t-body .rt-hero__inner {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding: 44px 0 26px;
    text-align: left;
}
body.t-body .rt-hero__title {
    font-family: var(--t-serif);
    font-weight: 500;
    font-size: clamp(40px, 5vw, 68px);
    line-height: .98;
    letter-spacing: -.02em;
    color: var(--t-ink);
}
body.t-body .rt-hero__sub {
    margin-top: 14px;
    color: var(--t-muted);
    font-size: 16px;
    line-height: 1.8;
    max-width: 620px;
}
body.t-body .rt-hero__filter { margin-top: 26px; }

body.t-body .rt-filter {
    background: var(--t-white);
    border: 1px solid var(--t-line);
    padding: 18px;
}
body.t-body .rt-filter__group-title,
body.t-body .rt-field__label {
    display: block;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--t-gold);
    margin-bottom: 5px;
    font-weight: 600;
}
body.t-body .rt-field__control,
body.t-body .rt-filter input[type="text"],
body.t-body .rt-filter input[type="number"] {
    width: 100%;
    height: 46px;
    border: 1px solid var(--t-line);
    border-radius: 0;
    background: transparent;
    color: var(--t-ink);
    font-size: 14px;
    padding: 0 12px;
    outline: none;
}
body.t-body .rt-field__control:focus,
body.t-body .rt-filter select:focus,
body.t-body .rt-filter input:focus {
    border-color: var(--t-gold);
    box-shadow: none;
}
body.t-body .rt-seg { display: flex; flex-wrap: wrap; gap: 8px; }
body.t-body .rt-seg__btn {
    height: 46px;
    border: 1px solid var(--t-line);
    border-radius: 0;
    background: transparent;
    color: var(--t-ink-2);
    padding: 0 12px;
    font-size: 14px;
}
body.t-body .rt-seg__btn:hover { border-color: var(--t-gold); color: var(--t-gold); }
body.t-body .rt-seg__btn.is-active { background: var(--t-ink); color: var(--t-paper); border-color: var(--t-ink); }
body.t-body .rt-filter__actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
body.t-body .rt-filter__actions button[type="submit"] {
    height: 46px;
    min-height: 46px;
    padding: 0 22px;
    background: var(--t-ink);
    color: var(--t-paper);
    border: 1px solid var(--t-ink);
    border-radius: 0;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
body.t-body .rt-filter__actions button[type="submit"]:hover { background: var(--t-gold); border-color: var(--t-gold); }
body.t-body .rt-filter__reset { padding: 0; background: transparent; border: 0; color: var(--t-muted); font-size: 12px; text-decoration: underline; }
body.t-body .rt-filter__reset:hover { color: var(--t-gold); }
body.t-body .rt-chip { border: 1px solid var(--t-line); border-radius: 0; background: var(--t-paper); color: var(--t-ink-2); font-size: 12px; padding: 5px 8px; }
body.t-body .rt-chip__x { color: var(--t-gold); }

body.t-body .rt-cat {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding: 26px 0 48px;
}
body.t-body .rt-cat__head { align-items: flex-start; }
body.t-body .rt-cat__title {
    font-family: var(--t-serif);
    font-weight: 500;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1;
    color: var(--t-ink);
    margin: 0;
}
body.t-body .rt-crumbs { color: var(--t-muted); font-size: 12px; letter-spacing: .04em; }
body.t-body .rt-crumbs a:hover { color: var(--t-gold); }
body.t-body .rt-cat__seo { color: var(--t-muted); font-size: 15px; line-height: 1.85; }
body.t-body .rt-cat__seo h2 { font-family: var(--t-serif); font-size: 30px; font-weight: 500; color: var(--t-ink); }
body.t-body .rt-actions__btn { border: 1px solid var(--t-line); background: transparent; color: var(--t-ink); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; }
body.t-body .rt-actions__btn:hover { border-color: var(--t-gold); color: var(--t-gold); }

body.t-body .pagination { display: flex; gap: 8px; margin-top: 36px; }
body.t-body .pagination a, body.t-body .pagination span {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--t-line) !important;
    background: transparent !important;
    color: var(--t-ink-2) !important;
    font-size: 12px;
    border-radius: 0 !important;
}
body.t-body .pagination .active, body.t-body .pagination .current {
    background: var(--t-ink) !important;
    border-color: var(--t-ink) !important;
    color: var(--t-paper) !important;
}
body.t-body .rt-empty { text-align: center; padding: 60px 20px; border: 1px solid var(--t-line); background: var(--t-white); }
body.t-body .rt-empty__title { font-family: var(--t-serif); font-size: 30px; color: var(--t-ink); margin: 12px 0 6px; }
body.t-body .rt-empty__text { color: var(--t-muted); font-size: 14px; }
body.t-body .rt-empty__icon svg { color: var(--t-gold); }

/* Item page */
body.t-body .rt-item {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding: 30px 0 60px;
}
body.t-body .rt-item__title {
    font-family: var(--t-serif);
    font-weight: 500;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.02;
    color: var(--t-ink);
}
body.t-body .rt-item__price { font-family: var(--t-serif); color: var(--t-ink); }
body.t-body .rt-item__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 42px; }
body.t-body .rt-item__media { min-width: 0; }
body.t-body .rt-item__spec-label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--t-gold); margin-bottom: 3px; }
body.t-body .rt-item__spec-value { color: var(--t-ink); font-size: 14px; }
body.t-body .rt-item__specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--t-line); border-left: 1px solid var(--t-line); }
body.t-body .rt-item__specs > * { padding: 12px 14px; border-right: 1px solid var(--t-line); border-bottom: 1px solid var(--t-line); }
body.t-body .rt-item__realtor, body.t-body .rt-item__side {
    background: var(--t-white);
    border: 1px solid var(--t-line);
    padding: 24px;
}
body.t-body .rt-item__seo { border-top: 1px solid var(--t-line); padding-top: 24px; color: var(--t-muted); }
body.t-body .rt-item__desc { font-size: 15px; line-height: 1.9; color: var(--t-muted); }
body.t-body .rt-item__desc h2, body.t-body .rt-item__seo h2 { font-family: var(--t-serif); font-size: 30px; font-weight: 500; color: var(--t-ink); }
body.t-body .rt-item__similar .rt-section-title { font-family: var(--t-serif); color: var(--t-ink); }
body.t-body .rt-gallery__main, body.t-body .rt-gallery__stage { background: var(--t-paper-2); }

@media (max-width: 860px) {
    body.t-body .rt-hero__inner,
    body.t-body .rt-cat,
    body.t-body .rt-item { width: calc(100% - 32px); }
    body.t-body .rt-filter__fields { grid-template-columns: 1fr; }
    body.t-body .rt-item__grid { grid-template-columns: 1fr; }
}

/* Фильтр категории: возвращаем общий поток полей, как в realty,
   но в оформлении Terra. */
body.t-body .rt-filter__fields,
body.t-body .rt-filter__group,
body.t-body .rt-filter__group-fields {
    display: contents;
}
body.t-body .rt-filter__group-title { display: none; }
body.t-body .rt-filter {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 20px;
}
body.t-body .rt-hero { text-align: left; }
body.t-body .rt-hero__inner { text-align: left; }
body.t-body .rt-hero__filter { margin-left: 0; margin-right: 0; max-width: none; }

@media (max-width: 1320px) {
    body.t-body .rt-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    body.t-body .rt-filter { grid-template-columns: minmax(0, 1fr); }
}

/* Компактная строка фильтра на категории: кнопка справа от полей. */
body.t-body .rt-filter {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: start;
}
body.t-body .rt-filter__actions {
    grid-column: 5;
    grid-row: 1;
    align-self: end;
    justify-content: flex-end;
    margin: 0;
}
body.t-body .rt-filter__chips {
    grid-column: 1 / -1;
    align-items: center;
}
body.t-body .rt-filter__chips .rt-filter__reset { margin-left: auto; }
/* Комнаты: компактные сегменты должны помещаться в одну строку,
   иначе группа выше остальных полей и подписи разъезжаются. */
body.t-body .rt-field[data-el="param4-wrap"] .rt-seg { gap: 4px; }
body.t-body .rt-field[data-el="param4-wrap"] .rt-seg__btn {
    padding: 0 4px;
    font-size: 13px;
}
@media (max-width: 1320px) {
    body.t-body .rt-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.t-body .rt-filter__actions { grid-column: 1 / -1; grid-row: auto; margin-top: 8px; justify-content: flex-start; }
}
@media (max-width: 575px) {
    body.t-body .rt-filter { grid-template-columns: minmax(0, 1fr); }
}

/* Ядро добавляет пустой select в nav для мобильного меню.
   В Terra-шапке он не нужен и выглядит лишней стрелкой. */
body.t-body .mobile_menu_select { display: none !important; }

/* ===== Внутренние страницы не-недвижимости ===== */
.t-content--narrow {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding: 8px 0 64px;
}
.t-content--narrow .t-objects { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Отзывы: штатный список превращаем в сетку карточек. */
body.t-body .reviews_list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}
body.t-body .reviews_list_item {
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 24px !important;
    background: var(--t-white);
    border: 1px solid var(--t-line) !important;
}
body.t-body .reviews_list_item .f_title h2 {
    font-family: var(--t-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--t-ink);
    margin: 0 0 10px;
}
body.t-body .reviews_list_item .f_title h2 a { color: inherit; text-decoration: none; }
body.t-body .reviews_list_item .f_content .value {
    font-size: 14px;
    line-height: 1.75;
    color: var(--t-muted);
}
body.t-body .reviews_list_item .f_teaser { display: none; }
body.t-body .reviews_list_item .f_rating { margin-top: 14px; }
body.t-body .reviews_list_item .f_rating .value {
    font-size: 14px;
    color: var(--t-gold);
    letter-spacing: .12em;
}
body.t-body .reviews_list_item .f_rating .value::before { content: '★ '; }
body.t-body .reviews_list_item .f_author_name { margin-top: 10px; }
body.t-body .reviews_list_item .f_author_name .value {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--t-muted);
}
body.t-body .reviews_list_item .info_bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid var(--t-line);
    background: transparent;
    font-size: 12px;
    color: var(--t-muted);
}
body.t-body .reviews_list_item .info_bar .bar_item { margin: 0; }
body.t-body .reviews_list_item .info_bar .time { display: none; }

@media (max-width: 991px) {
    .t-content--narrow .t-objects,
    body.t-body .reviews_list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .t-content--narrow { width: calc(100% - 32px); }
    .t-content--narrow .t-objects,
    body.t-body .reviews_list { grid-template-columns: 1fr; }
}


/* Детальная страница: риэлтор и похожие объекты. */
body.t-body .rt-item__realtor h2,
body.t-body .rt-item__similar h2 {
    font-family: var(--t-serif);
    font-size: 30px;
    font-weight: 500;
    color: var(--t-ink);
}
body.t-body .rt-realtor__name {
    font-family: var(--t-serif);
    font-size: 24px;
    color: var(--t-ink);
}
body.t-body .rt-item__realtor .rt-btn {
    background: var(--t-ink);
    border: 1px solid var(--t-ink);
    color: var(--t-paper);
    border-radius: 0;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
body.t-body .rt-item__realtor .rt-btn:hover {
    background: var(--t-gold);
    border-color: var(--t-gold);
}
body.t-body .rt-item__similar .rt-card {
    background: var(--t-white);
    border: 1px solid var(--t-line);
    border-radius: 0;
}
body.t-body .rt-item__similar .rt-card__price {
    background: var(--t-ink);
    color: var(--t-paper);
    border-radius: 0;
}
body.t-body .rt-item__similar .rt-card__title {
    font-family: var(--t-serif);
    font-size: 20px;
    color: var(--t-ink);
}

.t-contact-form .t-field textarea { width: 100%; }

/* Карточки услуг и служебных разделов внутри узкой обёртки. */
.t-content--narrow .rt-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.t-content--narrow .rt-card {
    background: var(--t-white);
    border: 1px solid var(--t-line);
    border-radius: 0;
    overflow: hidden;
}
.t-content--narrow .rt-card__media { border-radius: 0; }
.t-content--narrow .rt-card__title {
    font-family: var(--t-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--t-ink);
}
.t-content--narrow .rt-card__place {
    font-size: 14px;
    line-height: 1.7;
    color: var(--t-muted);
}
@media (max-width: 991px) {
    .t-content--narrow .rt-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .t-content--narrow .rt-cards { grid-template-columns: 1fr; }
}

/* Категория: заголовок и фильтр до сетки объектов. */
.t-cat-hero { padding: 34px 0 0; }
.t-cat-filter { margin-top: 24px; }
.t-cat-desc {
    max-width: 760px;
    margin-top: 14px;
    color: var(--t-muted);
    font-size: 15px;
    line-height: 1.8;
}
.t-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.t-subcats a {
    display: inline-block;
    border: 1px solid var(--t-line);
    padding: 7px 11px;
    font-size: 12px;
    color: var(--t-ink-2);
}
.t-subcats a:hover { border-color: var(--t-gold); color: var(--t-gold); }

/* Пагинация штатного списка контента. */
body.t-body .pagebar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}
body.t-body .pagebar_nav,
body.t-body .pagebar_pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.t-body .pagebar_page,
body.t-body .pagebar_current {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--t-line);
    background: transparent;
    color: var(--t-ink-2);
    font-size: 12px;
    line-height: 1;
}
body.t-body .pagebar_current {
    background: var(--t-ink);
    border-color: var(--t-ink);
    color: var(--t-paper);
}
body.t-body .pagebar_page:hover {
    border-color: var(--t-gold);
    color: var(--t-gold);
}
body.t-body .pagebar_notice {
    width: 100%;
    font-size: 12px;
    color: var(--t-muted);
}

/* Демо-карточки услуг без фото: подставляем фактурную подложку Terra. */
body.t-body .t-content--narrow .rt-card__media {
    background-image: url('/templates/realty_terra/images/house.jpg') !important;
    background-size: cover;
    background-position: center;
}

/* ===== Select2 в фильтре под Terra ===== */
body.t-body .rt-filter .select2-container--default .select2-selection--single,
body.t-body .select2-container--default .select2-selection--single {
    height: 46px !important;
    padding: 0 12px !important;
    background: var(--t-white) !important;
    border: 1px solid var(--t-line) !important;
    border-radius: 0 !important;
}
body.t-body .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 26px 0 0 !important;
    line-height: 44px !important;
    font-size: 14px !important;
    color: var(--t-ink) !important;
}
body.t-body .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--t-muted) !important;
}
body.t-body .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0 !important;
    right: 10px !important;
    height: 44px !important;
}
body.t-body .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--t-muted) transparent transparent transparent !important;
}
body.t-body .select2-container--default.select2-container--focus .select2-selection--single,
body.t-body .select2-container--default.select2-container--open .select2-selection--single,
body.t-body .rt-filter .select2-container--default.select2-container--focus .select2-selection--single,
body.t-body .rt-filter .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--t-gold) !important;
    box-shadow: none !important;
}
body.t-body .select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--t-gold) transparent !important;
}
body.t-body .select2-dropdown {
    background: var(--t-white) !important;
    border: 1px solid var(--t-line) !important;
    border-radius: 0 !important;
    box-shadow: 0 18px 40px rgba(31, 42, 36, .12) !important;
    overflow: hidden;
}
body.t-body .select2-search--dropdown { padding: 8px !important; }
body.t-body .select2-search--dropdown .select2-search__field {
    height: 38px !important;
    padding: 0 10px !important;
    background: var(--t-white) !important;
    border: 1px solid var(--t-line) !important;
    border-radius: 0 !important;
    color: var(--t-ink) !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: none !important;
}
body.t-body .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--t-gold) !important;
    box-shadow: none !important;
}
body.t-body .select2-results__option {
    padding: 10px 12px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--t-ink-2) !important;
    font-size: 14px !important;
}
body.t-body .select2-results__option--highlighted[aria-selected] {
    background: var(--t-paper-2) !important;
    color: var(--t-ink) !important;
}
body.t-body .select2-results__option[aria-selected="true"] {
    color: var(--t-gold) !important;
    background: transparent !important;
}
body.t-body .select2-container--default .select2-results__option--group {
    color: var(--t-gold) !important;
    font-size: 12px !important;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Мультивыбор «Метро / районы» в фильтре. */
body.t-body .rt-ms__toggle {
    height: 46px;
    padding: 0 12px;
    background: var(--t-white);
    border: 1px solid var(--t-line);
    border-radius: 0;
    color: var(--t-ink);
    font-size: 14px;
}
body.t-body .rt-ms.is-open .rt-ms__toggle,
body.t-body .rt-ms__toggle:hover,
body.t-body .rt-ms__toggle:focus {
    border-color: var(--t-gold);
    outline: none;
}
body.t-body .rt-ms__summary { font-size: 14px; }
body.t-body .rt-ms__count {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: var(--t-gold);
    color: #fff;
    border-radius: 0;
    font-size: 12px;
    line-height: 18px;
}
body.t-body .rt-ms__angle {
    border-color: var(--t-muted);
}
body.t-body .rt-ms.is-open .rt-ms__angle {
    border-color: var(--t-gold);
}
body.t-body .rt-ms__panel {
    background: var(--t-white);
    border: 1px solid var(--t-line);
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(31, 42, 36, .12);
    padding: 8px;
}
body.t-body .rt-ms__opt {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 0;
    font-size: 14px;
    color: var(--t-ink-2);
}
body.t-body .rt-ms__opt:hover {
    background: var(--t-paper-2);
    color: var(--t-ink);
}
body.t-body .rt-ms__opt input {
    accent-color: var(--t-gold);
}

/* Модалка «Метро / Районы»: цвета, форма и типографика Terra. */
body.t-body .rt-geo-modal__backdrop {
    background: rgba(31, 42, 36, .5);
}
body.t-body .rt-geo-modal__dialog {
    background: var(--t-white);
    border: 1px solid var(--t-line);
    border-radius: 0;
    box-shadow: 0 24px 60px rgba(31, 42, 36, .2);
}
body.t-body .rt-geo-modal__close {
    border-radius: 0;
    color: var(--t-muted);
    font-size: 24px;
}
body.t-body .rt-geo-modal__close:hover {
    background: var(--t-paper-2);
    color: var(--t-ink);
}
body.t-body .rt-geo-modal__tabs {
    gap: 28px;
    border-bottom-color: var(--t-line);
}
body.t-body .rt-geo-modal__tab {
    color: var(--t-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
body.t-body .rt-geo-modal__tab:hover { color: var(--t-ink); }
body.t-body .rt-geo-modal__tab.is-active { color: var(--t-ink); }
body.t-body .rt-geo-modal__tab.is-active::after {
    height: 1px;
    background: var(--t-gold);
}
body.t-body .rt-geo-modal__search {
    height: 46px;
    padding: 0 12px;
    border-radius: 0;
    background: transparent;
    color: var(--t-ink);
    font-size: 14px;
}
body.t-body .rt-geo-modal__search:focus {
    border-color: var(--t-gold);
    box-shadow: none;
}
body.t-body .rt-geo__title {
    margin: 6px 6px 6px;
    color: var(--t-gold);
    font-size: 12px;
    letter-spacing: .14em;
}
body.t-body .rt-geo-empty {
    color: var(--t-muted);
    font-size: 14px;
}
body.t-body .rt-geo-modal__footer {
    border-top-color: var(--t-line);
}
body.t-body .rt-geo-modal__reset {
    color: var(--t-muted);
    font-size: 12px;
}
body.t-body .rt-geo-modal__reset:hover { color: var(--t-gold); }
body.t-body .rt-geo-modal__done {
    height: 46px;
    padding: 0 28px;
    border: 1px solid var(--t-ink);
    border-radius: 0;
    background: var(--t-ink);
    color: var(--t-paper);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
body.t-body .rt-geo-modal__done:hover {
    background: var(--t-gold);
    border-color: var(--t-gold);
}

/* Форма атрибутов объекта: те же квадратные контролы и палитра Terra. */
body.t-body .rt-attrs .rt-attrs__group {
    border-color: var(--t-line);
    border-radius: 0;
    background: var(--t-white);
}
body.t-body .rt-attrs .rt-attrs__legend {
    color: var(--t-gold);
    font-size: 12px;
    letter-spacing: .14em;
}
body.t-body .rt-attr__label {
    color: var(--t-ink-2);
    font-size: 14px;
}
body.t-body .rt-attr__control {
    height: 46px;
    border-color: var(--t-line);
    border-radius: 0;
    background: transparent;
    color: var(--t-ink);
    font-size: 14px;
}
body.t-body textarea.rt-attr__control {
    height: auto;
    padding: 10px 12px;
}
body.t-body .rt-attr__control:focus {
    border-color: var(--t-gold);
    box-shadow: none;
}
body.t-body .rt-attr__checks {
    border-color: var(--t-line);
    border-radius: 0;
}
body.t-body .rt-attr__check,
body.t-body .rt-attr__bool {
    color: var(--t-ink-2);
    font-size: 14px;
}
body.t-body .rt-attr__check input { accent-color: var(--t-gold); }
body.t-body .rt-attr__hint { color: var(--t-muted); }

/* Админ-ярлычки виджетов: видны всегда, ярче при наведении. */
body.t-body .rt-widget-wrap--admin > .rt-widget-admin {
    opacity: .55;
    visibility: visible;
}
body.t-body .rt-widget-wrap--admin:hover > .rt-widget-admin,
body.t-body .rt-widget-admin:focus-within {
    opacity: 1;
}

/* ===== Контакты ===== */
body.t-body .t-contact-page { display: grid; gap: 42px; }

body.t-body .t-contact-page__intro {
    max-width: 620px;
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: var(--t-muted);
}

body.t-body .t-contact-page__grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}

body.t-body .t-contact-page__info {
    border-top: 1px solid var(--t-line);
}

body.t-body .t-contact-row {
    padding: 22px 0;
    border-bottom: 1px solid var(--t-line);
}

body.t-body .t-contact-row > span {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--t-gold);
}

body.t-body .t-contact-row b,
body.t-body .t-contact-row > a {
    display: block;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--t-ink);
}

body.t-body .t-contact-row > a:hover { color: var(--t-gold); }

body.t-body .t-contact-row--phone > a {
    font-family: var(--t-serif);
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.05;
}

body.t-body .t-contact-row .t-contact-row__link {
    display: inline-block;
    margin-top: 10px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--t-gold);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--t-gold);
}

body.t-body .t-contact-row .t-contact-row__link:hover {
    color: var(--t-ink);
    border-color: var(--t-ink);
}

body.t-body .t-contact-panel {
    padding: 34px 34px 30px;
    background: var(--t-white);
    border: 1px solid var(--t-line);
}

body.t-body .t-contact-panel .rt-lead,
body.t-body .rt-item .rt-lead {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.t-body .t-contact-panel .rt-lead__title,
body.t-body .rt-item .rt-lead__title {
    margin: 0 0 8px;
    font-family: var(--t-serif);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--t-ink);
}

body.t-body .t-contact-panel .rt-lead__note,
body.t-body .rt-item .rt-lead__note {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--t-muted);
}

body.t-body .t-contact-panel .rt-lead__row,
body.t-body .rt-item .rt-lead__row { gap: 16px; }

body.t-body .t-contact-panel .rt-lead__field,
body.t-body .rt-item .rt-lead__field { margin-bottom: 16px; }

body.t-body .t-contact-panel .rt-lead__field > span,
body.t-body .rt-item .rt-lead__field > span {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--t-gold);
}

body.t-body .t-contact-panel .rt-lead__field input,
body.t-body .t-contact-panel .rt-lead__field textarea,
body.t-body .rt-item .rt-lead__field input,
body.t-body .rt-item .rt-lead__field textarea {
    padding: 13px 14px;
    border: 1px solid var(--t-line);
    border-radius: 0;
    background: var(--t-white);
    color: var(--t-ink);
    font: inherit;
    font-size: 15px;
}

body.t-body .t-contact-panel .rt-lead__field input:focus,
body.t-body .t-contact-panel .rt-lead__field textarea:focus,
body.t-body .rt-item .rt-lead__field input:focus,
body.t-body .rt-item .rt-lead__field textarea:focus {
    border-color: var(--t-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(154, 123, 79, .12);
}

body.t-body .t-contact-panel .rt-lead__field textarea,
body.t-body .rt-item .rt-lead__field textarea { min-height: 130px; }

body.t-body .t-contact-panel .rt-lead__consent,
body.t-body .rt-item .rt-lead__consent {
    margin: 4px 0 20px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--t-muted);
}

body.t-body .t-contact-panel .rt-lead__consent input,
body.t-body .rt-item .rt-lead__consent input {
    margin-top: 2px;
    accent-color: var(--t-gold);
}

body.t-body .t-contact-panel .rt-lead__consent a,
body.t-body .rt-item .rt-lead__consent a {
    color: var(--t-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.t-body .t-contact-panel .rt-lead__consent a:hover,
body.t-body .rt-item .rt-lead__consent a:hover { color: var(--t-ink); }

body.t-body .t-contact-panel .rt-lead__submit,
body.t-body .rt-item .rt-lead__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 30px;
    border: 1px solid var(--t-ink);
    border-radius: 0;
    background: var(--t-ink);
    color: var(--t-paper);
    font-family: var(--t-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

body.t-body .t-contact-panel .rt-lead__submit:hover,
body.t-body .rt-item .rt-lead__submit:hover {
    background: var(--t-gold);
    border-color: var(--t-gold);
    color: #fff;
}

body.t-body .t-contact-panel .rt-lead__alert,
body.t-body .rt-item .rt-lead__alert {
    margin-bottom: 18px;
    border-radius: 0;
    font-size: 14px;
}

/* Форма заявки в тексте услуги: отдельная карточка Terra. */
body.t-body .rt-item .rt-lead {
    margin: 34px 0 0;
    padding: 30px 32px;
    border: 1px solid var(--t-line);
    background: var(--t-white);
}

body.t-body .rt-item .rt-lead__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
    body.t-body .rt-item .rt-lead { padding: 24px 20px; }
    body.t-body .rt-item .rt-lead__row { grid-template-columns: 1fr; }
}

/* Текст услуги идёт в контейнере страницы, без второго сужения. */
body.t-body .t-content--narrow .rt-item {
    width: 100%;
    padding-top: 0;
}

/* Врезки и таблицы в тексте услуги в палитре Terra. */
body.t-body .rt-item__desc .rt-note,
body.t-body .rt-item__html .rt-note {
    border-left: 3px solid var(--t-gold);
    border-radius: 0;
    background: var(--t-paper-2);
}

body.t-body .rt-item__desc table th,
body.t-body .rt-item__html table th {
    background: var(--t-paper-2);
    color: var(--t-ink);
}

body.t-body .rt-item__desc table th,
body.t-body .rt-item__desc table td,
body.t-body .rt-item__html table th,
body.t-body .rt-item__html table td {
    border-color: var(--t-line);
}

body.t-body .t-contact-map {
    background: var(--t-paper-2);
    border: 1px solid var(--t-line);
}

body.t-body .t-contact-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

@media (max-width: 960px) {
    body.t-body .t-contact-page__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 575px) {
    body.t-body .t-contact-panel { padding: 24px 20px 26px; }
    body.t-body .t-contact-panel .rt-lead__title,
    body.t-body .rt-item .rt-lead__title { font-size: 27px; }
    body.t-body .t-contact-row--phone > a { font-size: 30px; }
    body.t-body .t-contact-map iframe { height: 300px; }
}
