/* Dan Trafik – chat */
.dtc, .dtc *, .dtc *::before, .dtc *::after { box-sizing: border-box; }
.dtc { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--sans, system-ui, sans-serif); }
.dtc-fab { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--red, #d7301f); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 14px 34px -12px rgba(14, 26, 43, .55); position: relative; transition: transform .2s, background .2s; }
.dtc-fab:hover { background: #b9271a; transform: translateY(-2px); }
.dtc-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.dtc-dot { position: absolute; top: 9px; left: 32px; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; border: 2px solid var(--red, #d7301f); }
.dtc.open .dtc-dot { display: none; }
.dtc-panel { position: absolute; right: 0; bottom: 72px; width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 110px)); background: var(--paper, #f5f3ee); border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(14, 26, 43, .5), 0 0 0 1px rgba(14, 26, 43, .08); display: flex; flex-direction: column; overflow: hidden; animation: dtc-in .25s cubic-bezier(.2, .8, .2, 1); }
.dtc-panel[hidden] { display: none; }
@keyframes dtc-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dtc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--navy, #0e1a2b); color: #fff; }
.dtc-av svg { width: 38px; height: 38px; display: block; }
.dtc-head b { display: block; font-size: 16px; letter-spacing: .02em; }
.dtc-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #c9d1de; }
.dtc-head small i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; display: inline-block; }
.dtc-x { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.dtc-x:hover { background: rgba(255, 255, 255, .2); }
.dtc-log { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.dtc-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.dtc-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line, rgba(14, 26, 43, .12)); border-bottom-left-radius: 4px; color: var(--ink, #0e1a2b); }
.dtc-me { align-self: flex-end; background: var(--ink, #0e1a2b); color: #fff; border-bottom-right-radius: 4px; }
.dtc-bot b { font-weight: 700; }
.dtc-links { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.dtc-link { color: var(--red, #d7301f); font-weight: 700; text-decoration: none; }
.dtc-link:hover { text-decoration: underline; }
.dtc-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 0 4px; }
.dtc-chips button, .dtc-chips a { border: 1px solid var(--line, rgba(14, 26, 43, .12)); background: #fff; color: var(--ink, #0e1a2b); border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s; }
.dtc-chips button:hover, .dtc-chips a:hover { border-color: var(--ink, #0e1a2b); }
.dtc-chips .dtc-strong { background: var(--red, #d7301f); border-color: var(--red, #d7301f); color: #fff; }
.dtc-chips .dtc-strong:hover { background: #b9271a; }
.dtc-ask { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line, rgba(14, 26, 43, .12)); background: #fff; }
.dtc-ask input { flex: 1; min-width: 0; border: 1px solid var(--line, rgba(14, 26, 43, .12)); background: var(--paper, #f5f3ee); border-radius: 999px; padding: 11px 15px; font: inherit; font-size: 16px; }
.dtc-ask input:focus { outline: none; border-color: var(--ink, #0e1a2b); background: #fff; }
.dtc-ask button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--red, #d7301f); color: #fff; cursor: pointer; display: grid; place-items: center; }
.dtc-ask button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dtc-formbox { max-width: 100%; width: 100%; }
.dtc-formbox > p { margin: 0 0 8px; }
.dtc-field { margin-top: 10px; }
.dtc-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2, #33415a); margin-bottom: 4px; }
.dtc-field label em { color: var(--red, #d7301f); font-style: normal; }
.dtc-field input, .dtc-field textarea { width: 100%; border: 1px solid var(--line, rgba(14, 26, 43, .12)); background: var(--paper, #f5f3ee); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; resize: vertical; }
.dtc-field input:focus, .dtc-field textarea:focus { outline: none; border-color: var(--ink, #0e1a2b); background: #fff; }
.dtc-field [aria-invalid="true"] { border-color: var(--destructive, #b3261e); }
.dtc-ferr, .dtc-err { display: block; color: var(--destructive, #b3261e); font-size: 12.5px; margin: 4px 0 0; min-height: 0; }
.dtc-err:empty, .dtc-ferr:empty { display: none; }
.dtc-submit { margin-top: 12px; width: 100%; height: 46px; border: 0; border-radius: 8px; background: var(--red, #d7301f); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.dtc-submit:hover { background: #b9271a; }
.dtc-submit[disabled] { opacity: .55; cursor: progress; }
.dtc-ok { margin: 0; color: #1d6b3f; font-weight: 600; }
.dtc-skel { height: 120px; border-radius: 8px; background: linear-gradient(90deg, #eceae4, #f6f4ef, #eceae4); background-size: 200% 100%; animation: dtc-sk 1.2s linear infinite; }
@keyframes dtc-sk { to { background-position: -200% 0; } }
@media (max-width: 760px) {
  .dtc { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); }
  .dtc-fab { height: 52px; padding: 0 16px; }
  .dtc-fab span { display: none; }
  .dtc-dot { left: 30px; top: 8px; }
  .dtc.open { inset: 0; right: 0; bottom: 0; }
  .dtc.open .dtc-fab { display: none; }
  .dtc-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .dtc-panel { animation: none; } .dtc-skel { animation: none; } }
@media print { .dtc { display: none; } }