@charset "UTF-8";
/* =========================================
   ФОС: перетаскиваемое окно обратной связи
   Немодальное окно: страница под ним остаётся живой.
   Позиция задаётся переменными --fos-x / --fos-y (из JS).
   ========================================= */
.fos-window {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    width: 480px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    transform: translate3d(var(--fos-x, 0px), var(--fos-y, 0px), 0);
    outline: none;
}
.fos-window[hidden],
.fos-window [hidden],
.fos-pill[hidden] { display: none !important; }
.fos-window.is-dragging { will-change: transform; }

.fos-shell {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 18, 28, 0.97) 0%, rgba(10, 13, 20, 0.97) 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(59, 130, 246, 0.18);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
/* Неактивное окно (клик мимо): гаснет свечение, как у неактивного окна IDE */
.fos-window.is-inactive .fos-shell {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.7);
}
/* Перетаскивание: окно «приподнимается» */
.fos-window.is-dragging .fos-shell {
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 34px 80px -18px rgba(0, 0, 0, 0.85), 0 0 46px -4px rgba(59, 130, 246, 0.45);
    transform: scale(1.012);
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
body.fos-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }

/* ---------- Заголовок окна (ручка для перетаскивания) ---------- */
.fos-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 10px 12px 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.fos-window.is-dragging .fos-titlebar { cursor: grabbing; }
.fos-grip { color: #4b5563; flex-shrink: 0; transition: color 0.2s ease; }
.fos-titlebar:hover .fos-grip,
.fos-window.is-dragging .fos-grip { color: #60a5fa; }
.fos-title {
    font-variant-ligatures: none; 
    font-variant-numeric: slashed-zero;
    font-family: 'Cascadia Code', monospace;
    font-size: 12px;
    font-weight: 500;
    color: #60a5fa;
    white-space: nowrap;
}
.fos-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 10.5rem;
    font-family: 'Cascadia Code', monospace;
    font-size: 12px;
    color: #34d399;
    white-space: nowrap;
}
.fos-status[data-state="connecting"],
.fos-status[data-state="sending"] { color: #fbbf24; }
.fos-status[data-state="moving"] { color: #60a5fa; }
.fos-status[data-state="error"] { color: #f87171; }
.fos-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
}
.fos-status[data-state="idle"] .fos-dot,
.fos-status[data-state="connecting"] .fos-dot,
.fos-status[data-state="sending"] .fos-dot { animation: fos-pulse 1.4s ease-in-out infinite; }

.fos-ctrl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.fos-ctrl:hover { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.1); }

/* ---------- Подсказка «окно можно двигать» ---------- */
.fos-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    max-height: 40px;
    padding: 7px 14px;
    overflow: hidden;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-family: 'Cascadia Code', monospace;
    font-size: 11px;
    color: #8b92a0;
    transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease;
}
.fos-hint.is-gone { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; }

/* ---------- Форма ---------- */
.fos-body {
    min-height: 0;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.text-amber-400 {
  font-size: 13px;
  color: rgb(251 191 36)
}
.fos-lead { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: #9ca3af; }
.fos-field { display: block; margin-bottom: 12px; }
.fos-row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 12px;
}
.fos-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #d1d5db;
}
.fos-label small {
    font-family: 'Cascadia Code', monospace;
    font-size: 10.5px;
    font-weight: 400;
    color: #8b92a0;
}
.fos-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.fos-input::placeholder { color: #6f7787; }
.fos-input:hover { border-color: rgba(255, 255, 255, 0.2); }
.fos-input:focus,
.fos-input:focus-visible {
    outline: none;
    border-color: rgba(59, 130, 246, 0.7);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
textarea.fos-input { min-height: 84px; max-height: 220px; resize: vertical; }

/* Поле вложения (upload): стиля для него нет в присланных файлах «Дизайна» — оформлено заново
   под тёмную тему плавающего окна, чтобы нативный выбор файла не выглядел чужеродно. */
input.fos-input[type="file"] { padding: 8px 10px; cursor: pointer; }
input.fos-input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12.5px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
input.fos-input[type="file"]::file-selector-button:hover { background: rgba(255, 255, 255, 0.16); }

select.fos-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 34px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2710%27%20height%3D%276%27%20viewBox%3D%270%200%2010%206%27%3E%3Cpath%20d%3D%27M1%201l4%204%204-4%27%20stroke%3D%27%238b92a0%27%20stroke-width%3D%271.5%27%20fill%3D%27none%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
select.fos-input:focus,
select.fos-input:focus-visible {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2710%27%20height%3D%276%27%20viewBox%3D%270%200%2010%206%27%3E%3Cpath%20d%3D%27M1%201l4%204%204-4%27%20stroke%3D%27%2360a5fa%27%20stroke-width%3D%271.5%27%20fill%3D%27none%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
select.fos-input:invalid { color: #6f7787; }
select.fos-input option { background: #15181f; color: #fff; }

.fos-err { display: block; margin: 5px 0 0; font-size: 12.5px; line-height: 1.4; color: #f87171; }
.fos-err:empty { display: none; margin: 0; } /* подставляется из [[!+fi.error.ПОЛЕ]]: пусто, пока нет ошибки */

/* Оформление согласия на обработку ПД - НЕ ТРОГАЕМ!
.fos-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #9ca3af;
    cursor: pointer;
}
.fos-consent a { color: #93c5fd; text-decoration: underline; text-underline-offset: 2px; }
.fos-consent a:hover { color: #fff; } 
.fos-check {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    place-content: center;
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.fos-check::after {
    content: '';
    width: 9px;
    height: 5px;
    margin-top: -2px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.12s ease;
}
.fos-check:checked { background: #2563eb; border-color: #3b82f6; }
.fos-check:checked::after { transform: rotate(-45deg) scale(1); } */

/* #form-response: стандартный для AjaxForm контейнер (см. fos.s.design.html). Сюда AjaxForm
   подставляет и текст успеха, и общую ошибку, не привязанную к полю — поэтому стиль нейтральный,
   без жёсткого красного. AjaxForm сам вешает сюда класс состояния (подтверждено: af-message-success
   при успехе, по аналогии где-то наверняка есть af-message-error) — при желании добавьте цветовые
   варианты через #form-response.af-message-success / .af-message-error. В окне партнёров это обычно
   не видно: fos-design.js очищает #form-response сразу после распознавания результата (см. fos-design.js). */
#form-response {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 12.5px;
    line-height: 1.5;
    color: #d1d5db;
}
#form-response:empty { display: none; margin: 0; padding: 0; }
#form-response a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.fos-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}
.fos-kbd { font-family: 'Cascadia Code', monospace; font-size: 11px; color: #8b92a0; }
.fos-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.55);
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}
.fos-submit:hover { background: #3b82f6; }
.fos-submit[data-sending="true"] { opacity: 0.7; cursor: progress; }
.fos-spin {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: fos-spin 0.7s linear infinite;
}

/* ---------- Экран «отправлено» ---------- */
.fos-done-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #fff; }
.fos-done-text { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: #9ca3af; }
.fos-trace {
    min-height: 3.6em;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-left: 2px solid #10b981;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    font-variant-numeric: slashed-zero;
    font-family: 'Cascadia Code', monospace;
    font-size: 11.5px;
    line-height: 1.6;
    color: rgba(110, 231, 183, 0.92);
    white-space: pre;
    overflow-x: auto;
}

/* ---------- Свёрнутое окно («пилюля») ---------- */
.fos-pill {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: rgba(15, 18, 28, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.7), 0 0 24px -6px rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    font-family: 'Cascadia Code', monospace;
    font-size: 12px;
    cursor: pointer;
    animation: fos-pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.fos-pill:hover { color: #fff; border-color: rgba(96, 165, 250, 0.85); }
.fos-pill .fos-dot { color: #6b7280; }
.fos-pill.has-draft .fos-dot { color: #fbbf24; animation: fos-pulse 1.4s ease-in-out infinite; }
.fos-pill-badge {
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-size: 10.5px;
}

/* ---------- Фокус с клавиатуры ---------- */
.fos-window :focus-visible,
.fos-pill:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.85);
    outline-offset: 2px;
}
.fos-window .fos-input:focus-visible { outline: none; }

/* ---------- Анимации ---------- */
@keyframes fos-in {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}
@keyframes fos-out {
    to { opacity: 0; transform: translateY(8px) scale(0.97); }
}
@keyframes fos-sheet-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes fos-nudge {
    0%, 100% { box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(59, 130, 246, 0.18); }
    40%      { box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7), 0 0 46px 2px rgba(96, 165, 250, 0.6); }
}
@keyframes fos-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }
@keyframes fos-spin { to { transform: rotate(360deg); } }
@keyframes fos-pop {
    from { opacity: 0; transform: translateY(8px) scale(0.92); }
    to   { opacity: 1; transform: none; }
}
.fos-window.is-opening .fos-shell { animation: fos-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fos-window.is-closing .fos-shell { animation: fos-out 0.16s ease-in both; }
.fos-window.is-nudge .fos-shell   { animation: fos-nudge 0.35s ease-out; }

/* ---------- Мобильные и сенсорные экраны: полноэкранная шторка, без перетаскивания ---------- */
@media (max-width: 767px), (pointer: coarse) {
    html.fos-sheet-open { overflow: hidden; }
    .fos-window {
        inset: 0;
        width: auto;
        max-width: none;
        max-height: none;
        transform: none !important;
    }
    .fos-shell { height: 100%; max-height: none; border: 0; border-radius: 0; }
    .fos-window.is-opening .fos-shell { animation-name: fos-sheet-in; }
    .fos-titlebar {
        cursor: default;
        touch-action: auto;
        padding-top: max(10px, env(safe-area-inset-top));
    }
    .fos-grip, .fos-min, .fos-hint, .fos-pill, .fos-kbd { display: none !important; }
    .fos-status { min-width: 0; }
    .fos-body { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    #fos-close svg {width:48px;height:48px;}
}
@media (max-width: 420px) {
    .fos-row { grid-template-columns: 1fr; }
}

/* ---------- Уважение к prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .fos-window .fos-shell,
    .fos-window .fos-dot,
    .fos-window .fos-spin,
    .fos-pill,
    .fos-pill .fos-dot { animation: none !important; transition: none !important; }
    .fos-window.is-dragging .fos-shell { transform: none; }
}