/* wa-bridge.css — стилевой мост под оформление сайта (deepseek/deepseek-v4-pro). Не редактировать руками. */
:root {
  --bg-dark: #eef2f5;
  --bg-dark-2: #e6ebf0;
  --bg-card: #ffffff;
  --text-white: #333333;
  --text-muted: #666666;
  --border: #dddddd;
  --accent: #c1272d;
}

.wa-embed {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  max-width: 100%;
  box-sizing: border-box;
}

.wa-embed *,
.wa-embed *::before,
.wa-embed *::after {
  box-sizing: border-box;
}

.wa-embed img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typographic inheritance */
.wa-embed h1,
.wa-embed h2,
.wa-embed h3,
.wa-embed h4,
.wa-embed h5,
.wa-embed h6 {
  font-family: inherit;
  color: #333333;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.wa-embed h1 {
  font-size: 28px;
  font-weight: 700;
}

.wa-embed h2 {
  font-size: 22px;
  font-weight: 600;
}

.wa-embed h3 {
  font-size: 18px;
  font-weight: 600;
}

.wa-embed p {
  margin-bottom: 0.8rem;
  font-size: 16px;
  color: #333333;
}

.wa-embed small,
.wa-embed .text-muted {
  font-size: 14px;
  color: #666666;
}

/* Links – use host’s dominant link colour */
.wa-embed a {
  color: #b2b2b2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wa-embed a:hover,
.wa-embed a:focus {
  color: #c1272d;
  text-decoration: underline;
}

/* Hero section – mobile first: ultra-compact */
.wa-embed .hero,
.wa-embed [class*="hero"] {
  padding: 12px 0;
  background-color: var(--bg-dark);
  border-radius: 0;
  margin-bottom: 0;
  min-height: 0;
}

.wa-embed .hero h1 {
  font-size: 28px;
  line-height: 1.2;
  max-height: 3.6em; /* ~3 lines */
  overflow: hidden;
  margin-bottom: 4px;
}

.wa-embed .hero p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 4px;
}

/* Background panels */
.wa-embed .bg-dark,
.wa-embed [style*="--bg-dark"] {
  background-color: var(--bg-dark);
}

.wa-embed .bg-dark-2,
.wa-embed [style*="--bg-dark-2"] {
  background-color: var(--bg-dark-2);
}

/* Cards and panels */
.wa-embed .card,
.wa-embed .panel,
.wa-embed [class*="card"],
.wa-embed [class*="panel"] {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 16px;
  margin-bottom: 16px;
  width: 100%;
}

/* Operator list – start immediately after hero */
.wa-embed .operator-list,
.wa-embed [class*="operator"] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.wa-embed .operator-card,
.wa-embed [class*="operator-card"] {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
}

/* Remove any accidental min-heights or large margins that push content down */
.wa-embed .operator-card > *,
.wa-embed .operator-list > * {
  min-height: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Call-to-action – use host accent */
.wa-embed a.cta,
.wa-embed .cta-link,
.wa-embed .cta-button,
.wa-embed [class*="cta"],
.wa-embed button[class*="cta"],
.wa-embed a[href] .cta,
.wa-embed .operator-card a:last-child {
  display: inline-block;
  background-color: #c1272d;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  border: 1px solid #c1272d;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.wa-embed a.cta:hover,
.wa-embed .cta-link:hover,
.wa-embed .cta-button:hover,
.wa-embed [class*="cta"]:hover,
.wa-embed button[class*="cta"]:hover {
  background-color: #a01f26;
  border-color: #a01f26;
  color: #ffffff;
  text-decoration: none;
}

/* Tables with host-like borders */
.wa-embed table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: #ffffff;
  margin-bottom: 16px;
}

.wa-embed th,
.wa-embed td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  color: #333333;
}

.wa-embed th {
  background-color: #f2f2f2;
  font-weight: 600;
  color: #333333;
  border-bottom: 2px solid #333333;
}

/* FAQ section */
.wa-embed .faq-item,
.wa-embed .faq-list,
.wa-embed [class*="faq"] {
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  padding-bottom: 8px;
}

/* Stat tiles – keep them boxless, host-like */
.wa-embed .stat-tile,
.wa-embed [class*="stat"] {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 16px;
  margin-bottom: 8px;
  text-align: center;
}

/* Legal block – muted, separated */
.wa-embed .legal,
.wa-embed [class*="legal"],
.wa-embed .disclaimer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.5;
  color: #666666;
}

.wa-embed .legal a,
.wa-embed [class*="legal"] a {
  color: #666666;
  text-decoration: underline;
}

.wa-embed .legal a:hover,
.wa-embed [class*="legal"] a:hover {
  color: #333333;
}

/* Prose sections */
.wa-embed .prose,
.wa-embed [class*="prose"] {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

/* Global spacing reset inside embed */
.wa-embed :empty {
  display: none;
}

.wa-embed br {
  display: none;
}

.wa-embed *:only-child {
  margin-bottom: 0;
}

/* Ensure no horizontal overflow at 320px */
@media (max-width: 440px) {
  .wa-embed .operator-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wa-embed a.cta,
  .wa-embed .cta-link,
  .wa-embed .cta-button,
  .wa-embed [class*="cta"] {
    width: 100%;
    text-align: center;
  }

  .wa-embed .hero h1 {
    font-size: 24px;
    max-height: 3.6em;
  }

  .wa-embed .hero p {
    font-size: 13px;
  }
}
