/* public/css/pages/marks-reference.css — from pages/marks-reference.blade.php */

.marks-page { padding-bottom: 60px; }
.marks-page .breadcrumbs { margin: 20px 0; }
.marks-page .breadcrumbs__list { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 13px; }
.marks-page .breadcrumbs__item { display: flex; align-items: center; }
.marks-page .breadcrumbs__item a { color: #6b7280; text-decoration: none; }
.marks-page .breadcrumbs__item a:hover { color: #f0cf4c; }
.marks-page .breadcrumbs__sep { margin: 0 8px; color: #d1d5db; font-size: 10px; }
.marks-page .breadcrumb_last { color: #1a1a1a; font-weight: 500; }
.marks-page ._block-title { font-size: 28px; font-weight: 700; color: #1a1a1a; margin: 0 0 24px; }
@media (max-width: 640px) { .marks-page ._block-title { font-size: 22px; } }
.marks-layout { display: grid; grid-template-columns: 1fr minmax(240px, 260px); gap: 32px; align-items: start; margin-top: 24px; }
@media (max-width: 991px) { .marks-layout { grid-template-columns: 1fr; } }
.marks-page .news-single-sidebar { position: sticky; top: 24px; min-width: 0; }
.marks-page .news-sidebar-widget { background: #fafbfc; border-radius: 12px; padding: 16px; margin-bottom: 16px; border: 1px solid #eef0f2; }
.marks-page .news-sidebar-widget:last-child { margin-bottom: 0; }
.marks-page .news-sidebar-widget__title { font-size: 13px; font-weight: 600; margin: 0 0 12px; letter-spacing: 0.02em; text-transform: uppercase; color: #64748b; }
.marks-page .news-sidebar-widget__list { list-style: none; padding: 0; margin: 0; }
.marks-page .news-sidebar-widget__list li { margin-bottom: 6px; }
.marks-page .news-sidebar-widget__list a { color: #334155; text-decoration: none; font-size: 13px; padding: 6px 0; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.marks-page .news-sidebar-widget__list a:hover { color: #b8860b; background: rgba(240, 207, 76, 0.08); }
.marks-page .news-sidebar-widget__list .count { color: #94a3b8; font-size: 12px; }
.marks-page .news-sidebar-widget__date { display: block; font-size: 11px; color: #94a3b8; margin-top: 2px; }
.reference-section { margin-top: 32px; }
.reference-section__header { margin-bottom: 28px; }
.reference-section__title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.reference-section__title i { color: #f0cf4c; }
.reference-section__description { font-size: 15px; color: #6b7280; margin: 0; line-height: 1.5; }
.reference-grid { display: flex; flex-direction: column; gap: 12px; }
.reference-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.reference-card__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; transition: background 0.2s; }
.reference-card__header:hover { background: #f9fafb; }
.reference-card__toggle { display: flex; align-items: center; gap: 12px; flex: 1; background: none; border: none; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.reference-card__toggle-icon { color: #9ca3af; font-size: 12px; transition: transform 0.2s; }
.reference-card.is-open .reference-card__toggle-icon { transform: rotate(-180deg); }
.reference-card__toggle h3 { margin: 0; font-size: 16px; font-weight: 600; color: #1a1a1a; }
.reference-card__catalog-link { font-size: 14px; color: #b8860b; text-decoration: none; white-space: nowrap; }
.reference-card__catalog-link:hover { text-decoration: underline; }
.reference-card__content { display: none; padding: 0 20px 20px; }
.reference-card.is-open .reference-card__content { display: block; }
.reference-gost-list, .reference-mark-list { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.6; }
.reference-gost-list li, .reference-mark-list li { padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
.reference-gost-list li:last-child, .reference-mark-list li:last-child { border-bottom: none; }
.reference-mark-list__link { color: #374151; text-decoration: none; }
.reference-mark-list__link:hover { color: #b8860b; }
.reference-mark-list__item--no-page { color: #6b7280; }

/* Поиск марок */
.marks-search { margin-bottom: 28px; position: relative; max-width: 420px; }
.marks-search__input-wrap { position: relative; }
.marks-search__input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.marks-search__input::placeholder { color: #9ca3af; }
.marks-search__input:focus {
    outline: none;
    border-color: #f0cf4c;
    box-shadow: 0 0 0 3px rgba(240, 207, 76, 0.2);
}
.marks-search__icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.marks-search__dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    z-index: 50;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
}
.marks-search__dropdown.is-open { display: block; }
.marks-search__dropdown li { margin: 0; padding: 0; }
.marks-search__item {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    color: #1a1a1a;
    text-decoration: none;
    border: none;
    width: 100%;
    text-align: left;
    background: none;
    cursor: pointer;
    transition: background 0.15s;
}
.marks-search__item:hover,
.marks-search__item.is-active { background: rgba(240, 207, 76, 0.15); color: #1a1a1a; }
.marks-search__item small { color: #6b7280; font-size: 13px; margin-left: 6px; }
.marks-search__empty { padding: 16px; color: #6b7280; font-size: 14px; }
