/* ─── Раздел «Публикации» (блоги и истории работ компаний) ─────────────── */

.gs-pub-page { background: #F8F9FA; padding-bottom: 40px; min-height: 60vh; }

.gs-pub-header { background: #fff; border-bottom: 1px solid #DDE0E5; padding: 20px 0; margin-bottom: 24px; }
.gs-pub-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.gs-pub-header__title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: #121212; margin: 0; }
.gs-pub-header__title svg { color: #43B37D; flex-shrink: 0; }
.gs-pub-header__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.gs-pub-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none !important; cursor: pointer; border: none; transition: opacity .15s, background .15s; }
.gs-pub-btn--green { background: #43B37D; color: #fff !important; }
.gs-pub-btn--green:hover { opacity: .9; color: #fff; }
.gs-pub-btn--outline { background: #fff; color: #43B37D !important; border: 1.5px solid #43B37D; }
.gs-pub-btn--outline:hover { background: #EAF7F1; }
.gs-pub-btn--light { background: #F3F4F6; color: #374151 !important; }
.gs-pub-btn--light:hover { background: #E5E7EB; }
.gs-pub-btn--danger { background: #FEF2F2; color: #EF4444 !important; }
.gs-pub-btn--danger:hover { background: #FEE2E2; }

/* ─── Сетка: сайдбар + лента ───────────────────────────────────────────── */
.gs-pub-layout { display: flex; gap: 24px; align-items: flex-start; }
.gs-pub-sidebar { width: 240px; flex-shrink: 0; background: #fff; border: 1px solid #DDE0E5; border-radius: 14px; padding: 8px; position: sticky; top: 16px; }
.gs-pub-sidebar__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 10px; color: #374151 !important; font-size: 14px; font-weight: 500; text-decoration: none !important; transition: background .15s; }
.gs-pub-sidebar__item:hover { background: #F3F4F6; }
.gs-pub-sidebar__item.is-active { background: #EAF7F1; color: #1B7F56 !important; font-weight: 700; }
.gs-pub-sidebar__count { font-size: 12px; font-weight: 600; color: #94A3B8; background: #F1F5F9; border-radius: 99px; padding: 2px 8px; }
.gs-pub-sidebar__item.is-active .gs-pub-sidebar__count { background: #fff; color: #1B7F56; }
.gs-pub-feed { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ─── Карточка публикации ──────────────────────────────────────────────── */
.gs-pub-card { background: #fff; border: 1px solid #DDE0E5; border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.gs-pub-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.gs-pub-card__logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid #E5E7EB; flex-shrink: 0; }
.gs-pub-card__company { font-size: 14px; font-weight: 700; color: #0F172A; text-decoration: none !important; }
a.gs-pub-card__company:hover { color: #43B37D; }
.gs-pub-card__meta { font-size: 12px; color: #94A3B8; }
.gs-pub-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.gs-pub-badge--blog { background: #EDF3FE; color: #2563EB; }
.gs-pub-badge--work { background: #EAF7F1; color: #1B7F56; }
.gs-pub-badge--muted { background: #F3F4F6; color: #6B7280; text-transform: none; letter-spacing: 0; }
.gs-pub-card__title { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.3; }
.gs-pub-card__title a { color: #121212 !important; text-decoration: none; }
.gs-pub-card__title a:hover { color: #43B37D !important; }
.gs-pub-card__excerpt { font-size: 14px; color: #475569; line-height: 1.6; margin: 0 0 12px; }
.gs-pub-card__cover { position: relative; display: block; margin: 0 0 12px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #F1F5F9; }
.gs-pub-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gs-pub-card__cover:hover img { transform: scale(1.03); }
.gs-pub-card__cover-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(15,23,42,.7); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.gs-pub-card__photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.gs-pub-card__photo { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; background: #F1F5F9; display: block; }
.gs-pub-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-pub-card__photo-more { position: absolute; inset: 0; background: rgba(15,23,42,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.gs-pub-card__bottom { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid #F3F4F6; padding-top: 12px; }
.gs-pub-card__stat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #64748B; text-decoration: none !important; }
a.gs-pub-card__stat:hover { color: #43B37D; }
.gs-pub-card__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.gs-pub-card__actions .gs-pub-btn { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

/* ─── Страница публикации ──────────────────────────────────────────────── */
.gs-pub-view { background: #fff; border: 1px solid #DDE0E5; border-radius: 14px; padding: 28px 32px; max-width: 860px; margin: 0 auto; }
.gs-pub-view__title { font-size: 28px; font-weight: 800; color: #121212; line-height: 1.25; margin: 14px 0 18px; }
.gs-pub-view__content { font-size: 15px; line-height: 1.7; color: #1F2937; word-wrap: break-word; }
.gs-pub-view__content img { max-width: 100%; height: auto; border-radius: 10px; }
.gs-pub-view__content iframe { width: 100%; max-width: 640px; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; margin: 16px 0; }
.gs-pub-view__content figure.gs-pub-video { margin: 16px 0; max-width: 640px; }
.gs-pub-view__content figure.gs-pub-video iframe { margin: 0; }
.gs-pub-view__content a { color: #2563EB; }
.gs-pub-view__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.gs-pub-view__gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; background: #F1F5F9; }
.gs-pub-view__gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gs-pub-view__gallery a:hover img { transform: scale(1.03); }
.gs-pub-view__video { margin: 18px 0; }
.gs-pub-view__video iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: 12px; }
.gs-pub-view__video-link { display: inline-flex; align-items: center; gap: 8px; color: #2563EB; font-size: 14px; }
.gs-pub-view__owner-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; border-top: 1px solid #F3F4F6; padding-top: 16px; }

/* ─── Комментарии ──────────────────────────────────────────────────────── */
.gs-pub-comments { max-width: 860px; margin: 20px auto 0; background: #fff; border: 1px solid #DDE0E5; border-radius: 14px; padding: 24px 32px; }
.gs-pub-comments__title { font-size: 18px; font-weight: 800; color: #121212; margin: 0 0 16px; }
.gs-pub-comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid #F3F4F6; }
.gs-pub-comment:first-of-type { border-top: none; }
.gs-pub-comment__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid #E5E7EB; flex-shrink: 0; }
.gs-pub-comment__body { flex: 1; min-width: 0; }
.gs-pub-comment__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gs-pub-comment__author { font-size: 13px; font-weight: 700; color: #0F172A; }
.gs-pub-comment__date { font-size: 12px; color: #94A3B8; }
.gs-pub-comment__text { font-size: 14px; color: #334155; line-height: 1.6; margin-top: 4px; white-space: pre-line; word-wrap: break-word; }
.gs-pub-comment__delete { background: none; border: none; color: #CBD5E1; cursor: pointer; padding: 2px; line-height: 1; }
.gs-pub-comment__delete:hover { color: #EF4444; }
.gs-pub-comments__form textarea { width: 100%; border: 1.5px solid #DDE0E5; border-radius: 10px; padding: 10px 14px; font-size: 14px; min-height: 80px; resize: vertical; }
.gs-pub-comments__form textarea:focus { outline: none; border-color: #43B37D; box-shadow: 0 0 0 3px rgba(67,179,125,.12); }
.gs-pub-comments__hint { font-size: 13px; color: #94A3B8; padding: 10px 0 2px; }
.gs-pub-comments__hint a { color: #43B37D; font-weight: 600; }

/* ─── Формы создания/редактирования ────────────────────────────────────── */
.gs-pub-form-card { background: #fff; border: 1px solid #DDE0E5; border-radius: 14px; padding: 26px 30px; max-width: 860px; margin: 0 auto; }
.gs-pub-form-card .form-group { margin-bottom: 18px; }
.gs-pub-form-card label.control-label { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 6px; display: block; }
.gs-pub-form-card .form__input,
.gs-pub-form-card input[type="text"].form-control,
.gs-pub-form-card textarea.form-control { width: 100%; border: 1.5px solid #DDE0E5; border-radius: 8px; padding: 9px 14px; font-size: 14px; height: auto; box-shadow: none; }
.gs-pub-form-card .form__input:focus,
.gs-pub-form-card .form-control:focus { outline: none; border-color: #43B37D; box-shadow: 0 0 0 3px rgba(67,179,125,.12); }
.gs-pub-form-card .help-block { color: #EF4444; font-size: 12px; margin-top: 4px; }
.gs-pub-form-card .has-error .form__input,
.gs-pub-form-card .has-error .form-control { border-color: #EF4444; }
.gs-pub-form__hint { font-size: 12px; color: #94A3B8; margin-top: 5px; }
.gs-pub-form__toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #374151; font-weight: 500; cursor: pointer; }
.gs-pub-form__toggle input { width: 18px; height: 18px; accent-color: #43B37D; cursor: pointer; }
.gs-pub-form__footer { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }

/* Зона загрузки фото в статью (форма блога) */
.gs-pub-editor-dropzone { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 14px 18px; border: 2px dashed #CBD5E1; border-radius: 12px; color: #64748B; font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.gs-pub-editor-dropzone:hover, .gs-pub-editor-dropzone.is-over { border-color: #43B37D; background: #EAF7F1; color: #1B7F56; }
.gs-pub-editor-dropzone.is-busy { border-style: solid; border-color: #43B37D; background: #EAF7F1; color: #1B7F56; cursor: progress; }
.gs-pub-editor-dropzone__label b { font-weight: 700; }
.gs-pub-editor-dropzone__status { font-weight: 700; }

/* Класс .gs-pub-img-flash вешается на только что вставленное фото — обводку
   убрали по просьбе владельца, ориентир — плавный скролл к фото. */

/* Картинки внутри редактора статьи можно перетаскивать в другое место */
.gs-pub-form-card .redactor-editor img { cursor: move; }
.gs-pub-form-card .redactor-editor img.gs-pub-moving { opacity: .4; }

/* Индикатор позиции вставки фото (зелёная линия между абзацами) */
.gs-pub-drop-line { position: fixed; height: 3px; background: #43B37D; border-radius: 2px; z-index: 99999; pointer-events: none; box-shadow: 0 0 6px rgba(67,179,125,.5); }
.gs-pub-drop-line::before { content: ''; position: absolute; left: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: #43B37D; }

/* Блок «Вставить видео» под зоной фото */
.gs-pub-video-add { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.gs-pub-video-add__icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: #EAF7F1; color: #1B7F56; flex-shrink: 0; }
.gs-pub-video-add .form__input { flex: 1; min-width: 0; }
.gs-pub-video-add .gs-pub-btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 600px) {
    .gs-pub-video-add { flex-wrap: wrap; }
    .gs-pub-video-add .form__input { flex: 1 1 100%; order: 1; }
    .gs-pub-video-add__icon { order: 0; }
    .gs-pub-video-add .gs-pub-btn { order: 2; }
}

/* Видео-плеер внутри редактора статьи */
.gs-pub-form-card .redactor-editor figure.gs-pub-video { margin: 14px 0; max-width: 640px; }
.gs-pub-form-card .redactor-editor figure.gs-pub-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; }

/* Превью видео под полем (история работ) */
.gs-pub-video-preview { margin: 6px 0 14px; max-width: 480px; }
.gs-pub-video-preview iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; }
.gs-pub-video-preview__bad { font-size: 13px; color: #B45309; }

/* Лоток загруженных фото (перетаскиваются в статью) */
.gs-pub-tray { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; padding: 10px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; }
.gs-pub-tray__item { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: #EEF2F7; cursor: pointer; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.gs-pub-tray__item:active { cursor: grabbing; }
.gs-pub-tray__item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gs-pub-tray__item.is-dragging { opacity: .45; }
.gs-pub-tray__item--loading { opacity: .8; cursor: default; }
.gs-pub-tray__progress { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #43B37D 30%, #A7E3C8 50%, #43B37D 70%); background-size: 200% 100%; animation: gs-pub-tray-load 1.1s linear infinite; }
@keyframes gs-pub-tray-load { from { background-position: 200% 0; } to { background-position: 0 0; } }
.gs-pub-tray__actions { position: absolute; top: 5px; right: 5px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.gs-pub-tray__item:hover .gs-pub-tray__actions { opacity: 1; }
.gs-pub-tray__btn { width: 24px; height: 24px; border-radius: 7px; border: none; background: rgba(15,23,42,.65); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.gs-pub-tray__btn:hover { background: #43B37D; }
.gs-pub-tray__btn--del:hover { background: #EF4444; }
.gs-pub-tray__item.is-used::after { content: '✓ в статье'; position: absolute; left: 0; right: 0; bottom: 0; background: rgba(67,179,125,.92); color: #fff; font-size: 10px; font-weight: 700; text-align: center; padding: 2px 0; pointer-events: none; }
@media (hover: none) {
    .gs-pub-tray__actions { opacity: 1; }
}


/* Аплоадер фото (повторяет стили объявлений) */
.gs-pub-uploader .pu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 10px; }
.gs-pub-uploader .pu-card { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; background: #F1F5F9; cursor: grab; }
.gs-pub-uploader .pu-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-pub-uploader .pu-card__overlay { position: absolute; top: 6px; right: 6px; }
.gs-pub-uploader .pu-card__delete { width: 24px; height: 24px; border-radius: 50%; background: rgba(15,23,42,.6); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gs-pub-uploader .pu-card__delete:hover { background: #EF4444; }
.gs-pub-uploader .pu-card__progress { position: absolute; bottom: 0; left: 0; height: 4px; background: #43B37D; width: 0; transition: width .2s; }
.gs-pub-uploader .pu-card--uploading { opacity: .75; }
.gs-pub-uploader .pu-card--first::after { content: 'Обложка'; position: absolute; bottom: 6px; left: 6px; background: rgba(67,179,125,.92); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.gs-pub-uploader .pu-dropzone { border: 2px dashed #CBD5E1; border-radius: 12px; padding: 26px; text-align: center; color: #64748B; cursor: pointer; transition: border-color .15s, background .15s; }
.gs-pub-uploader .pu-dropzone:hover, .gs-pub-uploader .pu-dropzone--over { border-color: #43B37D; background: #EAF7F1; }
.gs-pub-uploader .pu-dropzone__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.gs-pub-uploader .sortable-ghost { opacity: .4; }

/* Пагинация */
.gs-pub-pagination { display: flex; justify-content: center; margin-top: 8px; }
.gs-pub-pagination ul.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.gs-pub-pagination ul.pagination li a { display: flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 9px; border: 1px solid #DDE0E5; background: #fff; color: #374151; font-size: 13px; font-weight: 600; text-decoration: none; }
.gs-pub-pagination ul.pagination li.active a { background: #43B37D; border-color: #43B37D; color: #fff; }
.gs-pub-pagination ul.pagination li a:hover { border-color: #43B37D; color: #43B37D; }
.gs-pub-pagination ul.pagination li.active a:hover { color: #fff; }
.gs-pub-pagination ul.pagination li.disabled a { opacity: .4; pointer-events: none; }

/* Пустое состояние */
.gs-pub-empty { background: #fff; border: 1px dashed #CBD5E1; border-radius: 14px; padding: 48px 24px; text-align: center; color: #64748B; }
.gs-pub-empty__icon { color: #CBD5E1; margin-bottom: 12px; }
.gs-pub-empty__title { font-size: 16px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.gs-pub-empty__text { font-size: 14px; margin-bottom: 18px; }

/* Вкладка «Публикации» на странице компании */
.sellers-shop-tabs__panel .gs-pub-feed { margin-top: 14px; }

/* ─── Мобильная адаптация ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .gs-pub-layout { flex-direction: column; }
    .gs-pub-sidebar { width: 100%; position: static; display: flex; gap: 6px; padding: 6px; overflow-x: auto; }
    .gs-pub-sidebar__item { flex-shrink: 0; padding: 8px 14px; }
    .gs-pub-card__photos { grid-template-columns: repeat(2, 1fr); }
    .gs-pub-view { padding: 20px 16px; }
    .gs-pub-comments { padding: 18px 16px; }
    .gs-pub-view__gallery { grid-template-columns: repeat(2, 1fr); }
    .gs-pub-form-card { padding: 20px 16px; }
    .gs-pub-header__title { font-size: 20px; }
}

/* ─── Виджет «Вставить объявление» (форма блога) ───────────────────────── */
/* Кнопка на панели редактора */
.gs-pub-form-card .redactor-toolbar li a.gs-pub-advert-tbtn { display: inline-flex; align-items: center; justify-content: center; color: #1B7F56; }
.gs-pub-form-card .redactor-toolbar li a.gs-pub-advert-tbtn svg { width: 18px; height: 18px; }
.gs-pub-form-card .redactor-toolbar li a.gs-pub-advert-tbtn:hover { background: #EAF7F1; color: #1B7F56; }

/* Маркер-чип объявления в редакторе (обычный <p> с классом, текст-подпись внутри) */
.gs-pub-form-card .redactor-editor p.gs-pub-advert {
    display: flex; align-items: center; min-height: 24px; margin: 14px 0;
    padding: 12px 14px 12px 44px; border: 1.5px solid #43B37D; border-radius: 12px;
    background: #EAF7F1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231B7F56' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E") 14px center/20px no-repeat;
    color: #1B7F56; font-size: 14px; font-weight: 700; cursor: default; user-select: none;
}

/* Панель «Вставить объявление» под редактором */
.gs-pub-advert-add { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; padding: 12px 14px; border: 1px solid #D6EFE2; background: #F4FBF7; border-radius: 12px; }
.gs-pub-advert-add__icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: #EAF7F1; color: #1B7F56; flex-shrink: 0; }
.gs-pub-advert-add__text { flex: 1; min-width: 0; font-size: 13px; color: #475569; }
.gs-pub-advert-add__text b { display: block; font-size: 14px; color: #0F172A; font-weight: 700; }
.gs-pub-advert-add .gs-pub-btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 600px) { .gs-pub-advert-add { flex-wrap: wrap; } .gs-pub-advert-add .gs-pub-btn { width: 100%; justify-content: center; } }

/* Окно выбора объявления */
body.gs-pub-modal-open { overflow: hidden; }
.gs-pub-advert-modal[hidden] { display: none; }
.gs-pub-advert-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; }
.gs-pub-advert-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.gs-pub-advert-modal__card { position: relative; width: 100%; max-width: 520px; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(15,23,42,.25); display: flex; flex-direction: column; max-height: 86vh; overflow: hidden; }
.gs-pub-advert-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #EEF1F5; font-size: 16px; font-weight: 700; color: #0F172A; }
.gs-pub-advert-modal__x { background: none; border: none; color: #94A3B8; cursor: pointer; padding: 4px; line-height: 0; border-radius: 6px; }
.gs-pub-advert-modal__x:hover { background: #F1F5F9; color: #0F172A; }
.gs-pub-advert-modal__search { display: flex; align-items: center; gap: 8px; margin: 12px 18px; padding: 0 12px; height: 40px; border: 1.5px solid #DDE0E5; border-radius: 10px; color: #94A3B8; }
.gs-pub-advert-modal__search:focus-within { border-color: #43B37D; box-shadow: 0 0 0 3px rgba(67,179,125,.12); }
.gs-pub-advert-modal__search input { flex: 1; border: none; outline: none; font-size: 14px; color: #0F172A; background: transparent; height: 100%; }
.gs-pub-advert-modal__results { flex: 1; overflow-y: auto; padding: 0 10px; min-height: 120px; }
.gs-pub-advert-modal__foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid #EEF1F5; background: #FBFCFD; }
.gs-pub-advert-modal__count { font-size: 13px; color: #64748B; }

/* Строка «вставить все по номеру» */
.gs-pub-adv-bynum { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin: 6px 0; border-radius: 10px; background: #EAF7F1; text-decoration: none !important; cursor: pointer; }
.gs-pub-adv-bynum:hover { background: #DCF0E6; }
.gs-pub-adv-bynum__ico { color: #1B7F56; flex-shrink: 0; display: flex; }
.gs-pub-adv-bynum__txt { flex: 1; min-width: 0; color: #1B7F56; }
.gs-pub-adv-bynum__txt b { display: block; font-size: 14px; font-weight: 700; }
.gs-pub-adv-bynum__txt span { font-size: 12px; opacity: .8; }
.gs-pub-adv-bynum__cnt { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #1B7F56; background: #fff; border-radius: 8px; padding: 3px 10px; }
.gs-pub-adv-or { font-size: 12px; color: #94A3B8; padding: 8px 4px 4px; }
.gs-pub-adv-empty { font-size: 13px; color: #94A3B8; text-align: center; padding: 28px 10px; }

/* Пункт списка с галочкой */
.gs-pub-adv-item { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.gs-pub-adv-item:hover { background: #F8FAFC; }
.gs-pub-adv-item.is-checked { background: #EAF7F1; }
.gs-pub-adv-cbx { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.gs-pub-adv-cbx input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.gs-pub-adv-cbx__box { display: block; width: 18px; height: 18px; border: 1.5px solid #CBD5E1; border-radius: 5px; background: #fff; }
.gs-pub-adv-cbx input:checked + .gs-pub-adv-cbx__box { border-color: #43B37D; background: #43B37D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }
.gs-pub-adv-item__thumb { width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #F1F5F9; }
.gs-pub-adv-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-pub-adv-item__body { flex: 1; min-width: 0; }
.gs-pub-adv-item__title { display: block; font-size: 14px; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-pub-adv-item__num { display: block; font-size: 12px; color: #64748B; font-family: monospace; }
.gs-pub-adv-item__price { flex-shrink: 0; font-size: 14px; font-weight: 700; color: #0F172A; white-space: nowrap; }

/* ─── Встроенный блок объявлений на странице статьи ────────────────────── */
.gs-pub-advert-embed { margin: 18px 0; }
.gs-pub-advert-embed__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: #1B7F56; }
.gs-pub-advert-embed__head svg { flex-shrink: 0; }
.gs-pub-advert-embed__title { min-width: 0; }
.gs-pub-advert-embed__title b { font-family: monospace; font-weight: 700; }
.gs-pub-advert-embed__count { font-size: 12px; font-weight: 700; color: #1B7F56; background: #EAF7F1; border-radius: 99px; padding: 2px 9px; }
.gs-pub-advert-embed__list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.gs-pub-advert-embed--group .gs-pub-advert-embed__list { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.gs-pub-advert-card { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #DDE0E5; border-radius: 12px; background: #fff; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.gs-pub-advert-card:hover { border-color: #43B37D; box-shadow: 0 2px 10px rgba(67,179,125,.12); }
.gs-pub-advert-card__thumb { width: 84px; height: 84px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #F1F5F9; }
.gs-pub-advert-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gs-pub-advert-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gs-pub-advert-card__title { font-size: 15px; font-weight: 700; color: #0F172A; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gs-pub-advert-card__num { font-size: 12px; color: #64748B; font-family: monospace; }
.gs-pub-advert-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.gs-pub-advert-card__price { font-size: 17px; font-weight: 800; color: #0F172A; }
.gs-pub-advert-card__loc { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #64748B; }
.gs-pub-advert-card__loc svg { flex-shrink: 0; }
@media (max-width: 600px) { .gs-pub-advert-embed--group .gs-pub-advert-embed__list { grid-template-columns: 1fr; } }
