/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0d0f14;
  color: #e2e8f0;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* anchor offset for sticky header */
#services, #pricing, #about, #audits, #contact, #faq { scroll-margin-top: 96px; }

/* === CONTAINER === */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === COOKIE BANNER === */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0f172a;
  border-top: 1px solid rgba(148,163,184,0.2);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
  padding: 16px 24px;
  align-items: center;
  justify-content: center;
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  width: 100%;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 0.82rem;
  color: #94a3b8;
  flex: 1;
  min-width: 260px;
}
.cookie-text a { color: #3b82f6; text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.cookie-btn-accept {
  background: #3b82f6;
  color: #fff;
}
.cookie-btn-accept:hover { background: #2563eb; }
.cookie-btn-decline {
  background: transparent;
  color: #64748b;
  border: 1px solid #334155;
}
.cookie-btn-decline:hover { color: #94a3b8; border-color: #64748b; }
@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; gap: 12px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* === CONSENT CHECKBOX === */
.form-consent {
  margin-bottom: 10px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: #3b82f6;
  cursor: pointer;
}
.consent-label a { color: #3b82f6; text-decoration: underline; }
.consent-label a:hover { color: #60a5fa; }

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}
.logo-icon {
  font-size: 1.6rem;
  color: #3b82f6;
  line-height: 1;
}
.logo-text strong { color: #3b82f6; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { color: #94a3b8; transition: color 0.2s; }
.nav-links a:hover { color: #e2e8f0; }
.btn-nav {
  background: #3b82f6;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-nav:hover { background: #2563eb !important; }
.lang-switch {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  border: 1px solid #334155;
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.lang-switch:hover { color: #e2e8f0; border-color: #64748b; }

/* === MODAL === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  position: relative;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.16), transparent 55%), #0f172a;
  border-radius: 16px;
  padding: 24px 24px 20px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-shadow: 0 22px 60px rgba(15,23,42,.75);
  border: 1px solid rgba(148,163,184,0.35);
  flex-shrink: 0;
  margin: auto;
}
.modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  opacity: .9;
  border-radius: 16px 16px 0 0;
}
.modal h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: #e5e7eb;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-right: 32px;
}
.modal p.modal-sub {
  color: #9ca3af;
  font-size: .85rem;
  margin-bottom: 14px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  border-radius: 999px;
  padding: 4px 6px;
  transition: background .15s, color .15s;
  z-index: 1;
}
.modal-close:hover {
  color: #e5e7eb;
  background: rgba(15,23,42,.85);
}
.form-group { margin-bottom: 10px; }
.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid rgba(148,163,184,0.5);
  background: #020617;
  color: #e5e7eb;
  font-family: inherit;
  font-size: .88rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4b5563;
  font-size: .85rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.6);
  background: #020617;
}
.form-group textarea { resize: vertical; min-height: 72px; }
.modal-contacts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(15,23,42,0.9);
  border-radius: 9px;
  padding: 8px 12px;
  margin: 2px 0 12px;
  font-size: .8rem;
  color: #9ca3af;
  border: 1px dashed rgba(55,65,81,0.9);
}
.modal-contacts strong {
  color: #e5e7eb;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.modal-contacts a { color: #38bdf8; text-decoration: none; }
.modal-contacts a:hover { text-decoration: underline; }
.btn-submit {
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, filter .15s;
  box-shadow: 0 10px 28px rgba(37,99,235,0.4);
}
.btn-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); box-shadow: 0 8px 20px rgba(37,99,235,0.3); }
.btn-submit:disabled { background: #4b5563; box-shadow: none; cursor: not-allowed; }
.form-status {
  margin-top: 8px;
  text-align: center;
  font-size: .82rem;
  min-height: 1.1em;
}
.form-status.success { color: #4ade80; }
.form-status.error { color: #f97373; }
@media (max-width: 520px) {
  .modal-overlay { padding: 12px; align-items: flex-start; }
  .modal {
    padding: 20px 16px 18px;
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .modal h2 { font-size: 1.05rem; }
}

/* === HERO === */
.hero {
  padding: 80px 0 72px;
  background: radial-gradient(ellipse at 60% 0%, rgba(59,130,246,0.12) 0%, transparent 60%), #0d0f14;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-text {
  max-width: 540px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3b82f6;
  background: rgba(59,130,246,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(59,130,246,0.2);
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 650;
  line-height: 1.18;
  color: #f9fafb;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 26px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-primary {
  background: #3b82f6;
  color: #fff;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #2563eb; transform: translateY(-1px); }
.btn-primary.btn-large { padding: 16px 36px; font-size: 1rem; }
.btn-outline {
  background: transparent;
  color: #94a3b8;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid #334155;
  transition: all 0.2s;
  display: inline-block;
  cursor: pointer;
}
.btn-outline:hover { border-color: #64748b; color: #e2e8f0; }
.hero-stats {
  display: flex;
  gap: 32px;
}
.stat span {
  display: block;
  font-size: 1.6rem;
  font-weight: 650;
  color: #3b82f6;
}
.stat p { font-size: 0.8rem; color: #64748b; margin-top: 2px; }

/* SERVER CARD */
.server-card {
  background: #151820;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
}
.server-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #94a3b8;
}
.server-line:last-of-type { border-bottom: none; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.dot.yellow { background: #eab308; box-shadow: 0 0 6px #eab308; }
.server-footer {
  margin-top: 16px;
  font-size: 0.82rem;
  color: #475569;
  text-align: center;
}

/* === SECTIONS === */
.section { padding: 88px 0; }
.section-dark {
  background: #0a0c10;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3b82f6;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: #64748b;
  max-width: 560px;
  margin-bottom: 48px;
}

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #151820;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-3px);
}
.service-icon { font-size: 2rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1rem; font-weight: 600; color: #e2e8f0; margin-bottom: 10px; }
.service-card p { font-size: 0.88rem; color: #64748b; line-height: 1.7; }

/* === AUDIT GRID === */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.audit-card {
  background: #151820;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audit-card h4 { font-size: 0.92rem; font-weight: 600; color: #e2e8f0; }
.audit-card p { font-size: 0.83rem; color: #64748b; line-height: 1.6; flex: 1; }
.audit-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #3b82f6;
  margin-top: 4px;
}

/* === AUDIT OUTCOME === */
.audit-outcome {
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: transparent;
  width: 100%;
}
.audit-outcome-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 14px;
}
.audit-outcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 32px;
  font-size: 0.9rem;
  color: #94a3b8;
}
.audit-outcome-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}
.audit-outcome-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
  font-weight: 600;
}

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
  align-items: start;
}
.pricing-card {
  background: #151820;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: border-color 0.2s;
}
.pricing-card:hover { border-color: rgba(59,130,246,0.3); }
.pricing-featured {
  border-color: #3b82f6;
  background: linear-gradient(160deg, #1a2035, #151820);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 24px;
}
.price span { font-size: 0.9rem; font-weight: 400; color: #64748b; }
.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-list li { font-size: 0.87rem; color: #94a3b8; }
.pricing-list li:has(\u2717) { color: #475569; }
.btn-card {
  display: block;
  text-align: center;
  background: rgba(59,130,246,0.15);
  color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.3);
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
}
.btn-card:hover { background: rgba(59,130,246,0.25); }
.btn-card-white {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}
.btn-card-white:hover { background: #2563eb; }
.pricing-note { font-size: 0.78rem; color: #475569; text-align: center; }

/* === ABOUT === */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text h2 { font-size: 1.8rem; font-weight: 700; color: #f1f5f9; margin-bottom: 20px; }
.about-text p { font-size: 0.93rem; color: #94a3b8; margin-bottom: 14px; line-height: 1.75; }
.about-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.about-stack span {
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.kpi-card {
  background: #151820;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.kpi-card span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 6px;
}
.kpi-card p { font-size: 0.78rem; color: #64748b; }

/* === FAQ ACCORDION === */
.faq-wrapper { max-width: 100%; }
.faq-intro { font-size: 0.9rem; color: #64748b; margin-bottom: 28px; }
.faq-list {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.15);
  background: #0d0f14;
  overflow: hidden;
}
.faq-item + .faq-item {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-question span.label { font-weight: 500; }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #94a3b8;
  transition: transform 0.25s ease, background 0.2s, color 0.2s, border-color 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(90deg);
  background: rgba(59,130,246,0.15);
  color: #3b82f6;
  border-color: rgba(59,130,246,0.5);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 0.9rem;
  color: #94a3b8;
}
.faq-answer p { margin: 0; }
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}

/* === CONTACT === */
.contact-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-inner h2 { font-size: 1.8rem; font-weight: 700; color: #f1f5f9; margin-bottom: 14px; }
.contact-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #151820;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 20px 28px;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: rgba(59,130,246,0.4); }
.contact-card span { font-size: 1.8rem; }
.contact-card strong { display: block; color: #e2e8f0; font-size: 0.9rem; margin-bottom: 2px; }
.contact-card p { color: #64748b; font-size: 0.85rem; margin: 0; }

/* === FOOTER === */
.footer {
  background: #0a0c10;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #64748b;
}
.footer-copy { font-size: 0.8rem; color: #475569; }
.footer-share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #475569;
}
.footer-share a { color: #64748b; transition: color 0.2s; }
.footer-share a:hover { color: #94a3b8; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 72px; }
  .hero h1 { font-size: 1.9rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .audit-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .about-visual { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 600px) {
  .services-grid, .audit-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .nav-links { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .about-visual { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* =============================================
   CUSTOM CHAT WIDGET
   ============================================= */

.oh-chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,99,235,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  outline: none;
}
.oh-chat-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37,99,235,0.55);
}
.oh-bubble-open {
  background: linear-gradient(135deg, #1e3a5f, #1e293b) !important;
}
.oh-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #0d0f14;
}

/* Chat window */
.oh-chat-win {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 9000;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #0f172a;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 560px;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.oh-chat-win.oh-chat-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.oh-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1e3a5f 0%, #1a2035 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.oh-chat-head-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.oh-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.oh-chat-head-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}
.oh-chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #64748b;
}
.oh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 5px #22c55e;
  animation: oh-pulse 2s infinite;
}
/* Оранжевая точка: ожидание оператора */
.oh-dot-orange {
  background: #f97316;
  box-shadow: 0 0 5px #f97316;
}
@keyframes oh-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.oh-chat-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.oh-chat-close:hover { color: #e2e8f0; background: rgba(255,255,255,0.06); }

/* ── Intro form ── */
.oh-intro-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px 16px;
  flex: 1;
  overflow-y: auto;
}
.oh-intro-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  text-align: center;
  margin-bottom: 2px;
}
.oh-intro-sub {
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* ── Chat area ── */
.oh-chat-area {
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Body */
.oh-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  min-height: 0;
}
.oh-chat-body::-webkit-scrollbar { width: 4px; }
.oh-chat-body::-webkit-scrollbar-track { background: transparent; }
.oh-chat-body::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.15); border-radius: 4px; }

/* Messages */
.oh-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: oh-fadein 0.2s ease;
}
@keyframes oh-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.oh-msg-bot      { align-self: flex-start; }
.oh-msg-user     { align-self: flex-end; }
.oh-msg-operator { align-self: flex-start; }

.oh-msg-label {
  font-size: 0.68rem;
  color: #f97316;
  font-weight: 600;
  margin-bottom: 3px;
  padding-left: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.oh-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  max-width: 100%;
}
.oh-msg-bot .oh-msg-bubble {
  background: #1e293b;
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}
.oh-msg-user .oh-msg-bubble {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.oh-msg-operator .oh-msg-bubble {
  background: rgba(249,115,22,0.15);
  color: #fed7aa;
  border: 1px solid rgba(249,115,22,0.3);
  border-bottom-left-radius: 4px;
}

/* Quick reply buttons */
.oh-msg-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 0 4px 0;
  animation: oh-fadein 0.2s ease;
}
.oh-quick-btn {
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.oh-quick-btn:hover {
  background: rgba(59,130,246,0.22);
  border-color: rgba(59,130,246,0.55);
}

/* Typing indicator */
.oh-chat-typing {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 0 14px 8px;
  flex-shrink: 0;
}
.oh-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  animation: oh-bounce 1.2s infinite ease-in-out;
}
.oh-chat-typing span:nth-child(1) { animation-delay: 0s; }
.oh-chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.oh-chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes oh-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* Footer / input area */
.oh-chat-foot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0f172a;
  flex-shrink: 0;
}
.oh-chat-input {
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 12px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 9px 12px;
  resize: none;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color 0.15s;
  outline: none;
}
.oh-chat-input::placeholder { color: #475569; }
.oh-chat-input:focus { border-color: rgba(59,130,246,0.5); }
.oh-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.15s, transform 0.1s;
}
.oh-chat-send:hover { filter: brightness(1.1); transform: scale(1.05); }
.oh-chat-send:disabled { background: #334155; cursor: not-allowed; transform: none; }

/* Shared input styles */
.oh-lead-input {
  width: 100%;
  background: #1e293b;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 10px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.oh-lead-input::placeholder { color: #475569; }
.oh-lead-input:focus {
  border-color: rgba(59,130,246,0.55);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.3);
}
.oh-lead-submit {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s, transform 0.1s;
  box-shadow: 0 6px 18px rgba(37,99,235,0.35);
  margin-top: 4px;
}
.oh-lead-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.oh-lead-submit:disabled { background: #334155; box-shadow: none; cursor: not-allowed; transform: none; }
.oh-lead-note {
  font-size: 0.7rem;
  color: #475569;
  text-align: center;
  line-height: 1.4;
  margin-top: 2px;
}
.oh-lead-note a { color: #3b82f6; text-decoration: underline; }

@media (max-width: 480px) {
  .oh-chat-win    { right: 12px; bottom: 88px; width: calc(100vw - 24px); }
  .oh-chat-bubble { right: 16px; bottom: 20px; }
}
