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

.wa-embed {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-white);
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

.wa-embed h1,
.wa-embed h2,
.wa-embed h3,
.wa-embed h4,
.wa-embed h5,
.wa-embed h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-white);
}

.wa-embed h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.wa-embed h2 {
  font-size: 1.375rem;
  margin: 1.25rem 0 0.5rem;
}

.wa-embed h3 {
  font-size: 1.125rem;
  margin: 1rem 0 0.5rem;
}

.wa-embed p {
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.wa-embed small,
.wa-embed .text-muted {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.wa-embed a {
  color: #669999;
  text-decoration: underline;
  transition: color 0.2s;
}

.wa-embed a:hover {
  color: #4d3e33;
  text-decoration: underline;
}

/* Hero section – compact for first-screen content */
.wa-embed .hero,
.wa-embed [class*="hero"] {
  padding: 12px 16px;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.wa-embed .hero h1 {
  font-size: 1.75rem;
  line-height: 1.15;
  margin-bottom: 0.25rem;
  max-height: 3.45em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.wa-embed .hero p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Operator list */
.wa-embed .operator-list,
.wa-embed [class*="operator-list"] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  margin: 0;
  list-style: none;
}

.wa-embed .operator-card {
  flex: 1 1 100%;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-embed .operator-card img,
.wa-embed .operator-card svg {
  max-width: 100%;
  height: auto;
}

.wa-embed .operator-card .rating {
  font-weight: 600;
  color: var(--text-muted);
}

.wa-embed .operator-card .offer-line {
  font-weight: 600;
}

.wa-embed .operator-card .terms-line,
.wa-embed .operator-card .legal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Call-to-action buttons – host button style */
.wa-embed .operator-card a:last-of-type,
.wa-embed a.cta,
.wa-embed .cta-link {
  display: inline-block;
  background-color: var(--accent);
  color: #1e140f;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 4px;
  border: none;
  text-align: center;
  align-self: flex-start;
  transition: background-color 0.2s;
}

.wa-embed .operator-card a:last-of-type:hover,
.wa-embed a.cta:hover,
.wa-embed .cta-link:hover {
  background-color: #b89214;
  color: #1e140f;
}

/* Prose sections */
.wa-embed .prose,
.wa-embed .content-section {
  padding: 16px;
  background: var(--bg-card);
}

/* Stat tiles */
.wa-embed .stat-tile {
  background: var(--bg-dark-2);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px;
  text-align: center;
}

/* Tables */
.wa-embed table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

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

.wa-embed thead th {
  background: var(--bg-dark);
  font-weight: 600;
}

/* FAQ */
.wa-embed .faq {
  padding: 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.wa-embed .faq dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.wa-embed .faq dd {
  margin-left: 1rem;
  color: var(--text-muted);
}

/* Legal block at the end – muted, separated */
.wa-embed .legal,
.wa-embed .footer-links {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-dark);
}

.wa-embed .legal a,
.wa-embed .footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
}

.wa-embed .legal a:hover,
.wa-embed .footer-links a:hover {
  color: var(--text-white);
}

/* No horizontal overflow at 320px */
.wa-embed img,
.wa-embed iframe,
.wa-embed embed,
.wa-embed object,
.wa-embed video {
  max-width: 100%;
  height: auto;
}

/* Keep everything fluid */
.wa-embed .operator-list,
.wa-embed .hero,
.wa-embed section {
  max-width: 100%;
}

/* Minimal additive resets for inner elements to avoid inherited gaps pushing layout */
.wa-embed ul,
.wa-embed ol {
  margin: 0.5rem 0 0.5rem 1.25rem;
  padding: 0;
}
.wa-embed li {
  margin-bottom: 0.25rem;
}

/* Additional prose spacing */
.wa-embed h2 + *,
.wa-embed h3 + * {
  margin-top: 0;
}

.wa-embed .comparison-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
