.realty{--o:#f36b21;--ink:#202020;max-width:1480px;margin:auto;padding:18px 20px 60px;color:var(--ink);font-family:Arial,sans-serif}.realty *{box-sizing:border-box}.realty-search{position:sticky;top:0;z-index:20;padding:12px 0;background:#fff}.realty-search form{display:grid;grid-template-columns:190px 220px 1fr 110px;height:48px;border:2px solid var(--o);border-radius:14px;overflow:hidden}.realty-search select,.realty-search input{min-width:0;padding:0 14px;border:0;border-right:1px solid #e5e5e5;background:#fff;outline:0}.realty-search button,.realty-filters>button{border:0;background:var(--o);color:#fff;font-weight:700}.realty-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.realty-categories{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:18px 0}.realty-categories a{display:flex;min-height:82px;padding:12px;border-radius:14px;background:#f6f6f6;color:#222;text-decoration:none;align-items:center;gap:10px}.realty-categories i{color:var(--o);font-size:23px}.realty-categories span{font-size:13px;font-weight:700}.realty-filters{display:grid;grid-template-columns:1.25fr 1.1fr 1fr 1.2fr 1fr auto auto;gap:10px;padding:16px;border:1px solid #e7e7e7;border-radius:16px}.realty-filters label,.realty-filters fieldset{min-width:0;margin:0;border:0;font-size:12px}.realty-filters label>span{display:flex}.realty-filters input[type=number],.realty-filters select{width:100%;height:38px;margin-top:5px;padding:0 8px;border:1px solid #ddd;border-radius:8px}.realty-filters fieldset label{margin-right:6px}.realty-filters>button{padding:0 16px;border-radius:10px}.realty-filters>a{align-self:center;color:#777}.realty-results-head{display:flex;align-items:end;justify-content:space-between;margin:26px 0 14px}.realty-results-head h1{margin:0 0 5px;font-size:28px}.realty-results-head>div:last-child{display:flex;gap:6px}.realty-results-head button,.realty-results-head select{height:38px;padding:0 11px;border:1px solid #ddd;border-radius:9px;background:#fff}.realty-results-head button.is-active{border-color:var(--o);color:var(--o)}.realty-list{display:grid;gap:12px}.realty-card{position:relative;display:grid;grid-template-columns:250px 1fr;gap:16px;min-height:190px;padding:10px;border:1px solid #e7e7e7;border-radius:17px;background:#fff}.realty-card__image{display:grid;place-items:center;overflow:hidden;border-radius:12px;background:linear-gradient(135deg,#fff0e7,#ffd7bf);color:var(--o);font-size:55px}.realty-card__image img{width:100%;height:100%;object-fit:cover}.realty-card__title{display:block;margin:5px 45px 9px 0;color:#222;text-decoration:none;font-size:19px;font-weight:700}.realty-card b{display:block;margin-bottom:8px;font-size:22px}.realty-card strong,.realty-card p,.realty-card small{display:block;margin:7px 0}.realty-card p,.realty-card small{color:#777}.realty-heart{border:0;background:transparent;color:#aaa;cursor:pointer}.realty-card>.realty-heart{position:absolute;top:16px;right:16px;font-size:21px}.realty-heart.is-active{color:var(--o)}.realty-sidebar{padding-top:18px}.realty-add{display:block;padding:14px;border-radius:12px;background:var(--o);color:#fff;text-align:center;text-decoration:none;font-weight:700}.realty-ad,.realty-sidebar section{margin-top:16px;padding:20px;border:1px solid #e7e7e7;border-radius:16px}.realty-ad{display:grid;min-height:260px;place-items:center;background:#fafafa;color:#888;text-align:center}.realty-ad small,.realty-ad b,.realty-ad span{display:block}.realty-map{position:relative;height:650px;border-radius:18px;background:#eef0f2;overflow:hidden}.realty-map>[data-map-canvas]{height:100%}.realty-map>p{position:absolute;inset:45% 20px auto;text-align:center}.realty-detail{display:grid;grid-template-columns:minmax(0,920px) 340px;gap:28px}.realty-detail h1{font-size:32px}.realty-back{color:#777;text-decoration:none}.realty-gallery{display:flex;gap:8px;overflow:auto;border-radius:18px;background:#f3f3f3}.realty-gallery img,.realty-gallery>span{display:grid;min-width:100%;height:520px;place-items:center;object-fit:contain;font-size:80px;color:var(--o)}.realty-detail main>section{margin-top:18px;padding:24px;border:1px solid #e7e7e7;border-radius:18px}.realty-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:10px}.realty-detail dl div{display:flex;justify-content:space-between;padding:10px;background:#f7f7f7;border-radius:9px}.realty-detail dd{font-weight:700}.realty-seller{position:sticky;top:20px;margin-top:46px;padding:22px;border:1px solid #e7e7e7;border-radius:18px}.realty-price{display:block;font-size:27px}.realty-seller>a,.realty-phone{display:block;width:100%;margin-top:10px;padding:13px;border:0;border-radius:11px;background:var(--o);color:#fff;text-align:center;text-decoration:none;font-weight:700}.realty-seller>.realty-heart{width:100%;margin-top:10px;padding:10px;border:1px solid #ddd;border-radius:10px}.realty-detail-map{height:330px;border-radius:14px;background:#eef0f2}
@media(max-width:1100px){.realty-layout{grid-template-columns:1fr}.realty-sidebar{display:none}.realty-categories{grid-template-columns:repeat(3,1fr)}.realty-filters{grid-template-columns:repeat(3,1fr)}.realty-detail{grid-template-columns:1fr}.realty-detail>aside{display:none}}
@media(max-width:700px){.realty{padding:8px 12px 80px}.realty-search form{grid-template-columns:1fr 52px}.realty-search select{display:none}.realty-categories{grid-template-columns:1fr 1fr}.realty-categories a{min-height:65px}.realty-filters{grid-template-columns:1fr 1fr}.realty-results-head{align-items:start;gap:10px;flex-direction:column}.realty-results-head>div:last-child{width:100%;overflow:auto}.realty-card{grid-template-columns:130px 1fr;min-height:145px}.realty-card__title{font-size:15px}.realty-card b{font-size:18px}.realty-card p,.realty-card small{font-size:11px}.realty-detail h1{font-size:25px}.realty-gallery img,.realty-gallery>span{height:390px}.realty-detail main>section{padding:17px}.realty-detail dl{grid-template-columns:1fr}}
/* v2 aligned filter panel */
.realty-filters{display:block;padding:20px}.realty-filters__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 14px}.realty-filter-field{display:block;min-width:0}.realty-filter-field>b,.realty-filter-rooms legend{display:block;margin-bottom:8px;color:#333;font-size:13px;font-weight:700}.realty-filter-field select,.realty-filter-field input{width:100%;height:44px;margin:0!important;padding:0 12px!important;border:1px solid #d9d9d9!important;border-radius:10px!important;background:#fff}.realty-range{display:grid!important;grid-template-columns:1fr 1fr;gap:7px}.realty-filter-rooms{grid-column:span 2;padding:0!important}.realty-filter-rooms>div{display:flex;gap:7px}.realty-filter-rooms label{margin:0!important}.realty-filter-rooms input{position:absolute;opacity:0}.realty-filter-rooms span{display:grid;min-width:48px;height:40px;padding:0 10px;place-items:center;border:1px solid #ddd;border-radius:9px;background:#fff;font-size:13px;cursor:pointer}.realty-filter-rooms input:checked+span{border-color:var(--o);background:#fff3eb;color:#d9530c}.realty-filter-check{grid-column:span 2;display:flex;align-items:center;gap:9px;align-self:end;height:40px;font-size:13px!important}.realty-filter-check input{width:18px;height:18px;accent-color:var(--o)}.realty-filters__actions{display:flex;align-items:center;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid #eee}.realty-filters__actions button{height:44px;padding:0 22px;border:0;border-radius:10px;background:var(--o);color:#fff;font-weight:700}.realty-filters__actions a{color:#777;text-decoration:none;font-size:13px}
@media(max-width:900px){.realty-filters__grid{grid-template-columns:1fr 1fr}.realty-filter-rooms,.realty-filter-check{grid-column:span 1}}
@media(max-width:700px){.realty-filters{padding:15px}.realty-filters__grid{grid-template-columns:1fr}.realty-filter-rooms,.realty-filter-check{grid-column:1}.realty-filter-rooms>div{flex-wrap:wrap}.realty-filters__actions{align-items:stretch;flex-direction:column}.realty-filters__actions button{width:100%}}

/* v3: модули недвижимости используют штатную правую колонку портала. */
.realty--site-sidebar .realty-layout{grid-template-columns:minmax(0,1fr)}
#sidebar-box .realty-sidebar{display:block;width:100%;padding:0 0 18px}
#sidebar-box .realty-sidebar .realty-add{margin-top:0}
#sidebar-box .realty-sidebar .realty-ad,#sidebar-box .realty-sidebar section{width:100%;margin-top:16px}

/* v4: используем всю ширину основного контейнера, сохраняя штатный сайдбар. */
body:has(.realty) .wrapper>.container{max-width:1350px}
body:has(.realty) .content-box{min-width:0;flex:1 1 auto}
body:has(.realty) #sidebar-box .sidebar__inner-right{width:300px;min-width:300px;margin-left:24px}
.realty{max-width:none;padding-left:0;padding-right:0}

/* v5: поиск недвижимости в едином стиле с доской объявлений. */
.realty-search{position:relative;top:auto;z-index:10;padding:0 0 30px;background:#fff}
.realty-search form{display:grid;grid-template-columns:225px 235px minmax(220px,1fr) 110px;min-height:54px;height:auto;border:1px solid #d8d8d8;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 4px 18px rgba(27,31,35,.07)}
.realty-search label{min-width:0;margin:0}
.realty-search__select{display:flex;border-right:1px solid #ececec}
.realty-search select{width:100%;height:54px;padding:0 42px 0 16px;border:0!important;background:#fff;color:#333;font:600 14px "Open Sans",Arial,sans-serif;outline:0;cursor:pointer;text-overflow:ellipsis}
.realty-search__query{position:relative;display:flex;align-items:center}
.realty-search__query i{position:absolute;left:15px;color:#999;font-size:14px;pointer-events:none}
.realty-search__query input{width:100%;height:54px;padding:0 15px 0 40px!important;border:0!important;background:transparent;font:15px "Open Sans",Arial,sans-serif;outline:0}
.realty-search button{height:54px;padding:0 22px;border:0;background:var(--o);color:#fff;font:700 14px "Open Sans",Arial,sans-serif;cursor:pointer;transition:opacity .2s ease}
.realty-search button:hover{opacity:.9}
.realty-search .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.realty-search form{grid-template-columns:1fr 1fr}.realty-search__query{grid-column:1/2;border-top:1px solid #ececec}.realty-search button{grid-column:2/3;border-top:1px solid rgba(255,255,255,.25)}}
@media(max-width:600px){.realty-search{padding-bottom:22px}.realty-search form{grid-template-columns:1fr 92px}.realty-search__select{display:none}.realty-search__query{grid-column:1/2;border-top:0}.realty-search button{grid-column:2/3;border-top:0;padding:0 14px}}

/* v6: фотоплитки категорий в стиле главной доски объявлений. */
.realty-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 24px}
.realty-categories a{position:relative;isolation:isolate;min-height:126px;padding:18px;overflow:hidden;align-items:flex-end;border-radius:14px;background-position:center;background-size:cover;color:#fff;box-shadow:0 3px 12px rgba(31,35,38,.08);transition:transform .2s ease,box-shadow .2s ease}
.realty-categories a::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(20,20,20,.57),rgba(20,20,20,.08) 78%)}
.realty-categories a:hover{transform:translateY(-2px);box-shadow:0 7px 20px rgba(31,35,38,.14)}
.realty-categories a:nth-child(1){background-image:url('/local/images/realty-categories/new-buildings-v1.jpg')}
.realty-categories a:nth-child(2){background-image:url('/local/images/realty-categories/secondary-housing-v1.jpg')}
.realty-categories a:nth-child(3){background-image:url('/local/images/realty-categories/houses.jpg')}
.realty-categories a:nth-child(4){background-image:url('/local/images/realty-categories/land-v2.jpg')}
.realty-categories a:nth-child(5){background-image:url('/local/images/realty-categories/commercial.jpg')}
.realty-categories a:nth-child(6){background-image:url('/local/images/realty-categories/garages.jpg')}
.realty-categories i{display:none}.realty-categories span{position:relative;z-index:1;color:#fff;font-size:17px;font-weight:700;line-height:1.2;text-shadow:0 1px 2px rgba(0,0,0,.25)}
@media(max-width:900px){.realty-categories{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.realty-categories{grid-template-columns:1fr 1fr;gap:8px}.realty-categories a{min-height:96px;padding:12px}.realty-categories span{font-size:14px}}

/* v7: действие подачи объявления совпадает с доской объявлений. */
.realty-title-row{display:flex;align-items:center;gap:18px;margin:0 0 4px}.realty-title-row>h1{margin:0!important}.realty-title-row+.realty{clear:both;padding-top:0}
.realty-head-actions{display:flex;justify-content:flex-start;margin:0}
.realty-title-row .realty-submit{display:inline-flex;padding:7px 0;align-items:center;background:transparent!important;border:0!important;color:var(--main-template-color,#ff6600)!important;text-decoration:none;font:400 16px "Open Sans",Arial,sans-serif;box-shadow:none!important;transform:translateY(-3px);transition:opacity .2s ease}
.realty-title-row .realty-submit:hover{color:var(--main-template-color,#ff6600)!important;opacity:.75}
@media(max-width:700px){.realty-title-row{align-items:flex-start;flex-direction:column;gap:5px}.realty-head-actions{justify-content:flex-start}}

/* v8: шесть последних просмотренных объектов в правой колонке. */
#sidebar-box .realty-sidebar section>h2{margin:0 0 14px;padding:0;font-size:20px;font-weight:700}
.realty-viewed-list{display:grid;gap:10px}
.realty-viewed-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;align-items:center;color:#333;text-decoration:none}
.realty-viewed-card__image{display:grid;width:76px;height:58px;place-items:center;overflow:hidden;border-radius:9px;background:linear-gradient(135deg,#fff0e7,#ffd7bf);color:var(--o)}
.realty-viewed-card__image img{width:100%;height:100%;object-fit:cover}
.realty-viewed-card__body{display:block;min-width:0}
.realty-viewed-card__body strong{display:-webkit-box;margin:0;overflow:hidden;color:#333;font-size:13px;font-weight:400;line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.realty-viewed-card__body b{display:block;margin-top:5px;color:#222;font-size:14px;font-weight:700}
.realty-viewed-card:hover .realty-viewed-card__body strong{color:var(--o)}

/* v9: последние объекты плитками по стандарту доски объявлений. */
.realty-results-head{align-items:center;margin:28px 0 18px}.realty-results-head h1{font-size:25px}
.realty-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}
.realty-card{display:block;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;transition:transform .2s ease}.realty-card:hover{transform:translateY(-2px)}
.realty-card__image{display:grid;width:100%;aspect-ratio:4/3;height:auto;overflow:hidden;border-radius:13px;background-position:center;background-size:cover;box-shadow:0 2px 9px rgba(31,35,38,.08);font-size:38px}
.realty-card:nth-child(6n+1) .realty-card__image{background-image:url('/local/images/realty-categories/new-buildings-v1.jpg')}.realty-card:nth-child(6n+2) .realty-card__image{background-image:url('/local/images/realty-categories/secondary-housing-v1.jpg')}.realty-card:nth-child(6n+3) .realty-card__image{background-image:url('/local/images/realty-categories/houses.jpg')}.realty-card:nth-child(6n+4) .realty-card__image{background-image:url('/local/images/realty-categories/land.jpg')}.realty-card:nth-child(6n+5) .realty-card__image{background-image:url('/local/images/realty-categories/commercial.jpg')}.realty-card:nth-child(6n) .realty-card__image{background-image:url('/local/images/realty-categories/garages.jpg')}
.realty-card__image>i{display:none}.realty-card__image img{transition:transform .3s ease}.realty-card:hover .realty-card__image img{transform:scale(1.025)}
.realty-card>div{display:flex;min-height:150px;padding:11px 2px 8px;flex-direction:column}.realty-card__title{display:-webkit-box;min-height:0;margin:0 34px 5px 0;overflow:hidden;font-size:15px;font-weight:400;line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.realty-card b{order:2;margin:0 0 7px;font-size:19px;line-height:1.2}.realty-card strong{order:3;margin:0 0 6px;font-size:13px;font-weight:400;color:#555}.realty-card p{order:4;margin:0 0 4px;font-size:12px;line-height:1.35;color:#858585}.realty-card small{order:5;margin:0;font-size:11px;color:#999}
.realty-card>.realty-heart{top:8px;right:8px;z-index:2;display:grid;width:34px;height:34px;padding:0;place-items:center;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 1px 5px rgba(0,0,0,.12)}
@media(max-width:1200px){.realty-list{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:900px){.realty-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px}}@media(max-width:680px){.realty-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.realty-card>div{min-height:140px}.realty-card__title{font-size:14px}.realty-card b{font-size:17px}}

/* v10: баннер правой колонки начинается на уровне категорий. */
#sidebar-box .realty-sidebar{padding-top:134px}
#sidebar-box .realty-sidebar>.realty-add{display:none}
#sidebar-box .realty-sidebar>.realty-ad{margin-top:16px}

/* v11: фактическое выравнивание по координатам браузера. */
#sidebar-box .realty-sidebar{padding-top:0!important}
#sidebar-box .realty-sidebar>.realty-ad{margin-top:162px!important}

/* v13: реальный отступ сайдбара без наложения на последующий блок РСЯ. */
#sidebar-box .realty-sidebar{display:flow-root!important;margin-top:145px!important;padding-top:0!important;transform:none!important}
#sidebar-box .realty-sidebar>.realty-ad{margin-top:16px!important}

.realty-sidebar-spacer{height:160px;flex:0 0 160px}
#sidebar-box .realty-sidebar{margin-top:0!important}

/* v21: поиск занимает всю ширину основного контейнера вместе с правой колонкой. */
@media(min-width:1101px){body:has(.realty) .content-box{overflow:visible!important}body:has(.realty) .realty-search{width:calc(100% + 324px);margin-top:-10px}}

/* v23: рекламное место в едином фирменном стиле с доской объявлений. */
#sidebar-box .realty-sidebar>.realty-ad_brand{position:relative;display:flex!important;width:300px!important;height:264px;min-height:264px!important;padding:24px!important;overflow:hidden;align-items:flex-start;flex-direction:column;justify-content:flex-end;border:0!important;border-radius:16px!important;background:transparent!important;color:#fff!important;text-align:left!important;isolation:isolate}
#sidebar-box .realty-sidebar>.realty-ad_brand:before{position:absolute;inset:0;z-index:-2;border-radius:16px;background:radial-gradient(circle at 100% 0,rgba(243,107,33,.38),transparent 42%),linear-gradient(135deg,#252525 0%,#343434 100%);content:""}
#sidebar-box .realty-sidebar>.realty-ad_brand:after{position:absolute;right:-48px;bottom:-54px;z-index:-1;width:150px;height:150px;border:22px solid rgba(243,107,33,.24);border-radius:50%;content:""}
#sidebar-box .realty-sidebar>.realty-ad_brand small{position:absolute;top:18px;left:18px;padding:4px 9px;border:1px solid rgba(255,255,255,.38);border-radius:20px;color:#fff;font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.06em}
#sidebar-box .realty-sidebar>.realty-ad_brand b{display:block;max-width:220px;color:#fff;font-size:22px;font-weight:700;line-height:1.15}
#sidebar-box .realty-sidebar>.realty-ad_brand span{display:block;margin-top:10px;color:rgba(255,255,255,.68);font-size:13px}

/* v12: отдельная кнопка категорий и составной поиск как в объявлениях. */
.realty-search form{grid-template-columns:145px 190px 205px minmax(180px,1fr) 100px;gap:10px;border:0;border-radius:0;background:transparent;overflow:visible;box-shadow:none}
.realty-search__categories{display:inline-flex!important;height:54px;padding:0 18px!important;align-items:center;justify-content:center;gap:9px;border:0!important;border-radius:11px!important;background:var(--o)!important;color:#fff!important;box-shadow:0 4px 14px rgba(243,107,33,.18);white-space:nowrap}
.realty-search__categories i{position:static;color:#fff;font-size:16px}.realty-search__select{overflow:hidden;border:1px solid #d8d8d8;border-radius:11px;background:#fff;box-shadow:0 3px 14px rgba(27,31,35,.06)}
.realty-search__query{overflow:hidden;border:1px solid #d8d8d8;border-radius:11px;background:#fff;box-shadow:0 3px 14px rgba(27,31,35,.06)}
.realty-search form>button[type=submit]{border-radius:11px;box-shadow:0 3px 14px rgba(243,107,33,.16)}
@media(max-width:1100px){.realty-search form{grid-template-columns:135px 170px 185px minmax(160px,1fr) 92px;gap:8px}.realty-search__categories{padding:0 13px!important}}
@media(max-width:900px){.realty-search form{grid-template-columns:1fr 1fr}.realty-search__categories{grid-column:1/-1;justify-self:start}.realty-search__query{grid-column:1/2;border-top:1px solid #d8d8d8}.realty-search form>button[type=submit]{grid-column:2/3}}
@media(max-width:600px){.realty-search form{grid-template-columns:1fr 92px}.realty-search__categories{grid-column:1/-1;grid-row:1;width:auto;height:48px}.realty-search__query{grid-column:1/2;grid-row:2}.realty-search form>button[type=submit]{grid-column:2/3;grid-row:2}}

/* v29: цельная строка поиска недвижимости по логике Avito, без кнопки категорий. */
.realty-search form{display:grid;grid-template-columns:205px 220px minmax(260px,1fr) 110px 210px;gap:0;min-height:56px;overflow:hidden;border:1px solid #d6d9dc;border-radius:12px;background:#fff;box-shadow:0 4px 18px rgba(27,31,35,.08)}
.realty-search__select{display:flex!important;overflow:hidden;border:0!important;border-right:1px solid #e5e7e9!important;border-radius:0!important;background:#fff;box-shadow:none!important}
.realty-search__query{overflow:hidden;border:0!important;border-radius:0!important;background:#fff;box-shadow:none!important}
.realty-search form>button[type=submit]{height:56px;border-radius:11px!important;box-shadow:none!important}
.realty-search__city{position:relative;display:flex;min-width:0;align-items:center;border-left:1px solid #e5e7e9;background:#fff}
.realty-search__city>i{position:absolute;left:16px;z-index:1;color:var(--o);font-size:17px;pointer-events:none}
.realty-search__city select{height:56px;padding-left:43px!important;font-weight:600}
@media(max-width:1100px){.realty-search form{grid-template-columns:175px 190px minmax(190px,1fr) 96px 175px}}
@media(max-width:900px){.realty-search form{grid-template-columns:1fr 1fr}.realty-search__select,.realty-search__city{display:flex!important}.realty-search__query{grid-column:1/2}.realty-search form>button[type=submit]{grid-column:2/3}.realty-search__city{grid-column:1/-1;border-top:1px solid #e5e7e9}}
@media(max-width:600px){.realty-search form{grid-template-columns:1fr 92px}.realty-search__select{display:none!important}.realty-search__query{grid-column:1/2;grid-row:1}.realty-search form>button[type=submit]{grid-column:2/3;grid-row:1}.realty-search__city{grid-column:1/-1;grid-row:2}}

.realty-search__select select{font-weight:400}
#sidebar-box .realty-sidebar>.realty-ad_brand+section{margin-top:24px!important}

/* v35: редакционный модуль недвижимости. */
.realty-articles-home{margin-top:42px;padding-top:30px;border-top:1px solid #e8e8e8}.realty-articles-home__head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px}.realty-articles-home__head small{display:block;margin-bottom:4px;color:#888;font-size:12px}.realty-articles-home__head h2{margin:0;font-size:26px}.realty-articles-home__head>a{color:var(--o);text-decoration:none;font-size:14px}.realty-articles-home__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.realty-articles-home__grid article{min-width:0}.realty-articles-home__image{display:block;aspect-ratio:16/10;overflow:hidden;border-radius:14px;background:#eee}.realty-articles-home__image img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.realty-articles-home article:hover img{transform:scale(1.03)}.realty-articles-home article>div{padding:11px 2px}.realty-articles-home h3{display:-webkit-box;margin:0 0 8px;overflow:hidden;color:#242424;font-size:16px;font-weight:600;line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:2}.realty-articles-home article a{text-decoration:none}.realty-articles-home p{display:-webkit-box;margin:0 0 9px;overflow:hidden;color:#707070;font-size:13px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:3}.realty-articles-home time{color:#999;font-size:11px}
.realty-articles-page,.realty-article{max-width:1100px;margin:0 auto 60px;font-family:"Open Sans",Arial,sans-serif}.realty-articles-page>header{margin-bottom:28px}.realty-articles-page>header h1{margin-bottom:8px}.realty-articles-page>header p{color:#666}.realty-articles-page__grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.realty-articles-page__grid article{display:grid;grid-template-columns:220px minmax(0,1fr);gap:17px;padding:12px;border:1px solid #e7e7e7;border-radius:16px}.realty-articles-page__image{display:block;overflow:hidden;border-radius:12px}.realty-articles-page__image img{width:100%;height:100%;object-fit:cover}.realty-articles-page__grid h2{margin:3px 0 9px;color:#222;font-size:19px;line-height:1.25}.realty-articles-page__grid a{text-decoration:none}.realty-articles-page__grid p{margin:0 0 12px;color:#666;font-size:13px;line-height:1.45}.realty-articles-page__grid time{color:#999;font-size:11px}
.realty-article{max-width:900px}.realty-article__back{display:inline-block;margin-bottom:20px;color:#777;text-decoration:none}.realty-article header h1{max-width:820px;margin:0 0 12px;font-size:38px;line-height:1.16}.realty-article__meta{display:flex;gap:16px;margin-bottom:24px;color:#888;font-size:13px}.realty-article__cover{display:block;width:100%;max-height:520px;object-fit:cover;border-radius:20px}.realty-article__lead{margin:24px 0;padding:20px 22px;border-left:4px solid var(--main-template-color,#ff6600);border-radius:0 12px 12px 0;background:#fff6ef;font-size:18px;line-height:1.55}.realty-article__content{color:#333;font-size:16px;line-height:1.75}.realty-article__content h2{margin:34px 0 12px;font-size:26px}.realty-article__content p{margin:0 0 18px}.realty-article__content ul{margin:0 0 22px;padding-left:22px}.realty-article__content li{margin-bottom:8px}.realty-article__related{margin-top:38px;padding-top:28px;border-top:1px solid #e7e7e7}.realty-article-related-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.realty-article-related-grid a{color:#222;text-decoration:none}.realty-article-related-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:11px}.realty-article-related-grid strong,.realty-article-related-grid b{display:block;margin-top:7px;font-size:13px}.realty-article-empty{padding:40px 0}
@media(max-width:900px){.realty-articles-home__grid{grid-template-columns:1fr 1fr}.realty-articles-page__grid{grid-template-columns:1fr}.realty-article-related-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.realty-articles-home__grid{grid-template-columns:1fr 1fr;gap:12px}.realty-articles-home h3{font-size:14px}.realty-articles-home p{display:none}.realty-articles-page__grid article{grid-template-columns:120px 1fr}.realty-article header h1{font-size:29px}.realty-article__lead{font-size:16px}}

/* v38: безопасная многоступенчатая подача объектов недвижимости. */
.realty-success{margin:0 0 22px;padding:15px 18px;border:1px solid #b8dfc5;border-radius:12px;background:#effaf2;color:#246d3b}.realty-submit-page{max-width:1050px;margin:0;padding-top:0}.realty-submit-steps{display:flex;gap:8px;margin:0 0 22px}.realty-submit-steps span{padding:9px 14px;border-radius:20px;background:#f2f3f4;color:#777;font-size:13px}.realty-submit-steps .is-active{background:#fff0e7;color:#d9530c}.realty-form-errors{margin-bottom:18px;padding:13px 17px;border:1px solid #efb5b5;border-radius:12px;background:#fff3f3;color:#a32626}.realty-form-errors p{margin:3px 0}.realty-submit-form{display:grid;gap:18px}.realty-submit-form section{padding:24px;border:1px solid #e4e6e8;border-radius:18px;background:#fff}.realty-submit-form h2{margin:0 0 19px;font-size:22px}.realty-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.realty-form-grid label{display:block;min-width:0}.realty-form-grid label.wide{grid-column:1/-1}.realty-form-grid label>span{display:block;margin-bottom:7px;color:#444;font-size:13px;font-weight:600}.realty-form-grid input,.realty-form-grid select,.realty-form-grid textarea{width:100%;min-height:46px;padding:10px 12px;border:1px solid #d7dade;border-radius:10px;background:#fff;color:#222;font:14px "Open Sans",Arial,sans-serif;outline:none}.realty-form-grid input:focus,.realty-form-grid select:focus,.realty-form-grid textarea:focus{border-color:var(--o);box-shadow:0 0 0 3px rgba(243,107,33,.1)}.realty-form-grid textarea{resize:vertical}.realty-photo-input{padding:16px;border:1px dashed #c9cdd1;border-radius:12px;background:#fafafa}.realty-photo-input input{padding:8px;background:#fff}.realty-photo-input small{display:block;margin-top:8px;color:#888}.realty-form-actions{display:flex;align-items:center;gap:18px}.realty-form-actions button{min-height:48px;padding:0 25px;border:0;border-radius:11px;background:var(--o);color:#fff;font-weight:700;cursor:pointer}.realty-form-actions a{color:#777;text-decoration:none}
@media(max-width:760px){.realty-submit-steps{overflow:auto}.realty-submit-steps span{white-space:nowrap}.realty-submit-form section{padding:17px}.realty-form-grid{grid-template-columns:1fr 1fr}.realty-form-grid label.wide{grid-column:1/-1}}@media(max-width:520px){.realty-form-grid{grid-template-columns:1fr}.realty-form-grid label.wide{grid-column:1}.realty-form-actions{align-items:stretch;flex-direction:column}.realty-form-actions button{width:100%}}

/* Mobile containment: the legacy two-column template must never widen the realty page. */
@media(max-width:700px){
html:has(.realty),body:has(.realty){max-width:100%;overflow-x:hidden}
body:has(.realty) .wrapper>.container,body:has(.realty) .content-box,body:has(.realty) #content-box{width:100%!important;max-width:100%!important;min-width:0!important}
body:has(.realty) .content-box h1{max-width:calc(100vw - 32px)!important;white-space:normal!important;overflow-wrap:anywhere;font-size:28px;line-height:1.18}
.realty{width:calc(100vw - 32px)!important;max-width:calc(100vw - 32px)!important;min-width:0;margin-left:0!important;margin-right:0!important;overflow:hidden}
.realty-search,.realty-search form,.realty-layout,.realty-layout>main,.realty-categories,.realty-filters{width:100%;max-width:100%;min-width:0}
.realty-categories{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
}
.realty-seller .realty-message{display:block;width:100%;margin-top:10px;padding:13px;border:1px solid var(--o);border-radius:11px;background:#fff;color:var(--o);text-align:center;font-weight:700;cursor:pointer}.realty-seller .realty-message:disabled{opacity:.6}
.realty-photo-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.realty-photo-preview>span{position:relative;display:block;overflow:hidden;border-radius:12px;aspect-ratio:4/3}.realty-photo-preview img{width:100%;height:100%;object-fit:cover}.realty-photo-preview b{position:absolute;left:6px;bottom:6px;padding:4px 7px;border-radius:7px;background:rgba(20,20,20,.72);color:#fff;font-size:10px}.realty-photo-remove{position:absolute;top:6px;right:6px;display:grid;width:30px;height:30px;padding:0;place-items:center;border:0;border-radius:50%;background:rgba(20,20,20,.78);color:#fff;font-size:22px}.realty-photo-preview em{position:absolute;right:6px;bottom:6px;display:flex;gap:4px;font-style:normal}.realty-photo-preview em button{display:grid;width:30px;height:30px;padding:0;place-items:center;border:0;border-radius:8px;background:rgba(20,20,20,.78);color:#fff;font-size:17px}.realty-photo-preview em button:disabled{opacity:.3}@media(max-width:600px){.realty-photo-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
.realty-empty{margin:22px 0;padding:36px 24px;border:1px solid #e8eaed;border-radius:16px;background:#fff;text-align:center}.realty-empty>span{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 14px;border-radius:50%;background:#fff3e9;color:#f58220;font-size:24px}.realty-empty h2{margin:0 0 8px;font-size:22px}.realty-empty p{margin:0 auto 18px;color:#687078}.realty-empty a{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:10px;background:#f58220;color:#fff!important;text-decoration:none;font-weight:600}

/* v474: compact title-to-search spacing on the realty catalogue. */
body:has(.realty>.realty-search) .content-box>h1{margin-bottom:10px}
.realty:has(>.realty-search){padding-top:0}
@media(min-width:1101px){body:has(.realty>.realty-search) .realty-search{margin-top:0}}

/* v373: compact photo picker thumbnails on the realty submission form. */
.realty-submit-page .realty-photo-preview{
  display:grid;
  grid-template-columns:repeat(auto-fill,104px);
  justify-content:start;
  gap:9px;
  margin-top:12px;
}
.realty-submit-page .realty-photo-preview>span{
  width:104px;
  height:78px;
  aspect-ratio:auto;
  border-radius:10px;
}
.realty-submit-page .realty-photo-preview .realty-photo-remove{
  top:4px;
  right:4px;
  width:24px;
  height:24px;
  font-size:18px;
}
.realty-submit-page .realty-photo-preview em{
  right:4px;
  bottom:4px;
}
.realty-submit-page .realty-photo-preview em button{
  width:24px;
  height:24px;
  border-radius:6px;
  font-size:14px;
}
@media(max-width:520px){
  .realty-submit-page .realty-photo-preview{
    grid-template-columns:repeat(auto-fill,88px);
    gap:8px;
  }
  .realty-submit-page .realty-photo-preview>span{
    width:88px;
    height:66px;
  }
}

/* v475: classified-style gallery for realty details. */
.realty-detail .realty-gallery{display:block;overflow:visible;border-radius:0;background:transparent}
.realty-gallery__main{position:relative;display:flex;width:100%;aspect-ratio:4/3;align-items:center;justify-content:center;overflow:hidden;border-radius:14px;background:#f3f3f3}
.realty-gallery__main-img{display:block;width:100%;height:100%;object-fit:contain;background:#f3f3f3;cursor:zoom-in;user-select:none}
.realty-gallery__nav{position:absolute;top:50%;z-index:2;display:grid;width:42px;height:42px;padding:0;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#333;box-shadow:0 2px 10px rgba(0,0,0,.15);font-size:23px;cursor:pointer;transform:translateY(-50%)}
.realty-gallery__nav_prev{left:12px}.realty-gallery__nav_next{right:12px}
.realty-gallery__counter{position:absolute;right:12px;bottom:12px;padding:5px 10px;border-radius:999px;background:rgba(0,0,0,.58);color:#fff;font-size:13px}
.realty-gallery__thumbs{display:flex;gap:8px;margin-top:10px;padding:0 0 4px;overflow-x:auto;scrollbar-width:thin}
.realty-gallery__thumb{flex:0 0 72px;width:72px;height:72px;padding:0;overflow:hidden;border:2px solid transparent;border-radius:9px;background:#f3f3f3;cursor:pointer}
.realty-gallery__thumb.is-active{border-color:var(--o)}.realty-gallery__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.realty-gallery_empty{display:grid!important;height:420px;place-items:center!important;border-radius:14px!important;background:#f3f3f3!important}
body.realty-lightbox-open{overflow:hidden}
.realty-gallery-lightbox[hidden]{display:none}.realty-gallery-lightbox{position:fixed;inset:0;z-index:10050;display:grid;grid-template-columns:72px minmax(0,1fr) 72px;align-items:center;padding:32px;background:rgba(15,15,17,.94)}
.realty-gallery-lightbox__stage{position:relative;display:flex;width:100%;height:calc(100vh - 64px);align-items:center;justify-content:center}.realty-gallery-lightbox__stage>img{display:block;max-width:100%;max-height:100%;object-fit:contain;user-select:none}
.realty-gallery-lightbox__thumbs{position:absolute;bottom:0;left:50%;z-index:3;display:flex;gap:8px;max-width:calc(100% - 32px);padding:9px 11px;overflow-x:auto;border-radius:13px 13px 0 0;background:rgba(18,18,20,.72);transform:translateX(-50%)}
.realty-gallery-lightbox__thumb{flex:0 0 76px;width:76px;height:54px;padding:0;overflow:hidden;border:2px solid transparent;border-radius:8px;background:#333;cursor:pointer;opacity:.68}.realty-gallery-lightbox__thumb.is-active{border-color:var(--o);opacity:1}.realty-gallery-lightbox__thumb img{width:100%;height:100%;object-fit:cover}
.realty-gallery-lightbox__stage>span{position:absolute;right:14px;bottom:82px;padding:5px 11px;border-radius:999px;background:rgba(0,0,0,.58);color:#fff;font-size:13px}.realty-gallery-lightbox__close,.realty-gallery-lightbox__nav{border:0;background:rgba(255,255,255,.13);color:#fff;cursor:pointer}.realty-gallery-lightbox__close{position:absolute;top:18px;right:20px;z-index:2;width:44px;height:44px;border-radius:50%;font-size:32px}.realty-gallery-lightbox__nav{width:52px;height:52px;justify-self:center;border-radius:50%;font-size:42px}.realty-gallery-lightbox__nav:hover,.realty-gallery-lightbox__close:hover{background:rgba(255,255,255,.22)}
html[data-theme="dark"] .realty-gallery__main,html[data-theme="dark"] .realty-gallery__main-img,html[data-theme="dark"] .realty-gallery__thumb{background:#252a30}
.realty-detail__header{grid-column:1/-1;min-width:0;margin:0}
.realty-detail__header h1{margin:10px 0 0}
.realty-detail>main,.realty-detail>aside{min-width:0}
.realty-detail .realty-seller{margin-top:0}
@media(max-width:680px){.realty-gallery__main{border-radius:11px}.realty-gallery__nav{width:36px;height:36px}.realty-gallery__nav_prev{left:8px}.realty-gallery__nav_next{right:8px}.realty-gallery__thumb{flex-basis:62px;width:62px;height:62px}.realty-gallery-lightbox{grid-template-columns:48px minmax(0,1fr) 48px;padding:18px 6px}.realty-gallery-lightbox__stage{height:calc(100vh - 36px)}.realty-gallery-lightbox__nav{width:42px;height:42px;font-size:34px}.realty-gallery-lightbox__thumb{flex-basis:60px;width:60px;height:44px}.realty-gallery-lightbox__stage>span{bottom:67px}}
/* v477: compact search, filters and category tiles aligned with classifieds. */
@media(min-width:901px){
  .realty-search form{
    min-height:46px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(27,31,35,.055);
  }
  .realty-search select,
  .realty-search__query input,
  .realty-search form>button[type=submit],
  .realty-search__city select{
    height:44px;
  }
  .realty-search form>button[type=submit]{border-radius:9px!important}
  .realty-search__query input{font-size:14px}
  .realty-filters{
    padding:14px;
    border-radius:14px;
  }
  .realty-filters__grid{gap:12px 12px}
  .realty-filter-field>b,.realty-filter-rooms legend{margin-bottom:6px}
  .realty-filter-field select,.realty-filter-field input{height:40px;border-radius:9px!important}
  .realty-filter-rooms span{height:36px}
  .realty-filter-check{height:36px}
  .realty-filters__actions{margin-top:12px;padding-top:12px}
  .realty-filters__actions button{height:40px;padding-inline:20px;border-radius:9px}
  .realty-categories a{min-height:104px;height:104px;padding:15px}
  #sidebar-box .realty-sidebar>.realty-ad_brand{
    height:220px;
    min-height:220px!important;
    padding:20px!important;
  }
}
