/* ============================================================
   Dashboard L — Andrii Radkovskyi
   Operator-console theme. Static, no framework.
   ============================================================ */

:root {
  --bg:        #f3efe7;
  --panel:     #ffffff;
  --panel-alt: #ebe4d6;
  --border:    #e4ddd0;
  --border-lit:#d6cab2;
  --text:      #3c352c;
  --head:      #26221d;
  --muted:     #6f6659;
  --accent:    #c6573a;
  --accent-dim:#e0b3a4;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 28px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(243,239,231,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.wordmark { font-family: var(--mono); font-size: 18px; font-weight: 700; text-decoration: none; letter-spacing: .5px; }
.wm-r { color: var(--head); }
.wm-b { color: var(--accent); }

.lang { display: flex; gap: 4px; }
.lang-btn {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--muted); background: transparent;
  border: 1px solid var(--border); border-radius: 4px;
  padding: 5px 9px; cursor: pointer; transition: all .15s;
}
.lang-btn:hover { color: var(--text); border-color: var(--border-lit); }
.lang-btn.is-active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 88px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 35%, transparent 100%);
}
.hero .wrap { position: relative; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 2.5px;
  color: var(--accent); margin-bottom: 22px;
}
.hero-h1 {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 50px); line-height: 1.14;
  color: var(--head); font-weight: 600; letter-spacing: -.01em;
  max-width: 17ch;
}
.hero-lead {
  margin-top: 24px; max-width: 60ch; font-size: 18px; color: var(--text);
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px;
}
.hero-meta span {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 7px 12px;
}
.hero-meta span::before { content: "▸ "; color: var(--accent); }

/* ---------- blocks ---------- */
.block { padding: 80px 0; border-bottom: 1px solid var(--border); }
.block-alt { background: var(--panel-alt); }
.block-offer { background: linear-gradient(180deg, var(--panel-alt), var(--bg)); }
.block-contact { background: var(--panel-alt); }

.block-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
.block-num {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  border: 1px solid var(--accent-dim); border-radius: 4px; padding: 3px 8px;
  white-space: nowrap;
}
.block h2 {
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 31px); color: var(--head);
  font-weight: 600; letter-spacing: -.005em;
}
.block-intro { max-width: 70ch; color: var(--text); margin-bottom: 30px; }
.block-note {
  margin-top: 22px; font-size: 14.5px; color: var(--muted);
  font-family: var(--mono);
}
.block-note::before { content: "↗ "; color: var(--accent); }

/* ---------- match tiles ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.tile {
  background: var(--panel); border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 6px; padding: 20px 22px;
}
.tile-req {
  display: block; font-family: var(--mono); font-size: 13.5px;
  color: var(--head); font-weight: 600; margin-bottom: 10px; line-height: 1.4;
}
.tile-req::before { content: "REQ · "; color: var(--accent); font-size: 11px; }
.tile-ev { font-size: 15px; color: var(--text); }

/* ---------- metrics ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.metric {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; padding: 22px 18px; text-align: center;
}
.metric-num {
  display: block; font-family: var(--display); font-size: 38px; font-weight: 600;
  color: var(--accent); letter-spacing: -.01em;
}
.metric-cap {
  display: block; margin-top: 8px; font-size: 13px; color: var(--muted);
  line-height: 1.45;
}

/* ---------- method ---------- */
.flow {
  font-family: var(--mono); font-size: 15px; color: var(--head);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; padding: 16px 20px; margin-bottom: 22px;
}
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.principle {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; padding: 20px 22px;
}
.principle h3 { font-size: 16px; color: var(--head); margin-bottom: 8px; }
.principle p { font-size: 14.5px; color: var(--text); }

/* ---------- spec panels (block 02) ---------- */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.spec {
  background: var(--panel); border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 6px; padding: 20px 22px;
}
.spec h3 { font-size: 15.5px; color: var(--head); margin-bottom: 10px; line-height: 1.35; }
.spec p { font-size: 14.5px; color: var(--text); }

/* ---------- portfolio CTA (block 02) ---------- */
.pf-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-top: 22px;
  background: var(--head); border-radius: 8px;
  padding: 26px 28px;
}
.pf-cta-body { flex: 1; min-width: 250px; }
.pf-cta-body h3 {
  font-family: var(--display); font-size: 19px; font-weight: 600;
  color: var(--bg); margin-bottom: 8px; line-height: 1.3;
}
.pf-cta-body p { font-size: 14.5px; color: #c8bfae; }
.pf-cta-btn {
  flex-shrink: 0;
  font-family: var(--mono); font-size: 14.5px; font-weight: 600;
  color: var(--bg); background: var(--accent);
  border-radius: 6px; padding: 13px 22px; text-decoration: none;
  white-space: nowrap; transition: transform .15s, background .15s;
}
.pf-cta-btn:hover { transform: translateY(-2px); background: #d8654a; }

/* ---------- method stages (block 03) ---------- */
.stages { display: flex; flex-direction: column; gap: 8px; margin: 22px 0; }
.stage {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: 14px; align-items: start;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; padding: 16px 22px;
}
.stage-n {
  font-family: var(--display); font-size: 24px; font-weight: 600;
  color: var(--accent); line-height: 1.15;
}
.stage-c h3 { font-size: 15.5px; color: var(--head); margin-bottom: 5px; }
.stage-c p { font-size: 14.5px; color: var(--text); }

/* ---------- prose ---------- */
.prose { max-width: 68ch; margin-bottom: 16px; }
.prose:last-child { margin-bottom: 0; }
.lead-prose {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 26px); color: var(--head); font-weight: 600;
  line-height: 1.3;
}

/* ---------- offer ---------- */
.offer-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.offer-card {
  background: var(--panel); border: 1px solid var(--border-lit);
  border-radius: 6px; padding: 24px;
}
.offer-label {
  display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 12px;
}
.offer-card p { font-size: 16px; color: var(--text); }
.offer-close {
  margin-top: 22px; font-size: 17px; color: var(--head); max-width: 64ch;
}

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; padding: 20px 22px; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.contact:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-k {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px;
  color: var(--accent);
}
.contact-v { font-size: 15px; color: var(--text); word-break: break-all; }

/* ---------- footer ---------- */
.foot {
  padding: 32px 0; background: var(--bg);
}
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot-name { font-family: var(--mono); font-size: 14px; color: var(--text); }
.foot-note { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .topbar { padding: 12px 18px; }
  .hero { padding: 72px 0 60px; }
  .block { padding: 56px 0; }
  .tiles, .metrics, .principles, .specs, .offer-grid, .contacts {
    grid-template-columns: 1fr;
  }
  .block-head { flex-direction: column; gap: 8px; }
  .flow { font-size: 13.5px; }
  .pf-cta { padding: 22px; }
  .pf-cta-btn { width: 100%; text-align: center; }
}
