/*
 * Визуал карточных блоков Editor.js — в стилистике карточек ЖК/БЦ на
 * officenavigator.ru (mini_card): фото сверху, бейдж класса, метро с
 * цветной меткой, цена крупным зелёным, кнопка-пилюля.
 *
 * Конструкторские блоки (module_editorjs_block_type) полностью
 * schema-driven — PHP не знает о "цене" или "метро", он лишь добавляет
 * модификатор editorjs-dynamic__field--key-<ключ поля>. Поэтому карточка
 * "как на officenavigator" получается САМА, если админ в конструкторе
 * блока задаст повторитель (например с ключом "cards") с вложенными
 * полями с такими ключами:
 *   photo      (image)     — фото сверху карточки
 *   badge      (text)      — класс объекта (A/B+/B/C), бейдж поверх фото
 *   title      (text)      — название
 *   address    (text)      — адрес
 *   metroName  (text)      — станция метро
 *   metroTime  (text)      — время пешком, напр. "8 мин."
 *   price      (text)      — цена, напр. "от 103 800 руб./м²/год"
 *   area       (text)      — площадь, напр. "432 м²"
 *   buttonText (text)      — текст кнопки (декоративная, без ссылки —
 *                            как buttonText у уже существующего блока "main")
 * Любые другие ключи в той же схеме просто выводятся обычным текстом.
 */

.editorjs-content {
    --ejs-green: #00b475;
    --ejs-green-light: #00c882;
    --ejs-dark: #192834;
    --ejs-gray: #5e5e5e;
    --ejs-border: #dedede;
    --ejs-bg-muted: #f0f0f0;
    font-family: 'PT Sans', Arial, sans-serif;
    color: var(--ejs-dark);
}

/* ---------------------------------------------------------------------
   Общая карточная сетка и "чехол" карточки — переиспользуется тремя
   разными блоками (elements, repeaterImageText*, конструкторский repeater)
--------------------------------------------------------------------- */

.editorjs-content .editorjs-elements__grid,
.editorjs-content .editorjs-repeater__grid,
.editorjs-content .editorjs-repeater-title-description__list,
.editorjs-content .editorjs-dynamic__field--repeater {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.editorjs-content .editorjs-elements__card,
.editorjs-content .editorjs-repeater__item,
.editorjs-content .editorjs-repeater-title-description__item,
.editorjs-content .editorjs-dynamic__repeater-item {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--ejs-border);
    overflow: hidden;
    transition: box-shadow .2s ease-out, transform .2s ease-out;
}

.editorjs-content .editorjs-elements__card:hover,
.editorjs-content .editorjs-repeater__item:hover,
.editorjs-content .editorjs-repeater-title-description__item:hover,
.editorjs-content .editorjs-dynamic__repeater-item:hover {
    box-shadow: 0 0 10px var(--ejs-green);
    transform: translateY(-2px);
}

.editorjs-content .editorjs-elements__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.editorjs-content .editorjs-elements__title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 16px;
}

/* ---------------------------------------------------------------------
   Блок "elements" (связанные элементы инфоблока) — фото + название
--------------------------------------------------------------------- */

.editorjs-content .editorjs-elements__image-wrap {
    height: 180px;
    overflow: hidden;
    background: var(--ejs-bg-muted);
}

.editorjs-content .editorjs-elements__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.editorjs-content .editorjs-elements__name {
    padding: 14px 18px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.3;
}

/* ---------------------------------------------------------------------
   Блоки-повторители repeaterImageText / repeaterImageTextPrice /
   repeaterImageTextDescription — фото + текст (+ цена/описание)
--------------------------------------------------------------------- */

.editorjs-content .editorjs-repeater__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.editorjs-content .editorjs-repeater__text {
    padding: 16px 20px 4px;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.3;
}

.editorjs-content .editorjs-repeater__price {
    padding: 4px 20px 20px;
    font-size: 20px;
    font-weight: bold;
    color: var(--ejs-green);
}

.editorjs-content .editorjs-repeater__description {
    padding: 4px 20px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ejs-gray);
}

.editorjs-content .editorjs-repeater__title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px;
}

.editorjs-content .editorjs-repeater__block-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ejs-gray);
    margin: 0 0 16px;
}

/* ---------------------------------------------------------------------
   Список "заголовок + описание" (без картинки) — repeaterTitleDescription
--------------------------------------------------------------------- */

.editorjs-content .editorjs-repeater-title-description__title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px;
}

.editorjs-content .editorjs-repeater-title-description__description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ejs-gray);
    margin: 0 0 16px;
}

.editorjs-content .editorjs-repeater-title-description__item {
    padding: 16px 20px;
}

.editorjs-content .editorjs-repeater-title-description__item-title {
    font-weight: bold;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.editorjs-content .editorjs-repeater-title-description__item-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ejs-gray);
}

/* ---------------------------------------------------------------------
   Конструкторская карточка объекта — поля по ключам (см. комментарий
   в начале файла). Первым в схеме должно идти поле "photo", чтобы бейдж
   и остальные поля визуально легли поверх/под фото как на референсе.
--------------------------------------------------------------------- */

.editorjs-content .editorjs-dynamic__repeater-item {
    padding-bottom: 16px;
}

.editorjs-content .editorjs-dynamic__field--key-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.editorjs-content .editorjs-dynamic__field--key-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    height: 44px;
    min-width: 44px;
    padding: 0 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: var(--ejs-dark);
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: bold;
    font-size: 20px;
    line-height: 44px;
    text-align: center;
}

.editorjs-content .editorjs-dynamic__field--key-title {
    padding: 16px 20px 4px;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.3;
}

.editorjs-content .editorjs-dynamic__field--key-address {
    padding: 0 20px 8px;
    font-size: 14px;
    color: var(--ejs-gray);
}

.editorjs-content .editorjs-dynamic__field--key-metroname,
.editorjs-content .editorjs-dynamic__field--key-metrotime {
    display: inline-block;
    font-size: 14px;
    color: var(--ejs-gray);
    padding: 0 0 8px 20px;
}

.editorjs-content .editorjs-dynamic__field--key-metroname {
    padding-left: 20px;
    position: relative;
    font-weight: bold;
}

.editorjs-content .editorjs-dynamic__field--key-metroname::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ejs-green);
}

.editorjs-content .editorjs-dynamic__field--key-metrotime {
    padding-left: 6px;
}

.editorjs-content .editorjs-dynamic__field--key-area {
    display: inline-block;
    padding: 0 20px 8px;
    font-size: 14px;
    color: var(--ejs-gray);
}

.editorjs-content .editorjs-dynamic__field--key-price {
    padding: 4px 20px 8px;
    font-size: 22px;
    font-weight: bold;
    color: var(--ejs-green);
}

.editorjs-content .editorjs-dynamic__field--key-buttontext {
    display: inline-block;
    margin: 8px 20px 0;
    padding: 0 20px;
    height: 44px;
    line-height: 44px;
    border-radius: 3px;
    background: var(--ejs-green);
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}


.editorjs-content .blog_header{
    min-height: auto;
}
.editorjs-content .blog_header .row{
    padding-bottom: 0px;
}

.editorjs-detail-description__title {
    margin-bottom: 22px;
    color: #171b1e;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

.b-article-detail-content__detail-text > .row{
    padding-bottom: 0px; 
}
.b-article-detail-content__detail-text .breadcrambs.tac {
    text-align: left;
    padding: 0;
}

.title_dop.tal.small_margin {
    margin-bottom: 22px;
    color: #171b1e;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

.hpl_section{padding:0 0 30px}
.hab_page_block .breadcrumb-wrap-css {
    padding: 10px 0 0 0;
}
@media(max-width:1343px){.hpl_section{padding:40px 0}}
/* @media(max-width:639px){.hpl_section{padding:30px 0}} */

.hpl_hero{position:relative;overflow:hidden;padding:70px 0}
.hpl_hero__bg{position:absolute;inset:0;z-index:0}
.hpl_hero__bg img{width:100%;height:100%;display:block;object-fit: cover;}
.hpl_hero__overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,.94) 38%,rgba(255,255,255,.55) 62%,rgba(255,255,255,.1) 100%)}
.hpl_hero .container{position:relative;z-index:2}
.hpl_hero .row{display:flex;align-items:center;gap:40px;flex-wrap:wrap}
.hpl_hero__text{flex:1 1 480px;min-width:280px;max-width:640px}
.hpl_hero__eyebrow{color:#00b475;font-weight:bold;font-size:14px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.hpl_hero__title{
    font-size:36px;
    line-height:1.2;
    color:#192834;
    margin:0 0 16px;
    font-weight:bold;
    text-align: left;
}
.hpl_hero__descr{color:#5e5e5e;font-size:16px;line-height:1.5;max-width:520px;margin-bottom:28px}
.hpl_hero__bullets{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-bottom: 32px;
}
.hpl_bullet{
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 11px 16px 11px 42px;
    border: 1px solid #d3ebe1;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    color: #26312d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    backdrop-filter: blur(4px);
}
.hpl_bullet::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 14px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #00b475;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transform: translateY(-50%);
}
.hpl_icon{flex:0 0 auto;width:42px;height:42px;border-radius:50%;background:rgba(0,180,117,.1);color:#00b475;display:flex;align-items:center;justify-content:center}
.hpl_icon img{
    width: 30px;
    height: 30px;
}
.hpl_hero__buttons{display:flex;gap:16px;flex-wrap:wrap}
.hpl_btn{cursor:pointer}

.hpl_map_advantages{display:flex;gap:40px;flex-wrap:wrap;align-items:flex-start}
.hpl_map_wrap{flex:1 1 520px;min-width:280px}
.hpl_map{position:relative;background:#e8ece9;border-radius:12px;padding:0;min-height:400px;overflow:hidden}
.hpl_map[id="yandex-map"]{background:transparent;padding:0}
.hpl_map__pin{display:inline-flex;align-items:center;gap:8px;background:#ffffff;border:1px solid #dedede;border-radius:20px;padding:8px 16px;margin:6px;font-size:13px;font-weight:bold;color:#192834}
.hpl_map__pin i{width:8px;height:8px;border-radius:50%;background:#00b475;display:inline-block}
.hpl_advantages{flex:1 1 380px;min-width:260px}
.hpl_advantages__list{list-style:none;margin:0;padding:0}
.hpl_advantages__list li{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px;font-size:15px;color:#192834}
.hpl_advantages__list li:last-child{margin-bottom:0}

.hpl_how{display:flex;gap:40px;flex-wrap:wrap;align-items:flex-start}
.hpl_how__left{flex:1 1 480px;min-width:280px}
.hpl_how__text{color:#5e5e5e;font-size:15px;line-height:1.6;margin-bottom:24px}
.hpl_how__right{flex:1 1 320px;min-width:260px;background:#00b475;border-radius:12px;padding:32px}
.hpl_how__checklist{list-style:none;margin:0;padding:0}
.hpl_how__checklist li{display:flex;align-items:center;gap:12px;color:#ffffff;font-weight:bold;font-size:15px;margin-bottom:18px}
.hpl_how__checklist li:last-child{margin-bottom:0}
.hpl_how__checklist img{flex:0 0 auto;width:20px;height:20px}
.info-object:before{
    background: none;
}
.advantages__icon_wrap {
    height: 100px;
}
.advantages__icon_1, .advantages__icon_2, .advantages__icon_3 {
    font-size: 80px;
}

.container.faq_section {
    padding: 34px;
    border: 1px solid var(--on-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(21, 38, 31, 0.055);
}


.on-blog-price__locations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.on-blog-price__location {
    padding: 26px;
    border: 1px solid var(--on-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 38, 31, 0.05);
}
.on-blog-price__location p:last-child {
    margin-bottom: 0;
}

@media(max-width: 991px ) {
    .hpl_hero__text {
    padding: 0 24px;
    }
    .fitrst_filt {
        margin: 20px 20px 0;
    }
    .hab_page_block .breadcrumb-wrap-css {
        padding: 10px 20px 0;
    }
    .free-offices .free-offices__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    }          
    .row.hpl_map_advantages {
        padding: 0 20px;
    }
    .advantages.advantages_slider--mobile.owl-carousel {
    display: block;
    padding: 0 20px;
    }
    .hpl_section {
    padding: 30px 20px;
    background: #fff;
    }
    .info-object {
    padding: 20px;
    }
    h2.title.big_margin {
    padding: 25px 0 0;
    }
    
    .title_dop.tal.small_margin{
        font-size: 25px;
    }
}

