:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #18202c;
  --muted: #687385;
  --line: #dbe2ec;
  --brand: #0f9d9a;
  --brand-dark: #087775;
  --danger: #b42318;
  --ok: #16784a;
  --warn: #9a6700;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

[dir="rtl"] body,
body[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] th,
[dir="rtl"] td {
  text-align: right;
}

.topbar,
.site-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: 18px;
}

.sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.layout {
  width: min(1180px, calc(100vw - 32px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

.single {
  width: min(760px, calc(100vw - 32px));
  margin: 28px auto;
}

.hero {
  width: min(1180px, calc(100vw - 32px));
  min-height: calc(100vh - 108px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 42px;
  padding: 48px 0 32px;
}

.hero-copy h2,
.section-copy h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  max-width: 760px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin-top: 18px;
  max-width: 680px;
}

.eyebrow {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.product-visual {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(24, 32, 44, .12);
}

.visual-toolbar {
  display: flex;
  gap: 7px;
  padding-bottom: 14px;
}

.visual-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8d3df;
}

.visual-search {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.visual-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
}

.visual-card p {
  color: var(--muted);
  grid-column: 1;
}

.visual-card button {
  grid-row: 1 / span 2;
  grid-column: 2;
  padding-inline: 16px;
}

.muted-card {
  opacity: .82;
}

.request-section {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.request-form {
  margin: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.panel + .panel {
  margin-top: 18px;
}

.panel h2 {
  font-size: 16px;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  font: inherit;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

button, .button {
  border: 0;
  border-radius: 6px;
  padding: 10px 13px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button.secondary, .button.secondary {
  background: #eef3f8;
  color: var(--ink);
  border: 1px solid var(--line);
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.header-actions {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

.status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #eef3f8;
  color: var(--muted);
  font-size: 13px;
  min-height: 38px;
}

.status.ok {
  background: #e9f7ef;
  color: var(--ok);
}

.status.err {
  background: #fdeceb;
  color: var(--danger);
}

.status.warn {
  background: #fff7df;
  color: var(--warn);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.tab.active {
  background: #e8f7f7;
  border-color: #b9e5e3;
  color: var(--brand-dark);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: break-word;
}

th {
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef3f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pill.ok {
  background: #e9f7ef;
  color: var(--ok);
}

.mono {
  font-family: Consolas, Monaco, monospace;
}

@media (max-width: 820px) {
  .layout,
  .hero,
  .request-section {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }
}
