/* Карта на заказ (T-261016-0b54, тёмный дизайн T-261017-04d6): /na-zakaz/ и лента заказа.
   Палитра place-page: фон #0d1929, карточки #13233a/#162a45, границы #1e3a5f, текст #e2e8f0,
   второстепенный #94a3b8, акцент #3b82f6/#2563eb, цены #10b981.
   Размеры в px: html у style.css — 14px, rem здесь был бы мелким. Телефон 375 px — текст не меньше 13 px. */

/* --- Фон и шапка --- */
html:has(body.co-body) { background: #0d1929; scroll-behavior: smooth; }
body.co-body { background: #0d1929; color: #e2e8f0; min-height: 100vh; height: auto; overflow-x: hidden; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.co-body .site-header { background: rgba(13, 25, 41, 0.96); border-bottom: 1px solid #1e3a5f; }
.co-body .nav-lang-btn, .co-body .nav-lang-dd a, .co-body .nav-account { font-size: 13px; }
.co-body .header-nav a { font-size: 14px; }
@media (max-width: 768px) { .co-body .header-nav { background: rgba(13, 25, 41, 0.98); border-bottom-color: #1e3a5f; } .co-body .header-nav a { font-size: 15px; } }

/* --- Каркас --- */
.co-page { max-width: 1080px; margin: 0 auto; padding: 20px 20px 64px; color: #e2e8f0; font-size: 16px; line-height: 1.55; overflow-wrap: break-word; }
/* Широкое окно: колонка 1080 читалась как «сдвиг вбок» (T-261019-c4d4), центровка та же. */
@media (min-width: 1600px) { .co-page { max-width: 1280px; } }
.co-page h1 { font-size: 42px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: #f8fafc; margin: 0 0 14px; }
.co-page h2 { position: relative; font-size: 26px; line-height: 1.25; font-weight: 700; color: #f1f5f9; margin: 56px 0 20px; padding-left: 14px; }
.co-page h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, #3b82f6, #10b981); }
.co-page h3 { font-size: 18px; line-height: 1.3; font-weight: 700; color: #f1f5f9; margin: 0 0 8px; }
.co-page p { margin: 0; }
.co-back { display: inline-block; color: #93c5fd; font-size: 14px; text-decoration: none; padding: 6px 0; margin-bottom: 12px; }
.co-back:hover { color: #bfdbfe; text-decoration: underline; }
.co-subtitle { color: #cbd5e1; font-size: 19px; line-height: 1.55; max-width: 680px; margin: 0 0 24px; }

/* --- Обложка --- */
.co-hero { position: relative; overflow: hidden; border: 1px solid #1e3a5f; border-radius: 20px; padding: 52px 48px 48px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(59, 130, 246, 0.30) 0%, rgba(59, 130, 246, 0) 60%),
    radial-gradient(70% 90% at 100% 100%, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0) 60%),
    linear-gradient(160deg, #13233a 0%, #0f1d31 100%);
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.45); }
.co-chips { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.co-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(13, 25, 41, 0.72); border: 1px solid #1e3a5f; color: #cbd5e1; font-size: 15px; }
.co-chip-price { color: #34d399; font-weight: 700; font-size: 16px; white-space: nowrap; }
.co-cta { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

/* --- Кнопки --- */
.co-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; color: #e2e8f0; background: #162a45; border: 1px solid #1e3a5f; border-radius: 12px; padding: 12px 20px; cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.co-btn:hover { background: #1c3556; border-color: #2b4f7e; }
.co-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.co-btn--primary { background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: #2563eb; color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35); }
.co-btn--primary:hover { background: linear-gradient(180deg, #4f8ff7, #1d4ed8); border-color: #1d4ed8; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45); }
.co-btn--lg { font-size: 18px; padding: 16px 30px; border-radius: 14px; }
.co-btn:disabled, .co-btn:disabled:hover { opacity: 0.6; cursor: default; transform: none; }

/* --- Обещание: оплата вперёд, возврат, что входит --- */
.co-promise { margin-top: 40px; background: #13233a; border: 1px solid #1e3a5f; border-radius: 16px; padding: 28px 32px; }
.co-promise h2 { margin-top: 0; }
.co-promise-lead { font-size: 19px; line-height: 1.5; font-weight: 600; color: #f1f5f9; margin: 0 0 20px; max-width: 760px; }
.co-includes-title { color: #34d399; }
.co-includes { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; font-size: 16px; color: #e2e8f0; }
.co-excludes { margin: 0; font-size: 15px; line-height: 1.55; color: #94a3b8; }

/* --- Как это работает --- */
.co-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .co-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.co-step { position: relative; display: flex; flex-direction: column; background: #13233a; border: 1px solid #1e3a5f; border-radius: 16px; padding: 24px; box-shadow: 0 6px 20px rgba(2, 8, 23, 0.3); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.co-step:hover { border-color: #3b82f6; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18); }
.co-step-n { width: 40px; height: 40px; border-radius: 50%; margin-bottom: 16px; background: linear-gradient(180deg, #3b82f6, #2563eb); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.14); }
.co-step-title { display: flex; flex-direction: column; gap: 4px; }
.co-step-price { color: #34d399; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.co-step p { color: #94a3b8; font-size: 15px; line-height: 1.6; }

/* --- Форма --- */
.co-form-wrap { scroll-margin-top: 72px; margin-top: 56px; background: linear-gradient(180deg, #162a45, #13233a); border: 1px solid #1e3a5f; border-top: 3px solid #3b82f6; border-radius: 16px; padding: 32px; box-shadow: 0 18px 48px rgba(2, 8, 23, 0.45); }
.co-form-wrap h2 { margin-top: 0; }
.co-form-wrap form { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.co-field { display: flex; flex-direction: column; gap: 8px; }
.co-label { font-size: 15px; color: #cbd5e1; font-weight: 600; }
.co-field input, .co-field textarea, .co-reply textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; line-height: 1.5; color: #f1f5f9; background: #0d1929; border: 1px solid #2b4f7e; border-radius: 12px; padding: 12px 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.co-field textarea, .co-reply textarea { resize: vertical; min-height: 120px; }
.co-field input::placeholder, .co-field textarea::placeholder, .co-reply textarea::placeholder { color: #8292a8; opacity: 1; }
.co-field input:hover, .co-field textarea:hover, .co-reply textarea:hover { border-color: #3b6ea8; }
.co-field input:focus, .co-field textarea:focus, .co-reply textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); }
.co-form-wrap #coSubmit { align-self: flex-start; min-width: 220px; }
/* Карта выделения области (T-261018-db67): во всю ширину формы, без ухода вбок. */
.co-map-field { min-width: 0; }
.co-map-hint { font-size: 14px; line-height: 1.5; color: #94a3b8; }
.co-map { position: relative; width: 100%; max-width: 100%; box-sizing: border-box; height: 340px; border: 1px solid #2b4f7e; border-radius: 12px; overflow: hidden; background: #0d1929; z-index: 0; }
.co-map-fallback { padding: 16px; font-size: 15px; color: #94a3b8; }
.co-map .leaflet-control-attribution { font-size: 13px; }
.co-map .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; font-size: 20px; }
.co-map-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.co-map-actions .co-btn { min-height: 48px; font-size: 16px; }
.co-map-actions .co-btn[hidden] { display: none; }
.co-bbox-note { font-size: 14px; color: #6ee7b7; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.35); border-radius: 10px; padding: 10px 14px; }
/* Выделение — модуль конструктора (T-261019-cd39): поиск, тулбар режимов, счётчик площади.
   Значения — из components.css/wizard.css/home_inline.css конструктора, палитра страницы;
   селекторы — только внутри .co-map-field (глобальные стили конструктора не подключаем). */
.co-map-field .search-bar, .co-map-field .draw-toolbar { display: flex; align-items: center; min-width: 0; }
.co-map-field .search-bar[hidden], .co-map-field .draw-toolbar[hidden] { display: none; }
.co-map-field .search-bar { position: relative; flex-wrap: nowrap; margin: 0; background: #0d1929; border: 1px solid #2b4f7e; border-radius: 12px; }
.co-map-field .search-bar:focus-within { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); }
.co-map-field .search-bar input { flex: 1 1 0; width: auto; min-width: 0; border: none; border-radius: 12px 0 0 12px; background: transparent; box-shadow: none; padding: 12px 14px; font-size: 16px; -webkit-appearance: none; appearance: none; }
.co-map-field .search-bar input:hover, .co-map-field .search-bar input:focus { border: none; box-shadow: none; outline: none; }
.co-map-field .search-bar input::-webkit-search-cancel-button, .co-map-field .search-bar input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.co-map-field .search-btn { align-self: stretch; min-height: 48px; padding: 0 20px; border: none; border-radius: 0 11px 11px 0; background: #2563eb; color: #fff; font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 0.2s; }
.co-map-field .search-btn:hover { background: #1d4ed8; }
.co-map-field .geodata-nearby-btn { align-self: stretch; border-left-color: #2b4f7e; color: #94a3b8; }
.co-map-field .geodata-results-dropdown { top: calc(100% + 4px); background: #13233a; border: 1px solid #2b4f7e; border-radius: 12px; }
.co-map-field .geodata-result-item { border-bottom-color: #1e3a5f; }
.co-map-field .geodata-result-item:hover, .co-map-field .geodata-result-item--active { background: #1e3a5f; }
.co-map-field .geodata-result-name { color: #f1f5f9; font-size: 15px; }
.co-map-field .geodata-result-meta, .co-map-field .geodata-result-top-badge { font-size: 13px; }
.co-map-field .geodata-result-loading, .co-map-field .geodata-result-empty, .co-map-field .geoip-fallback-notice { font-size: 14px; }
.co-map-field .draw-toolbar { flex-wrap: wrap; gap: 6px; padding: 0; background: none; border: none; }
.co-map-field .draw-mode-btn { min-width: 44px; min-height: 44px; padding: 6px 10px; border: 1px solid #2b4f7e; border-radius: 10px; background: #0d1929; color: #cbd5e1; font-size: 18px; line-height: 1; }
.co-map-field .draw-mode-btn:hover { border-color: #60a5fa; color: #60a5fa; background: rgba(37, 99, 235, 0.08); }
.co-map-field .draw-mode-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.co-map-field .draw-mode-btn.delete-btn:hover { border-color: #ef4444; color: #f87171; background: rgba(239, 68, 68, 0.08); }
.co-map-field .draw-separator { color: #2b4f7e; margin: 0 2px; font-size: 18px; }
.co-map-field .area-counter { margin-left: auto; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: #6ee7b7; white-space: nowrap; }
.co-map-field .area-counter:empty, .co-map-field .area-counter-hint:empty { display: none; }
.co-map-field .area-counter--over { color: #f87171; }
.co-map-field .area-counter-hint { font-size: 14px; line-height: 1.4; color: #f87171; overflow-wrap: break-word; }
.co-map .leaflet-div-icon.map-side-label, .co-map .map-side-label { width: 0; height: 0; background: none; border: none; pointer-events: none; }
.co-map .map-side-label-text { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); padding: 0 2px; font-size: 13px; font-weight: 600; line-height: 1.2; color: #1d4ed8; white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.co-error { color: #fecaca; font-size: 15px; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(248, 113, 113, 0.45); border-radius: 10px; padding: 10px 14px; }
.co-error[hidden] { display: none; }

/* --- Лента заказа --- */
.co-order { max-width: 820px; }
.co-order-head { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #1e3a5f; }
.co-order h1 { font-size: 32px; margin-bottom: 12px; }
.co-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: #e2e8f0; background: #13233a; border: 1px solid #1e3a5f; border-radius: 999px; padding: 6px 14px; margin: 0; }
.co-status[hidden] { display: none; }
.co-status .co-label { color: #94a3b8; font-size: 14px; }
#coStatusText { color: #93c5fd; font-weight: 600; }
.co-feed { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; font-size: 16px; color: #94a3b8; }
.co-msg { border-radius: 16px; padding: 12px 16px; max-width: 86%; color: #e2e8f0; box-shadow: 0 4px 14px rgba(2, 8, 23, 0.3); }
.co-msg--client { align-self: flex-end; background: linear-gradient(180deg, #2563eb, #1d4ed8); color: #fff; border-bottom-right-radius: 4px; }
.co-msg--ai { align-self: flex-start; background: #162a45; border: 1px solid #1e3a5f; border-bottom-left-radius: 4px; }
.co-msg-role { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: #93c5fd; }
.co-msg--client .co-msg-role { color: #dbeafe; }
.co-msg-text { white-space: normal; word-break: break-word; line-height: 1.55; }
.co-msg-time { font-size: 13px; margin-top: 6px; color: #94a3b8; }
.co-msg--client .co-msg-time { color: #dbeafe; }
.co-link-list { margin: 8px 0 0; padding-left: 20px; font-size: 15px; }
.co-link-list li { margin: 4px 0; }
.co-link { color: #93c5fd; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.co-link:hover { color: #bfdbfe; }
.co-msg--client .co-link { color: #fff; }
.co-links { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.co-links:empty, .co-actions:empty { display: none; }
.co-link-group { background: #13233a; border: 1px solid #1e3a5f; border-left: 3px solid #10b981; border-radius: 12px; padding: 14px 16px; }
.co-link-group h3 { font-size: 16px; margin: 0 0 4px; }
.co-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 18px; background: #13233a; border: 1px solid #1e3a5f; border-radius: 14px; }
.co-work-price { width: 100%; margin: 0; font-size: 18px; font-weight: 700; color: #34d399; }
.co-note { width: 100%; margin: 0; font-size: 15px; color: #cbd5e1; }
.co-out-of-scope { width: 100%; margin: 0; font-size: 16px; line-height: 1.5; color: #fde68a; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.4); border-radius: 10px; padding: 10px 14px; box-sizing: border-box; }
.co-btn--ghost { background: transparent; border-color: #2b4f7e; color: #cbd5e1; }
.co-btn--ghost:hover { border-color: #f87171; color: #fecaca; }
.co-reply { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #13233a; border: 1px solid #1e3a5f; border-radius: 14px; }
.co-reply[hidden] { display: none; }
.co-reply .co-btn { align-self: flex-end; }

/* --- Телефон --- */
@media (max-width: 720px) {
  .co-page { padding: 12px 16px 48px; }
  .co-page h1 { font-size: 29px; }
  .co-page h2 { font-size: 22px; margin-top: 40px; }
  .co-subtitle { font-size: 16px; margin-bottom: 20px; }
  .co-hero { padding: 28px 20px 24px; border-radius: 16px; }
  .co-chips { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 22px; }
  .co-chip { justify-content: space-between; border-radius: 12px; padding: 10px 14px; }
  .co-cta, .co-form-wrap #coSubmit, .co-reply .co-btn { width: 100%; align-self: stretch; }
  .co-btn--lg { font-size: 17px; padding: 15px 20px; }
  .co-promise { padding: 22px 16px; border-radius: 14px; margin-top: 28px; }
  .co-promise-lead { font-size: 17px; }
  .co-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .co-step { padding: 20px; }
  .co-step-price { font-size: 22px; }
  .co-form-wrap { padding: 22px 16px; margin-top: 40px; border-radius: 14px; }
  .co-map { height: 320px; }
  .co-map-actions .co-btn { flex: 1 1 100%; }
  .co-map-field .search-btn { padding: 0 14px; }
  .co-map-field .area-counter { margin-left: 0; flex: 1 1 100%; }
  .co-order h1 { font-size: 26px; }
  .co-msg { max-width: 94%; }
  .co-actions .co-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.co-body) { scroll-behavior: auto; }
  .co-btn, .co-step { transition: none; }
  .co-btn--primary:hover, .co-step:hover { transform: none; }
}
