/*
 * Оформление публичного сайта mysvt.uz — то, чего нет в tailwind.css.
 * Дизайн взят из docs/design/landing.html. См. docs/11-public-site.md
 *
 * Шрифт Inter не подключается с Google Fonts: политика CSP (font-src 'self')
 * чужие шрифты запрещает. Пока Inter не положен в public/site/fonts,
 * браузер берёт системный.
 */

html { scroll-behavior: smooth; }

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Плавное появление при прокрутке. Скрываем только когда скрипт жив:
   без JS блоки должны остаться видимыми. */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.active { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

.bg-grid-pattern {
    background-image: radial-gradient(rgba(16, 185, 129, 0.12) 1px, transparent 1px);
    background-size: 32px 32px;
}

.glow-emerald { box-shadow: 0 0 50px -10px rgba(16, 185, 129, 0.25); }

/* Якоря не должны прятаться под фиксированной шапкой (80px). */
section[id] { scroll-margin-top: 5rem; }

/* ---------- Шапка: меню из панели, выпадающий список, мобильное меню ---------- */

.site-nav-item { position: relative; }
.site-nav-item > .site-sub {
    display: none; position: absolute; left: -0.75rem; top: 100%;
    min-width: 12rem; padding: 0.5rem; margin-top: 0.5rem;
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 0.75rem;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.25);
}
.site-nav-item:hover > .site-sub,
.site-nav-item:focus-within > .site-sub { display: flex; flex-direction: column; }
.site-sub a { padding: 0.45rem 0.75rem; border-radius: 0.5rem; }
.site-sub a:hover { background: #ecfdf5; }

.site-lang {
    font-size: 0.75rem; font-weight: 600; color: #475569; text-decoration: none;
    border: 1px solid #cbd5e1; border-radius: 999px; padding: 0.2rem 0.65rem;
}
.site-lang:hover { color: #059669; border-color: #059669; }

.site-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
    background: transparent; border: 1px solid #e2e8f0; color: #334155; cursor: pointer;
}
@media (min-width: 1024px) { .site-burger { display: none; } }

/* Меню в строку — с 1024px: знак с надписью широкий, на планшете в шапке тесно. */
.site-desktop-nav { display: none; }
@media (min-width: 1024px) { .site-desktop-nav { display: flex; } }

.site-mobile {
    display: none; border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff; padding: 0.75rem 1rem 1rem;
}
.site-mobile.open { display: block; }
.site-mobile a {
    display: block; padding: 0.6rem 0.25rem; color: #334155; font-weight: 500;
    text-decoration: none; border-bottom: 1px solid #f1f5f9;
}
.site-mobile a.sub { padding-left: 1.25rem; font-size: 0.9rem; color: #64748b; }
@media (min-width: 1024px) { .site-mobile, .site-mobile.open { display: none; } }

/* ---------- Внутренние страницы, ленты, публикации ---------- */

.site-inner { max-width: 48rem; margin: 0 auto; padding: 3rem 1rem 4rem; }
.site-inner h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 900; line-height: 1.15;
    letter-spacing: -0.02em; color: #0f172a; margin: 0 0 1rem;
}

.site-prose { color: #334155; line-height: 1.75; font-size: 1.0625rem; }
.site-prose h2 { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin: 2.25rem 0 0.75rem; }
.site-prose h3 { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin: 1.75rem 0 0.5rem; }
.site-prose h4 { font-weight: 700; color: #0f172a; margin: 1.25rem 0 0.4rem; }
.site-prose p, .site-prose ul, .site-prose ol, .site-prose blockquote, .site-prose figure { margin: 0 0 1.1rem; }
.site-prose ul { list-style: disc; padding-left: 1.4rem; }
.site-prose ol { list-style: decimal; padding-left: 1.4rem; }
.site-prose li { margin-bottom: 0.3rem; }
.site-prose a { color: #059669; text-decoration: underline; text-underline-offset: 2px; }
.site-prose a:hover { color: #047857; }
.site-prose blockquote { border-left: 3px solid #10b981; padding: 0.25rem 0 0.25rem 1rem; color: #64748b; }
.site-prose img { border-radius: 1rem; }
.site-prose figcaption { font-size: 0.875rem; color: #64748b; margin-top: 0.4rem; }
.site-prose hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2rem 0; }

.site-lede { font-size: 1.2rem; color: #475569; margin: 0 0 1.25rem; }
.site-meta { font-size: 0.875rem; color: #64748b; }
.site-draft {
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
    border-radius: 0.75rem; padding: 0.7rem 1rem; margin-bottom: 1.5rem; font-size: 0.9375rem;
}

.site-feed { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.site-feed li {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 1.25rem; padding: 1.25rem 1.4rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.site-feed li:hover { border-color: #a7f3d0; box-shadow: 0 10px 30px -15px rgba(5, 150, 105, 0.35); }
.site-feed h2 { margin: 0.2rem 0 0.2rem; font-size: 1.2rem; font-weight: 800; }
.site-feed h2 a { color: #0f172a; text-decoration: none; }
.site-feed h2 a:hover { color: #059669; }
.site-feed p { margin: 0.4rem 0 0; color: #475569; }
.site-pinned { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #059669; }

.site-pager { display: flex; gap: 1rem; margin-top: 1.75rem; font-weight: 600; }
.site-pager a { color: #059669; text-decoration: none; }
.site-pager a:hover { text-decoration: underline; }

.site-cover { width: 100%; margin: 1rem 0 1.5rem; border-radius: 1.25rem; }

/* ---------- Главная: ползунок калькулятора ---------- */

/* Ползунок калькулятора: свои цвета, иначе браузер рисует системный. */
input[type="range"].site-range { -webkit-appearance: none; appearance: none; background: #1e293b; height: 0.75rem; border-radius: 999px; }
input[type="range"].site-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 1.5rem; height: 1.5rem;
    border-radius: 999px; background: #10b981; border: 3px solid #022c22; cursor: pointer;
}
input[type="range"].site-range::-moz-range-thumb {
    width: 1.5rem; height: 1.5rem; border-radius: 999px; background: #10b981;
    border: 3px solid #022c22; cursor: pointer;
}

/* ---------- Демо: интерфейс панели правления ----------
 *
 * Повторяет настоящую панель (Filament, тёмная тема, акцент emerald):
 * шапка с поиском, боковая навигация по группам, таблицы с бейджами,
 * карточка записи, окно печатной формы. Классы с префиксом dp- написаны
 * вручную, а не берутся из tailwind.css: разметка демо правится в панели
 * сайта, и ей нужен стабильный набор классов, а не утилиты на каждый случай.
 */

.dw { background: #09090b; border: 1px solid #27272a; border-radius: 1.1rem; overflow: hidden; box-shadow: 0 25px 60px -20px rgba(2, 6, 23, 0.55); }
.dw-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.9rem; background: #0f172a; border-bottom: 1px solid #1e293b; }
.dw-dots { display: flex; gap: 0.4rem; }
.dw-dots span { width: 0.7rem; height: 0.7rem; border-radius: 999px; opacity: 0.85; }
.dw-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 0.72rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #94a3b8; }
.dw-live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600; color: #34d399; white-space: nowrap; }
.dw-live i { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: #34d399; animation: dw-pulse 2s infinite; }
@keyframes dw-pulse { 50% { opacity: 0.35; } }
@media (max-width: 520px) { .dw-url { display: none; } .dw-bar { justify-content: space-between; } }

.dp { position: relative; color: #e4e4e7; font-size: 0.8125rem; line-height: 1.45; text-align: left; }
.dp svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

.dp-top { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dp-back { display: inline-flex; color: #a1a1aa; }
.dp-brand { font-weight: 800; font-size: 1rem; color: #ffffff; }
.dp-search { display: inline-flex; align-items: center; gap: 0.45rem; margin-left: auto; width: 12rem; padding: 0.4rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0.6rem; background: rgba(255, 255, 255, 0.04); color: #71717a; }
.dp-avatar { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 999px; background: #27272a; font-size: 0.65rem; font-weight: 700; color: #d4d4d8; }
@media (max-width: 520px) { .dp-search { display: none; } .dp-avatar { margin-left: auto; } }

.dp-body { display: flex; min-height: 31rem; }
.dp-side { width: 14.5rem; flex-shrink: 0; padding: 0.9rem 0.75rem 1rem; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.dp-tenant { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; padding: 0.3rem 0.35rem 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-weight: 600; color: #f4f4f5; }
.dp-tenant > svg { margin-left: auto; color: #71717a; }
.dp-tenant-av { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 0.4rem; background: #27272a; font-size: 0.62rem; font-weight: 700; flex-shrink: 0; }
.dp-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.dp-group { margin: 0.8rem 0 0.25rem; padding: 0 0.6rem; font-size: 0.72rem; color: #a1a1aa; }
.dp-item { display: flex; align-items: center; gap: 0.65rem; width: 100%; padding: 0.5rem 0.6rem; border: 0; border-radius: 0.5rem; background: transparent; color: #d4d4d8; font: inherit; font-weight: 500; text-align: left; }
button.dp-item { cursor: pointer; }
button.dp-item:hover { background: rgba(255, 255, 255, 0.05); }
.dp-item svg { color: #a1a1aa; }
.dp-item.is-active { background: rgba(255, 255, 255, 0.06); color: #34d399; }
.dp-item.is-active svg { color: #34d399; }
@media (max-width: 767px) { .dp-side { display: none; } }

/* На телефоне боковая навигация убрана, вместо неё — полоса вкладок. */
.dp-tabs-m { display: none; gap: 0.4rem; padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); overflow-x: auto; }
.dp-tab { flex-shrink: 0; padding: 0.45rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0.55rem; background: transparent; color: #d4d4d8; font: inherit; font-weight: 600; cursor: pointer; }
.dp-tab.is-active { background: #059669; border-color: #059669; color: #ffffff; }
@media (max-width: 767px) { .dp-tabs-m { display: flex; } }

.dp-main { flex: 1; min-width: 0; padding: 1.1rem 1.25rem 1.5rem; }
.dp-main [hidden] { display: none; }
.dp-crumbs { display: flex; gap: 0.4rem; margin-bottom: 0.35rem; color: #a1a1aa; font-size: 0.78rem; }
.dp-crumbs i { font-style: normal; color: #52525b; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.dp-head h3 { margin: 0; font-size: 1.5rem; font-weight: 800; color: #ffffff; letter-spacing: -0.01em; }
.dp-actions { display: flex; gap: 0.5rem; }
.dp-hint { margin: 0 0 0.9rem; color: #a1a1aa; font-size: 0.78rem; }
.dp-muted { color: #a1a1aa; font-size: 0.78rem; }

.dp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0.55rem; background: rgba(255, 255, 255, 0.05); color: #ffffff; font: inherit; font-weight: 600; white-space: nowrap; }
button.dp-btn { cursor: pointer; }
button.dp-btn:hover { background: rgba(255, 255, 255, 0.1); }
.dp-btn-primary { border-color: #059669; background: #059669; }
button.dp-btn-primary:hover { background: #10b981; }
.dp-btn-wide { width: 100%; margin-top: 1rem; padding: 0.65rem 1rem; }

.dp-card { margin-bottom: 1rem; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 0.85rem; background: #18181b; overflow: hidden; }
.dp-card-tools { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dp-legend { display: inline-flex; gap: 0.4rem; }
.dp-scroll { overflow-x: auto; }

.dp-table { width: 100%; min-width: 38rem; border-collapse: collapse; }
.dp-table th { padding: 0.6rem 0.9rem; background: rgba(255, 255, 255, 0.04); color: #f4f4f5; font-weight: 600; text-align: left; white-space: nowrap; }
.dp-table td { padding: 0.65rem 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.06); color: #d4d4d8; vertical-align: middle; }
.dp-table tbody tr[data-plot], .dp-table tbody tr[data-member] { cursor: pointer; }
.dp-table tbody tr[data-plot]:hover td, .dp-table tbody tr[data-member]:hover td { background: rgba(255, 255, 255, 0.03); }
.dp-table tbody tr[aria-selected="true"] td { background: rgba(16, 185, 129, 0.07); }
.dp-check { color: #34d399; font-weight: 800; }
.dp-table tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 3px 0 0 #10b981; }
.dp-right { text-align: right !important; }
.dp-strong { font-weight: 700; color: #ffffff; }
.dp-sub { display: block; font-size: 0.72rem; color: #71717a; }
.dp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dp-ok { color: #34d399 !important; }
.dp-warn { color: #fbbf24 !important; }
.dp-row-actions { white-space: nowrap; text-align: right; }

.dp-link { display: inline-flex; align-items: center; margin-left: 0.9rem; padding: 0; border: 0; background: transparent; color: #34d399; font: inherit; font-weight: 600; cursor: pointer; }
.dp-link:first-child { margin-left: 0; }
button.dp-link:hover { text-decoration: underline; }
.dp-link-dim { color: #71717a; cursor: default; font-weight: 500; }
.dp-dot { margin: 0 0.35rem; color: #52525b; }

.dp-badge { display: inline-block; padding: 0.12rem 0.5rem; border: 1px solid; border-radius: 0.4rem; font-size: 0.72rem; font-style: normal; font-weight: 600; white-space: nowrap; }
.dp-badge-ok { background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.3); color: #34d399; }
.dp-badge-debt { background: rgba(244, 63, 94, 0.12); border-color: rgba(251, 113, 133, 0.3); color: #fb7185; }
.dp-badge-penalty { background: rgba(245, 158, 11, 0.12); border-color: rgba(251, 191, 36, 0.3); color: #fbbf24; }

.dp-section { padding: 1rem 1.1rem 1.1rem; }
.dp-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.8rem; }
.dp-section-head h4 { margin: 0.1rem 0 0; font-size: 1.15rem; font-weight: 700; color: #ffffff; }
.dp-infolist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin: 0; }
.dp-infolist > div { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.dp-infolist dt { color: #a1a1aa; }
.dp-infolist dd { margin: 0; font-weight: 600; color: #ffffff; text-align: right; }
.dp-infolist .dp-span { grid-column: 1 / -1; border-bottom: 0; }
#plot-balance[data-tone="ok"] { color: #34d399; }
#plot-balance[data-tone="debt"] { color: #fb7185; }
#plot-balance[data-tone="penalty"] { color: #fbbf24; }
@media (max-width: 640px) { .dp-infolist { grid-template-columns: 1fr; } }

.dp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.dp-stat { padding: 0.85rem 1rem; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 0.85rem; background: #18181b; }
.dp-stat span { display: block; color: #a1a1aa; font-size: 0.75rem; }
.dp-stat b { display: block; margin-top: 0.25rem; font-size: 1.4rem; font-weight: 700; color: #ffffff; }
@media (max-width: 640px) { .dp-stats { grid-template-columns: 1fr; } }

/* Окно печатной формы: поверх панели, как модальные окна Filament. */
.dp-modal { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: center; padding: 1.25rem 0.75rem; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(2px); overflow-y: auto; }
.dp-modal[hidden] { display: none; }
.dp-modal-card { width: min(100%, 31rem); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.9rem; background: #18181b; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); }
.dp-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dp-modal-head h5 { margin: 0; font-size: 1rem; font-weight: 700; color: #ffffff; }
.dp-x { width: 1.8rem; height: 1.8rem; border: 0; border-radius: 0.4rem; background: transparent; color: #a1a1aa; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.dp-x:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.dp-modal-foot { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* Лист бумаги — как печатная форма «Квитанция» в панели. */
.dp-paper { margin: 1rem; padding: 1.1rem 1.2rem 1rem; border-radius: 0.4rem; background: #ffffff; color: #111827; font-family: "Times New Roman", Georgia, serif; font-size: 0.8rem; }
.dp-paper p { margin: 0; }
.dp-paper-org { text-align: center; font-weight: 700; font-size: 0.9rem; }
.dp-paper-title { margin-top: 0.5rem !important; text-align: center; font-weight: 700; font-size: 1.05rem; }
.dp-paper-sub { margin: 0.2rem 0 0.8rem !important; text-align: center; color: #4b5563; font-size: 0.75rem; }
.dp-paper-table { width: 100%; margin-bottom: 0.5rem; border-collapse: collapse; }
.dp-paper-table th, .dp-paper-table td { padding: 0.3rem 0.5rem; border: 1px solid #9ca3af; text-align: left; }
.dp-paper-table td:last-child { text-align: right; }
.dp-paper-table#dp-doc-lines-table[hidden] { display: none; }
.dp-paper-total th, .dp-paper-total td { font-weight: 700; background: #f3f4f6; }
.dp-paper-note { margin-top: 0.7rem !important; color: #4b5563; font-size: 0.7rem; }

/* ---------- Главная: фоны первых экранов и мелкие утилиты ---------- */

/* В оригинале hero и демо-кабинет были одной секцией с градиентом
   «белый → slate-50 → slate-100». Теперь hero — поля из панели, демо — в содержимом,
   поэтому градиент разрезан на две части без шва. */
.site-hero { background: linear-gradient(to bottom, #ffffff, #f8fafc); position: relative; overflow: hidden; }
.site-demo { background: linear-gradient(to bottom, #f8fafc, #f1f5f9); padding-bottom: 4rem; }
@media (min-width: 1024px) { .site-demo { padding-bottom: 6rem; } }

.site-block { display: block; }

/* Логотип: знак с надписью, пропорция 740:210. Высота задаёт размер, ширина — по пропорции. */
.site-logo { height: 3.75rem; width: auto; display: block; }
.site-logo-footer { height: 3rem; width: auto; display: block; }
@media (max-width: 639px) { .site-logo { height: 2.75rem; } }

/* Узкий экран: в шапке остаются логотип, кнопка и бургер; язык и вход — в мобильном меню. */
.site-burger { flex-shrink: 0; }
.site-connect { white-space: nowrap; }
@media (max-width: 639px) {
    .site-connect { padding: 0.6rem 0.9rem; font-size: 0.8125rem; }
}

/* ---------- Форма заявки «Подключить СВТ» ---------- */

.site-lead {
    width: min(92vw, 27rem); max-height: 92vh; overflow: auto; margin: auto;
    padding: 2rem 1.75rem 1.5rem; border: 1px solid #e2e8f0; border-radius: 1.5rem;
    background: #ffffff; color: #334155; box-shadow: 0 30px 80px -20px rgba(2, 44, 34, 0.45);
}
.site-lead::backdrop { background: rgba(2, 20, 15, 0.6); backdrop-filter: blur(4px); }
.site-lead h2 { margin: 0 0 0.4rem; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; color: #0f172a; }
.site-lead-intro { margin: 0 0 1.25rem; font-size: 0.9375rem; color: #64748b; line-height: 1.55; }
.site-lead-close {
    position: absolute; top: 0.75rem; right: 0.9rem; width: 2rem; height: 2rem; border: 0;
    background: transparent; font-size: 1.6rem; line-height: 1; color: #94a3b8; cursor: pointer; border-radius: 0.5rem;
}
.site-lead-close:hover { color: #0f172a; background: #f1f5f9; }

.site-lead-field { display: block; margin-bottom: 0.9rem; }
.site-lead-field span { display: block; margin-bottom: 0.3rem; font-size: 0.8125rem; font-weight: 600; color: #475569; }
.site-lead-field input {
    width: 100%; padding: 0.8rem 1rem; border: 1px solid #cbd5e1; border-radius: 0.75rem;
    background: #f8fafc; color: #0f172a; font: inherit; font-size: 1rem;
}
.site-lead-field input:focus { outline: 2px solid #10b981; outline-offset: 1px; border-color: #10b981; background: #ffffff; }
.site-lead-field input[aria-invalid="true"] { border-color: #f43f5e; }

.site-lead-submit {
    width: 100%; margin-top: 0.4rem; padding: 0.95rem 1rem; border: 0; border-radius: 0.75rem;
    background: #059669; color: #ffffff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(5, 150, 105, 0.6); transition: background 0.15s, transform 0.15s;
}
.site-lead-submit:hover { background: #047857; transform: translateY(-1px); }
.site-lead-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }
.site-lead-error { margin: 0 0 0.6rem; padding: 0.6rem 0.8rem; border-radius: 0.6rem; background: #fff1f2; color: #be123c; font-size: 0.875rem; }
.site-lead-consent { margin: 0.9rem 0 0; font-size: 0.75rem; color: #94a3b8; line-height: 1.5; text-align: center; }
.site-lead-consent a { color: #059669; text-decoration: underline; text-underline-offset: 2px; }

.site-lead-done { text-align: center; padding: 0.5rem 0 0.25rem; }
.site-lead-done p { margin: 0 0 1.25rem; color: #64748b; }
.site-lead-check {
    width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 999px;
    background: #d1fae5; color: #059669; font-size: 1.75rem; font-weight: 900; line-height: 3.5rem;
}

/* Ловушка для роботов: вне экрана, а не display:none — иначе её обходят. */
.site-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
