:root {
  --teal: #0d6e6e;
  --teal-dark: #094f4f;
  --teal-hover: #0a5c5c;
  --teal-light: #e8f5f5;
  --teal-mid: #9fcece;

  --bg-body: #edf5f5;
  --bg-shell: #ffffff;
  --bg-sidebar: #f7fbfb;
  --bg-topbar: #ffffff;
  --bg-input: #f4f9f9;
  --bg-bubble-bot: #ffffff;

  --border: #d8e9e9;
  --text: #172b2b;
  --text-muted: #7a9e9e;
  --text-inv: #ffffff;
  --text-red: #eb342b;

  --shadow-shell:
    0 20px 60px rgba(13, 110, 110, 0.13), 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-btn: 0 2px 10px rgba(13, 110, 110, 0.35);
  --shadow-nom: 0 2px 8px rgba(0, 0, 0, 0.18);
  --shadow-card:
    0 8px 32px rgba(13, 110, 110, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);

  --badge-oven: #0d6e6e;
  --badge-adl: #1e6fad;
  --badge-rosma: #7d2e7d;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
}

#nom-select {
  display: none;
}
.btn-mob {
  display: none;
}

[data-theme="dark"] {
  --teal: #304e42;
  --teal-dark: #263d34;
  --teal-hover: #3a5c4e;
  --teal-light: #1a2b24;
  --teal-mid: #3f6556;

  --bg-body: #0e1818;
  --bg-shell: #111f1f;
  --bg-sidebar: #132020;
  --bg-topbar: #132020;
  --bg-input: #0e1818;
  --bg-bubble-bot: #182727;

  --border: #1b3434;
  --text: #d6eeee;
  --text-muted: #527676;
  --text-inv: #ffffff;

  --shadow-shell: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-btn: 0 2px 10px rgba(48, 78, 66, 0.28);
  --shadow-nom: 0 2px 10px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);

  --badge-oven: #304e42;
  --badge-adl: #5a9fda;
  --badge-rosma: #c06ac0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: background 0.3s;
}

.shell {
  width: 100%;
  max-width: 1200px;
  height: calc(100vh - 32px);
  min-height: 500px;
  background: var(--bg-shell);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-shell);
  border: 1px solid var(--border);
  display: flex;
  overflow: hidden;
  position: relative;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.crm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 40;
}
.crm-modal.hidden {
  display: none;
}

.crm-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-shell);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
}

.crm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.crm-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--teal);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.crm-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}

.crm-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.crm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crm-form input[type="email"] {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-input);
  outline: none;
  font-family: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.crm-form input[type="email"]:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.1);
}

.crm-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.crm-check input {
  margin-top: 3px;
  accent-color: var(--teal);
  flex-shrink: 0;
}

.crm-link {
  color: var(--teal);
  text-decoration: underline;
  font-size: 13px;
}
.crm-link:hover {
  color: var(--text-red);
}

.crm-submit {
  height: 44px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.1px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.crm-submit:hover {
  background: var(--teal-hover);
  box-shadow: var(--shadow-btn);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 19;
}
.overlay.hidden {
  display: none;
}

.sidebar {
  width: 210px;
  min-width: 210px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 20;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s,
    border-color 0.3s;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--teal);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.3s;
}

.logo-text {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
  transition: color 0.3s;
}

.sidebar-close {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  transition:
    background 0.15s,
    color 0.15s;
  line-height: 0;
}
.sidebar-close:hover {
  background: var(--teal-light);
  color: var(--teal);
}

.task-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.task-list::-webkit-scrollbar {
  width: 3px;
}
.task-list::-webkit-scrollbar-thumb {
  background: var(--teal-mid);
  border-radius: 2px;
}

.task-item {
  border: 1px solid var(--border);
  background: var(--bg-shell);
  border-radius: var(--r-sm);
  padding: 10px 11px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.task-item:hover {
  border-color: var(--teal-mid);
  background: var(--teal-light);
}
.task-item.active {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: inset 0 0 0 1px var(--teal);
}
.task-item.closed {
  opacity: 0.6;
}

.task-title {
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 3px;
}

.task-status {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.task-empty {
  padding: 12px 4px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  user-select: none;
}
.nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.nav-item:hover {
  background: var(--teal-light);
  color: var(--teal);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-body);
  transition: background 0.3s;
}

.topbar {
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  line-height: 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.menu-btn:hover {
  background: var(--teal-light);
  color: var(--teal);
}

.topbar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--text-inv);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: -0.1px;
  transition: background 0.3s;
}
.topbar-badge svg {
  opacity: 0.8;
  flex-shrink: 0;
}

#btn-call-operator {
  height: 36px;
  padding: 0 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-shell);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.1px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
#btn-call-operator:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.08);
}
#btn-call-operator:active {
  transform: scale(0.96);
}

@media (max-width: 1000px) {
  #btn-call-operator {
    padding: 0 9px;
    font-size: 11.5px;
  }
}

@media (max-width: 480px) {
  #btn-call-operator span {
    display: none;
  }
}

.topbar-tag {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.nom-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nom-picker-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.nom-switcher {
  display: flex;
  background: var(--teal-light);
  border-radius: var(--r-sm);
  padding: 3px;
  margin-left: 0;
  gap: 2px;
  border: 1px solid var(--border);
  transition:
    background 0.3s,
    border-color 0.3s;
}

.nom-btn {
  padding: 5px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.1px;
}
.nom-btn.active {
  color: #fff;
  box-shadow: var(--shadow-nom);
}
.nom-btn[data-nom="ОВЕН"].active {
  background: var(--badge-oven);
}
.nom-btn[data-nom="АДЛ"].active {
  background: var(--badge-adl);
}
.nom-btn[data-nom="РОСМА"].active {
  background: var(--badge-rosma);
}
.nom-btn:not(.active):hover {
  background: rgba(13, 110, 110, 0.1);
  color: var(--teal);
}

.theme-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  background: var(--bg-shell);
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
  line-height: 0;
}
.theme-btn:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal);
}

#chat {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
#chat::-webkit-scrollbar {
  width: 4px;
}
#chat::-webkit-scrollbar-thumb {
  background: var(--teal-mid);
  border-radius: 3px;
}
#chat::-webkit-scrollbar-track {
  background: transparent;
}

.status-note {
  color: var(--text-muted);
  text-align: center;
  font-size: 13px;
  padding: 20px 12px;
  line-height: 1.6;
}

.msg-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.msg-row.user {
  flex-direction: row-reverse;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.av-user {
  background: var(--teal-dark);
  color: #fff;
}
.av-bot {
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  letter-spacing: -0.3px;
}

.msg-wrap {
  display: flex;
  flex-direction: column;
  max-width: 74%;
}
.msg-row.user .msg-wrap {
  align-items: flex-end;
}

.msg-sender {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3px;
  padding: 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nom-chip {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.chip-oven {
  background: var(--teal-light);
  color: var(--badge-oven);
}
.chip-adl {
  background: #e3edf8;
  color: var(--badge-adl);
}
.chip-rosma {
  background: #f2e4f2;
  color: var(--badge-rosma);
}
[data-theme="dark"] .chip-adl {
  background: #102033;
}
[data-theme="dark"] .chip-rosma {
  background: #271027;
}

.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  word-break: break-word;
}

.bubble-user {
  background: var(--teal);
  color: #fff;
  border-radius: 14px 14px 2px 14px;
  box-shadow: 0 2px 8px rgba(13, 110, 110, 0.25);
}

.bubble-bot {
  background: var(--bg-bubble-bot);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px 14px 14px 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.bubble-bot p {
  margin: 4px 0;
}
.bubble-bot ul,
.bubble-bot ol {
  margin: 5px 0 5px 18px;
}
.bubble-bot strong {
  color: var(--teal-dark);
}
[data-theme="dark"] .bubble-bot strong {
  color: var(--teal);
}
.bubble-bot h1,
.bubble-bot h2,
.bubble-bot h3 {
  color: var(--teal);
  margin: 8px 0 3px;
  font-size: 13.5px;
}
.bubble-bot table {
  border-collapse: collapse;
  width: 100%;
  margin: 7px 0;
  font-size: 12.5px;
}
.bubble-bot th,
.bubble-bot td {
  border: 1px solid var(--border);
  padding: 5px 9px;
}
.bubble-bot th {
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 600;
}
.bubble-bot code {
  background: var(--teal-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: "Fira Code", "Consolas", monospace;
}
.bubble-bot pre {
  background: var(--teal-light);
  padding: 11px;
  border-radius: var(--r-sm);
  overflow-x: auto;
  margin: 6px 0;
}

.typing-bubble {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 11px 16px;
  background: var(--bg-bubble-bot);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition:
    background 0.3s,
    border-color 0.3s;
}
.tdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: tdot 1.2s infinite;
}
.tdot:nth-child(2) {
  animation-delay: 0.2s;
}
.tdot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes tdot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.input-bar {
  display: flex;
  gap: 8px;
  padding: 11px 16px;
  background: var(--bg-topbar);
  border-top: 1px solid var(--border);
  align-items: flex-end;
  flex-shrink: 0;
  transition:
    background 0.3s,
    border-color 0.3s;
}

#inp {
  flex: 1;
  padding: 0 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text);
  outline: none;
  resize: none;
  min-height: 42px;
  max-height: 42px;
  overflow: hidden;
  font-family: inherit;
  background: var(--bg-input);
  line-height: 42px;
  transition:
    border-color 0.15s,
    background 0.3s,
    color 0.3s,
    box-shadow 0.15s;
}
#inp::placeholder {
  color: var(--text-muted);
}
#inp:focus {
  border-color: var(--teal);
  background: var(--bg-shell);
  box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.08);
}

#btn {
  width: 42px;
  height: 42px;
  background: var(--teal);
  border: none;
  border-radius: var(--r-sm);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-btn);
  transition:
    background 0.15s,
    transform 0.1s,
    box-shadow 0.15s;
}
#btn:hover {
  background: var(--teal-hover);
}
#btn:active {
  transform: scale(0.92);
  box-shadow: none;
}
#btn:disabled {
  background: var(--teal-mid);
  cursor: not-allowed;
  box-shadow: none;
}

.media-btn {
  width: 42px;
  height: 42px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
  line-height: 0;
}
.media-btn:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal);
}
.media-btn.recording {
  border-color: #e53e3e;
  color: #e53e3e;
  background: #fff5f5;
  animation: pulse-rec 1s infinite;
}
[data-theme="dark"] .media-btn.recording {
  background: #2d1010;
}
@keyframes pulse-rec {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1000px) {
  body {
    padding: 0;
  }

  .shell {
    border-radius: 0;
    height: 100vh;
    height: 100dvh;
    box-shadow: none;
    border: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.25);
  }
  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: flex;
  }
  .menu-btn {
    display: flex;
  }

  .topbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .topbar-badge {
    padding: 5px 10px;
    font-size: 12px;
  }
  .topbar-tag {
    display: none;
  }

  .nom-picker-label {
    display: none;
  }
  .nom-switcher {
    display: none;
  }
  #nom-select {
    display: block;
    padding: 6px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-shell);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    max-width: 110px;
    transition: border-color 0.15s;
  }
  #nom-select:focus {
    border-color: var(--teal);
  }

  #btn-call-operator {
    padding: 0 9px;
    font-size: 11.5px;
  }
  #btn-call-operator .btn-full-text {
    display: none;
  }

  #btn-call-operator span.btn-mob {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
  }

  #chat {
    padding: 14px 12px;
    gap: 12px;
  }
  .msg-wrap {
    max-width: 86%;
  }
  .input-bar {
    padding: 9px 10px;
    gap: 6px;
  }
  #inp {
    font-size: 13px;
  }

  .media-btn {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 380px) {
  .nom-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  .topbar-badge {
    display: none;
  }
}

.faq-dropdown {
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.faq-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.faq-dropdown summary::-webkit-details-marker {
  display: none;
}
.faq-dropdown summary::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  transition: transform 0.2s;
}
.faq-dropdown[open] summary::after {
  transform: rotate(180deg);
}
.faq-dropdown summary:hover {
  background: var(--teal-light);
  color: var(--teal);
}

.faq-items {
  display: flex;
  flex-direction: column;
  padding: 4px 8px 8px;
  gap: 3px;
}

.faq-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.faq-item:hover {
  background: var(--teal-light);
  border-color: var(--border);
  color: var(--teal);
}
.faq-item:active {
  transform: scale(0.98);
}

.beta-label {
  display: inline-block;
  margin-left: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  vertical-align: top;
  color: #d98c8c;
}

[data-theme="dark"] .beta-label {
  color: #7a3b3b;
}

.nom-select-wrap {
  display: none;
  position: relative;
}
.btn-mob {
  display: none;
}

.nom-select-wrap::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  pointer-events: none;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.nom-select-wrap[data-nom="ОВЕН"] {
  color: var(--badge-oven);
}
.nom-select-wrap[data-nom="АДЛ"] {
  color: var(--badge-adl);
}
.nom-select-wrap[data-nom="РОСМА"] {
  color: var(--badge-rosma);
}

#nom-select {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  padding: 5px 26px 5px 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  letter-spacing: -0.1px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
#nom-select:focus {
  border-color: currentColor;
  box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.08);
}

.nom-select-wrap[data-nom="ОВЕН"] #nom-select {
  color: var(--badge-oven);
  background: var(--teal-light);
}
.nom-select-wrap[data-nom="АДЛ"] #nom-select {
  color: var(--badge-adl);
  background: #e3edf8;
}
.nom-select-wrap[data-nom="РОСМА"] #nom-select {
  color: var(--badge-rosma);
  background: #f2e4f2;
}
[data-theme="dark"] .nom-select-wrap[data-nom="АДЛ"] #nom-select {
  background: #102033;
}
[data-theme="dark"] .nom-select-wrap[data-nom="РОСМА"] #nom-select {
  background: #271027;
}

@media (max-width: 1000px) {
  .nom-picker-label {
    display: none;
  }
  .nom-switcher {
    display: none;
  }
  .nom-select-wrap {
    display: block;
  }
  #btn-call-operator {
    padding: 0 9px;
    font-size: 11.5px;
  }
  #btn-call-operator .btn-full-text {
    display: none;
  }
  #btn-call-operator span.btn-mob {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
  }
}
