/* ================================================================
   OFFERS MODULE — v2.0 «Wow» redesign
   Palette: тёмный #0f172a | белый #fff | бирюзовый #14b8a6
   ================================================================ */

/* ── Тип-бейджи ────────────────────────────────────────────── */
.offer-type-badge,
.offer-type--product,
.offer-type--work,
.offer-type--service {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; border-radius: 4px;
    font-size: .72rem; font-weight: 700; white-space: nowrap;
    text-transform: uppercase; letter-spacing: .05em; line-height: 1;
}
.offer-type--product { background: #dbeafe; color: #1d4ed8; }
.offer-type--work    { background: #ffedd5; color: #c2410c; }
.offer-type--service { background: #d1fae5; color: #065f46; }

/* ── Список в ЛК ───────────────────────────────────────────── */
.offer-thumb-sm { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; }
.offer-thumb-sm--placeholder { display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: #94a3b8; font-size: 1.2rem; }
.table-link-ext { margin-left: 6px; color: #94a3b8; font-size: .75rem; }
.table-link-ext:hover { color: #14b8a6; }
.sidebar-badge--teal { background: #14b8a6 !important; color: #fff !important; }
.offers-filters { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.offers-filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.offers-filter-tab { padding: 6px 14px; border-radius: 100px; border: 1.5px solid #e2e8f0; background: #fff; font-size: .8125rem; font-weight: 700; color: #64748b; text-decoration: none; transition: all .18s; }
.offers-filter-tab:hover  { border-color: #14b8a6; color: #0d9488; }
.offers-filter-tab.active { background: #14b8a6; border-color: #14b8a6; color: #fff; }
.tab-count { background: rgba(255,255,255,.25); padding: 1px 7px; border-radius: 100px; font-size: .7rem; margin-left: 4px; }
.offers-filter-tab:not(.active) .tab-count { background: #f1f5f9; color: #94a3b8; }
.offers-filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-inline { display: flex; }
.search-inline .form-control { border-radius: 8px 0 0 8px; }
.search-inline .btn { border-radius: 0 8px 8px 0; padding: 8px 14px; }

/* ================================================================
   PUBLIC CATALOG — Full redesign
   ================================================================ */
body { background: #f8fafc; }

/* ─── Hero ──────────────────────────────────────────────────── */
/* offers-hero legacy — section replaced by page-hero */
.offers-hero-placeholder { display: none; }
.offers-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 800px 500px at 70% 50%, rgba(20,184,166,.18) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 20% 80%, rgba(8,145,178,.12) 0%, transparent 60%);
    pointer-events: none;
}
/* Bottom block inside page-hero: stats + type tabs, both centered */
.offers-hero-bottom {
    display: flex; flex-direction: column; align-items: center;
    gap: 16px; margin-top: 20px; position: relative; z-index: 1;
}
.offers-hero__stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-stat__num {
    font-size: 1.875rem; font-weight: 900; line-height: 1;
    background: linear-gradient(135deg,#14b8a6,#0891b2);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat__lbl { font-size: .75rem; color: #64748b; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.offers-type-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.offers-type-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 100px;
    background: #fff; border: 1.5px solid #d1fae5;
    color: #374151; font-size: .875rem; font-weight: 700; text-decoration: none; transition: all .2s;
}
.offers-type-tab:hover { background: #f0fdfa; color: #0d9488; border-color: #6ee7b7; }
.offers-type-tab.active { background: linear-gradient(135deg,#14b8a6,#0891b2); border-color: transparent; color: #fff; box-shadow: 0 4px 20px rgba(20,184,166,.4); }
.offers-type-tab--product.active { background: linear-gradient(135deg,#3b82f6,#1d4ed8); box-shadow: 0 4px 20px rgba(59,130,246,.4); }
.offers-type-tab--work.active    { background: linear-gradient(135deg,#f97316,#c2410c); box-shadow: 0 4px 20px rgba(249,115,22,.4); }
.offers-type-tab--service.active { background: linear-gradient(135deg,#10b981,#065f46); box-shadow: 0 4px 20px rgba(16,185,129,.4); }

/* ─── Search bar ─────────────────────────────────────────────── */
.offers-searchbar { background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.08); border-bottom: 3px solid rgba(20,184,166,.15); }
.offers-searchbar__inner { max-width: 1200px; margin: 0 auto; padding: 16px 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.offers-searchbar__wrap { flex: 1; min-width: 260px; position: relative; display: flex; }
/* ── Единая высота всех элементов строки = 42px ── */
.offers-searchbar__input {
    flex: 1; height: 42px; padding: 0 46px 0 16px;
    border: 1.5px solid #e5e7eb; border-radius: 10px 0 0 10px;
    font-size: .9rem; color: #0f172a; background: #fff; transition: border-color .2s; outline: none;
}
.offers-searchbar__input:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.12); }
.offers-searchbar__clear { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; cursor: pointer; font-size: .875rem; display: none; border: none; background: none; padding: 0; }
.offers-searchbar__btn {
    height: 42px; padding: 0 22px; flex-shrink: 0;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    color: #fff; border: none; border-radius: 0 10px 10px 0;
    font-weight: 800; font-size: .875rem; cursor: pointer; transition: all .2s;
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.offers-searchbar__btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(20,184,166,.4); }
/* Autocomplete dropdown */
.search-suggestions {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12); z-index: 999; overflow: hidden; display: none;
}
.search-suggestions.active { display: block; }
.suggestion-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; transition: background .12s; border-bottom: 1px solid #f8fafc; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: #f0fdfa; }
.suggestion-item i { width: 18px; color: #14b8a6; font-size: .875rem; text-align: center; flex-shrink: 0; }
.suggestion-item__text { flex: 1; font-size: .875rem; color: #0f172a; }
.suggestion-item__meta { font-size: .72rem; color: #94a3b8; white-space: nowrap; }
.suggestion-item mark { background: none; color: #0d9488; font-weight: 800; }
.suggestion-sep { padding: 5px 16px; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.suggestion-item--company { align-items: flex-start; }
.suggestion-item__inn { display: block; font-size: .72rem; color: #94a3b8; font-weight: 600; margin-top: 1px; }
.suggestion-item__inn mark { background: none; color: #14b8a6; font-weight: 800; }
/* FSB hint */
.fsb-hint { font-size: .72rem; color: #94a3b8; margin-top: 6px; line-height: 1.4; }
/* FSB sidebar icon colours */
.fsb-section__head i.fa-building       { color: #14b8a6; }
.fsb-section__head i.fa-fingerprint    { color: #6366f1; }
.fsb-section__head i.fa-star           { color: #f59e0b; }
.fsb-section__head i.fa-calendar-alt   { color: #0891b2; }
.fsb-section__head i.fa-tags           { color: #6366f1; }
.fsb-section__head i.fa-code-branch    { color: #8b5cf6; }
.fsb-section__head i.fa-info-circle    { color: #0891b2; }
.fsb-section__head i.fa-sliders-h      { color: #14b8a6; }
.fsb-section__head i.fa-chart-line     { color: #10b981; }
.fsb-section__head i.fa-clock          { color: #f59e0b; }
.fsb-section__head i.fa-industry       { color: #3b82f6; }
.fsb-section__head i.fa-laptop-house   { color: #6366f1; }
.fsb-section__head i.fa-briefcase      { color: #3b82f6; }
.fsb-section__head i.fa-graduation-cap { color: #8b5cf6; }
.fsb-section__head i.fa-user-tie       { color: #0891b2; }
.fsb-section__head i.fa-newspaper      { color: #14b8a6; }
.fsb-section__head i.fa-hourglass-half { color: #f59e0b; }
/* Quick filters */
.offers-quickfilters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: 1; }
.qs-perpage { margin-left: auto; width: 66px; }
.quick-filter-sep { width: 1px; height: 26px; background: #e5e7eb; flex-shrink: 0; }
.qs-select {
    height: 42px; padding: 0 30px 0 12px; border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: .8125rem; font-weight: 600; color: #374151; background: #fff;
    cursor: pointer; outline: none; transition: border-color .2s;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.qs-select:focus { border-color: #14b8a6; outline: none; box-shadow: 0 0 0 3px rgba(20,184,166,.1); }
.qs-total { display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg,#14b8a6,#0891b2); color: #fff; padding: 0 14px; height: 42px; border-radius: 8px; font-size: .8125rem; font-weight: 800; white-space: nowrap; }
.view-toggle { display: flex; border: 1.5px solid #e5e7eb; border-radius: 8px; overflow: hidden; height: 42px; }
.view-btn { width: 42px; display: flex; align-items: center; justify-content: center; color: #94a3b8; transition: all .15s; font-size: .875rem; }
.view-btn:hover { color: #0d9488; background: #f0fdfa; }
.view-btn.active { background: #14b8a6; color: #fff; }


/* ─── Page layout ─────────────────────────────────────────────── */
.offers-page-body {
    max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px;
    display: grid; grid-template-columns: 272px 1fr; gap: 28px; align-items: start;
}

/* ═══════════════════════════════════════════════
   FILTER SIDEBAR  (fsb-*)
   ═══════════════════════════════════════════════ */
.offers-sidebar {
    position: sticky; top: 88px;
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    max-height: calc(100vh - 108px); overflow-y: auto;
    background: #fff; border: 1.5px solid #e5e7eb;
}
.offers-sidebar::-webkit-scrollbar { width: 4px; }
.offers-sidebar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

/* Header */
.fsb-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: linear-gradient(135deg,#f0fdfa,#ecfeff);
    border-bottom: 1.5px solid #d1fae5; position: sticky; top: 0; z-index: 2;
}
.fsb-header__left { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 900; color: #0f172a; }
.fsb-header__left i { color: #14b8a6; font-size: .9rem; }
.fsb-badge { background: #14b8a6; color: #fff; font-size: .65rem; font-weight: 900; padding: 2px 7px; border-radius: 100px; min-width: 20px; text-align: center; }
.fsb-reset { font-size: .75rem; font-weight: 700; color: #94a3b8; text-decoration: none; display: flex; align-items: center; gap: 4px; transition: color .15s; padding: 4px 8px; border-radius: 6px; }
.fsb-reset:hover { color: #dc2626; background: #fef2f2; }

/* Section */
.fsb-section { border-bottom: 1px solid #f1f5f9; }
.fsb-section:last-child { border-bottom: none; }
.fsb-section__head {
    width: 100%; display: flex; align-items: center; gap: 8px;
    padding: 11px 16px; background: none; border: none; cursor: pointer;
    font-size: .8125rem; font-weight: 800; color: #1e293b; text-align: left;
    transition: background .12s;
}
.fsb-section__head:hover { background: #f8fafc; }
.fsb-section__head span:first-child { flex: 1; display: flex; align-items: center; gap: 7px; }
.fsb-section__head i.fa-layer-group { color: #8b5cf6; }
.fsb-section__head i.fa-map-marker-alt { color: #f59e0b; }
.fsb-section__head i.fa-ruble-sign { color: #10b981; }
.fsb-section__head i.fa-check-circle { color: #0891b2; }
.fsb-section__head i.fa-box { color: #3b82f6; }
.fsb-section__head i.fa-tools { color: #f97316; }
.fsb-section__head i.fa-concierge-bell { color: #ec4899; }
.fsb-sec-badge { background: #fef3c7; color: #d97706; font-size: .65rem; font-weight: 900; padding: 2px 6px; border-radius: 100px; }
.fsb-chevron { font-size: .65rem; color: #cbd5e1; transition: transform .2s; margin-left: auto; }
.fsb-section--collapsed .fsb-chevron { transform: rotate(-90deg); }

/* Section body */
.fsb-section__body { display: none; padding: 4px 16px 14px; }
.fsb-section__body--open { display: block; }

/* Category search */
.fsb-cat-search-wrap { position: relative; margin-bottom: 8px; }
.fsb-cat-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .75rem; pointer-events: none; }
.fsb-cat-search { width: 100%; height: 34px; padding: 0 10px 0 30px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: .8rem; color: #374151; outline: none; transition: border-color .2s; }
.fsb-cat-search:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.1); }

/* Category list */
.fsb-cats { display: flex; flex-direction: column; gap: 1px; max-height: 260px; overflow-y: auto; }
.fsb-cats::-webkit-scrollbar { width: 3px; }
.fsb-cats::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }
.fsb-cat-group-label { font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; padding: 8px 6px 4px; }
.fsb-cat {
    display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px;
    cursor: pointer; font-size: .8125rem; color: #475569; transition: all .12s; user-select: none;
}
.fsb-cat input { display: none; }
.fsb-cat__dot { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; flex-shrink: 0; transition: all .12s; border: 1.5px solid #d1d5db; }
.fsb-cat:hover { background: #f0fdfa; color: #0d9488; }
.fsb-cat:hover .fsb-cat__dot { border-color: #6ee7b7; background: #a7f3d0; }
.fsb-cat--active { background: #f0fdfa; color: #0d9488; font-weight: 700; }
.fsb-cat--active .fsb-cat__dot { background: #14b8a6; border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.2); }
.fsb-cat--sub { padding-left: 22px; font-size: .775rem; }
.fsb-cat--sub .fsb-cat__dot { width: 5px; height: 5px; }
.fsb-cat--hidden { display: none; }

/* Input with icon */
.fsb-input-wrap { position: relative; display: flex; align-items: center; }
.fsb-input-icon { position: absolute; left: 10px; color: #94a3b8; font-size: .75rem; pointer-events: none; z-index: 1; }
.fsb-input {
    width: 100%; height: 36px; padding: 0 32px 0 30px;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: .8125rem; color: #374151; outline: none; transition: border-color .2s; background: #fff;
}
.fsb-input:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.1); }
.fsb-input-clear { position: absolute; right: 8px; background: none; border: none; color: #94a3b8; cursor: pointer; font-size: .75rem; padding: 4px; line-height: 1; }
.fsb-input-clear:hover { color: #dc2626; }

/* Price row */
.fsb-price-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.fsb-price-input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: .8125rem; color: #374151; outline: none; transition: border-color .2s; }
.fsb-price-input:focus { border-color: #14b8a6; }
.fsb-price-sep { color: #94a3b8; font-weight: 700; flex-shrink: 0; }

/* Select */
.fsb-select {
    width: 100%; height: 36px; padding: 0 28px 0 10px; border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: .8125rem; color: #374151; background: #fff; outline: none; cursor: pointer; transition: border-color .2s;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center; background-size: 18px;
}
.fsb-select:focus { border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.1); }

/* Custom checkbox */
.fsb-check { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: .8125rem; color: #475569; user-select: none; }
.fsb-check input { display: none; }
.fsb-check__box { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #d1d5db; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.fsb-check__box::after { content: ''; width: 5px; height: 9px; border: 2px solid transparent; border-top: none; border-left: none; transform: rotate(45deg) translate(-1px,0); }
.fsb-check:hover .fsb-check__box { border-color: #14b8a6; }
.fsb-check input:checked + .fsb-check__box { background: #14b8a6; border-color: #14b8a6; }
.fsb-check input:checked + .fsb-check__box::after { border-color: #fff; }

/* Pills (multi-option selector) */
.fsb-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.fsb-pill { padding: 4px 10px; border-radius: 100px; border: 1.5px solid #e5e7eb; font-size: .75rem; font-weight: 700; color: #64748b; text-decoration: none; transition: all .12s; }
.fsb-pill:hover { border-color: #14b8a6; color: #0d9488; background: #f0fdfa; }
.fsb-pill--active { background: #14b8a6; border-color: #14b8a6; color: #fff; }

/* Field label */
.fsb-field-label { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: 6px; }

/* Apply button */
.fsb-apply-btn {
    width: 100%; height: 36px; border-radius: 9px; border: none; cursor: pointer; transition: all .15s;
    background: linear-gradient(135deg,#14b8a6,#0891b2); color: #fff; font-size: .8125rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.fsb-apply-btn:hover { box-shadow: 0 4px 14px rgba(20,184,166,.4); transform: translateY(-1px); }

/* Type sections coloured accent */
.fsb-section--product .fsb-section__head { border-left: 3px solid #3b82f6; }
.fsb-section--work    .fsb-section__head { border-left: 3px solid #f97316; }
.fsb-section--service .fsb-section__head { border-left: 3px solid #ec4899; }

/* Legacy keep-compat */
.btn--full { width: 100%; justify-content: center; }


/* ─── Main results ───────────────────────────────────────────── */
.offers-main { min-width: 0; }
.offers-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.offers-result-title { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.offers-result-title span { color: #14b8a6; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.filter-tag { display: inline-flex; align-items: center; gap: 6px; background: #f0fdfa; border: 1px solid #a7f3d0; color: #0d9488; padding: 4px 10px; border-radius: 100px; font-size: .78rem; font-weight: 700; text-decoration: none; }
.filter-tag:hover { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }

/* Cards grid */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.offers-grid--list { grid-template-columns: 1fr !important; }

.offer-card {
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 18px;
    text-decoration: none; color: inherit; overflow: hidden;
    display: flex; flex-direction: column; position: relative;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.offer-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.1); border-color: #a7f3d0; }

.offer-card__img { position: relative; height: 210px; overflow: hidden; background: #f8fafc; }
.offer-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.offer-card:hover .offer-card__img img { transform: scale(1.05); }
.offer-card__img-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #e2e8f0; background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}
.offer-card__type-badge { position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 800; padding: 4px 10px; border-radius: 100px; }
.offer-card__org-badge {
    position: absolute; bottom: 8px; right: 8px; background: rgba(255,255,255,.9);
    border-radius: 8px; padding: 3px 8px 3px 4px;
    display: flex; align-items: center; gap: 5px;
    font-size: .7rem; font-weight: 700; color: #374151; max-width: 120px; overflow: hidden;
}

.offer-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.offer-card__cat { font-size: .7rem; color: #14b8a6; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.offer-card__title { font-size: 1rem; font-weight: 800; color: #0f172a; line-height: 1.4; }
.offer-card__desc { font-size: .8125rem; color: #64748b; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.offer-card__price { font-size: 1.2rem; font-weight: 900; color: #0d9488; letter-spacing: -.5px; }
.offer-card__price--negotiable { font-size: .8rem; font-weight: 700; color: #94a3b8; letter-spacing: 0; }
.offer-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f1f5f9; margin-top: auto; flex-wrap: wrap; gap: 4px; }
.offer-card__org-name { font-size: .75rem; color: #64748b; display: flex; align-items: center; gap: 5px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-card__org-name img { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }
.offer-card__city { font-size: .72rem; color: #94a3b8; }
/* List mode */
.offers-grid--list .offer-card { flex-direction: row; border-radius: 14px; min-height: 160px; height: auto; }
.offers-grid--list .offer-card__img { width: 220px; min-height: 160px; flex-shrink: 0; }
.offers-grid--list .offer-card__img img { border-radius: 0; }
.offers-grid--list .offer-card__img-placeholder { min-height: 160px; }

.offers-grid--list .offer-card__body { padding: 14px 16px; }
.offers-grid--list .offer-card__title { font-size: 1.1rem; }
/* Empty state */
.offers-empty { grid-column: 1/-1; text-align: center; padding: 80px 20px; background: #fff; border: 1.5px dashed #e5e7eb; border-radius: 20px; }
.offers-empty i { font-size: 3.5rem; color: #cbd5e1; margin-bottom: 20px; display: block; }
.offers-empty h3 { font-size: 1.25rem; font-weight: 900; color: #0f172a; margin: 0 0 8px; }
.offers-empty p { color: #64748b; margin: 0 0 24px; }
/* Pagination */
.pagination-bar { padding: 28px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pagination-info { font-size: .8125rem; color: #94a3b8; font-weight: 600; }
.pagination-info strong { color: #475569; }
.pagination-wrap { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.pagination-btn {
    min-width: 40px; height: 40px; padding: 0 6px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: .875rem; font-weight: 700; color: #475569;
    text-decoration: none; background: #fff; transition: all .15s;
}
.pagination-btn:hover { border-color: #14b8a6; color: #0d9488; background: #f0fdfa; }
.pagination-btn.active { background: linear-gradient(135deg, #14b8a6, #0891b2); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(20,184,166,.3); pointer-events: none; }
.pagination-btn--edge { color: #94a3b8; }
.pagination-btn--edge:hover { color: #0d9488; }
.pagination-dots { display: flex; align-items: center; height: 40px; padding: 0 4px; font-size: .875rem; color: #94a3b8; font-weight: 700; user-select: none; }


/* ================================================================
   OFFER DETAIL (/offer/slug)
   ================================================================ */
.breadcrumbs-bar { background: #fff; border-bottom: 1.5px solid #f1f5f9; padding: 12px 0; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8125rem; color: #64748b; }
.breadcrumbs a { color: #0d9488; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.bc-sep { color: #cbd5e1; }
.bc-current { color: #475569; font-weight: 600; }
.offer-detail { padding: 32px 0 60px; }
.offer-detail__layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.offer-gallery { margin-bottom: 28px; }
.offer-gallery__main { position: relative; background: #f8fafc; border-radius: 14px; overflow: hidden; height: 360px; border: 1.5px solid #e5e7eb; }
.offer-gallery__main-img { width: 100%; height: 100%; object-fit: cover; }
.offer-gallery__type-badge { position: absolute; top: 12px; left: 12px; font-size: .75rem; font-weight: 800; padding: 5px 13px; border-radius: 100px; }
.offer-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.offer-gallery__thumb { width: 72px; height: 54px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid #e5e7eb; transition: border-color .15s; }
.offer-gallery__thumb:hover, .offer-gallery__thumb.active { border-color: #14b8a6; }
.offer-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-gallery__placeholder { background: #f8fafc; border-radius: 14px; border: 1.5px solid #e5e7eb; height: 360px; display: flex; align-items: center; justify-content: center; font-size: 5rem; color: #e2e8f0; }
.offer-detail__title { font-size: 1.875rem; font-weight: 900; color: #0f172a; letter-spacing: -.8px; margin: 0 0 12px; }
.offer-detail__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.offer-detail__cat { font-size: .8rem; background: #f0fdfa; color: #0d9488; padding: 4px 12px; border-radius: 100px; text-decoration: none; font-weight: 700; }
.offer-detail__views, .offer-detail__date { font-size: .8rem; color: #94a3b8; }
.offer-detail__short-desc { font-size: 1.05rem; color: #475569; line-height: 1.75; margin-bottom: 28px; border-left: 3px solid #14b8a6; padding-left: 18px; }
.offer-detail__desc { font-size: .9375rem; color: #475569; line-height: 1.8; }
.offer-detail__desc h2,.offer-detail__desc h3,.offer-detail__desc h4 { color: #0f172a; font-weight: 800; margin: 24px 0 10px; }
.offer-detail__desc h2 { font-size: 1.25rem; }
.offer-detail__desc h3 { font-size: 1.1rem; padding-left: 12px; border-left: 3px solid #14b8a6; }
.offer-detail__desc h4 { font-size: 1rem; color: #0d9488; }
.offer-detail__desc ul,.offer-detail__desc ol { padding-left: 22px; margin: 10px 0 16px; }
.offer-detail__desc li { margin-bottom: 6px; }
.offer-detail__desc p { margin: 0 0 14px; }
.offer-detail__desc strong { color: #0f172a; font-weight: 700; }
.offer-detail__desc a { color: #0d9488; text-decoration: underline; }
.offer-section { margin-bottom: 36px; }
.offer-section__title { font-size: 1.125rem; font-weight: 900; color: #0f172a; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid #f1f5f9; display: flex; align-items: center; gap: 8px; }
.offer-section__title i { color: #14b8a6; }
.offer-attrs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.offer-attrs-table tr { border-bottom: 1px solid #f1f5f9; }
.offer-attrs-table tr:last-child { border-bottom: none; }
.offer-attrs-table td { padding: 10px 12px; vertical-align: top; }
.attr-label { color: #64748b; font-weight: 600; width: 42%; }
.offer-attrs-table td:last-child { color: #0f172a; font-weight: 700; }
.offer-docs-list { display: flex; flex-direction: column; gap: 10px; }
.offer-doc-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #f8fafc; border: 1.5px solid #e5e7eb; border-radius: 14px; text-decoration: none; color: inherit; transition: all .15s; }
.offer-doc-item:hover { background: #f0fdfa; border-color: #a7f3d0; }
.offer-doc-item__icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #14b8a6, #0891b2); color: #fff; font-size: 1.25rem; }
.offer-doc-item__info { flex: 1; min-width: 0; }
.offer-doc-item__info strong { display: block; font-size: .875rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-doc-item__info span { font-size: .75rem; color: #94a3b8; }

/* Price card */
.offer-price-card { background: #fff; border: 2px solid rgba(20,184,166,.2); border-radius: 20px; padding: 28px; margin-bottom: 16px; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(20,184,166,.08); }
.offer-price-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #14b8a6, #0ea5e9); border-radius: 20px 20px 0 0; }
.offer-price-card__label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #64748b; margin-bottom: 6px; }
.offer-price-card__price { font-size: 2.25rem; font-weight: 900; letter-spacing: -1.5px; line-height: 1; color: #0d9488; }
.offer-price-card__unit { font-size: .8rem; color: #6b7280; margin-top: 4px; }
.offer-price-card__vat { font-size: .75rem; color: #6b7280; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.offer-price-card__min { font-size: .8rem; color: #64748b; margin-top: 6px; }
.offer-price-card__delivery { font-size: .8rem; color: #6b7280; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.offer-price-card__delivery i { color: #14b8a6; }

/* Company card */
.offer-company-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 18px; padding: 20px; margin-bottom: 12px; transition: border-color .15s; }
.offer-company-card:hover { border-color: #a7f3d0; }
.offer-company-card__header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.offer-company-card__logo { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; border: 1.5px solid #e5e7eb; flex-shrink: 0; }
.offer-company-card__logo-placeholder { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, #14b8a6, #0891b2); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; flex-shrink: 0; }
.offer-company-card__name { font-weight: 800; color: #0d9488; text-decoration: none; font-size: .9375rem; display: block; margin-bottom: 4px; line-height: 1.3; }
.offer-company-card__name:hover { text-decoration: underline; }
.verified-badge-sm { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; background: #d1fae5; color: #065f46; padding: 2px 8px; border-radius: 100px; font-weight: 800; }
.offer-company-card__city, .offer-company-card__area, .offer-company-card__schedule { font-size: .8125rem; color: #64748b; margin-bottom: 6px; display: flex; align-items: flex-start; gap: 7px; }
.offer-company-card__city i, .offer-company-card__area i, .offer-company-card__schedule i { color: #14b8a6; flex-shrink: 0; margin-top: 1px; }

/* Contacts card */
.offer-contacts-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 18px; padding: 20px; margin-bottom: 12px; }
.offer-contacts-card h4 { font-size: .875rem; font-weight: 800; color: #0f172a; margin: 0 0 14px; }
.offer-contact-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; margin-bottom: 6px; font-size: .875rem; font-weight: 700; color: #0d9488; text-decoration: none; transition: background .15s; border: 1px solid transparent; }
.offer-contact-link:hover { background: #f0fdfa; border-color: #a7f3d0; }
.offer-contact-link i { width: 18px; text-align: center; color: #14b8a6; }
.offer-cta .btn { display: block; text-align: center; margin-bottom: 8px; }

/* Similar offers */
.offer-similar { margin-top: 52px; }
.section-title-sm { font-size: 1.375rem; font-weight: 900; color: #0f172a; margin: 0 0 22px; }
.offer-card--sm .offer-card__img { height: 140px; }
.offer-card--sm .offer-card__title { font-size: .8125rem; }
.offer-card--sm .offer-card__price { font-size: .9rem; }

/* Type selector (offer_create) */
.offer-type-selector { text-align: center; padding: 48px 0; }
.offer-type-selector__title { font-size: 2rem; font-weight: 900; color: #0f172a; margin: 0 0 10px; }
.offer-type-selector__sub { color: #64748b; margin: 0 0 36px; font-size: 1rem; }
.offer-type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 840px; margin: 0 auto; }
.offer-type-card { background: #fff; border: 2px solid #e5e7eb; border-radius: 22px; padding: 36px 24px; text-decoration: none; color: inherit; transition: all .22s; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.offer-type-card:hover { transform: translateY(-8px); box-shadow: 0 24px 64px rgba(0,0,0,.13); }
.offer-type-card--product:hover { border-color: #3b82f6; background: #eff6ff; }
.offer-type-card--work:hover { border-color: #f97316; background: #fff7ed; }
.offer-type-card--service:hover { border-color: #10b981; background: #f0fdf4; }
.otc-icon { font-size: 2.75rem; }
.offer-type-card--product .otc-icon { color: #3b82f6; }
.offer-type-card--work    .otc-icon { color: #f97316; }
.offer-type-card--service .otc-icon { color: #10b981; }
.offer-type-card h3 { font-size: 1.5rem; font-weight: 900; color: #0f172a; margin: 0; }
.offer-type-card p { font-size: .9rem; color: #64748b; margin: 0; line-height: 1.65; flex: 1; }
.otc-arrow { position: absolute; bottom: 20px; right: 20px; color: #e2e8f0; font-size: 1.1rem; transition: color .2s; }
.offer-type-card:hover .otc-arrow { color: #14b8a6; }

/* ── Utility classes ─────────────────────────────────────── */
.badge-gray   { background: rgba(107,114,128,.12); color: #6b7280; padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 700; display: inline-block; white-space: nowrap; }
.badge-green  { background: rgba(16,185,129,.12);  color: #059669; padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 700; display: inline-block; white-space: nowrap; }
.badge-orange { background: rgba(245,158,11,.12);  color: #d97706; padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 700; display: inline-block; white-space: nowrap; }
.badge-blue   { background: rgba(6,182,212,.12);   color: #0891b2; padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 700; display: inline-block; white-space: nowrap; }
.badge-red    { background: rgba(239,68,68,.12);   color: #dc2626; padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 700; display: inline-block; white-space: nowrap; }
.dashboard-title    { font-size: 1.5rem; font-weight: 900; color: #0f172a; margin: 0 0 4px; }
.dashboard-subtitle { font-size: .9rem; color: #64748b; margin: 0; }
.dashboard-content  { margin-top: 8px; }
.mb-4       { margin-bottom: 24px; }
.mt-2       { margin-top: 8px; }
.text-sm    { font-size: .8125rem !important; }
.text-nowrap{ white-space: nowrap; }
.text-center{ text-align: center; }
.btn--sm    { padding: 6px 14px; font-size: .8125rem; }
.btn-ghost  { background: transparent; border: 1.5px solid #e2e8f0; color: #64748b; padding: 6px 14px; border-radius: 8px; text-decoration: none; font-size: .8125rem; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; cursor: pointer; }
.btn-ghost:hover { background: #f8fafc; color: #0d9488; border-color: #14b8a6; }
.form-control--sm { padding: 7px 12px !important; font-size: .8125rem !important; height: auto !important; }
.table-actions { display: flex; gap: 4px; align-items: center; }
.header-actions-group { display: flex; gap: 10px; align-items: center; }
.empty-state-icon { font-size: 3rem; color: #cbd5e1; margin-bottom: 12px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .offers-hero h1 { font-size: 2.75rem; }
    .offers-page-body { grid-template-columns: 240px 1fr; gap: 20px; }
    .offer-detail__layout { grid-template-columns: 1fr 290px; }
}
@media (max-width: 900px) {
    .offers-page-body { grid-template-columns: 1fr; }
    .offers-sidebar { position: static; max-height: none; overflow: visible; border-radius: 16px; }
    /* Мобильный тогглер сайдбара */
    .sidebar-filters-toggle {
        display: flex; align-items: center; justify-content: space-between;
        padding: 14px 18px; cursor: pointer; user-select: none;
        background: #fff; border-radius: 16px;
    }
    .sidebar-filters-toggle .toggle-icon { transition: transform .3s; }
    .sidebar-collapsed .sidebar-filters-toggle .toggle-icon { transform: rotate(-180deg); }
    .sidebar-collapsed .sidebar-filters-body { display: none; }
    .offers-searchbar__inner { flex-wrap: wrap; }
    .offers-quickfilters { width: 100%; }
    /* Поле поиска на всю ширину */
    .offers-searchbar__wrap { flex: 1 1 100%; min-width: 0; }
    .offers-searchbar__btn { flex: 0 0 auto; }
}
@media (max-width: 768px) {
    .offers-hero h1 { font-size: 2.25rem; letter-spacing: -1px; }
    .offers-hero__inner { padding: 48px 16px 36px; }
    .offers-hero__stats { gap: 16px; }
    .hero-stat__num { font-size: 1.375rem; }
    .offers-searchbar__inner { padding: 12px 14px; gap: 8px; }
    .offers-page-body { padding: 16px 12px 40px; }
    .offers-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .offer-detail__layout { grid-template-columns: 1fr; }
    .offer-detail__layout > aside { order: -1; }
    .offer-type-cards { grid-template-columns: 1fr; max-width: 400px; }
    /* Скрываем переключатель вида и кол-во записей — освобождаем место */
    .view-toggle { display: none; }
    .qs-perpage { display: none; }
    .quick-filter-sep { display: none; }
    /* Компакт-кнопка «Найти» */
    .offers-searchbar__btn { padding: 0 16px; font-size: .8rem; }
    .offers-searchbar__btn i { display: none; }
}
@media (max-width: 480px) {
    .offers-hero h1 { font-size: 1.75rem; }
    .offers-hero__stats { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .hero-stat { min-width: 70px; }
    .hero-stat__num { font-size: 1.25rem; }
    .offers-type-tab { padding: 6px 10px; font-size: .76rem; gap: 5px; }
    .offers-searchbar__inner { padding: 10px 12px; }
    .offers-grid { grid-template-columns: 1fr; }
    .offers-grid--list .offer-card { flex-direction: column; height: auto; }
    .offers-grid--list .offer-card__img { width: 100%; height: 160px; }
    /* Карточка оферты компактнее */
    .offer-card__body { padding: 14px 14px; }
    .offer-card__title { font-size: .9rem; }
    .offer-card__price { font-size: 1.05rem; }
    /* Сортировка — на всю ширину */
    .qs-sort { flex: 1; width: 100%; }
    .offers-quickfilters { flex-wrap: wrap; }
    /* Уменьшаем отступы страницы */
    .offers-page-body { padding: 12px 10px 32px; }
}
@media (max-width: 360px) {
    .page-hero, .pr-hero, .ab-hero, .ct-hero { padding: 32px 0 24px !important; }
    .page-hero-inner h1, .pr-hero-inner h1, .ab-hero-inner h1 { font-size: 1.6rem !important; letter-spacing: -1px !important; }
    .hero-pills span { font-size: .72rem !important; padding: 4px 10px !important; }
    .offers-type-tab { padding: 5px 8px; font-size: .72rem; }
    .offers-searchbar__btn { padding: 0 12px; }
    .qs-sort { font-size: .75rem; }
    .offer-card__img { height: 160px; }
}


/* ── btn-icon variants (success, warning) ──────────────────── */
.btn-icon.btn-success,
.btn-icon--success {
    background: rgba(16,185,129,.12); color: #059669 !important;
    border: 1.5px solid rgba(16,185,129,.3);
}
.btn-icon.btn-success:hover,
.btn-icon--success:hover {
    background: rgba(16,185,129,.22); border-color: rgba(16,185,129,.5);
}
.btn-icon.btn-warning,
.btn-icon--warning {
    background: rgba(245,158,11,.12); color: #d97706 !important;
    border: 1.5px solid rgba(245,158,11,.3);
}
.btn-icon.btn-warning:hover,
.btn-icon--warning:hover {
    background: rgba(245,158,11,.22); border-color: rgba(245,158,11,.5);
}
.btn-icon--danger {
    background: rgba(239,68,68,.12); color: #dc2626 !important;
    border: 1.5px solid rgba(239,68,68,.3);
}
.btn-icon--danger:hover {
    background: rgba(239,68,68,.22); border-color: rgba(239,68,68,.5);
}


/* Sidebar mobile toggle — скрыт на десктопе, виден только через media query */
.sidebar-filters-toggle { display: none; }
/* На десктопе сайдбар всегда раскрыт */
@media (min-width: 901px) {
    .sidebar-filters-body { display: block !important; }
}

/* ── City autocomplete ── */
.city-ac-wrap { position: relative; }
.city-ac-list { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 200; margin-top: 4px; overflow: hidden; }
.city-ac-item { padding: 10px 14px; font-size: .875rem; color: #374151; cursor: pointer; transition: background .12s; }
.city-ac-item:hover { background: #f0fdfa; color: #0d9488; }

/* ── Card badges strip ── */
.offer-card__badges { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 0 6px; }
.offer-card__badge { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 100px; display: inline-flex; align-items: center; gap: 4px; }
.offer-card__badge--delivery  { background: #eff6ff; color: #1d4ed8; }
.offer-card__badge--vat       { background: #f0fdf4; color: #166534; }
.offer-card__badge--verified  { background: #d1fae5; color: #065f46; }
.offer-card__badge--stock     { background: #dcfce7; color: #15803d; }
.offer-card__badge--order     { background: #fef9c3; color: #a16207; }
.offer-card__badge--warranty  { background: #ede9fe; color: #6d28d9; }
.offer-card__badge--sro       { background: #fff7ed; color: #c2410c; }
.offer-card__badge--travel    { background: #ecfdf5; color: #047857; }
.offer-card__badge--equip     { background: #fff7ed; color: #ea580c; }
.offer-card__badge--remote    { background: #f0f9ff; color: #0369a1; }
.offer-card__badge--format    { background: #fdf4ff; color: #7e22ce; }
.offer-card__badge--level     { background: #f0fdfa; color: #0f766e; }
.offer-card__brand   { font-size: .72rem; color: #64748b; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.offer-card__brand i { color: #94a3b8; font-size: .65rem; }
.offer-card__article { font-size: .7rem; color: #94a3b8; font-weight: 600; font-family: monospace; }
.offer-card__minqty  { font-size: .7rem; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.offer-card__minqty i { color: #cbd5e1; font-size: .65rem; }

/* ── attr-label (если не было) ── */
.offer-attrs-table .attr-label { width: 200px; min-width: 140px; color: #6b7280; font-weight: 600; padding-right: 16px; vertical-align: top; }

/* ── offer detail sidebar info ── */
.offer-price-card__label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #9ca3af; margin-bottom: 8px; }
.offer-company-card__city,.offer-company-card__area,.offer-company-card__schedule { font-size: .8rem; color: #6b7280; padding: 6px 0; display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid #f1f5f9; margin-top: 4px; line-height: 1.5; }
.offer-company-card__city i,.offer-company-card__area i,.offer-company-card__schedule i { color: #14b8a6; margin-top: 2px; flex-shrink: 0; width: 14px; text-align: center; }
.offer-contact-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid #f1f5f9; text-decoration: none; color: #0f172a; font-size: .875rem; font-weight: 600; margin-bottom: 8px; transition: all .15s; }
.offer-contact-link:last-child { margin-bottom: 0; }
.offer-contact-link:hover { background: #f0fdfa; border-color: #a7f3d0; color: #0d9488; }
.offer-contact-link i { color: #14b8a6; width: 16px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.offer-contacts-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 18px; padding: 20px; margin-bottom: 12px; }
.offer-contacts-card h4 { margin: 0 0 14px; font-size: .875rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.offer-contacts-card h4 i { color: #14b8a6; }
.offer-cta { margin-top: 4px; }
.btn--full { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; }

/* ══════════════════════════════════════════════════════
   OFFER DETAIL PAGE — FULL REDESIGN
   ══════════════════════════════════════════════════════ */

.offer-detail-page { padding: 0 0 60px; background: #f8fafc; }
.offer-detail__layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; padding-top: 24px; }

/* Gallery */
.offer-gallery { margin-bottom: 24px; }
.offer-gallery__main { position: relative; border-radius: 16px; overflow: hidden; height: 380px; border: 1.5px solid #e5e7eb; background: #f8fafc; box-shadow: 0 4px 20px rgba(0,0,0,.07); display: flex; align-items: center; justify-content: center; }
.offer-gallery__main-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.offer-gallery__count { position: absolute; bottom: 12px; right: 12px; background: rgba(15,23,42,.65); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 100px; backdrop-filter: blur(6px); }
.offer-gallery__placeholder { border-radius: 16px; border: 1.5px solid #e5e7eb; height: 380px; background: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 6rem; color: #cbd5e1; }
.offer-gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.offer-gallery__thumb { width: 72px; height: 52px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .15s; }
.offer-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-gallery__thumb--active { border-color: #14b8a6; }

/* Title block */
.offer-title-block { margin-bottom: 20px; }
.offer-title-block__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.offer-type-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; line-height: 1; }
.offer-badge--product { background: #eff6ff; color: #1d4ed8; }
.offer-badge--work    { background: #fff7ed; color: #c2410c; }
.offer-badge--service { background: #f0fdf4; color: #15803d; }
.offer-cat-link { font-size: .8rem; color: #0d9488; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: color .15s; }
.offer-cat-link:hover { color: #0f172a; }
.offer-meta-item { font-size: .78rem; color: #94a3b8; display: inline-flex; align-items: center; gap: 5px; }
/* ─── Meta pills ─────────────────────────────────────────────── */
.offer-meta-pill{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:4px;font-size:.72rem;font-weight:700;text-decoration:none;white-space:nowrap;text-transform:uppercase;letter-spacing:.05em;border:1px solid transparent;transition:opacity .15s;line-height:1}
.offer-meta-pill:hover{opacity:.82}
.offer-meta-pill--cat   {background:#CCFBF1;color:#0d9488;border-color:#5eead4}
.offer-meta-pill--cat i {color:#0d9488}
.offer-meta-pill--subcat   {background:#EDE9FE;color:#6D28D9;border-color:#C4B5FD}
.offer-meta-pill--subcat i {color:#7C3AED}
.offer-meta-pill--views   {background:#EDE9FE;color:#6D28D9;border-color:#C4B5FD}
.offer-meta-pill--views i {color:#7C3AED}
.offer-meta-pill--date   {background:#FEF3C7;color:#92400E;border-color:#FCD34D}
.offer-meta-pill--date i {color:#D97706}
/* type badge — одинаковый размер с пилюлями */
.offer-detail-page .offer-type-badge { border-radius:4px; }
.offer-title { font-size: 1.75rem; font-weight: 900; color: #0f172a; margin: 0 0 14px; line-height: 1.25; letter-spacing: -.5px; }
.offer-short-desc { background: linear-gradient(135deg,#f0fdfa,#e0f2fe); border-left: 4px solid #14b8a6; border-radius: 0 12px 12px 0; padding: 14px 18px 14px 22px; font-size: .9375rem; color: #374151; line-height: 1.7; }
.offer-short-desc__icon { color: #14b8a6; margin-right: 8px; font-size: 1.1rem; opacity: .7; }

/* Section tabs */
.offer-tabs { display: flex; gap: 2px; margin-bottom: 8px; border-bottom: 2px solid #e5e7eb; padding-top: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.offer-tabs::-webkit-scrollbar { display: none; }
.offer-tab { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; font-size: .8rem; font-weight: 700; color: #64748b; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: 8px 8px 0 0; transition: all .15s; white-space: nowrap; }
.offer-tab:hover { color: #0d9488; background: #f0fdfa; }
.offer-tab.active { color: #0d9488; border-bottom-color: #14b8a6; background: #fff; }

/* Sections */
.offer-section { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 18px; padding: 28px 32px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.04); scroll-margin-top: 120px; }
.offer-section__title { font-size: 1.125rem; font-weight: 900; color: #0f172a; margin: 0 0 22px; display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1.5px solid #f1f5f9; }
.offer-section__title i { color: #14b8a6; }

/* Description */
.offer-desc__content { font-size: .9375rem; line-height: 1.8; color: #374151; }
.offer-desc__content h3 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin: 20px 0 10px; padding-left: 12px; border-left: 3px solid #14b8a6; }
.offer-desc__content h4 { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 16px 0 8px; }
.offer-desc__content ul { padding-left: 0; list-style: none; }
.offer-desc__content ul li { padding: 4px 0 4px 22px; position: relative; }
.offer-desc__content ul li::before { content: "✓"; position: absolute; left: 0; color: #14b8a6; font-weight: 900; }
.offer-desc__content p { margin: 12px 0; }
.offer-desc__content strong { color: #0f172a; font-weight: 800; }

/* Facts grid */
.offer-facts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 24px; }
.offer-fact { background: #f8fafc; border: 1.5px solid #f1f5f9; border-radius: 14px; padding: 16px; text-align: center; transition: border-color .15s; }
.offer-fact:hover { border-color: #a7f3d0; }
.offer-fact__icon { font-size: 1.5rem; color: #14b8a6; margin-bottom: 8px; }
.offer-fact__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: 4px; }
.offer-fact__val { font-size: .875rem; font-weight: 800; color: #0f172a; line-height: 1.3; }

/* Includes/Excludes */
.offer-includes, .offer-excludes { border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.offer-includes { background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.offer-excludes { background: #fff1f2; border: 1.5px solid #fecdd3; }
.offer-includes__title, .offer-excludes__title { font-size: .875rem; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.offer-includes__title { color: #15803d; }
.offer-excludes__title { color: #be123c; }
.offer-includes__list, .offer-excludes__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.offer-includes__list li, .offer-excludes__list li { font-size: .875rem; display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.offer-includes__list li i { color: #16a34a; margin-top: 2px; flex-shrink: 0; }
.offer-excludes__list li i { color: #e11d48; margin-top: 2px; flex-shrink: 0; }

/* Detail cards */
.offer-details-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.offer-detail-card { display: flex; align-items: flex-start; gap: 14px; background: #f8fafc; border: 1.5px solid #f1f5f9; border-radius: 14px; padding: 16px; }
.offer-detail-card__icon { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg,#14b8a6,#0891b2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.offer-detail-card__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; margin-bottom: 4px; }
.offer-detail-card__val { font-size: .875rem; font-weight: 600; color: #1e293b; line-height: 1.4; }

/* Attrs modern */
.offer-attrs-modern { display: flex; flex-direction: column; gap: 2px; }
.offer-attr-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.offer-attr-row:last-child { border-bottom: none; }
.offer-attr-row__icon { color: #14b8a6; width: 18px; text-align: center; flex-shrink: 0; }
.offer-attr-row__label { font-size: .825rem; color: #6b7280; font-weight: 600; width: 200px; flex-shrink: 0; }
.offer-attr-row__val { font-size: .875rem; color: #1e293b; font-weight: 500; flex: 1; }

/* Company full */
.offer-org-full__header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.offer-org-full__avatar { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; background: linear-gradient(135deg,#14b8a6,#0891b2); color: #fff; font-size: 1.25rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.offer-org-full__name { font-size: 1rem; font-weight: 800; margin-bottom: 6px; line-height: 1.3; }
.offer-org-full__name a { color: #0f172a; text-decoration: none; }
.offer-org-full__name a:hover { color: #0d9488; }
.org-verified-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; background: #d1fae5; color: #065f46; padding: 5px 11px; border-radius: 4px; margin-left: 0; text-transform: uppercase; letter-spacing: .05em; line-height: 1; }
.offer-org-full__director { font-size: .825rem; color: #6b7280; margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.offer-org-full__city { font-size: .825rem; color: #6b7280; display: flex; align-items: center; gap: 7px; }
.offer-org-full__rekvizity { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; background: #f8fafc; border-radius: 14px; padding: 16px; border: 1.5px solid #f1f5f9; }
.offer-org-rekvizit { display: flex; flex-direction: column; gap: 2px; }
.offer-org-rekvizit--full { grid-column: 1/-1; }
.offer-org-rekvizit__label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; }
.offer-org-rekvizit__val { font-size: .875rem; font-weight: 600; color: #1e293b; }

/* Sidebar */
.offer-detail__sidebar { position: sticky; top: 88px; }
.offer-price-card { background: #fff; border: 2px solid #d1fae5; border-radius: 20px; padding: 24px; box-shadow: 0 4px 20px rgba(20,184,166,.1); position: relative; overflow: hidden; }
.offer-price-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,#14b8a6,#0891b2); }
.offer-price-card__label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #6b7280; margin-bottom: 8px; }
.offer-price-card__price { font-size: 2rem; font-weight: 900; color: #0d9488; line-height: 1; margin-bottom: 4px; letter-spacing: -.5px; }
.offer-price-card__unit { font-size: .825rem; color: #6b7280; margin-bottom: 12px; }
.offer-price-card__vat { font-size: .78rem; color: #16a34a; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; background: #f0fdf4; padding: 5px 10px; border-radius: 8px; }
.offer-price-card__prepay { font-size: .825rem; color: #92400e; background: #fef3c7; padding: 6px 10px; border-radius: 8px; display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.offer-price-card__payterms { font-size: .78rem; color: #6b7280; line-height: 1.5; display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid #f1f5f9; }

.offer-sidebar-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 18px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.offer-sidebar-card--contacts { margin-top: 12px; }
.offer-sidebar-card--contacts ~ .offer-sidebar-card { margin-top: 12px; }
.offer-sidebar-card__title { font-size: .825rem; font-weight: 800; color: #0f172a; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.offer-sidebar-card__title i { color: #14b8a6; }

/* Quick facts sidebar */
.offer-quickfacts { display: flex; flex-direction: column; gap: 12px; }
.offer-qf { display: flex; align-items: flex-start; gap: 12px; }
.offer-qf > i { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg,#f0fdfa,#e0f2fe); color: #0d9488; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .875rem; }
.offer-qf__l { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; }
.offer-qf__v { font-size: .825rem; font-weight: 700; color: #1e293b; }

/* Company mini */
.offer-company-mini { display: flex; gap: 12px; align-items: flex-start; }
.offer-company-mini__logo { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; border: 1.5px solid #e5e7eb; flex-shrink: 0; }
.offer-company-mini__avatar { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg,#14b8a6,#0891b2); color: #fff; font-size: 1.1rem; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.offer-company-mini__name { font-size: .875rem; font-weight: 800; color: #0f172a; text-decoration: none; display: block; margin-bottom: 4px; line-height: 1.3; }
.offer-company-mini__name:hover { color: #0d9488; }
.offer-company-mini__verified { font-size: .7rem; font-weight: 700; color: #16a34a; display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.offer-company-mini__unverified { font-size: .7rem; font-weight: 700; color: #92400e; display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.offer-company-mini__city, .offer-company-mini__inn { font-size: .75rem; color: #6b7280; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.offer-company-mini__inn span { color: #94a3b8; }

/* Contact buttons */
.offer-contact-btn { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; text-decoration: none; transition: all .15s; border: 1.5px solid #f1f5f9; margin-bottom: 8px; }
.offer-contact-btn:last-child { margin-bottom: 0; }
.offer-contact-btn--phone { background: #f0fdf4; border-color: #bbf7d0; }
.offer-contact-btn--phone:hover { background: #dcfce7; border-color: #86efac; }
.offer-contact-btn--phone > i { color: #16a34a; }
.offer-contact-btn--email { background: #eff6ff; border-color: #bfdbfe; }
.offer-contact-btn--email:hover { background: #dbeafe; }
.offer-contact-btn--email > i { color: #2563eb; }
.offer-contact-btn--web { background: #f5f3ff; border-color: #ddd6fe; }
.offer-contact-btn--web:hover { background: #ede9fe; }
.offer-contact-btn--web > i { color: #7c3aed; }
.offer-contact-btn > i { font-size: 1.25rem; width: 20px; text-align: center; flex-shrink: 0; }
.offer-contact-btn__label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; display: block; }
.offer-contact-btn__val { font-size: .875rem; font-weight: 700; color: #1e293b; display: block; }
.offer-cta-btn { justify-content: center; padding: 14px; font-size: .9rem; margin-top: 14px; }

/* Breadcrumbs */
.breadcrumbs-bar { background: #fff; border-bottom: 1px solid #f1f5f9; padding: 10px 0; font-size: .8rem; }
.breadcrumbs-bar .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumbs-bar a { color: #64748b; text-decoration: none; }
.breadcrumbs-bar a:hover { color: #0d9488; }
.breadcrumbs-bar i.fa-chevron-right { color: #cbd5e1; font-size: .65rem; }
.breadcrumbs-bar span { color: #0f172a; font-weight: 600; }
.breadcrumb-title { display: inline; }

/* text utility */
.text-green { color: #16a34a !important; }

/* Similar offers */
.similar-offers-section { background: #f8fafc; border-top: 1.5px solid #f1f5f9; padding: 40px 0 48px; }
.similar-offers__title { font-size: 1.25rem; font-weight: 900; color: #0f172a; margin: 0 0 24px; display: flex; align-items: center; gap: 10px; }
.similar-offers__title i { color: #14b8a6; }
.similar-offers__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.similar-offer-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; overflow: hidden; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.similar-offer-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); border-color: #a7f3d0; }
.similar-offer-card__img { height: 140px; overflow: hidden; background: #f8fafc; }
.similar-offer-card__img img { width: 100%; height: 100%; object-fit: cover; }
.similar-offer-card__img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #cbd5e1; }
.similar-offer-card__body { padding: 12px 14px; }
.similar-offer-card__title { font-size: .875rem; font-weight: 700; color: #1e293b; margin: 8px 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.similar-offer-card__price { font-size: .9rem; font-weight: 800; color: #0d9488; margin-bottom: 4px; }
.similar-offer-card__city { font-size: .75rem; color: #94a3b8; display: flex; align-items: center; gap: 5px; }
@media (max-width:900px) { .similar-offers__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:540px) { .similar-offers__grid { grid-template-columns: 1fr; } .offer-detail__layout { grid-template-columns: 1fr; } }
