/*
Theme Name:   Konigo
Theme URI:    https://konigo.ru
Author:       Konigo
Description:  Тема для конного маркетплейса. Тёмно-синяя с золотом.
Version:      1.0.6
Requires PHP: 7.4
Text Domain:  konigo
*/

/* ================================================================
   ПЕРЕМЕННЫЕ И СБРОС
================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
	background-color: #F9FAFB;
	color: #111827;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ================================================================
   LAYOUT
================================================================ */
.container-custom {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* ================================================================
   ХЕДЕР — точно как в index.html
================================================================ */
.konigo-header {
	background-color: #0A1C3A;
	box-shadow: 0 4px 16px rgba(0,0,0,.3);
	border-bottom: 1px solid rgba(212,175,55,.3);
	position: sticky;
	top: 0;
	z-index: 100;
}

.konigo-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: .75rem;
	padding-bottom: .75rem;
	flex-wrap: wrap;
}

/* Логотип */
.konigo-logo {
	display: flex;
	align-items: center;
	gap: .5rem;
	color: #D4AF37;
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -.02em;
	white-space: nowrap;
	flex-shrink: 0;
	transition: color .2s;
}
.konigo-logo:hover { color: #fff; }
.konigo-logo__icon { font-size: 1.875rem; color: #D4AF37; }
.konigo-logo__text { color: inherit; }

/* Десктоп-навигация */
.konigo-nav {
	flex: 1;
	min-width: 0;
}
.konigo-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.konigo-nav a {
	color: #E5E7EB;
	font-size: .95rem;
	font-weight: 500;
	white-space: nowrap;
	transition: color .18s;
}
.konigo-nav a:hover { color: #D4AF37; }
.konigo-nav .current-menu-item > a { color: #D4AF37; }

/* Правый блок */
.konigo-header__right {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-shrink: 0;
}

.konigo-region {
	display: flex;
	align-items: center;
	gap: .35rem;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(212,175,55,.3);
	border-radius: 20px;
	padding: .35rem .85rem;
	font-size: .82rem;
	color: #D1D5DB;
	cursor: pointer;
	transition: background .18s;
	white-space: nowrap;
}
.konigo-region:hover { background: rgba(255,255,255,.18); }
.konigo-region .fa-map-marker-alt { color: #D4AF37; }

.konigo-icon-btn {
	color: #D1D5DB;
	font-size: 1.25rem;
	transition: color .18s;
	line-height: 1;
}
.konigo-icon-btn:hover { color: #D4AF37; }

.konigo-cabinet {
	display: flex;
	align-items: center;
	gap: .4rem;
	color: #D1D5DB;
	font-size: .88rem;
	font-weight: 500;
	white-space: nowrap;
	transition: color .18s;
}
.konigo-cabinet:hover { color: #D4AF37; }
.konigo-cabinet .fa-user-circle { font-size: 1.4rem; }
.konigo-chevron { font-size: .65rem; opacity: .6; }

/* Кнопка «+ Добавить» — всегда золотая, всегда видна */
.konigo-btn-add {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background-color: #D4AF37;
	color: #0A1C3A;
	font-size: .875rem;
	font-weight: 700;
	padding: .45rem 1.1rem;
	border-radius: 20px;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(212,175,55,.4);
	transition: background-color .18s;
	flex-shrink: 0;
}
.konigo-btn-add:hover { background-color: #B8922E; }

/* ================================================================
   BOTTOM NAVIGATION BAR (mobile) — 5 пунктов + центральная FAB-кнопка
================================================================ */
.konigo-bottom-nav {
	display: none;
}
.konigo-bottom-nav__fab {
	display: none;
}

@media (max-width: 768px) {
	/* Скрыть десктоп-элементы */
	.konigo-nav          { display: none; }
	.konigo-icon-btn     { display: none; }
	.konigo-cabinet span,
	.konigo-chevron      { display: none; }

	/* Отступ снизу для контента, чтобы bottom nav не перекрывал */
	body { padding-bottom: 76px; }

	/* Bottom nav — фиксированный снизу */
	.konigo-bottom-nav {
		display: block;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 200;
		background: #0A1C3A;
		border-top: 1px solid rgba(212,175,55,.25);
		box-shadow: 0 -4px 24px rgba(0,0,0,.35);
		padding: 0 0 env(safe-area-inset-bottom);
		height: 64px;
	}

	.konigo-bottom-nav__list {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		align-items: stretch;
		width: 100%;
		height: 100%;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.konigo-bottom-nav__list > li {
		min-width: 0;
		height: 100%;
	}

	/* Обычные пункты меню (иконка + подпись) */
	.konigo-bottom-nav__list a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: .25rem;
		height: 100%;
		color: #8A9BB8;
		text-decoration: none;
		font-size: clamp(.5rem, 1.7vw, .62rem);
		font-weight: 600;
		line-height: 1.1;
		text-align: center;
		text-transform: uppercase;
		padding: .35rem .1rem;
		transition: color .18s;
		position: relative;
		word-break: normal;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.konigo-bottom-nav__list a i {
		font-size: 1.05rem;
		line-height: 1;
	}
	.konigo-bottom-nav__list a:active { color: #D4AF37; }

	/* Активный пункт */
	.konigo-bottom-nav__item--active,
	.konigo-bottom-nav__list .current-menu-item > a {
		color: #D4AF37;
	}

	/* Пустая ячейка-распорка под центральную кнопку (сама кнопка — ниже) */
	.konigo-bottom-nav__spacer {
		pointer-events: none;
	}

	/* Кнопка «Добавить» — независимый fixed-элемент, всегда поверх бара,
	   не зависит от overflow/грида родителей → не может обрезаться */
	.konigo-bottom-nav__fab {
		position: fixed;
		left: 50%;
		bottom: env(safe-area-inset-bottom, 0px);
		transform: translateX(-50%);
		z-index: 210;
		width: 84px;
		height: 90px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-end;
		padding-bottom: 8px;
		text-decoration: none;
		color: #D4AF37;
		font-size: clamp(.5rem, 1.7vw, .62rem);
		font-weight: 600;
		text-transform: uppercase;
		text-align: center;
	}
	.konigo-bottom-nav__fab-circle {
		width: 52px;
		height: 52px;
		margin-bottom: 6px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #D4AF37;
		border-radius: 50%;
		box-shadow: 0 4px 10px rgba(0,0,0,.25), 0 0 0 4px #0A1C3A;
		transition: transform .18s;
	}
	.konigo-bottom-nav__fab-circle i {
		color: #0A1C3A;
		font-size: 1.2rem;
		line-height: 1;
	}
	.konigo-bottom-nav__fab:active .konigo-bottom-nav__fab-circle {
		transform: scale(.94);
	}
}

/* Адаптив десктоп */
@media (max-width: 1024px) {
	.konigo-region { display: none; }
}

/* ================================================================
   БЛОК ПОИСКА — точно как в index.html
================================================================ */
.konigo-search-section {
	background: linear-gradient(to right, #0A1C3A, #051024);
	padding: 1.5rem 0;
	border-bottom: 1px solid rgba(212,175,55,.3);
}
.konigo-search-wrap {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	background-color: #0A1C3A;
	border-radius: 1rem;
	padding: .5rem;
	box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
@media (min-width: 640px) {
	.konigo-search-wrap { flex-direction: row; }
}
.konigo-search-input {
	flex: 1;
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 20px;
	padding: .5rem 1rem;
	border: 1px solid #E5E7EB;
	gap: .5rem;
}
.konigo-search-input i { color: #9CA3AF; }
.konigo-search-input input {
	width: 100%;
	border: none;
	outline: none;
	color: #374151;
	font-size: .95rem;
	font-family: inherit;
}
.konigo-search-btn {
	background-color: #D4AF37;
	color: #0A1C3A;
	font-weight: 700;
	padding: .5rem 1.5rem;
	border-radius: 20px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: .95rem;
	white-space: nowrap;
	transition: background-color .18s;
	box-shadow: 0 2px 6px rgba(212,175,55,.3);
}
.konigo-search-btn:hover { background-color: #B8922E; }

/* Чипсы быстрых фильтров — на тёмном фоне */
.konigo-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin-top: 1rem;
}
.konigo-chip {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	background-color: rgba(255,255,255,.12);
	color: #F9FAFB;
	border: 1px solid rgba(212,175,55,.35);
	border-radius: 20px;
	padding: .3rem .85rem;
	font-size: .82rem;
	cursor: pointer;
	transition: background-color .18s, border-color .18s;
	white-space: nowrap;
	text-decoration: none;
}
.konigo-chip:hover {
	background-color: rgba(212,175,55,.2);
	border-color: #D4AF37;
	color: #fff;
}
.konigo-chip i { color: #D4AF37; }

/* ================================================================
   БАННЕР
================================================================ */
.konigo-banner {
	background-color: #0A1C3A;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,.2);
	color: #fff;
	position: relative;
}
.konigo-banner__bg-icon {
	position: absolute;
	right: 0;
	bottom: 0;
	opacity: .1;
	font-size: 9rem;
	line-height: 1;
	color: #D4AF37;
}
.konigo-banner__body {
	padding: 1.75rem 2rem;
	position: relative;
	z-index: 1;
}
.konigo-banner h2 { font-size: 1.8rem; font-weight: 800; margin: 0 0 .5rem; text-transform: none; letter-spacing: 0; }
.konigo-banner p { color: #E5E7EB; font-size: 1rem; margin: 0 0 1.25rem; }
.konigo-banner__btns { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Золотая кнопка */
.btn-gold {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background-color: #D4AF37;
	color: #0A1C3A;
	font-weight: 700;
	padding: .55rem 1.4rem;
	border-radius: .625rem;
	border: none;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
	transition: background-color .18s, box-shadow .18s, transform .18s;
	box-shadow: 0 2px 8px rgba(212,175,55,.3);
}
.btn-gold:hover { background-color: #B8922E; transform: translateY(-1px); }

/* Призрачная кнопка */
.btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background-color: rgba(255,255,255,.1);
	color: #fff;
	font-weight: 600;
	padding: .55rem 1.4rem;
	border-radius: .625rem;
	border: 1px solid #D4AF37;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
	transition: background-color .18s;
}
.btn-ghost:hover { background-color: rgba(255,255,255,.2); }

/* Тёмная кнопка */
.btn-dark {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background-color: #0A1C3A;
	color: #fff;
	font-weight: 600;
	padding: .55rem 1.4rem;
	border-radius: 20px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
	transition: background-color .18s, color .18s;
}
.btn-dark:hover { background-color: #D4AF37; color: #0A1C3A; }

/* ================================================================
   КАРТОЧКИ КАТЕГОРИЙ
================================================================ */
.konigo-grid-cat {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: .875rem;
}
.category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: .625rem;
	min-height: 7rem;
	padding: 1rem .85rem;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
	text-decoration: none;
}
.category-card:hover {
	background-color: #FFFBEB;
	border-color: #D4AF37;
	box-shadow: 0 8px 20px rgba(10,28,58,.1);
	transform: translateY(-2px);
}
.category-card i { font-size: 1.875rem; color: #D4AF37; display: block; margin-bottom: .5rem; }
.category-card .cat-title { font-weight: 700; color: #0A1C3A; display: block; }
.category-card .cat-sub { font-size: .75rem; color: #6B7280; }

/* ================================================================
   КАРТОЧКИ ОБЪЯВЛЕНИЙ
================================================================ */
.listing-card {
	background: #fff;
	border-radius: .625rem;
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	text-decoration: none;
}
.listing-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 24px -12px rgba(10,28,58,.18);
}
.listing-card__img {
	height: 12rem;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.listing-card__img img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.listing-card__body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.listing-card__title { font-weight: 700; font-size: 1.1rem; color: #0A1C3A; margin: 0 0 .25rem; }
.listing-card__sub { font-size: .875rem; color: #6B7280; margin: 0 0 .5rem; }
.listing-card__price { font-weight: 700; font-size: 1.4rem; color: #D4AF37; margin: 0 0 .5rem; }
.listing-card__link { font-size: .875rem; color: #D4AF37; font-weight: 600; margin-top: auto; }
.listing-card__link:hover { color: #0A1C3A; }

/* Простая карточка (свежие объявления) */
.listing-mini {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: .5rem;
	padding: .75rem;
	transition: box-shadow .18s;
	display: block;
	text-decoration: none;
}
.listing-mini:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.listing-mini h3 { font-weight: 700; color: #0A1C3A; margin: .25rem 0; font-size: .95rem; }
.listing-mini p { font-size: .82rem; color: #6B7280; margin: 0; }

/* ================================================================
   БЛОК ПОРОД (тёмный фон)
================================================================ */
.breed-card {
	display: block;
	background-color: #13294B;
	border: 1px solid rgba(212,175,55,.3);
	border-radius: .625rem;
	padding: .75rem;
	text-align: center;
	text-decoration: none;
	transition: background-color .18s, color .18s;
}
.breed-card:hover { background-color: #D4AF37; }
.breed-card .breed-name { display: block; font-weight: 700; color: #fff; transition: color .18s; }
.breed-card:hover .breed-name { color: #0A1C3A; }
.breed-card .breed-count { display: block; font-size: .75rem; color: #D4AF37; transition: color .18s; }
.breed-card:hover .breed-count { color: #0A1C3A; }

/* ================================================================
   БЛОК РЕГИОНОВ
================================================================ */
.region-card {
	display: block;
	background: #fff;
	border: 1px solid rgba(212,175,55,.3);
	border-radius: .625rem;
	padding: .65rem .5rem;
	text-align: center;
	text-decoration: none;
	transition: border-color .18s, box-shadow .18s;
}
.region-card:hover { border-color: #D4AF37; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.region-card .region-name { display: block; font-weight: 500; color: #0A1C3A; font-size: .875rem; }
.region-card .region-count { display: block; font-size: .75rem; color: #D4AF37; }

/* ================================================================
   УСЛУГИ И СНАРЯЖЕНИЕ
================================================================ */
.service-card {
	display: flex;
	align-items: center;
	gap: .75rem;
	background: #fff;
	border: 1px solid rgba(212,175,55,.2);
	border-radius: .625rem;
	padding: .75rem;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
	transition: border-color .18s, box-shadow .18s, transform .18s;
}
.service-card:hover { border-color: rgba(212,175,55,.65); box-shadow: 0 6px 16px rgba(10,28,58,.09); transform: translateY(-1px); }
.service-card i { color: #D4AF37; font-size: 1.1rem; width: 1.5rem; text-align: center; }
.service-card span { color: #0A1C3A; font-size: .9rem; }
.konigo-service-links {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}
.konigo-service-links a {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(212,175,55,.45);
	border-radius: .625rem;
	padding: .5rem .85rem;
	background: #fff;
}

/* ================================================================
   БЛОГ-КАРТОЧКИ
================================================================ */
.blog-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	border-left: 4px solid #D4AF37;
	border-radius: .625rem;
	padding: 1rem 1.1rem;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	text-decoration: none;
	gap: 1rem;
	transition: background-color .18s, border-left-color .18s;
}
.blog-card:hover { background-color: #FFFBEB; border-left-color: #0A1C3A; }
.blog-card h3 { font-weight: 700; font-size: 1rem; color: #0A1C3A; margin: 0 0 .25rem; }
.blog-card p { font-size: .82rem; color: #6B7280; margin: 0; }
.blog-card i { color: #D4AF37; flex-shrink: 0; }

/* ================================================================
   ЛИЧНЫЙ КАБИНЕТ (из плагина)
================================================================ */
.lk-section { display: none; }
.lk-section.active-section { display: block; animation: konigo-fade-in .25s ease; }

.lk-sidebar-item {
	display: flex;
	align-items: center;
	gap: .75rem;
	text-decoration: none;
	color: #374151;
	border-left: 3px solid transparent;
	border-radius: 0 .5rem .5rem 0;
	padding: .4rem .75rem;
	transition: all .15s;
}
.lk-sidebar-item:hover,
.lk-sidebar-item.active {
	background-color: rgba(212,175,55,.1);
	border-left-color: #D4AF37;
	color: #0A1C3A;
}

.status-badge { display: inline-block; background: #10B981; color: #fff; font-size: .7rem; padding: .2rem .6rem; border-radius: 20px; }
.status-badge.moderation { background: #F59E0B; }
.status-badge.sold { background: #6B7280; }

.tab-active { border-bottom: 2px solid #D4AF37; color: #0A1C3A; font-weight: 600; }
.konigo-auth-tab { border-bottom: 2px solid transparent; background: none; cursor: pointer; }

/* ================================================================
   ФОРМА ПОДАЧИ ОБЪЯВЛЕНИЯ (из плагина)
================================================================ */
.konigo-step { animation: konigo-fade-in .25s ease; }
.konigo-category-option.border-gold { box-shadow: 0 0 0 1px #D4AF37; }

/* ================================================================
   ТИПОГРАФИКА КОНТЕНТА
================================================================ */
.konigo-content > * + * { margin-top: 1em; }
.konigo-content h2 { font-size: 1.5rem; font-weight: 700; color: #0A1C3A; }
.konigo-content h3 { font-size: 1.25rem; font-weight: 700; color: #0A1C3A; }
.konigo-content ul { list-style: disc; padding-left: 1.5rem; }
.konigo-content ol { list-style: decimal; padding-left: 1.5rem; }
.konigo-content a { /* color: #D4AF37; */; text-decoration: underline; }
.konigo-content blockquote { border-left: 4px solid #D4AF37; padding-left: 1rem; color: #4B5563; font-style: italic; }

/* ================================================================
   ПОДВАЛ
================================================================ */
.konigo-footer {
	background-color: #051024;
	color: #9CA3AF;
	border-top: 1px solid rgba(212,175,55,.3);
	margin-top: 3rem;
	padding: 2.5rem 0 1.5rem;
}
.konigo-footer a { color: #9CA3AF; transition: color .18s; }
.konigo-footer a:hover { color: #D4AF37; }
.konigo-footer__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.konigo-footer__col h3 { color: #D4AF37; font-weight: 700; margin: 0 0 .75rem; font-size: 1rem; }
.konigo-footer__col ul { list-style: none; padding: 0; margin: 0; }
.konigo-footer__col li + li { margin-top: .5rem; }
.konigo-footer__col a { font-size: .875rem; }
.konigo-footer__bottom {
	border-top: 1px solid rgba(212,175,55,.2);
	margin-top: 2rem;
	padding-top: 1.25rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .82rem;
	flex-wrap: wrap;
	gap: .75rem;
}
.konigo-footer__social { display: flex; gap: 1rem; }
.konigo-footer__social a { font-size: 1.2rem; }

@media (max-width: 768px) {
	.konigo-footer__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
	.konigo-footer__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   АНИМАЦИЯ / ПРОЧЕЕ
================================================================ */
@keyframes konigo-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.hover-scale { transition: transform .2s, box-shadow .2s; }
.hover-scale:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -12px rgba(0,0,0,.12); }

/* ================================================================
   АДАПТИВ ГЛАВНОЙ СТРАНИЦЫ
================================================================ */
@media (max-width: 1024px) {
	/* ТОП объявления: 3 → 2 колонки */
	.konigo-grid-3 { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 768px) {
	/* Все сетки → 1-2 колонки */
	.konigo-grid-3 { grid-template-columns: 1fr !important; }
	.konigo-grid-4 { grid-template-columns: repeat(2,1fr) !important; }
	.konigo-grid-5 { grid-template-columns: repeat(2,1fr) !important; }
	.konigo-grid-8 { grid-template-columns: repeat(2,1fr) !important; }
	.konigo-grid-2cols { grid-template-columns: 1fr !important; }

	/* Баннер */
	.konigo-banner h2 { font-size: 1.4rem; }

	/* Каталог: фильтры сверху */
	#konigo-catalog-layout { flex-direction: column !important; }
}
@media (max-width: 480px) {
	.konigo-grid-4 { grid-template-columns: 1fr !important; }
	.konigo-grid-cat { grid-template-columns: repeat(2,1fr) !important; }
}

/* ================================================================
   ФОРМА ПОДАЧИ ОБЪЯВЛЕНИЯ + ЛИЧНЫЙ КАБИНЕТ
   Заменяем Tailwind-классы реальным CSS для шаблонов плагина
================================================================ */

/* Базовые утилиты Tailwind, используемые в шаблонах плагина */
.hidden { display: none !important; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* Flex */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.flex-col { flex-direction: column; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1,1fr); }
.grid-cols-2 { grid-template-columns: repeat(2,1fr); }

/* Sizing */
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.h-6 { height: 1.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.relative { position: relative; }
.absolute { position: absolute; }
.-top-2 { top: -.5rem; }
.-right-2 { right: -.5rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Spacing */
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.pt-2 { padding-top: .5rem; }
.pb-2 { padding-bottom: .5rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-1 { margin-bottom: .25rem; }
.mt-1 { margin-top: .25rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-2 { margin-right: .5rem; }
.mr-1 { margin-right: .25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Typography */
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.block { display: block; }
.inline-block { display: inline-block; }
.cursor-pointer { cursor: pointer; }

/* Colors */
.text-dark-blue { color: #0A1C3A; }
.text-gold { color: #D4AF37; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-gray-600 { color: #4B5563; }
.text-gray-700 { color: #374151; }
.text-white { color: #fff; }
.text-red-500 { color: #EF4444; }
.text-red-600 { color: #DC2626; }
.text-green-500 { color: #10B981; }

/* Backgrounds */
.bg-white { background-color: #fff; }
.bg-gold { background-color: #D4AF37; }
.bg-dark-blue { background-color: #0A1C3A; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-amber-50 { background-color: #FFFBEB; }
.bg-gold\/10 { background-color: rgba(212,175,55,.1); }

/* Borders */
.border { border: 1px solid #E5E7EB; }
.border-b { border-bottom: 1px solid #E5E7EB; }
.border-gray-300 { border-color: #D1D5DB; }
.border-b-4 { border-bottom-width: 4px; border-bottom-style: solid; }
.border-gold { border-color: #D4AF37; }
.border-gray-200 { border-color: #E5E7EB; }
.border-2 { border-width: 2px; }
.border-dashed { border-style: dashed; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06); }
.transition { transition: all .2s ease; }
.accent-gold { accent-color: #D4AF37; }
.hover\:border-gold:hover { border-color: #D4AF37; }
.hover\:bg-yellow-500:hover { background-color: #EAB308; }
.hover\:text-dark-blue:hover { color: #0A1C3A; }
.focus\:outline-none:focus { outline: none; }
.focus\:border-gold:focus { border-color: #D4AF37; }

@media (min-width: 640px) {
	.sm\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
	.sm\:grid-cols-4 { grid-template-columns: repeat(4,1fr); }
	.sm\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 768px) {
	.md\:grid-cols-3 { grid-template-columns: repeat(3,1fr); }
	.md\:p-8 { padding: 2rem; }
}

/* ================================================================
   ФОРМА: специфические компоненты
================================================================ */

/* Обёртка формы */
#konigo-submit-form {
	max-width: 80rem;
	margin: 0 auto;
	padding: 2rem 1rem;
}

@media (min-width: 768px) {
	#konigo-submit-form {
		padding-right: 1.5rem;
		padding-left: 1.5rem;
	}
}

/* Индикатор шагов */
.konigo-step-indicator {
	flex: 1;
	text-align: center;
	padding-bottom: .5rem;
	font-size: .875rem;
	font-weight: 500;
	border-bottom: 4px solid #E5E7EB;
	color: #9CA3AF;
	transition: all .2s;
}
.konigo-step-indicator.border-gold {
	border-bottom-color: #D4AF37;
	color: #0A1C3A;
}
.flex.items-center.justify-between.mb-8 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	margin-bottom: 2rem;
}

/* Шаги формы */
.konigo-step > div {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: .625rem;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(10,28,58,.07);
}
#konigo-submit-form .konigo-step:not([data-step="1"]) > div {
	padding: 1.5rem;
}
#konigo-submit-form .konigo-step[data-step="success"] > div {
	padding: 2rem;
}

/* Поля ввода в форме */
#konigo-submit-form input[type="text"],
#konigo-submit-form input[type="email"],
#konigo-submit-form input[type="tel"],
#konigo-submit-form input[type="number"],
#konigo-submit-form input[type="password"],
#konigo-submit-form textarea,
#konigo-submit-form select {
	width: 100%;
	border: 1px solid #E5E7EB;
	border-radius: .5rem;
	padding: .5rem .75rem;
	font-size: .95rem;
	font-family: inherit;
	outline: none;
	box-sizing: border-box;
	transition: border-color .18s;
	background: #fff;
}
#konigo-submit-form input:focus,
#konigo-submit-form textarea:focus,
#konigo-submit-form select:focus {
	border-color: #D4AF37;
	box-shadow: 0 0 0 2px rgba(212,175,55,.15);
}
#konigo-submit-form label {
	display: block;
	font-weight: 500;
	margin-bottom: .25rem;
	color: #111827;
}
#konigo-submit-form h3 {
	font-size: 1rem;
	line-height: 1.35;
	margin-bottom: 1rem;
	padding-bottom: .55rem;
}

/* Сетки внутри формы */
#konigo-submit-form .grid.grid-cols-1 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

/* Категории */
#konigo-category-select {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, max-content));
	justify-content: start;
	align-items: stretch;
	gap: .625rem;
	max-width: 43rem;
}
.konigo-category-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	border: 1px solid #E5E7EB;
	border-radius: .625rem;
	padding: .65rem 1rem;
	text-align: center;
	font-size: .875rem;
	line-height: 1.2;
	cursor: pointer;
	background: #fff;
	transition: border-color .18s, background .18s, box-shadow .18s, color .18s;
}
.konigo-category-option:hover {
	border-color: rgba(212,175,55,.75);
	background: #FFFBEB;
}
.konigo-category-option.border-gold {
	border-color: #D4AF37;
	background: rgba(212,175,55,.12);
	box-shadow: 0 0 0 1px rgba(212,175,55,.85);
	color: #0A1C3A;
	font-weight: 700;
}

/* Загрузка фото */
#konigo-submit-form label.flex.flex-col.items-center.justify-center {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 2px dashed rgba(212,175,55,.5);
	border-radius: .625rem;
	padding: 1.4rem 1rem;
	cursor: pointer;
	transition: background .18s;
}
#konigo-submit-form label.flex.flex-col.items-center.justify-center:hover {
	background: rgba(212,175,55,.05);
}

/* Кнопки внутри формы */
#konigo-step1-next,
#konigo-publish-btn,
#konigo-register-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background-color: #D4AF37;
	color: #0A1C3A;
	font-weight: 700;
	padding: .625rem 1.5rem;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: .95rem;
	box-shadow: 0 2px 8px rgba(212,175,55,.3);
	transition: background-color .18s;
}
#konigo-step1-next:hover,
#konigo-publish-btn:hover,
#konigo-register-btn:hover { background-color: #B8922E; }
#konigo-step1-next:disabled,
#konigo-publish-btn:disabled,
#konigo-register-btn:disabled { opacity: .6; cursor: not-allowed; }

#konigo-login-btn {
	display: block;
	width: 100%;
	background-color: #0A1C3A;
	color: #fff;
	font-weight: 600;
	padding: .625rem 1.5rem;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: .95rem;
	transition: background-color .18s;
}
#konigo-login-btn:hover { background-color: #13294B; }
#konigo-login-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Кнопка «Назад» */
.konigo-back-btn {
	background: none;
	border: none;
	color: #6B7280;
	font-size: .875rem;
	cursor: pointer;
	font-family: inherit;
	transition: color .18s;
	padding: 0;
}
.konigo-back-btn:hover { color: #0A1C3A; }

/* Шаг 2: вкладки регистрация/вход */
.konigo-auth-tab {
	border: none;
	background: none;
	padding: .5rem 0;
	font-size: .875rem;
	font-weight: 500;
	color: #6B7280;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	font-family: inherit;
	transition: all .18s;
}
.konigo-auth-tab.tab-active {
	color: #0A1C3A;
	border-bottom-color: #D4AF37;
	font-weight: 600;
}
.flex.gap-4.border-b.mb-4 {
	display: flex;
	gap: 1rem;
	border-bottom: 1px solid #E5E7EB;
	margin-bottom: 1rem;
}

/* Пространство между полями */
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

/* Превью фото */
#konigo-photo-list {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: .5rem;
}
#konigo-photo-list img {
	width: 5rem;
	height: 5rem;
	object-fit: cover;
	border-radius: .5rem;
	border: 2px solid #E5E7EB;
}

/* Ошибки */
.konigo-form-error,
.konigo-auth-error,
.konigo-publish-error {
	color: #EF4444;
	font-size: .875rem;
	margin-top: .75rem;
}

/* Превью объявления (шаг 3) */
#konigo-preview {
	background: #F9FAFB;
	border-radius: .75rem;
	padding: 1rem;
	font-size: .875rem;
}
#konigo-preview p { margin: .25rem 0; }
#konigo-preview img {
	width: 4rem;
	height: 4rem;
	object-fit: cover;
	border-radius: .5rem;
	display: inline-block;
	margin-right: .5rem;
	margin-bottom: .5rem;
}

/* Успех */
.konigo-step[data-step="success"] > div {
	text-align: center;
}
.konigo-step[data-step="success"] > div > i {
	display: block;
	font-size: 3rem;
	color: #10B981;
	margin-bottom: 1rem;
}

.konigo-submit-icon {
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(212,175,55,.14);
	color: #D4AF37;
	font-size: 1.8rem;
}
.konigo-submit-icon--success {
	background: rgba(16,185,129,.14);
	color: #10B981;
}
.konigo-step[data-step="success"] a {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: #D4AF37;
	color: #0A1C3A;
	font-weight: 700;
	padding: .625rem 1.5rem;
	border-radius: 9999px;
	transition: background .18s;
	text-decoration: none;
}
.konigo-step[data-step="success"] a:hover { background: #B8922E; }

/* Условные поля (порода/возраст/пол) */
.konigo-conditional { margin-top: 0; }
.konigo-conditional.hidden { display: none !important; }
.konigo-conditional:not(.hidden) {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

/* Адаптив формы */
@media (min-width: 640px) {
	#konigo-submit-form .grid.grid-cols-1 { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   ФИКСЫ ЛК: убираем ограничения WordPress для страницы кабинета
================================================================ */

/* Страница my-account — убираем ограничение ширины от темы/WP */
.page-id-my-account .entry-content,
.post-type-page .entry-content,
body.page .entry-content,
body.page main > article > .entry-content,
body.page main > article {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.konigo-page-shell {
	padding-top: 2rem;
	padding-bottom: 3rem;
	max-width: 56rem;
}
.konigo-page-article {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: .75rem;
	padding: 1.75rem;
	box-shadow: 0 8px 24px rgba(10,28,58,.06);
}
.konigo-page-title {
	font-size: 1.85rem;
	font-weight: 800;
	line-height: 1.2;
	color: #0A1C3A;
	margin: 0 0 1.25rem;
}
@media (max-width: 640px) {
	.konigo-page-shell { padding-top: 1rem; padding-bottom: 2rem; }
	.konigo-page-article { padding: 1.25rem; }
	.konigo-page-title { font-size: 1.45rem; }
}

/* Убираем заголовок страницы "Личный кабинет" — он внутри ЛК виджета */
.page-id-my-account .entry-header,
.page-id-my-account h1.entry-title {
	display: none;
}

/* Гарантируем что lk-page занимает всю ширину */
.lk-page { width: 100%; }

/* Кнопка «Подать объявление» на дашборде — принудительные стили */
.lk-btn-gold,
a.lk-btn-gold {
	display: inline-flex !important;
	align-items: center !important;
	gap: .4rem !important;
	background-color: #D4AF37 !important;
	color: #0A1C3A !important;
	font-weight: 700 !important;
	padding: .6rem 1.4rem !important;
	border-radius: 9999px !important;
	border: none !important;
	cursor: pointer !important;
	font-family: inherit !important;
	font-size: .9rem !important;
	text-decoration: none !important;
	transition: background-color .18s !important;
	box-shadow: 0 2px 8px rgba(212,175,55,.3) !important;
	opacity: 1 !important;
	visibility: visible !important;
}
.lk-btn-gold:hover,
a.lk-btn-gold:hover {
	background-color: #B8922E !important;
	color: #0A1C3A !important;
}
.lk-btn-gold--sm,
a.lk-btn-gold--sm {
	font-size: .82rem !important;
	padding: .4rem 1rem !important;
}

/* ================================================================
   КАТАЛОГ ОБЪЯВЛЕНИЙ — макет 1-в-1 с Каталог.html
================================================================ */

/* Хлебные крошки */
.cat-breadcrumb {
	background: #F3F4F6;
	border-bottom: 1px solid #E5E7EB;
	padding: .75rem 0;
}
.cat-breadcrumb__trail {
	font-size: .82rem;
	color: #9CA3AF;
	margin: 0 0 .35rem;
	display: flex;
	align-items: center;
	gap: .4rem;
	flex-wrap: wrap;
}
.cat-breadcrumb__trail a { color: #6B7280; }
.cat-breadcrumb__trail a:hover { color: #D4AF37; }
.cat-breadcrumb__title {
	font-size: 1.6rem;
	font-weight: 700;
	color: #0A1C3A;
	margin: 0 0 .2rem;
}
.cat-breadcrumb__count { font-size: .82rem; color: #6B7280; margin: 0; }

/* Layout */
.cat-layout { padding-top: 1.5rem; padding-bottom: 3rem; }

.cat-columns {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
}

/* Сайдбар */
.cat-sidebar {
	width: 280px;
	flex-shrink: 0;
}
.cat-sidebar__inner {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 1rem;
	padding: 1.25rem;
	position: sticky;
	top: 5.5rem;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Результаты */
.cat-results { flex: 1; min-width: 0; }

/* Мобильный фильтр */
.cat-mobile-filter { display: none; margin-bottom: 1rem; }
.cat-mobile-filter__wrap {
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 4px 6px rgba(0,0,0,.08);
	overflow: hidden;
}
.cat-mobile-filter__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 1rem 1.25rem;
	background: transparent;
	border: 0;
	font: inherit;
	cursor: pointer;
	transition: background .2s;
}
.cat-mobile-filter__header:hover { background: #F9FAFB; }
.cat-mobile-filter__header-left { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: #0A1C3A; }
.cat-mobile-filter__active-badge {
	background: rgba(212,175,55,.2);
	color: #B8922E;
	font-size: .68rem;
	border-radius: 9999px;
	padding: .1rem .5rem;
}
#catMobileFilterIcon { color: #9CA3AF; transition: transform .3s ease; }
#catMobileFilterIcon.open { transform: rotate(180deg); }
.cat-mobile-filter__body {
	max-height: 0;
	overflow: hidden;
	transition: max-height .4s cubic-bezier(.4,0,.2,1);
	border-top: 0 solid #E5E7EB;
}
.cat-mobile-filter__body.open {
	max-height: 900px;
	border-top-width: 1px;
	overflow-y: auto;
}
.cat-mobile-filter__inner { padding: 1.25rem; }

/* Секции фильтров */
.cat-filter-section {
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid #F3F4F6;
}
.cat-filter-section:last-of-type { border-bottom: none; }
.cat-filter-title {
	font-weight: 600;
	color: #0A1C3A;
	font-size: .9rem;
	margin: 0 0 .6rem;
}

/* Чипсы фильтров */
.cat-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.cat-chip {
	display: inline-flex;
	align-items: center;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 9999px;
	padding: .3rem .85rem;
	font-size: .8rem;
	color: #374151;
	cursor: pointer;
	font-family: inherit;
	transition: all .18s;
	text-decoration: none;
	white-space: nowrap;
}
.cat-chip:hover, .cat-chip--active {
	background: #D4AF37;
	border-color: #D4AF37;
	color: #0A1C3A;
	font-weight: 600;
}

/* Возраст + цена диапазоны */
.cat-age-range, .cat-price-range {
	display: flex;
	align-items: center;
	gap: .5rem;
	width: 100%;
	box-sizing: border-box;
}
.cat-age-sep { color: #9CA3AF; flex-shrink: 0; }
.cat-select {
	border: 1px solid #E5E7EB;
	border-radius: .5rem;
	padding: .45rem .5rem;
	font-size: .82rem;
	font-family: inherit;
	outline: none;
	cursor: pointer;
	transition: border-color .18s;
	flex: 1;
	min-width: 0;
	max-width: 100%;
	background: #fff;
	box-sizing: border-box;
}
.cat-select--full { width: 100%; flex: none; }
.cat-select:hover, .cat-select:focus { border-color: #D4AF37; box-shadow: 0 0 0 2px rgba(212,175,55,.15); }
.cat-input {
	flex: 1;
	min-width: 0;
	max-width: 100%;
	border: 1px solid #E5E7EB;
	border-radius: .5rem;
	padding: .45rem .6rem;
	font-size: .82rem;
	font-family: inherit;
	outline: none;
	transition: border-color .18s;
	background: #fff;
	box-sizing: border-box;
}
.cat-input:focus { border-color: #D4AF37; }

/* Масть */
.cat-coat-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .35rem;
	max-height: 180px;
	overflow-y: auto;
	padding-right: 4px;
}
.cat-coat-list::-webkit-scrollbar { width: 4px; }
.cat-coat-list::-webkit-scrollbar-track { background: #E5E7EB; border-radius: 4px; }
.cat-coat-list::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 4px; }
.cat-coat-item {
	display: flex;
	align-items: center;
	gap: .35rem;
	font-size: .8rem;
	cursor: pointer;
	color: #374151;
	transition: color .15s;
}
.cat-coat-item:hover { color: #D4AF37; }
.cat-coat-checkbox { accent-color: #D4AF37; }

/* Кнопки фильтра */
.cat-apply-btn {
	width: 100%;
	background: #D4AF37;
	color: #0A1C3A;
	font-weight: 700;
	border: none;
	border-radius: 9999px;
	padding: .65rem 1rem;
	font-family: inherit;
	font-size: .9rem;
	cursor: pointer;
	transition: background .18s;
	margin-top: .75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
}
.cat-apply-btn:hover { background: #B8922E; }
.cat-reset-link {
	display: block;
	text-align: center;
	margin-top: .5rem;
	font-size: .82rem;
	color: #9CA3AF;
	text-decoration: none;
	transition: color .15s;
}
.cat-reset-link:hover { color: #0A1C3A; }

/* Тулбар сортировки */
.cat-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: 1.25rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid #E5E7EB;
}
.cat-toolbar__count { font-size: .875rem; color: #6B7280; }
.cat-toolbar__sort { display: flex; align-items: center; gap: .5rem; }
.cat-sort-select {
	border: 1px solid #E5E7EB;
	border-radius: .5rem;
	padding: .4rem .75rem;
	font-size: .82rem;
	font-family: inherit;
	outline: none;
	cursor: pointer;
	background: #fff;
	transition: border-color .18s;
}
.cat-sort-select:focus { border-color: #D4AF37; }

/* Секции в результатах */
.cat-section { margin-bottom: 2rem; }
.cat-section--white {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: .75rem;
	padding: 1.25rem;
}
.cat-section__header {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-bottom: 1rem;
}
.cat-section__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #0A1C3A;
	margin: 0;
}
.cat-section__subtitle {
	font-size: 1rem;
	font-weight: 700;
	color: #0A1C3A;
	margin: 0 0 .75rem;
}

/* Карточки объявлений */
.cat-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
.cat-card {
	background: #fff;
	border-radius: .625rem;
	box-shadow: 0 2px 8px rgba(0,0,0,.07);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	text-decoration: none;
	border: 1px solid #F3F4F6;
	position: relative;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -12px rgba(10,28,58,.18); border-color: rgba(212,175,55,.45); }
.cat-card--vip { border-color: rgba(212,175,55,.3); }

.cat-card__vip-badge {
	position: absolute;
	top: .5rem;
	left: .5rem;
	background: linear-gradient(135deg, #D4AF37, #B8922E);
	color: #0A1C3A;
	font-size: .68rem;
	font-weight: 700;
	padding: .2rem .55rem;
	border-radius: 9999px;
	z-index: 1;
}
.cat-card__img {
	height: 11rem;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__body { padding: .9rem; display: flex; flex-direction: column; flex: 1; }
.cat-card__title {
	font-weight: 700;
	font-size: 1rem;
	color: #0A1C3A;
	margin: 0 0 .25rem;
	line-height: 1.3;
}
.cat-card__title a { color: inherit; text-decoration: none; }
.cat-card__title a:hover { color: #D4AF37; }
.cat-card__sub { font-size: .78rem; color: #6B7280; margin: 0 0 .4rem; }
.cat-card__price { font-weight: 700; font-size: 1.15rem; color: #D4AF37; margin: 0 0 .5rem; }
.cat-card__footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: auto; }
.cat-card__views { font-size: .72rem; color: #9CA3AF; }
.cat-card__views i { margin-right: .2rem; }
.cat-card__link { font-size: .8rem; color: #D4AF37; font-weight: 500; text-decoration: none; }
.cat-card__link:hover { color: #0A1C3A; }

/* Назначения */
.cat-purpose-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: .75rem;
}
.cat-purpose-card {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: .625rem;
	padding: .75rem .5rem;
	text-align: center;
	text-decoration: none;
	transition: border-color .18s, background .18s, transform .18s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .35rem;
}
.cat-purpose-card:hover {
	border-color: #D4AF37;
	background: #fef9e6;
	transform: translateY(-1px);
}
.cat-purpose-card--active {
	border-color: #D4AF37;
	background: #D4AF37;
}
.cat-purpose-card--active i,
.cat-purpose-card--active span { color: #0A1C3A; }
.cat-purpose-card i { font-size: 1.5rem; color: #D4AF37; }
.cat-purpose-card span { font-size: .78rem; font-weight: 500; color: #0A1C3A; }

/* Породы/регионы — текстовые ссылки */
.cat-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.cat-text-link { font-size: .85rem; color: #0A1C3A; text-decoration: none; transition: color .15s; }
.cat-text-link span { color: #9CA3AF; }
.cat-text-link:hover { color: #D4AF37; }
.cat-more-link { font-size: .82rem; color: #D4AF37; text-decoration: none; font-weight: 500; }
.cat-more-link:hover { text-decoration: underline; }

/* Пустой каталог */
.cat-empty {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: .625rem;
	padding: 2.25rem 1.5rem;
	text-align: center;
	margin-bottom: 2rem;
}
.cat-empty i { font-size: 2.5rem; color: #D4AF37; display: block; margin-bottom: .75rem; }
.cat-empty p { color: #6B7280; margin-bottom: 1rem; }

/* Пагинация */
.cat-pagination { margin-top: 1.5rem; }
.cat-pagination .nav-links { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.cat-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid #E5E7EB;
	border-radius: .625rem;
	font-size: .875rem;
	color: #374151;
	text-decoration: none;
	transition: all .18s;
}
.cat-pagination .page-numbers:hover { background: #D4AF37; border-color: #D4AF37; color: #0A1C3A; }
.cat-pagination .page-numbers.current { background: #D4AF37; border-color: #D4AF37; color: #0A1C3A; font-weight: 700; }
.cat-pagination .page-numbers.prev,
.cat-pagination .page-numbers.next { width: auto; padding: 0 .75rem; }

/* Адаптив каталога */
@media (max-width: 1023px) {
	.cat-sidebar { display: none; }
	.cat-mobile-filter { display: block; }
	.cat-columns { display: block; }
	.cat-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.cat-purpose-grid { grid-template-columns: repeat(3, 1fr); }
	.cat-links-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.cat-grid-3 { grid-template-columns: 1fr; }
	.cat-purpose-grid { grid-template-columns: repeat(2, 1fr); }
	.cat-breadcrumb__title { font-size: 1.25rem; }
}

/* ================================================================
   СТРАНИЦА ОБЪЯВЛЕНИЯ — макет 1-в-1 с Карточка_лошади.html
================================================================ */

/* Хлебные крошки */
.sl-breadcrumb {
	background: #F3F4F6;
	border-bottom: 1px solid #E5E7EB;
	padding: .75rem 0;
}
.sl-breadcrumb__trail {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	font-size: .82rem;
	color: #9CA3AF;
	margin: 0;
}
.sl-breadcrumb__trail a { color: #6B7280; text-decoration: none; transition: color .15s; }
.sl-breadcrumb__trail a:hover { color: #D4AF37; }
.sl-breadcrumb__trail span:last-child { color: #0A1C3A; font-weight: 500; }

/* Обёртка */
.sl-wrap { padding-top: 1.5rem; padding-bottom: 3rem; }

/* Двухколоночный layout */
.sl-columns {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* ---- ГАЛЕРЕЯ ---- */
.sl-gallery-col { width: 100%; }
.sl-gallery__main {
	background: #F3F4F6;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
	border: 1px solid #E5E7EB;
	aspect-ratio: 16/10;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sl-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sl-gallery__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 5rem;
	color: #D4AF37;
}
.sl-gallery__thumbs {
	display: flex;
	gap: .75rem;
	margin-top: .75rem;
	overflow-x: auto;
	padding-bottom: .25rem;
}
.sl-gallery__thumb {
	width: 6rem;
	height: 4rem;
	border-radius: .5rem;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color .18s, transform .18s;
}
.sl-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sl-gallery__thumb:hover { border-color: #D4AF37; transform: scale(1.03); }
.sl-gallery__thumb.active { border-color: #D4AF37; }
.sl-gallery__meta {
	display: flex;
	gap: 1rem;
	font-size: .78rem;
	color: #9CA3AF;
	margin-top: .75rem;
	flex-wrap: wrap;
}
.sl-gallery__meta i { color: #D4AF37; margin-right: .25rem; }

/* ---- ИНФО ---- */
.sl-info-col { width: 100%; }

.sl-badges { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.sl-badge {
	font-size: .72rem;
	font-weight: 700;
	padding: .25rem .7rem;
	border-radius: 9999px;
}
.sl-badge--premium {
	background: linear-gradient(135deg, #D4AF37, #B8922E);
	color: #0A1C3A;
}
.sl-badge--active {
	background: #ECFDF5;
	color: #059669;
	font-weight: 600;
}
.sl-badge--pending {
	background: #FFF7ED;
	color: #B45309;
	font-weight: 600;
}
.sl-badge--neutral {
	background: #F3F4F6;
	color: #4B5563;
	font-weight: 600;
}
.sl-admin-approve-listing {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	min-height: 2.75rem;
	padding: .35rem .8rem;
	border: 1px solid #047857;
	border-radius: .5rem;
	background: #047857;
	color: #fff;
	font-family: inherit;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(5, 150, 105, .2);
	transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.sl-admin-approve-listing:hover:not(:disabled) {
	background: #065F46;
	border-color: #065F46;
	box-shadow: 0 4px 12px rgba(5, 150, 105, .28);
	transform: translateY(-1px);
}
.sl-admin-approve-listing:focus-visible {
	outline: 3px solid rgba(5, 150, 105, .3);
	outline-offset: 2px;
}
.sl-admin-approve-listing:disabled {
	cursor: wait;
	opacity: .72;
}
.sl-admin-approve-listing.is-approved {
	background: #065F46;
	border-color: #065F46;
	cursor: default;
	opacity: 1;
}
.sl-listing-approval-feedback {
	flex-basis: 100%;
	align-self: center;
	font-size: .75rem;
	font-weight: 600;
	color: #047857;
}
.sl-listing-approval-feedback.is-error { color: #B91C1C; }
.sl-listing-approval-feedback.is-success { color: #047857; }

.sl-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #0A1C3A;
	margin: 0 0 .4rem;
	line-height: 1.25;
}
.sl-location {
	font-size: .875rem;
	color: #6B7280;
	margin: 0 0 1rem;
}
.sl-location i { color: #D4AF37; margin-right: .25rem; }

/* Блок цены */
.sl-price-box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	background: #F9FAFB;
	border: 1px solid #E5E7EB;
	border-radius: .625rem;
	padding: 1rem;
	margin-bottom: 1.5rem;
}
.sl-price-box__left { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.sl-price { font-size: 1.75rem; font-weight: 700; color: #D4AF37; }
.sl-price__note { font-size: .75rem; color: #9CA3AF; }
.sl-price-box__actions { display: flex; gap: .5rem; align-items: center; }

.sl-btn-phone {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: #D4AF37;
	color: #0A1C3A;
	font-weight: 700;
	border: none;
	border-radius: .625rem;
	padding: .55rem 1.25rem;
	cursor: pointer;
	font-family: inherit;
	font-size: .875rem;
	transition: background .18s;
	box-shadow: 0 2px 8px rgba(212,175,55,.3);
}
.sl-btn-phone:hover { background: #B8922E; }
.sl-btn-fav,
.sl-btn-share {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid #D4AF37;
	color: #D4AF37;
	background: #fff;
	border-radius: .625rem;
	cursor: pointer;
	font-size: 1rem;
	transition: background .18s;
}
.sl-btn-fav:hover, .sl-btn-share:hover { background: rgba(212,175,55,.1); }
.sl-btn-fav.active { background: rgba(212,175,55,.15); }
.sl-btn-fav.active i { color: #D4AF37; }

/* Краткие характеристики */
.sl-specs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.sl-spec {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	background: #F9FAFB;
	border: 1px solid #EEF0F3;
	border-radius: .625rem;
	padding: .8rem .85rem;
}
.sl-spec > i {
	color: #D4AF37;
	font-size: 1rem;
	width: 1.5rem;
	text-align: center;
	margin-top: .1rem;
}
.sl-spec__label { font-size: .72rem; color: #9CA3AF; margin: 0 0 .1rem; }
.sl-spec__value { font-weight: 600; color: #0A1C3A; font-size: .9rem; margin: 0; }

/* CTA кнопки */
.sl-cta-btns {
	display: flex;
	gap: .75rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}
.sl-btn-chat {
	flex: 1;
	background: #0A1C3A;
	color: #fff;
	font-weight: 600;
	border: none;
	border-radius: .625rem;
	padding: .75rem 1rem;
	cursor: pointer;
	font-family: inherit;
	font-size: .9rem;
	transition: background .18s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
}
.sl-btn-chat:hover { background: #13294B; }
.sl-btn-fav-full {
	flex: 1;
	background: #fff;
	color: #374151;
	font-weight: 500;
	border: 1px solid #E5E7EB;
	border-radius: .75rem;
	padding: .75rem 1rem;
	cursor: pointer;
	font-family: inherit;
	font-size: .9rem;
	transition: all .18s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
}
.sl-btn-fav-full:hover { border-color: #D4AF37; color: #D4AF37; }
.sl-btn-fav-full.active { border-color: #D4AF37; color: #D4AF37; }
.sl-btn-fav-full.active i { color: #D4AF37; }

/* Блок продавца */
.sl-seller {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: .75rem;
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .75rem;
	flex-wrap: wrap;
}
.sl-seller__left { display: flex; align-items: center; gap: .75rem; }
.sl-seller__avatar {
	width: 3rem;
	height: 3rem;
	background: rgba(212,175,55,.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: #D4AF37;
	flex-shrink: 0;
}
.sl-seller__name { font-weight: 600; color: #0A1C3A; margin: 0 0 .1rem; font-size: .95rem; }
.sl-seller__meta { font-size: .72rem; color: #9CA3AF; margin: 0; }
.sl-seller__rating { display: flex; align-items: center; gap: .15rem; color: #D4AF37; font-size: .9rem; }
.sl-seller__score { font-size: .75rem; color: #9CA3AF; margin-left: .2rem; }

/* ---- ТАБЫ ---- */
.sl-tabs-wrap { margin-top: 2.5rem; }
.sl-tabs {
	display: flex;
	gap: 1.5rem;
	border-bottom: 1px solid #E5E7EB;
	overflow-x: auto;
	padding-bottom: 0;
}
.sl-tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: .75rem 0;
	font-size: .9rem;
	font-weight: 500;
	color: #6B7280;
	cursor: pointer;
	font-family: inherit;
	margin-bottom: -1px;
	transition: all .18s;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}
.sl-tab i { color: currentColor; font-size: .9rem; }
.sl-tab:hover { color: #0A1C3A; }
.sl-tab--active { color: #D4AF37; border-bottom-color: #D4AF37; font-weight: 600; }

.sl-tab-content { display: none; padding-top: 1.5rem; }
.sl-tab-content.active { display: block; }

.sl-desc { line-height: 1.8; color: #374151; }
.sl-specs-table { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.sl-spec-row {
	background: #F9FAFB;
	border-radius: .625rem;
	padding: .75rem 1rem;
	display: flex;
	justify-content: space-between;
	gap: .5rem;
	font-size: .875rem;
}
.sl-spec-row span { color: #6B7280; }
.sl-spec-row strong { color: #0A1C3A; }

.sl-reviews { display: flex; flex-direction: column; gap: .75rem; }
.sl-empty-tab { color: #9CA3AF; margin: 0 0 1rem; }
.sl-btn-review {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: none;
	border: 1px solid #D4AF37;
	color: #D4AF37;
	border-radius: 9999px;
	padding: .45rem 1rem;
	font-size: .875rem;
	cursor: pointer;
	font-family: inherit;
	transition: all .18s;
	text-decoration: none;
}
.sl-btn-review:hover { background: #D4AF37; color: #0A1C3A; }
.sl-docs-note { font-size: .78rem; color: #9CA3AF; margin: .5rem 0 0; }
.sl-docs-note i { color: #D4AF37; margin-right: .25rem; }

/* ---- ПОХОЖИЕ ОБЪЯВЛЕНИЯ ---- */
.sl-similar { margin-top: 3rem; }
.sl-similar__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #E5E7EB;
	padding-bottom: .75rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
	gap: .5rem;
}
.sl-similar__header h2 {
	font-size: 1.1rem;
	font-weight: 700;
	color: #0A1C3A;
	margin: 0;
}
.sl-similar__header h2 i { color: #D4AF37; margin-right: .4rem; }
.sl-similar__header a { font-size: .875rem; color: #D4AF37; text-decoration: none; }
.sl-similar__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

/* ---- МОДАЛЬНЫЕ ОКНА ---- */
.sl-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.65);
	backdrop-filter: blur(4px);
	z-index: 200;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.sl-modal.open { display: flex; }
.sl-modal__content {
	background: #fff;
	border-radius: 1rem;
	max-width: 28rem;
	width: 100%;
	box-shadow: 0 25px 50px rgba(0,0,0,.35);
	animation: konigo-fade-in .2s ease;
	overflow: hidden;
}
.sl-modal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #E5E7EB;
}
.sl-modal__header h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #0A1C3A; }
.sl-modal__header h3 i { color: #D4AF37; margin-right: .4rem; }
.sl-modal__close {
	background: none;
	border: none;
	font-size: 1.5rem;
	color: #9CA3AF;
	cursor: pointer;
	line-height: 1;
	transition: color .15s;
}
.sl-modal__close:hover { color: #0A1C3A; }
.sl-modal__body { padding: 1.25rem 1.5rem; }
.sl-contact-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .75rem 1rem;
	border-radius: .75rem;
	margin-bottom: .75rem;
	font-size: .875rem;
	gap: .5rem;
	flex-wrap: wrap;
}
.sl-contact-row--green { background: #ECFDF5; }
.sl-contact-num { font-size: 1.1rem; font-weight: 700; color: #0A1C3A; text-decoration: none; }
.sl-contact-note { font-size: .75rem; color: #9CA3AF; text-align: center; margin: .5rem 0 1rem; }
.sl-contact-note i { color: #D4AF37; margin-right: .2rem; }
.sl-modal__close-btn { width: 100%; margin-top: .5rem; }

/* Чат модальное окно */
.sl-modal__content--chat { max-width: 42rem; }
.sl-chat__header {
	background: #0A1C3A;
	padding: 1rem 1.25rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.sl-chat__seller { display: flex; align-items: center; gap: .75rem; }
.sl-chat__avatar {
	width: 2.5rem;
	height: 2.5rem;
	background: rgba(212,175,55,.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	color: #D4AF37;
}
.sl-chat__header h3 { margin: 0; font-size: .95rem; font-weight: 700; color: #fff; }
.sl-chat__status { font-size: .72rem; color: #D4AF37; }
.sl-chat__header .sl-modal__close { color: #9CA3AF; }
.sl-chat__listing-bar {
	background: #FFFBEB;
	padding: .65rem 1.25rem;
	border-bottom: 1px solid #E5E7EB;
	display: flex;
	align-items: center;
	gap: .75rem;
	font-size: .82rem;
}
.sl-chat__listing-bar p { margin: 0; color: #0A1C3A; font-weight: 500; }
.sl-chat__messages {
	height: 260px;
	overflow-y: auto;
	padding: 1rem;
	background: #F9FAFB;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	scroll-behavior: smooth;
}
.sl-chat__messages::-webkit-scrollbar { width: 4px; }
.sl-chat__messages::-webkit-scrollbar-track { background: #E5E7EB; border-radius: 4px; }
.sl-chat__messages::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 4px; }
.sl-chat__msg { max-width: 80%; }
.sl-chat__msg p { margin: 0; font-size: .875rem; padding: .65rem .9rem; border-radius: .75rem; }
.sl-chat__msg--received p { background: #F1F5F9; color: #1E293B; border-radius: .75rem .75rem .75rem .25rem; }
.sl-chat__msg--sent { align-self: flex-end; }
.sl-chat__msg--sent p { background: #0A1C3A; color: #fff; border-radius: .75rem .75rem .25rem .75rem; }
.sl-chat__input {
	display: flex;
	gap: .5rem;
	padding: .75rem;
	border-top: 1px solid #E5E7EB;
	background: #fff;
}
.sl-chat__input textarea {
	flex: 1;
	border: 1px solid #E5E7EB;
	border-radius: .75rem;
	padding: .5rem .75rem;
	font-size: .875rem;
	font-family: inherit;
	resize: none;
	outline: none;
	transition: border-color .18s;
}
.sl-chat__input textarea:focus { border-color: #D4AF37; }
.sl-chat__input button {
	background: #D4AF37;
	color: #0A1C3A;
	border: none;
	border-radius: .75rem;
	padding: .5rem 1rem;
	font-size: 1rem;
	cursor: pointer;
	transition: background .18s;
	display: flex;
	align-items: center;
}
.sl-chat__input button:hover { background: #B8922E; }
.sl-chat__note {
	text-align: center;
	font-size: .72rem;
	color: #9CA3AF;
	padding: .5rem;
	background: #fff;
	margin: 0;
}
.sl-chat__note i { color: #D4AF37; margin-right: .2rem; }

/* ---- АДАПТИВ ---- */
@media (min-width: 1024px) {
	.sl-columns { flex-direction: row; gap: 2.5rem; }
	.sl-gallery-col { width: 50%; flex-shrink: 0; }
	.sl-info-col { flex: 1; }
	.sl-title { font-size: 1.75rem; }
	.sl-similar__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
	.sl-admin-approve-listing { flex: 1 0 100%; width: 100%; }
	.sl-specs-table { grid-template-columns: 1fr; }
	.sl-specs-grid { grid-template-columns: 1fr; }
	.sl-similar__grid { grid-template-columns: repeat(2, 1fr); }
	.sl-cta-btns { flex-direction: column; }
	.sl-price-box { grid-template-columns: 1fr; align-items: flex-start; }
	.sl-price-box__actions { width: 100%; flex-wrap: wrap; }
}


/* ── Login Screen (/my-account/ не авторизован) ─────────────────── */
.konigo-login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px;
    min-height: 340px;
    text-align: center;
}
.konigo-login-screen__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #aaa;
}
.konigo-login-screen__icon svg {
    width: 36px;
    height: 36px;
}
.konigo-login-screen__title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.konigo-login-screen__subtitle {
    font-size: 14px;
    color: #777;
    margin: 0 0 28px;
    max-width: 280px;
}
.konigo-login-screen__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c8a84b;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.3px;
}
.konigo-login-screen__btn:hover {
    background: #b8942f;
    transform: translateY(-1px);
}
.konigo-login-screen__btn:active {
    transform: translateY(0);
}
.konigo-login-screen__register {
    margin-top: 16px;
    font-size: 13px;
    color: #999;
}
.konigo-login-screen__register a {
    color: #c8a84b;
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* ── END Login Screen ─────────────────────────────────────────────── */
/* ── Sticky Footer Fix ─────────────────────────────────────────── */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > #main-content {
    flex: 1 0 auto;
}
footer.konigo-footer {
    flex-shrink: 0;
}
/* ── END Sticky Footer Fix ─────────────────────────────────────── */

/* Значок проверенного продавца */
.konigo-star-badge{display:inline-flex;align-items:center;gap:.25rem;font-size:.7rem;font-weight:600;color:#0A1C3A;background:linear-gradient(135deg,#D4AF37,#f0d060);border-radius:4px;padding:.15rem .4rem;white-space:nowrap;vertical-align:middle;margin-left:.35rem;line-height:1.4;box-shadow:0 1px 3px rgba(212,175,55,.35)}
.cat-card{position:relative}
.cat-card>.konigo-star-badge{position:absolute;top:.55rem;left:.55rem;z-index:2;font-size:.65rem;padding:.12rem .35rem}


/* ================================================================
   СТРАНИЦА «ПРОДАТЬ ЛОШАДЬ» — /prodat-loshad/
   Добавить в конец style.css
================================================================ */

/* ── Хлебные крошки: переиспользуем .cat-breadcrumb ── */

/* ── Hero ── */
.ps-hero {
	background: linear-gradient(135deg, #0A1C3A 0%, #13294B 100%);
	border-bottom: 1px solid rgba(212,175,55,.25);
	padding: 3.5rem 0;
}
.ps-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}
.ps-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: rgba(212,175,55,.15);
	color: #D4AF37;
	border: 1px solid rgba(212,175,55,.4);
	border-radius: 20px;
	padding: .3rem .9rem;
	font-size: .82rem;
	font-weight: 600;
	margin-bottom: 1rem;
}
.ps-hero__title {
	font-size: 2rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.25;
	margin: 0 0 .75rem;
}
.ps-hero__sub {
	color: #CBD5E1;
	font-size: 1.05rem;
	margin: 0 0 1.5rem;
	max-width: 30rem;
}
.ps-hero__btns {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}
.ps-hero__icon {
	font-size: 8rem;
	color: rgba(212,175,55,.15);
	line-height: 1;
	flex-shrink: 0;
}

/* ── Общий заголовок секций ── */
.ps-section-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #0A1C3A;
	margin: 0 0 1.75rem;
	text-align: center;
}
.ps-section-title--light { color: #fff; }

/* ── Шаги ── */
.ps-steps {
	background: #fff;
	padding: 3rem 0;
	border-bottom: 1px solid #E5E7EB;
}
.ps-steps__grid {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: .75rem;
	flex-wrap: wrap;
}
.ps-step {
	background: #F9FAFB;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 1.6rem 1.35rem;
	text-align: center;
	flex: 1;
	min-width: 200px;
	max-width: 260px;
	position: relative;
}
.ps-step__num {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	width: 28px;
	height: 28px;
	background: linear-gradient(135deg, #D4AF37, #B8922E);
	color: #0A1C3A;
	font-weight: 800;
	font-size: .85rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ps-step__icon {
	font-size: 2rem;
	color: #D4AF37;
	margin-bottom: .75rem;
}
.ps-step h3 {
	font-size: 1rem;
	font-weight: 700;
	color: #0A1C3A;
	margin: 0 0 .5rem;
}
.ps-step p {
	font-size: .87rem;
	color: #6B7280;
	margin: 0;
	line-height: 1.6;
}
.ps-step__arrow {
	font-size: 1.5rem;
	color: #D4AF37;
	align-self: center;
	padding: 0;
	flex-shrink: 0;
	opacity: .75;
}

/* ── Тарифы ── */
.ps-tariffs {
	background: #F9FAFB;
	padding: 3rem 0;
	border-bottom: 1px solid #E5E7EB;
}
.ps-tariffs__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	max-width: 860px;
	margin: 0 auto;
}
.ps-tariff {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 1.75rem 1.5rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	transition: transform .2s, box-shadow .2s;
}
.ps-tariff:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -12px rgba(10,28,58,.18);
}
.ps-tariff--premium {
	border-color: #D4AF37;
	box-shadow: 0 4px 20px rgba(212,175,55,.2);
}
.ps-tariff__badge {
	display: inline-block;
	border-radius: 20px;
	padding: .25rem .75rem;
	font-size: .75rem;
	font-weight: 700;
	align-self: center;
}
.ps-tariff__badge--free    { background: #D1FAE5; color: #065F46; }
.ps-tariff__badge--premium { background: #D4AF37; color: #0A1C3A; }
.ps-tariff__badge--vip     { background: #0A1C3A; color: #D4AF37; border: 1px solid #D4AF37; }
.ps-tariff__name {
	font-size: 1.1rem;
	font-weight: 700;
	color: #0A1C3A;
	margin: 0;
}
.ps-tariff__price {
	font-size: 1.75rem;
	font-weight: 800;
	color: #D4AF37;
}
.ps-tariff__list {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: .4rem;
	flex: 1;
}
.ps-tariff__list li {
	font-size: .875rem;
	color: #374151;
	display: flex;
	align-items: center;
	gap: .5rem;
}
.ps-tariff__list .fa-check         { color: #10B981; }
.ps-tariff__list .fa-check-circle  { color: #D4AF37; }
.ps-tariff__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: .6rem 1rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: .9rem;
	text-align: center;
	text-decoration: none;
	transition: all .18s;
	cursor: pointer;
}
.ps-tariff__btn--outline {
	border: 1px solid #D4AF37;
	color: #0A1C3A;
	background: transparent;
}
.ps-tariff__btn--outline:hover {
	background: #D4AF37;
	color: #0A1C3A;
}

/* ── Преимущества ── */
.ps-advantages {
	background: #0A1C3A;
	padding: 3rem 0;
	border-top: 1px solid rgba(212,175,55,.2);
	border-bottom: 1px solid rgba(212,175,55,.2);
}
.ps-advantages__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}
.ps-advantage {
	text-align: center;
	padding: 1rem;
}
.ps-advantage__icon {
	width: 56px;
	height: 56px;
	background: rgba(212,175,55,.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 1.4rem;
	color: #D4AF37;
}
.ps-advantage h3 {
	font-size: .95rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 .4rem;
}
.ps-advantage p {
	font-size: .83rem;
	color: #94A3B8;
	margin: 0;
	line-height: 1.55;
}

/* ── FAQ ── */
.ps-faq {
	background: #fff;
	padding: 3rem 0;
}
.ps-faq__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	max-width: 860px;
	margin: 0 auto;
}
.ps-faq__item {
	background: #F9FAFB;
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	border: 1px solid #E5E7EB;
}
.ps-faq__item h3 {
	font-size: .95rem;
	font-weight: 700;
	color: #0A1C3A;
	margin: 0 0 .5rem;
}
.ps-faq__item p {
	font-size: .87rem;
	color: #6B7280;
	margin: 0;
	line-height: 1.6;
}

/* ── CTA-финал ── */
.ps-cta {
	background: linear-gradient(135deg, #0A1C3A 0%, #051024 100%);
	padding: 3.5rem 0;
	border-top: 1px solid rgba(212,175,55,.2);
}
.ps-cta__inner {
	text-align: center;
	position: relative;
	overflow: hidden;
}
.ps-cta__bg-icon {
	position: absolute;
	right: -2rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12rem;
	color: rgba(212,175,55,.06);
	line-height: 1;
	pointer-events: none;
}
.ps-cta__inner h2 {
	font-size: 1.75rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 .75rem;
}
.ps-cta__inner > p {
	color: #CBD5E1;
	font-size: 1rem;
	margin: 0 0 1.5rem;
}
.ps-cta__btns {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.ps-cta__note {
	font-size: .78rem;
	color: #64748B;
	margin: 0;
}
.ps-cta__note a { color: #D4AF37; text-decoration: underline; }

/* ── Адаптив ── */
@media (max-width: 900px) {
	.ps-tariffs__grid      { grid-template-columns: 1fr 1fr; }
	.ps-advantages__grid   { grid-template-columns: 1fr 1fr; }
	.ps-hero__icon         { display: none; }
	.ps-hero__title        { font-size: 1.5rem; }
}
@media (max-width: 640px) {
	.ps-tariffs__grid      { grid-template-columns: 1fr; max-width: 340px; }
	.ps-faq__grid          { grid-template-columns: 1fr; }
	.ps-advantages__grid   { grid-template-columns: 1fr 1fr; }
	.ps-steps__grid        { flex-direction: column; align-items: center; }
	.ps-step__arrow        { transform: rotate(90deg); padding: .25rem 0; }
	.ps-step               { max-width: 100%; width: 100%; }
}

/* ================================================================
   ЛИЧНЫЙ КАБИНЕТ — ПОЛНОСТЬЮ ПЕРЕРАБОТАННЫЙ
   ================================================================ */

/* Страница my-account — убираем ограничение ширины */
.page-id-my-account .entry-content,
.post-type-page .entry-content,
body.page .entry-content,
body.page main > article > .entry-content,
body.page main > article {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.page-id-my-account .entry-header,
.page-id-my-account h1.entry-title {
	display: none;
}

/* ================================================================
   ЛК — ОСНОВНОЙ КОНТЕЙНЕР
   ================================================================ */

.lk-page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 2rem 1rem;
	width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}

.lk-layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 2rem;
	align-items: start;
	width: 100%;
	max-width: 100%;
}

/* ================================================================
   ЛК — САЙДБАР
   ================================================================ */

.lk-sidebar {
	position: sticky;
	top: 1.5rem;
	width: 100%;
}

.lk-sidebar__inner {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Шапка профиля */
.lk-profile-head {
	background: #0A1C3A;
	padding: 1.5rem 1.25rem;
	text-align: center;
}

.lk-avatar {
	width: 5rem;
	height: 5rem;
	background: rgba(212,175,55,.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 0.75rem;
}
.lk-avatar i {
	font-size: 2.5rem;
	color: #D4AF37;
}

.lk-profile-head__name {
	font-weight: 700;
	color: #fff;
	font-size: 1.05rem;
	margin: 0 0 .25rem;
}
.lk-profile-head__email {
	color: #9CA3AF;
	font-size: .78rem;
	margin: 0 0 .5rem;
	word-break: break-all;
}
.lk-profile-head__badges {
	display: flex;
	justify-content: center;
	gap: .4rem;
	flex-wrap: wrap;
}

.lk-badge {
	font-size: .7rem;
	padding: .15rem .6rem;
	border-radius: 20px;
}
.lk-badge--buyer {
	background: rgba(16,185,129,.15);
	color: #10B981;
}
.lk-badge--seller {
	background: rgba(212,175,55,.2);
	color: #D4AF37;
}

.lk-profile-head__verify {
	margin-top: .5rem;
}

/* Навигация сайдбара */
.lk-nav {
	padding: .75rem;
	display: flex;
	flex-direction: column;
	gap: .1rem;
}

.lk-sidebar-item {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .65rem .75rem;
	border-radius: 0 .5rem .5rem 0;
	border-left: 3px solid transparent;
	color: #374151;
	font-size: .9rem;
	font-weight: 500;
	text-decoration: none;
	transition: all .15s;
	cursor: pointer;
	background: none;
	border-top: none;
	border-right: none;
	border-bottom: none;
	width: 100%;
}

.lk-sidebar-item i {
	color: #D4AF37;
	width: 1.1rem;
	text-align: center;
	flex-shrink: 0;
}

.lk-sidebar-item:hover,
.lk-sidebar-item.active {
	background: rgba(212,175,55,.1);
	border-left-color: #D4AF37;
	color: #0A1C3A;
}

.lk-sidebar-item--logout {
	color: #EF4444;
	margin-top: .5rem;
	border-top: 1px solid #F3F4F6;
	padding-top: .85rem;
}
.lk-sidebar-item--logout i {
	color: #EF4444;
}
.lk-sidebar-item--logout:hover {
	background: rgba(239,68,68,.08);
	border-left-color: #EF4444;
}

.lk-nav__badge {
	margin-left: auto;
	background: #D4AF37;
	color: #0A1C3A;
	font-size: .68rem;
	font-weight: 700;
	padding: .1rem .5rem;
	border-radius: 20px;
	flex-shrink: 0;
}

/* ================================================================
   ЛК — КОНТЕНТ
   ================================================================ */

.lk-content {
	flex: 1;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.lk-section {
	display: none;
}
.lk-section.active-section {
	display: block;
	animation: konigo-fade-in .2s ease;
}

.lk-card {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 1rem;
	padding: 1.5rem;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.lk-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: 1rem;
}

.lk-section-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #0A1C3A;
	margin: 0 0 .25rem;
}
.lk-section-sub {
	color: #6B7280;
	font-size: .875rem;
	margin: 0 0 1.25rem;
}

/* ================================================================
   ЛК — МОБИЛЬНАЯ НАВИГАЦИЯ (БУРГЕР)
   ================================================================ */

.lk-mobile-nav {
	display: none;
	position: sticky;
	top: 12px;
	z-index: 200;
	margin-bottom: 1rem;
}

.lk-mobile-nav__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .9rem 1rem;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
	font: inherit;
	color: #0A1C3A;
	cursor: pointer;
	transition: background .25s ease, box-shadow .25s ease;
}

.lk-mobile-nav__toggle:hover {
	background: #fafafa;
}

.lk-mobile-nav__toggle:focus-visible {
	outline: 2px solid #D4AF37;
	outline-offset: 2px;
}

.lk-mobile-nav__current {
	display: flex;
	align-items: center;
	gap: .7rem;
	font-weight: 600;
}

.lk-mobile-nav__current i {
	color: #D4AF37;
}

.lk-mobile-nav__toggle > .fa-chevron-down {
	color: #6B7280;
	transition: transform .25s ease;
}

.lk-mobile-nav.is-open .lk-mobile-nav__toggle > .fa-chevron-down {
	transform: rotate(180deg);
}

.lk-mobile-nav__menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #E5E7EB;
	box-shadow: 0 12px 30px rgba(0,0,0,.12);
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: max-height .35s ease, opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.lk-mobile-nav.is-open .lk-mobile-nav__menu {
	max-height: 700px;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lk-mobile-nav__menu .lk-sidebar-item {
	border-left: none;
	border-radius: 0;
	padding: .9rem 1rem;
	border-bottom: 1px solid #F1F5F9;
}

.lk-mobile-nav__menu .lk-sidebar-item:last-child {
	border-bottom: none;
}

.lk-mobile-nav__menu .lk-sidebar-item.active {
	background: rgba(212,175,55,.1);
	color: #0A1C3A;
}

.lk-mobile-nav__menu .lk-nav__badge {
	margin-left: auto;
}

/* ================================================================
   ЛК — СТАТИСТИКА
   ================================================================ */

.lk-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25rem;
	margin-bottom: .5rem;
}

.lk-stat-card {
	background: #F9FAFB;
	border: 1px solid #F3F4F6;
	border-radius: .75rem;
	padding: 1.25rem;
}

.lk-stat-card h4 {
	font-weight: 600;
	color: #0A1C3A;
	margin: 0 0 .75rem;
	font-size: .95rem;
}
.lk-stat-card h4 i {
	color: #D4AF37;
	margin-right: .4rem;
}

.lk-stat-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.lk-stat-list li {
	display: flex;
	justify-content: space-between;
	font-size: .875rem;
	padding: .2rem 0;
}
.lk-stat-list li span {
	color: #6B7280;
}
.lk-stat-list li strong {
	color: #0A1C3A;
}

/* ================================================================
   ЛК — КНОПКИ
   ================================================================ */

.lk-btn-gold {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: #D4AF37;
	color: #0A1C3A;
	font-weight: 700;
	padding: .55rem 1.25rem;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: .9rem;
	text-decoration: none;
	transition: background .18s;
	box-shadow: 0 2px 6px rgba(212,175,55,.25);
}
.lk-btn-gold:hover {
	background: #B8922E;
}
.lk-btn-gold--sm {
	font-size: .82rem;
	padding: .4rem 1rem;
}

/* ================================================================
   ЛК — СТРОКИ ОБЪЯВЛЕНИЙ
   ================================================================ */

.lk-listings-list {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.lk-listing-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: .75rem;
	padding: 1rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.lk-listing-row__info {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	flex: 1;
	min-width: 0;
}

.lk-listing-row__info > i {
	font-size: 1.4rem;
	color: #D4AF37;
	margin-top: .1rem;
	flex-shrink: 0;
}

.lk-listing-row__title {
	font-weight: 700;
	color: #0A1C3A;
	font-size: .92rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.lk-listing-row__meta {
	font-size: .78rem;
	color: #6B7280;
	margin: .25rem 0 0;
}

.lk-listing-row__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.lk-link {
	color: #D4AF37;
	font-size: .875rem;
	font-weight: 500;
	text-decoration: none;
	transition: color .15s;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.lk-link:hover {
	color: #0A1C3A;
}
.lk-link--danger {
	color: #EF4444;
}
.lk-link--danger:hover {
	color: #B91C1C;
}

.lk-empty {
	color: #9CA3AF;
	font-size: .9rem;
	padding: 1rem 0;
	margin: 0;
}

/* Значки статуса */
.status-badge {
	display: inline-block;
	background: #10B981;
	color: #fff;
	font-size: .68rem;
	padding: .18rem .55rem;
	border-radius: 20px;
	vertical-align: middle;
	margin-left: .4rem;
}
.status-badge.moderation {
	background: #F59E0B;
}
.status-badge.sold {
	background: #6B7280;
}

/* ================================================================
   ЛК — АДАПТИВ (ГЛАВНЫЙ)
   ================================================================ */

@media (max-width: 900px) {

	.lk-layout {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	/* показываем бургер */
	.lk-mobile-nav {
		display: block;
	}

	/* скрываем старый сайдбар */
	.lk-sidebar {
		display: none;
	}

	.lk-content {
		width: 100%;
		min-width: 0;
	}

	.lk-card {
		padding: 1.1rem;
	}

	.lk-stats-grid {
		grid-template-columns: 1fr;
	}

	.lk-listing-row {
		flex-direction: column;
		align-items: stretch;
	}

	.lk-listing-row__actions {
		padding-top: .5rem;
		border-top: 1px solid #F3F4F6;
		width: 100%;
		justify-content: flex-end;
	}

	body,
	html {
		overflow-x: hidden;
	}

	.lk-page {
		overflow-x: hidden;
		padding: 1rem 0.75rem;
	}

}

@media (max-width: 560px) {

	.lk-listing-row {
		flex-direction: column;
	}

	.lk-listing-row__actions {
		padding-top: .25rem;
		border-top: 1px solid #F3F4F6;
		width: 100%;
		justify-content: flex-end;
	}

	.lk-stats-grid {
		grid-template-columns: 1fr;
	}

}
.ps-tariff__btn--gold {
	background: #D4AF37;
	color: #0A1C3A;
	box-shadow: 0 2px 8px rgba(212,175,55,.25);
}
.ps-tariff__btn--gold:hover {
	background: #B8922E;
	color: #0A1C3A;
}

/* ================================================================
   ДОКУМЕНТЫ ОБЪЯВЛЕНИЯ — карточки загрузки
================================================================ */
#konigo-submit-form {
	--konigo-dark-blue: #0A1C3A;
	--konigo-gold: #D4AF37;
	--konigo-gold-dark: #B8922E;
}

#konigo-submit-form .konigo-documents-section,
#konigo-submit-form .konigo-documents-section.hidden {
	display: block !important;
	width: 100%;
	visibility: visible;
	opacity: 1;
}

.konigo-document-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin-bottom: 1rem;
}

.konigo-document-card {
	--konigo-document-accent: var(--konigo-gold);
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1rem;
	border: 0;
	border-radius: .75rem;
	background: #F9FAFB;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease, box-shadow .2s ease;
}

.konigo-document-card[data-document-type="vnii"] { --konigo-document-accent: #EF4444; }
.konigo-document-card[data-document-type="vet"]  { --konigo-document-accent: #3B82F6; }
.konigo-document-card[data-document-type="chip"] { --konigo-document-accent: #6B7280; }
.konigo-document-card[data-document-type="xray"] { --konigo-document-accent: #A855F7; }

.konigo-document-card:hover { background: #F9FAFB; }

.konigo-document-card.is-selected {
	background: #FEF9E6;
	box-shadow: inset 0 0 0 2px var(--konigo-gold);
}

.konigo-document-card.is-dragover { background: #FFF8E1; }
.konigo-document-card.is-uploading { cursor: wait; }

#konigo-submit-form #konigo-documents-title {
	margin-bottom: 1rem;
	padding-bottom: .5rem;
	border-bottom: 1px solid #E5E7EB;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.75rem;
}

#konigo-submit-form .konigo-document-card__title {
	margin: 0 0 .75rem;
	padding: 0;
	border: 0;
	color: var(--konigo-dark-blue);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5rem;
}

.konigo-document-dropzone {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: .75rem;
	border: 2px dashed #D1D5DB;
	border-radius: .5rem;
	background: transparent;
	text-align: center;
	outline: none;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.konigo-document-card:hover .konigo-document-dropzone,
.konigo-document-card.is-selected .konigo-document-dropzone,
.konigo-document-card.is-dragover .konigo-document-dropzone {
	border-color: var(--konigo-gold);
}

.konigo-document-dropzone:focus-visible {
	border-color: var(--konigo-gold);
	box-shadow: 0 0 0 3px rgba(212, 175, 55, .24);
}

.konigo-document-card__icon {
	margin-bottom: .25rem;
	color: var(--konigo-document-accent);
	font-size: 1.5rem;
	line-height: 1;
}

#konigo-submit-form .konigo-document-card__hint {
	margin: 0;
	color: #6B7280;
	font-size: .75rem;
	line-height: 1rem;
}

.konigo-document-card__filename {
	display: inline-block;
	max-width: 100%;
	margin: .5rem 0 0;
	padding: .125rem .5rem;
	overflow: hidden;
	border-radius: 999px;
	background: #DCFCE7;
	color: #15803D;
	font-size: .75rem;
	line-height: 1rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.konigo-document-card__upload-text {
	display: inline-block;
	margin-top: .5rem;
	color: var(--konigo-gold);
	font-size: .75rem;
	font-weight: 400;
	line-height: 1rem;
}

.konigo-document-progress {
	width: min(10rem, 90%);
	height: .35rem;
	margin-top: .7rem;
	overflow: hidden;
	border-radius: 999px;
	background: #E2E8F0;
}

.konigo-document-progress__bar {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--konigo-gold);
	transition: width .15s linear;
}

#konigo-submit-form .konigo-document-remove {
	display: inline-flex;
	align-items: center;
	align-self: flex-end;
	gap: .35rem;
	margin-top: .55rem;
	padding: .2rem .3rem;
	border: 0;
	background: transparent;
	color: #B91C1C;
	font: inherit;
	font-size: .72rem;
	cursor: pointer;
}

#konigo-submit-form .konigo-document-remove:hover {
	color: #7F1D1D;
	text-decoration: underline;
}

#konigo-submit-form .konigo-document-remove:focus-visible {
	outline: 2px solid #B91C1C;
	outline-offset: 2px;
}

#konigo-submit-form .konigo-document-remove.hidden,
#konigo-submit-form .konigo-document-card__filename.hidden,
#konigo-submit-form .konigo-document-progress.hidden {
	display: none;
}

#konigo-submit-form .konigo-document-status {
	min-height: 0;
	margin: .25rem 0 0;
	color: #64748B;
	font-size: .7rem;
	line-height: 1.35;
}

#konigo-submit-form .konigo-document-status:empty { display: none; }

#konigo-submit-form .konigo-document-status.is-success { color: #15803D; }
#konigo-submit-form .konigo-document-status.is-error   { color: #B91C1C; }
#konigo-submit-form .konigo-document-status.is-info    { color: #92400E; }

#konigo-submit-form .konigo-document-review-state {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	margin-top: .65rem;
}

#konigo-submit-form .konigo-document-review-state.hidden,
#konigo-submit-form .konigo-document-review-state__reason.hidden {
	display: none;
}

#konigo-submit-form .konigo-document-review-state__badge {
	display: inline-flex;
	align-items: center;
	padding: .2rem .55rem;
	border-radius: 999px;
	font-size: .7rem;
	font-weight: 700;
}

#konigo-submit-form .konigo-document-review-state__badge--pending {
	background: #FEF3C7;
	color: #92400E;
}

#konigo-submit-form .konigo-document-review-state__badge--approved {
	background: #DCFCE7;
	color: #15803D;
}

#konigo-submit-form .konigo-document-review-state__badge--rejected {
	background: #FEE2E2;
	color: #B91C1C;
}

#konigo-submit-form .konigo-document-review-state__reason {
	flex-basis: 100%;
	margin: 0;
	padding: .45rem .55rem;
	border-left: 3px solid #DC2626;
	background: #FEF2F2;
	color: #991B1B;
	font-size: .72rem;
	line-height: 1.4;
	white-space: pre-line;
}

.konigo-document-notice {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	padding: .75rem;
	border-radius: .5rem;
	background: #FFFBEB;
	color: #4B5563;
}

.konigo-document-notice > i {
	flex: 0 0 auto;
	margin-top: .12rem;
	color: var(--konigo-gold);
}

#konigo-submit-form .konigo-document-notice p {
	margin: 0;
	font-size: .75rem;
	line-height: 1rem;
}

@media (min-width: 768px) {
	.konigo-document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.konigo-document-card,
	.konigo-document-dropzone,
	.konigo-document-progress__bar {
		transition: none;
	}
}
