.reviews-widget__comment{display:none}.companies-map__frame{margin-left:30%}.active-marker .companies-info-list__link{background-color:#efedf4}.leaflet-popup-content{text-align:center;margin:5px 10px}.leaflet-popup-content p{text-align:center;margin:0 0 2px;font-family:"SF Pro Display",sans-serif;font-size:14px;line-height:1.2;color:#141414}.leaflet-popup-content p a{color:#5b25b4;text-decoration:none}#map_google{height:100%;min-height:400px}@media (min-width:998px){.companies-adress__block input{margin-right:20px;height:54px}.companies-adress__block{display:flex}}
@media (min-width: 998px) {
    .companies-adress__block input[name] {
        margin-right: 20px;
        height: 54px;
    }
    .companies-adress__block {
        display: flex;
    }
}

.company-wrap__contact .companies-map__frame.register #map
{
height:400px
}

/* Тимчасово окуповані обласні центри */
.cities-box__item_occupied {
    background-color: #fdeaea;
    border-color: #f3b6b6;
}

/* subheader згорнуто до тонкої смужки кольору фону */
.subheader.subheader--strip {
    height: 2px;
    min-height: 2px;
    padding: 0;
    overflow: hidden;
}

/* прибираємо білу прогалину перед блоком «Mapia допомагає...» */
.promo-intro {
    margin-bottom: 0;
}

/* кликабельні пини на карті першого екрану
   (.promo-intro__image у темі вже position:absolute — служить контейнером,
    свій position не задаємо, щоб не збивати карту в потік) */
.promo-pin {
    position: absolute;
    width: 4.2%;
    height: 6%;
    transform: translate(-50%, -55%);
    cursor: pointer;
}

/* футер: менша висота + вертикальне центрування вмісту */
.footer {
    padding-top: 22px;
    padding-bottom: 22px;
}
.footer__main {
    margin-bottom: 0;
    align-items: center;
}

/* назви міст — посилання */
.cities-box__item-title a {
    color: inherit;
    text-decoration: none;
}
.cities-box__item-title a:hover {
    color: #5b25b4;
    text-decoration: underline;
}

/* кнопка «Додати компанію» під плитками міст */
.cities-box__add {
    margin-top: 40px;
    text-align: center;
}

/* ---------- сторінка статті ---------- */
.article-head {
    background-color: #d0cadb;
    padding: 44px 0;
}
.article-head__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    font-size: 15px;
}
.article-head__breadcrumb li {
    position: relative;
    color: #6b6280;
}
.article-head__breadcrumb li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #8b81a1;
    transform: translateY(-50%);
}
.article-head__breadcrumb a {
    color: #5b25b4;
    text-decoration: none;
}
.article-head__breadcrumb a:hover {
    text-decoration: underline;
}
.article-head__title {
    margin: 0;
    font-size: 40px;
    line-height: 1.15;
    color: #141414;
}
.article-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    font-size: 15px;
    color: #5f5570;
}

.article {
    padding: 48px 0 64px;
}
/* двоколонковий макет: контент + липке оглавление */
.article__grid {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}
.article__main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 760px;
}
.article__aside {
    flex: 0 0 260px;
    width: 260px;
    /* сайдбар слідує за екраном під час прокрутки (враховуємо фіксовану шапку) */
    position: sticky;
    top: 104px;
    align-self: flex-start;
}
.toc {
    padding: 20px 22px;
    background-color: #f6f4fb;
    border: 1px solid #e6e0f2;
    border-radius: 14px;
}
.toc__title {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8b81a1;
}
.toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.toc__item {
    margin: 0;
}
.toc__link {
    display: block;
    padding: 7px 0 7px 12px;
    border-left: 2px solid transparent;
    font-size: 15px;
    line-height: 1.35;
    color: #5f5570;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
.toc__link:hover {
    color: #5b25b4;
}
.toc__link.is-active {
    color: #5b25b4;
    border-left-color: #5b25b4;
    font-weight: 600;
}
.article__figure {
    margin: 0 0 36px;
}
.article__figure--inline {
    margin: 32px 0;
}
.article__figure img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
    background-color: #efecf6;
}
.article__figure figcaption {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #8b8397;
    text-align: center;
}
.article__lead {
    font-size: 21px !important;
    line-height: 1.55 !important;
    color: #141414 !important;
    font-weight: 500;
}
.article__body p {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.72;
    color: #2b2632;
}
.article__body h2 {
    margin: 44px 0 16px;
    font-size: 28px;
    line-height: 1.25;
    color: #141414;
    scroll-margin-top: 110px;
}
.article__body h3 {
    margin: 34px 0 12px;
    font-size: 22px;
    line-height: 1.3;
    color: #141414;
}
.article__body ul,
.article__body ol {
    margin: 0 0 22px;
    padding-left: 24px;
}
.article__body li {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.65;
    color: #2b2632;
}
.article__body blockquote {
    margin: 30px 0;
    padding: 18px 26px;
    border-left: 4px solid #5b25b4;
    border-radius: 0 10px 10px 0;
    background-color: #f4f1fa;
    font-size: 20px;
    line-height: 1.5;
    font-style: italic;
    color: #3a2f52;
}
.article__body a {
    color: #5b25b4;
}
.article__body code {
    padding: 2px 7px;
    border-radius: 6px;
    background-color: #efecf6;
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 15px;
    color: #5b25b4;
}
.article__body hr {
    margin: 36px 0;
    border: 0;
    border-top: 1px solid #e6e0f2;
}
.article__cta {
    margin-top: 44px;
    text-align: center;
}

/* таблиця */
.article__table-wrap {
    margin: 0 0 26px;
    overflow-x: auto;
}
.article__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
.article__table th,
.article__table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e6e0f2;
}
.article__table thead th {
    background-color: #f6f4fb;
    color: #3a2f52;
    font-weight: 600;
    white-space: nowrap;
}
.article__table tbody tr:hover {
    background-color: #faf9fd;
}

/* кнопки шерингу */
.article__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e6e0f2;
}
.article__share-label {
    margin-right: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #5f5570;
}
.share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background-color: #efecf6;
    color: #5b25b4;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s, color .15s, transform .1s;
}
.share:hover {
    transform: translateY(-2px);
    color: #fff;
}
.share--fb:hover { background-color: #1877f2; }
.share--tg:hover { background-color: #29a9eb; }
.share--in:hover { background-color: #0a66c2; }
.share--copy:hover { background-color: #5b25b4; }
.share--copy.is-copied {
    background-color: #2e9e5b;
    color: #fff;
}
/* блок шерингу в сайдбарі під оглавленням */
.article__share--aside {
    margin-top: 20px;
    padding: 18px 22px 20px;
    border: 1px solid #e6e0f2;
    border-radius: 14px;
    background-color: #f6f4fb;
}
.article__share--aside .article__share-label {
    flex-basis: 100%;
    margin: 0 0 12px;
}

/* похожі статті */
.related {
    padding: 56px 0 72px;
    background-color: #faf9fd;
    border-top: 1px solid #ece8f5;
}
.related__title {
    margin: 0 0 28px;
    font-size: 28px;
    color: #141414;
}
.related__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.related__card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ece8f5;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .18s, transform .18s;
}
.related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(91, 37, 180, .12);
}
.related__image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #efecf6;
}
.related__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.related__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px 22px;
}
.related__cat {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8b81a1;
}
.related__name {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    color: #141414;
}
.related__card:hover .related__name {
    color: #5b25b4;
}

/* ---------- каталог статей (blog.html) ---------- */
.blog {
    padding: 48px 0 72px;
}
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}
.blog-filters__chip {
    padding: 9px 18px;
    border: 1px solid #e0d9ef;
    border-radius: 999px;
    background-color: #fff;
    font-size: 15px;
    color: #5f5570;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.blog-filters__chip:hover {
    border-color: #5b25b4;
    color: #5b25b4;
}
.blog-filters__chip.is-active {
    background-color: #5b25b4;
    border-color: #5b25b4;
    color: #fff;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ece8f5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .18s, transform .18s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(91, 37, 180, .13);
}
.blog-card__image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #efecf6;
}
.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 10px;
    padding: 20px 22px 22px;
}
.blog-card__cat {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8b81a1;
}
.blog-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    color: #141414;
    transition: color .15s;
}
.blog-card:hover .blog-card__title {
    color: #5b25b4;
}
.blog-card__excerpt {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #5f5570;
}
.blog-card__date {
    margin-top: auto;
    padding-top: 6px;
    font-size: 14px;
    color: #9a92ab;
}
.blog .pagination {
    margin-top: 48px;
}

@media (max-width: 991px) {
    .article__grid { flex-direction: column; gap: 32px; }
    .article__main { max-width: none; width: 100%; min-width: 0; order: 2; }
    .article__aside { width: 100%; flex-basis: auto; order: 1; position: static; }
    .related__list { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .article-head__title { font-size: 28px; }
    .article__lead { font-size: 19px !important; }
    .article__body h2 { font-size: 24px; }
    .related__list { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
}
/* ---------- shops: вужча ліва колонка списку (~25%) ---------- */
@media (min-width: 768px) {
    /* ліва колонка ~25%, карта справа; список має власний скрол
       (.companies-map__list у темі — overflow:auto), тож блоки скролляться,
       а карта лишається на місці */
    .companies-map__content { width: 25%; padding-top: 18px; }
    .companies-map__frame { margin-left: 25%; }
    /* список зі своїм скролом (карта лишається на місці) */
    .companies-map__list { height: 90vh; overflow: auto; }

    /* карточка компании — читаемый вертикальный формат */
    .companies-info-list__link {
        flex-direction: column;
        gap: 12px;
        padding: 18px 20px;
    }
    .companies-info-list__image {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        aspect-ratio: 3 / 2;
        border-radius: 12px;
    }
    .companies-info-list__image-i {
        position: static;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .companies-info-list__rating {
        top: 10px;
        left: 10px;
    }
    .companies-info-list__wrap {
        width: 100%;
    }
    .companies-info-list__head {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 0;
    }
    .companies-info-list__label {
        order: 1;
        width: auto;
        text-align: left;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #8b81a1;
    }
    .companies-info-list__title {
        order: 2;
        width: auto;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.3;
        color: #141414;
    }
    .companies-info-list__text {
        margin-top: 6px;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 400;
        color: #5f5570;
    }
    .companies-info-list__bottom {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #e6e0f2;
    }
    .companies-info-list__address,
    .companies-info-list__workhours {
        display: block;
        width: auto;
        margin: 0;
        padding: 0 0 0 24px;
        border: 0;
        position: relative;
        font-size: 13px;
        line-height: 1.45;
        font-weight: 400;
    }
    .companies-info-list__address { color: #2b2632; }
    .companies-info-list__workhours { color: #5f5570; }
    .companies-info-list__address::before {
        content: "\E900";                 /* pin */
        position: absolute;
        left: 0;
        top: 1px;
        font-family: 'icons';
        font-size: 15px;
        color: #5b25b4;
    }
}

/* ---------- shops: мобільна версія ---------- */
@media (max-width: 767px) {
    /* карта — акуратний блок зверху, список нижче (звичайний скрол сторінки) */
    .companies-map { display: flex; flex-direction: column; }
    .companies-map__frame {
        position: relative;
        order: 1;
        inset: auto;
        margin: 0;
        width: 100%;
        height: 260px;
        z-index: 1;
    }
    .companies-map__content {
        order: 2;
        width: 100%;
        min-height: 0;
        padding-top: 0;
    }
    .companies-map__list { height: auto; max-height: none; overflow: visible; }

    /* компактні горизонтальні картки */
    .companies-info-list__link {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 15px;
    }
    .companies-info-list__image {
        flex-shrink: 0;
        width: 92px;
        height: 92px;
        margin: 0;
        padding: 0;
        aspect-ratio: 1;
        border-radius: 10px;
    }
    .companies-info-list__image-i {
        position: static;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .companies-info-list__rating {
        top: 5px;
        left: 5px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .companies-info-list__wrap { min-width: 0; flex: 1 1 auto; }
    .companies-info-list__head {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 4px;
    }
    .companies-info-list__label {
        order: 1;
        width: auto;
        text-align: left;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #8b81a1;
    }
    .companies-info-list__title {
        order: 2;
        width: auto;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.25;
        color: #141414;
    }
    .companies-info-list__text { display: none; }
    .companies-info-list__bottom {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: 6px;
        padding-top: 0;
        border: 0;
    }
    .companies-info-list__address,
    .companies-info-list__workhours {
        display: block;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 12px;
        line-height: 1.35;
        color: #5f5570;
    }
}

/* ---------- страницы объектов/городов (ЧПУ-генерация) ---------- */
/* таблица фактов на странице объекта */
.article__facts th {
    width: 38%;
    text-align: left;
    font-weight: 600;
    white-space: normal;
    vertical-align: top;
    color: #3a2f52;
}
.article__sources {
    margin-top: 26px;
    font-size: 14px;
    line-height: 1.5;
    color: #8b8397;
}

/* плейсхолдеры изображений (у объектов нет фото) */
.companies-info-list__image--ph,
.related__image--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #efe9fb, #e0d8f3);
}
.companies-info-list__image--ph .icon-pin { font-size: 30px; color: #a493d4; }
.related__image--ph .icon-pin { font-size: 40px; color: #a493d4; }

/* ---------- галерея фото объекта + лайтбокс ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 4px 0 8px;
}
.gallery--n1 { grid-template-columns: 1fr; }
.gallery--n2, .gallery--n4 { grid-template-columns: repeat(2, 1fr); }
.gallery__cell {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background-color: #efecf6;
    cursor: zoom-in;
}
.gallery--n1 .gallery__cell { aspect-ratio: 16 / 9; }
.gallery__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.gallery__cell:hover img { transform: scale(1.05); }
.gallery__credit {
    margin: 8px 0 4px;
    font-size: 13px;
    color: #9a92ab;
}
.gallery__credit a { color: #8b81a1; }
/* плейсхолдер, если фото не нашлись */
.article__figure--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: linear-gradient(135deg, #efe9fb, #e0d8f3);
}
.article__figure--ph .icon-pin { font-size: 52px; color: #a493d4; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(24, 12, 46, .92);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
}
.lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
}
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
}
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
.lightbox__close, .lightbox__nav {
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .32); }

@media (max-width: 767px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .lightbox__nav { width: 44px; height: 44px; font-size: 24px; }
}

/* ---------- страница «Додати компанію» ---------- */
.addco { max-width: 760px; margin: 0 auto; }
.price-box {
    margin: 10px 0 30px;
    padding: 26px 28px;
    border: 1px solid #e0d9ef;
    border-radius: 16px;
    background: linear-gradient(135deg, #f4f1fa, #eae3f7);
    text-align: center;
}
.price-box__label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8b81a1;
}
.price-box__value {
    margin: 6px 0 4px;
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    color: #5b25b4;
}
.price-box__note { font-size: 14px; color: #5f5570; }
