/* ============================================================
   ОБЩИЕ СТИЛИ
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}
html {
    overflow-x: hidden;
}
body {
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 320px;
    overflow-x: hidden;
}
img,
svg,
canvas,
video {
    max-width: 100%;
}
button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}
a,
p,
h1,
h2,
h3,
h4,
strong,
small,
span {
    overflow-wrap: anywhere;
}

/* ============================================================
   ШАПКА (общая для всех страниц)
   ============================================================ */
header {
    background: #1e2a3a;
    color: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
}
header .logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
header .logo img {
    display: block;
    width: clamp(168px, 20vw, 260px);
    height: auto;
    max-height: 62px;
    object-fit: contain;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    cursor: pointer;
}
nav a:hover,
nav a.active {
    color: white;
    border-bottom-color: #6ab04c;
}
.contact-header {
    font-size: 14px;
    opacity: 0.9;
}
.contact-header a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed #6ab04c;
}

/* ============================================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================================ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.page {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    background: #f8fafc;
}
.page:not(.active) {
    display: none;
}
.page.active {
    display: flex;
}

/* Хлебные крошки */
.breadcrumbs {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    padding: 6px 0;
}
.breadcrumbs span { color: #1e293b; }

/* ============================================================
   ГЛАВНАЯ: КАРТА ВО ВСЮ ВЫСОТУ
   ============================================================ */
.home-layout {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 600px;
    overflow: hidden;
    background: #dde2eb;
}
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.leaflet-bottom.leaflet-right {
    display: none;
}

/* ============================================================
   КНОПКИ ZOOM – ПЕРЕД ПАНЕЛЬЮ (СЛЕВА ОТ ПАНЕЛИ)
   ============================================================ */
.leaflet-control-zoom {
    position: absolute;
    top: 24px;
    right: calc(340px + 24px + 12px);
    left: auto;
    z-index: 1000;
}
.leaflet-top.leaflet-left {
    left: auto;
    right: 0;
}
@media (max-width: 768px) {
    .leaflet-control-zoom {
        top: 12px;
        right: 12px;
        left: auto;
    }
}

/* ============================================================
   ЛЕВЫЙ БЛОК (HERO) – ПОВЕРХ КАРТЫ
   ============================================================ */
.hero-left {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 380px;
    max-width: calc(100% - 48px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
    max-height: calc(100% - 48px);
    overflow-y: auto;
    transition: width 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
}
.hero-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px auto;
    padding: 7px 12px;
    background: white;
    color: #334155;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
}
.hero-toggle:hover {
    border-color: #6ab04c;
    color: #365f25;
}
.hero-toggle-icon {
    width: 14px;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}
.hero-left.collapsed {
    width: auto;
    min-width: 132px;
    padding: 10px;
    overflow: visible;
}
.hero-left.collapsed .hero-toggle {
    margin-bottom: 0;
}
.hero-left.collapsed .hero-content {
    display: none;
}
.hero-left h1 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.2;
}
.hero-left h1 span {
    color: #6ab04c;
}
.hero-left .subtitle {
    font-size: 16px;
    color: #475569;
    margin-bottom: 18px;
    line-height: 1.5;
}
.hero-left .btn {
    display: inline-block;
    background: #6ab04c;
    color: white;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.25s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(106, 176, 76, 0.4);
    margin-bottom: 10px;
}
.hero-left .btn:hover {
    background: #5a9e3e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 176, 76, 0.5);
}
.hero-seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}
.hero-seo-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(106, 176, 76, 0.28);
    border-radius: 999px;
    background: rgba(106, 176, 76, 0.12);
    color: #365f25;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: 0.15s;
}
.hero-seo-links a:hover,
.hero-seo-links a:focus-visible {
    background: #6ab04c;
    color: #fff;
    transform: translateY(-1px);
}

/* Преимущества внутри левого блока */
.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}
.hero-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}
.hero-benefit-item .icon {
    font-size: 28px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}
.hero-benefit-item h4 {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}
.hero-benefit-item p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* ============================================================
   ПРАВАЯ ПАНЕЛЬ (фильтры + список) – ПОВЕРХ КАРТЫ
   ============================================================ */
.panel {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 340px;
    max-width: calc(100% - 48px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
    max-height: calc(100% - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.panel .filters {
    padding: 14px 18px;
    background: rgba(248, 250, 252, 0.9);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.panel .filters select,
.panel .filters input {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    background: white;
}
.panel .filters .price-filter {
    display: flex;
    align-items: center;
    gap: 6px;
}
.panel .filters .price-filter input[type="range"] {
    width: 120px;
}
.panel .list-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* Карточки участков в списке */
.plot-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.plot-card .info {
    min-width: 0;
}
.plot-card:hover {
    border-color: #6ab04c;
    box-shadow: 0 2px 10px rgba(106, 176, 76, 0.2);
}
.plot-card .info h4 {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}
.plot-card .info .meta {
    font-size: 13px;
    color: #64748b;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: #6ab04c;
    white-space: nowrap;
}
.status-badge.sold { background: #e74c3c; }
.status-badge.reserved { background: #f1c40f; color: #1e293b; }
.status-badge.rent { background: #2563eb; }
.status-badge.commercial { background: #7c3aed; }
.status-badge.rented { background: #0f766e; }

.object-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.object-gallery.empty {
    display: block;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}
.object-gallery-item {
    height: 88px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: pointer;
}
.object-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-open-link {
    width: 100%;
    margin: 0 0 14px;
    padding: 9px 12px;
    background: #eef6ea;
    color: #365f25;
    border: 1px solid #cfe5c6;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.whatsapp-object-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    background: #25d366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: 0.15s;
}
.whatsapp-object-link:hover {
    background: #1fb457;
    transform: translateY(-1px);
}
.list-whatsapp {
    margin-top: 0;
    padding: 7px 10px;
    font-size: 12px;
    flex-shrink: 0;
}
.popup-whatsapp {
    margin-top: 5px;
    margin-left: 5px;
    padding: 5px 10px;
    font-size: 12px;
}
.modal-whatsapp {
    width: 100%;
    min-height: 42px;
    margin-top: 16px;
}

/* ============================================================
   СТРАНИЦА КАТАЛОГ
   ============================================================ */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 8px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.catalog-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    transition: 0.15s;
    min-width: 0;
}
.catalog-item:hover {
    border-color: #6ab04c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.catalog-item h3 {
    font-size: 16px;
    color: #0f172a;
}
.catalog-item .meta {
    font-size: 14px;
    color: #475569;
    margin: 6px 0;
}
.catalog-item .price {
    font-weight: 700;
    color: #1e293b;
    font-size: 18px;
}
.catalog-item .status {
    display: inline-block;
    margin-top: 8px;
}

/* Фильтры на странице каталога */
#page-catalog .filters {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* ============================================================
   СТРАНИЦА "О НАС"
   ============================================================ */
.about-hero {
    background: linear-gradient(135deg, #1e2a3a 0%, #2d4a5e 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 30px;
}
.about-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}
.about-hero h1 span {
    color: #6ab04c;
}
.about-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.stat-item {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: 0.15s;
}
.stat-item:hover {
    transform: translateY(-4px);
    border-color: #6ab04c;
    box-shadow: 0 6px 16px rgba(106, 176, 76, 0.15);
}
.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.stat-label {
    display: block;
    font-size: 16px;
    color: #64748b;
    margin-top: 6px;
}

/* Заголовки секций */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 40px 0 20px;
    text-align: center;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #6ab04c;
    margin: 8px auto 0;
    border-radius: 4px;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.advantage-item {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: 0.15s;
}
.advantage-item:hover {
    border-color: #6ab04c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.advantage-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}
.advantage-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}
.advantage-item p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Команда */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.team-member {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: 0.15s;
}
.team-member:hover {
    border-color: #6ab04c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.team-avatar {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}
.team-member h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}
.team-member p {
    font-size: 14px;
    color: #64748b;
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.review-item {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    font-style: italic;
    margin-bottom: 12px;
}
.review-author {
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

/* Призыв внизу */
.about-cta {
    background: #f1f9ee;
    border-radius: 16px;
    padding: 24px 30px;
    text-align: center;
    margin-top: 20px;
}
.about-cta p {
    font-size: 18px;
    color: #0f172a;
}
.about-cta a {
    color: #6ab04c;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #6ab04c;
    transition: 0.15s;
}
.about-cta a:hover {
    color: #5a9e3e;
    border-bottom-color: #5a9e3e;
}

/* ============================================================
   СТРАНИЦЫ КОНТАКТЫ И СТАТИЧНЫЕ (общие)
   ============================================================ */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.static-page h1 {
    font-size: 28px;
    color: #0f172a;
    margin-bottom: 16px;
}
.static-page p {
    line-height: 1.7;
    color: #334155;
    margin-bottom: 12px;
}
.static-page .contacts-list {
    list-style: none;
    padding: 0;
}
.static-page .contacts-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

/* ============================================================
   АДМИНКА
   ============================================================ */
.admin-pkk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f766e;
    color: #fff;
    text-decoration: none;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: 0.15s;
}
.admin-pkk-btn:hover {
    background: #0d5f59;
}
.cadastre-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.cadastre-input-row input {
    flex: 1;
    min-width: 0;
}
.pkk-field-btn {
    flex-shrink: 0;
    min-width: 154px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #0f766e;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}
.pkk-field-btn:hover {
    background: #0d5f59;
}
.pkk-field-note {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}
.admin-search-toolbar {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.admin-search-toolbar input,
.admin-search-toolbar select {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
    color: #0f172a;
    background: #fff;
}
.admin-search-toolbar button {
    min-height: 38px;
    padding: 8px 14px;
    border: none;
    border-radius: 7px;
    background: #e2e8f0;
    color: #1e293b;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}
.admin-search-toolbar button:hover {
    background: #cbd5e1;
}

.admin-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.admin-bulk-select-all,
.admin-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}
.admin-bulk-select-all input,
.admin-select-wrap input {
    width: 16px;
    height: 16px;
    accent-color: #1e2a3a;
    cursor: pointer;
}
#adminSelectedCount {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}
#adminBulkTrash {
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    background: #e74c3c;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}
#adminBulkTrash:hover:not(:disabled) {
    background: #c0392b;
}
#adminBulkTrash:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.admin-select-wrap {
    align-self: flex-start;
    padding-top: 3px;
    min-width: 84px;
}
.delete-modal-object {
    white-space: pre-line;
}

#adminPlotList .admin-item,
#adminTrashList .admin-item {
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: flex-end;
}
#adminPlotList .admin-item .info,
#adminTrashList .admin-item .info {
    flex: 1;
    min-width: 0;
}
#adminPlotList .admin-item .info strong,
#adminTrashList .admin-item .info strong {
    font-size: 15px;
    color: #0f172a;
}
#adminPlotList .admin-item .info small,
#adminTrashList .admin-item .info small {
    color: #64748b;
    display: block;
}
.admin-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.quick-status-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 150px;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}
.quick-status-select {
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.pkk-object-btn {
    background: #0f766e;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: 0.15s;
}
.pkk-object-btn:hover {
    background: #0d5f59;
}
.admin-edit-form {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #dbe7d4;
    border-radius: 10px;
}
#adminPlotList .admin-item.editing .admin-edit-form {
    display: grid;
}
.admin-edit-form label {
    display: block;
    margin-bottom: 5px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}
.admin-edit-form input,
.admin-edit-form select,
.admin-edit-form textarea {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
    color: #0f172a;
    background: #fff;
}
.admin-edit-form textarea {
    resize: vertical;
}
.admin-edit-form .wide {
    grid-column: 1 / -1;
}
.admin-edit-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.admin-edit-actions button {
    border: none;
    border-radius: 7px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}
.admin-edit-actions button:first-child {
    background: #6ab04c;
    color: #fff;
}
.admin-edit-actions button:first-child:hover {
    background: #5a9d3d;
}
.admin-edit-actions button:last-child {
    background: #e2e8f0;
    color: #1e293b;
}
.admin-edit-actions button:last-child:hover {
    background: #cbd5e1;
}
.coords-paste-row {
    padding: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
}
.coords-paste-controls {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-top: 6px;
}
.coords-paste-input {
    flex: 1;
    min-width: 180px;
}
.coords-paste-controls button {
    flex-shrink: 0;
    border: none;
    border-radius: 7px;
    padding: 8px 12px;
    background: #ea580c;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}
.coords-paste-controls button:hover {
    background: #c2410c;
}
.coords-paste-status {
    display: block;
    margin-top: 6px;
    color: #9a3412;
    font-size: 12px;
}
.coords-paste-status.success {
    color: #15803d;
}
.coords-paste-status.error {
    color: #b91c1c;
}
.admin-map-pick-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 8px;
}
.admin-map-pick-row span {
    color: #64748b;
    font-size: 13px;
}
.pick-coords-btn,
.admin-map-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 7px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}
.pick-coords-btn {
    background: #2563eb;
    color: #fff;
}
.pick-coords-btn:hover {
    background: #1d4ed8;
}
.admin-map-card {
    margin-top: 22px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.admin-map-card.picking {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.admin-map-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.admin-map-head h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 18px;
}
.admin-map-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}
.admin-map-cancel {
    flex-shrink: 0;
    background: #e2e8f0;
    color: #1e293b;
}
.admin-map-cancel:hover {
    background: #cbd5e1;
}
#adminMap {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
}
.admin-photo-upload {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 5px 10px;
    background: #eef6ea;
    color: #365f25;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.admin-photo-upload input {
    display: none;
}
.admin-photo-thumbs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.admin-photo-thumbs img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #d8e0ea;
}
.admin-photo-empty {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}
.photo-input-preview {
    margin-top: 8px;
}
.photo-input-status {
    margin-bottom: 8px;
    color: #475569;
    font-size: 13px;
}
.photo-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
}
.photo-input-thumb {
    position: relative;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
}
.photo-input-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-input-thumb span {
    position: absolute;
    right: 5px;
    bottom: 5px;
    min-width: 20px;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: white;
    font-size: 11px;
    text-align: center;
}

.admin-trash-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.admin-trash-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.admin-trash-head h3 {
    margin: 0 0 4px;
    color: #0f172a;
}
.admin-trash-head h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    margin-left: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 13px;
}
.admin-trash-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}
#adminTrashList .trash-item {
    background: #fff7ed;
    border-color: #fed7aa;
}
#adminTrashList .trash-item .info small:last-child {
    color: #9a3412;
}
.restore-btn {
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.15s;
}
.restore-btn:hover {
    background: #15803d;
}

#adminPlotList .admin-item .delete-btn,
#adminTrashList .admin-item .delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.15s;
}
#adminPlotList .admin-item .edit-btn {
    background: #1e2a3a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.15s;
}
#adminPlotList .admin-item .edit-btn:hover {
    background: #334155;
}
#adminPlotList .admin-item .delete-btn:hover,
#adminTrashList .admin-item .delete-btn:hover {
    background: #c0392b;
}

.delete-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
    z-index: 13000;
}
.delete-modal-overlay.active {
    display: flex;
}
.delete-modal {
    position: relative;
    width: min(430px, 100%);
    background: white;
    border-radius: 18px;
    padding: 26px 24px 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
    animation: fadeUp 0.22s ease;
}
.delete-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: none;
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.delete-modal-close:hover {
    color: #0f172a;
}
.delete-modal h2 {
    margin: 0 34px 10px 0;
    color: #0f172a;
    font-size: 22px;
}
.delete-modal-warning {
    margin: 0 0 12px;
    color: #b91c1c;
    font-weight: 700;
    line-height: 1.45;
}
.delete-modal-object {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    word-break: break-word;
}
.delete-modal-label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}
#deletePlotPassword {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}
#deletePlotPassword:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.16);
}
.delete-modal-error {
    display: none;
    margin-top: 8px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
}
.delete-modal-error.active {
    display: block;
}
.delete-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.delete-modal-actions button {
    border: 0;
    border-radius: 10px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
}
.delete-modal-cancel {
    background: #e2e8f0;
    color: #334155;
}
.delete-modal-cancel:hover {
    background: #cbd5e1;
}
.delete-modal-confirm {
    background: #e74c3c;
    color: white;
}
.delete-modal-confirm:hover:not(:disabled) {
    background: #c0392b;
}
.delete-modal-confirm:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: white;
    max-width: 480px;
    width: 90%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 20px;
    padding: 28px 24px;
    position: relative;
    animation: fadeUp 0.25s ease;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal .close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: #94a3b8;
}
.modal .close:hover {
    color: #1e293b;
}
.modal h2 {
    font-size: 22px;
    color: #0f172a;
    margin-bottom: 12px;
}
.modal .detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.modal .detail-row .label {
    color: #64748b;
}
.modal .detail-row .value {
    font-weight: 600;
    color: #0f172a;
    min-width: 0;
    text-align: right;
}
.modal .phone {
    margin-top: 16px;
    background: #f1f9ee;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: #2d5a1e;
}

.gallery-open {
    overflow: hidden;
}
.gallery-viewer {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px 72px;
    background: rgba(15, 23, 42, 0.92);
    z-index: 12000;
}
.gallery-viewer.active {
    display: flex;
}
.gallery-frame {
    max-width: min(980px, 100%);
    width: 100%;
    display: grid;
    gap: 14px;
    justify-items: center;
}
.gallery-frame img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.gallery-caption {
    width: min(720px, 100%);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: white;
    font-size: 15px;
}
.gallery-counter {
    color: #cbd5e1;
}
.gallery-close,
.gallery-nav {
    position: absolute;
    border: 0;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: 0.15s;
}
.gallery-close:hover,
.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}
.gallery-close {
    top: 22px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}
.gallery-nav {
    top: 50%;
    width: 52px;
    height: 70px;
    border-radius: 14px;
    font-size: 54px;
    line-height: 1;
    transform: translateY(-50%);
}
.gallery-prev {
    left: 18px;
}
.gallery-next {
    right: 18px;
}

/* ============================================================
   ФУТЕР
   ============================================================ */
footer {
    background: #1e2a3a;
    color: #94a3b8;
    padding: 14px 24px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #334155;
    margin-top: auto;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    header .logo {
        justify-content: center;
    }
    header .logo img {
        width: min(230px, 80vw);
        max-height: 56px;
    }
    nav {
        justify-content: center;
    }

    /* Главная — перестраиваем в колонку */
    .home-layout {
        display: flex;
        flex-direction: column;
        min-height: auto;
        position: static;
        background: white;
    }
    #map {
        position: relative;
        height: 320px;
        width: 100%;
        z-index: 1;
        border-radius: 0;
    }
    .hero-left {
        position: static;
        width: 100%;
        max-width: 100%;
        background: white;
        box-shadow: none;
        backdrop-filter: none;
        border-radius: 0;
        padding: 20px 16px;
        max-height: none;
        overflow-y: visible;
        order: 1;
    }
    .hero-left h1 {
        font-size: 24px;
    }
    .hero-left .subtitle {
        font-size: 15px;
    }
    .hero-benefit-item {
        padding: 4px 0;
    }
    .panel {
        position: static;
        width: 100%;
        max-width: 100%;
        background: white;
        box-shadow: none;
        backdrop-filter: none;
        border-radius: 0;
        max-height: none;
        overflow: visible;
        order: 2;
        border-top: 1px solid #e2e8f0;
    }
    .panel .filters {
        background: #f8fafc;
    }
    .panel .list-container {
        max-height: 300px;
        overflow-y: auto;
    }

    /* Остальные страницы */
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .static-page {
        padding: 20px;
    }
    .page:not(#page-home) {
        padding: 10px 12px;
    }
    #page-admin form > div {
        grid-template-columns: 1fr !important;
    }
    .about-hero h1 {
        font-size: 28px;
    }
    .section-title {
        font-size: 24px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .hero-left h1 {
        font-size: 22px;
    }
    .panel .filters {
        flex-direction: column;
        align-items: stretch;
    }
    .panel .filters .price-filter input[type="range"] {
        width: 100%;
    }
    .plot-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .plot-card .status-badge {
        margin-left: auto;
    }
    .list-whatsapp {
        width: 100%;
        min-height: 36px;
    }
    #adminPlotList .admin-item,
#adminTrashList .admin-item {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-bulk-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    #adminBulkTrash {
        width: 100%;
        min-height: 38px;
    }
    .admin-select-wrap {
        width: 100%;
    }
    .admin-item-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .admin-search-toolbar {
        grid-template-columns: 1fr;
    }
    .cadastre-input-row {
        flex-direction: column;
    }
    .pkk-field-btn,
    .admin-pkk-btn,
    .pkk-object-btn,
    .quick-status-label,
    .quick-status-select {
        width: 100%;
    }
    #adminPlotList .admin-item .edit-btn {
        flex: 1;
        min-height: 36px;
    }
    
.admin-trash-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.admin-trash-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.admin-trash-head h3 {
    margin: 0 0 4px;
    color: #0f172a;
}
.admin-trash-head h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    margin-left: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 13px;
}
.admin-trash-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}
#adminTrashList .trash-item {
    background: #fff7ed;
    border-color: #fed7aa;
}
#adminTrashList .trash-item .info small:last-child {
    color: #9a3412;
}
.restore-btn {
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.15s;
}
.restore-btn:hover {
    background: #15803d;
}

#adminPlotList .admin-item .delete-btn,
#adminTrashList .admin-item .delete-btn {
        width: 100%;
        min-height: 36px;
    }
    .admin-edit-form {
        grid-template-columns: 1fr;
    }
    .admin-map-pick-row,
    .admin-map-head {
        flex-direction: column;
        align-items: stretch;
    }
    .coords-paste-controls {
        flex-direction: column;
    }
    .coords-paste-input,
    .coords-paste-controls button {
        width: 100%;
        min-height: 36px;
    }
    .pick-coords-btn,
    .admin-map-cancel {
        width: 100%;
        min-height: 36px;
    }
    #adminMap {
        height: 300px;
    }
    .admin-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-edit-actions button {
        width: 100%;
        min-height: 36px;
    }
    .modal {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
        padding: 24px 16px;
        border-radius: 14px;
    }
    .modal .detail-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .modal .detail-row .value {
        text-align: left;
    }
    .gallery-viewer {
        padding: 24px 14px 84px;
    }
    .gallery-frame img {
        max-height: 70vh;
    }
    .gallery-caption {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }
    .gallery-nav {
        top: auto;
        bottom: 18px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        font-size: 38px;
        transform: none;
    }
    .gallery-prev {
        left: calc(50% - 58px);
    }
    .gallery-next {
        right: calc(50% - 58px);
    }
}

@media (max-width: 768px) {
    .admin-trash-head {
        flex-direction: column;
    }
    #adminTrashList .admin-item .admin-item-actions {
        width: 100%;
    }
    .restore-btn,
    #adminTrashList .delete-btn {
        width: 100%;
    }
}

/* Корзина в модальном окне */
.admin-trash-open {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.15s;
}
.admin-trash-open:hover {
    background: #334155;
}
.admin-trash-open span {
    font-weight: 800;
}
.trash-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 18px;
}
.trash-modal-overlay.active {
    display: flex;
}
.trash-modal {
    width: min(860px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
    padding: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.trash-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.trash-modal-close:hover {
    background: #e2e8f0;
}
.trash-modal-head {
    padding-right: 42px;
}
.trash-modal-head h2 {
    margin: 0 0 4px;
    color: #0f172a;
}
.trash-modal-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}
.trash-modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    padding-right: 4px;
}
body.trash-modal-open {
    overflow: hidden;
}
@media (max-width: 576px) {
    .admin-trash-open {
        width: 100%;
        min-height: 36px;
    }
    .trash-modal {
        padding: 18px 14px;
        border-radius: 14px;
    }
    .trash-modal-list #adminTrashList .admin-item,
    #adminTrashList .admin-item {
        flex-direction: column;
        align-items: stretch;
    }
}


/* ============================================================
   ДОПОЛНИТЕЛЬНАЯ АДАПТАЦИЯ АДМИНКИ ПОД МОБИЛЬНЫЕ И ПЛАНШЕТЫ
   ============================================================ */
.admin-shell {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.admin-head h2 {
    margin: 0;
    color: #0f172a;
}
.admin-head-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}
.admin-head-actions > * {
    min-height: 40px;
}
.admin-clear-btn,
.admin-logout-btn {
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.15s;
}
.admin-clear-btn {
    background: #991b1b;
}
.admin-clear-btn:hover {
    background: #7f1d1d;
}
.admin-logout-btn {
    background: #e74c3c;
}
.admin-logout-btn:hover {
    background: #c0392b;
}
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.admin-form-grid label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-weight: 600;
}
.admin-form-grid .full-row {
    grid-column: 1 / -1;
}
.admin-submit-btn {
    margin-top: 16px;
    background: #6ab04c;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
    min-height: 42px;
}
.admin-submit-btn:hover {
    background: #5a9e3e;
}
.admin-divider {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}
.admin-section-title {
    color: #0f172a;
    margin-bottom: 12px;
}
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#adminPlotList .admin-item,
#adminTrashList .admin-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 12px 14px;
}
#adminPlotList .admin-item .info,
#adminTrashList .admin-item .info {
    width: 100%;
}
#adminPlotList .admin-item.editing {
    display: block;
}
#adminPlotList .admin-item.editing .admin-select-wrap {
    margin-bottom: 10px;
}
#adminPlotList .admin-item.editing .info {
    width: 100%;
    min-width: 0;
}
#adminPlotList .admin-item.editing .admin-edit-form {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
#adminPlotList .admin-item.editing .admin-item-actions {
    justify-content: flex-start;
    margin-top: 12px;
}
#adminPlotList .admin-item.editing .quick-status-label {
    min-width: 220px;
}
.admin-item-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}
.quick-status-label {
    min-width: 160px;
}
.quick-status-select,
.pkk-object-btn,
#adminPlotList .admin-item .edit-btn,
#adminPlotList .admin-item .delete-btn,
#adminTrashList .admin-item .delete-btn,
.restore-btn,
.admin-trash-open,
.admin-pkk-btn,
.admin-clear-btn,
.admin-logout-btn,
#adminBulkTrash,
#adminSearchReset,
.pkk-field-btn,
.pick-coords-btn,
.admin-map-cancel,
.coords-paste-controls button,
.admin-submit-btn {
    min-height: 38px;
}
#adminMap {
    width: 100%;
}

/* ============================================================
   SEO-страницы
   ============================================================ */
.seo-landing-page {
    max-width: 1100px;
    margin: 0 auto;
}
.seo-landing-hero,
.seo-content-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.seo-landing-hero h1,
.seo-content-card h2 {
    color: #0f172a;
}
.seo-landing-hero p,
.seo-content-card p,
.seo-content-card li {
    color: #475569;
    line-height: 1.65;
}
.seo-side-card a {
    display: block;
    padding: 12px 14px;
    background: #eef6ea;
    color: #365f25;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.15s;
}
.seo-side-card a:hover {
    background: #dff0d8;
    transform: translateY(-1px);
}
.seo-landing-page {
    padding: 22px 14px 44px;
}
.seo-landing-hero {
    padding: 34px;
    background: linear-gradient(135deg, #ffffff, #f0f9ec);
}
.seo-video-hero {
    position: relative;
    min-height: 420px;
    padding: 64px 44px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #173d2d, #2f5f24);
    isolation: isolate;
}
.seo-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: -3;
}
.seo-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.42) 58%, rgba(15, 23, 42, 0.16)),
        linear-gradient(180deg, rgba(31, 77, 58, 0.28), rgba(15, 23, 42, 0.4));
    z-index: -2;
}
.seo-video-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.52), transparent);
    z-index: -1;
}
.seo-video-hero-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}
.seo-video-hero h1,
.seo-video-hero p {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.seo-video-hero p {
    max-width: 680px;
    font-size: 18px;
}
.seo-video-hero .seo-secondary-btn {
    background: rgba(255, 255, 255, 0.92);
    color: #1e2a3a;
}
.seo-video-hero .seo-secondary-btn:hover {
    background: #fff;
}

.seo-landing-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
}
.seo-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.seo-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: #1e2a3a;
    background: #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}
.seo-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
    gap: 18px;
    margin-top: 18px;
}
.seo-content-card {
    padding: 24px;
}
.seo-content-card ul {
    margin: 14px 0 0;
    padding-left: 20px;
}
.seo-side-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .seo-video-hero {
        min-height: 340px;
        padding: 42px 20px;
        border-radius: 16px;
    }
    .seo-video-hero p {
        font-size: 16px;
    }
    .seo-content-grid {
        grid-template-columns: 1fr;
    }
    .seo-landing-hero,
    .seo-content-card {
        padding: 20px;
    }
}
.trash-modal-list {
    overscroll-behavior: contain;
}
#loginBox {
    max-width: 420px;
}

@media (max-width: 900px) {
    .admin-shell {
        padding: 18px;
    }
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    .admin-form-grid .full-row {
        grid-column: auto;
    }
    .admin-head {
        align-items: stretch;
    }
    .admin-head-actions {
        width: 100%;
        justify-content: stretch;
    }
    .admin-head-actions > * {
        flex: 1 1 calc(50% - 8px);
    }
    #adminPlotList .admin-item,
    #adminTrashList .admin-item {
        grid-template-columns: 1fr;
    }
    .admin-select-wrap {
        min-width: 0;
        padding-top: 0;
    }
    .admin-item-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .quick-status-label {
        width: 100%;
        min-width: 0;
    }
    .quick-status-select,
    .pkk-object-btn,
    #adminPlotList .admin-item .edit-btn,
    #adminPlotList .admin-item .delete-btn,
    #adminTrashList .admin-item .delete-btn,
    .restore-btn {
        width: 100%;
    }
    .admin-search-toolbar {
        grid-template-columns: 1fr;
    }
    .admin-bulk-toolbar {
        align-items: stretch;
    }
    #adminSelectedCount {
        width: 100%;
        text-align: center;
    }
    .trash-modal {
        padding: 18px;
        max-height: calc(100vh - 24px);
    }
}

@media (max-width: 576px) {
    header {
        padding: 12px 14px;
    }
    nav {
        justify-content: flex-start;
    }
    .page,
    .page:not(#page-home) {
        padding: 10px;
    }
    .admin-shell {
        padding: 14px;
        border-radius: 14px;
    }
    .breadcrumbs {
        margin-bottom: 8px;
    }
    .admin-head-actions > * {
        flex: 1 1 100%;
    }
    .admin-bulk-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }
    .admin-bulk-select-all,
    .admin-select-wrap {
        width: 100%;
    }
    .cadastre-input-row,
    .coords-paste-controls,
    .admin-map-head,
    .admin-map-pick-row,
    .admin-edit-actions,
    .delete-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .pkk-field-btn,
    .coords-paste-controls button,
    .coords-paste-input,
    .pick-coords-btn,
    .admin-map-cancel,
    .admin-edit-actions button,
    .delete-modal-actions button {
        width: 100%;
    }
    .admin-map-card {
        padding: 14px;
    }
    #adminMap {
        height: 280px;
    }
    .delete-modal-overlay,
    .trash-modal-overlay,
    .modal-overlay {
        padding: 10px;
    }
    .delete-modal,
    .modal,
    .trash-modal,
    #loginBox {
        width: 100%;
        max-width: 100%;
    }
    .delete-modal,
    .modal,
    .trash-modal {
        border-radius: 14px;
    }
    .delete-modal {
        padding: 22px 16px 18px;
    }
    #loginBox {
        padding: 24px 16px;
    }
}


/* Автоматические блоки объектов на SEO-страницах по статусам */
.status-objects-section {
    margin-top: 22px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.status-objects-head {
    max-width: 760px;
    margin-bottom: 16px;
}
.status-objects-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #6ab04c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.status-objects-head h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: clamp(22px, 3vw, 30px);
}
.status-objects-head p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}
.status-catalog-grid {
    max-width: none;
    padding-top: 10px;
}
.catalog-empty {
    grid-column: 1 / -1;
    padding: 22px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}
@media (max-width: 768px) {
    .status-objects-section {
        padding: 18px;
    }
}
