/* Devetra — business-first, engineering underneath.
   Light premium surface, deep green confidence, mono as garnish. */

:root {
  --paper:    #f7f8f6;
  --panel:    #ffffff;
  --ink:      #17211b;
  --muted:    #55645b;
  --green:    #0d6e44;
  --green-2:  #0a5a38;
  --green-bg: #e7f0ea;
  --line:     #dee4de;
  --bar:      #17211b;
  --bar-ink:  #e7ece8;
  --shadow:   0 1px 2px rgba(23,33,27,.05), 0 8px 24px rgba(23,33,27,.06);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700; font-size: 19px; letter-spacing: -.01em;
  text-decoration: none;
}
.bar nav { display: flex; gap: clamp(10px, 2.4vw, 26px); align-items: center; }
.bar nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.bar nav a:hover { color: var(--ink); }
.nav-cta {
  color: #fff !important; background: var(--green);
  padding: 8px 18px; border-radius: 6px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-2); }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 10vw, 128px) clamp(20px, 5vw, 64px) clamp(40px, 5vw, 64px); }
.hero-inner { max-width: 880px; margin: 0 auto; }
h1 {
  font-size: clamp(36px, 5.8vw, 62px);
  line-height: 1.06; letter-spacing: -.028em; font-weight: 700;
  text-wrap: balance; margin-bottom: 24px;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; margin-bottom: 32px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 8px;
}
.btn-solid { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-solid:hover { background: var(--green-2); }
.btn-ghost { border: 1px solid var(--line); background: var(--panel); }
.btn-ghost:hover { border-color: var(--muted); }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--panel); }
.trust-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  padding: 0 clamp(20px, 5vw, 64px);
}
.fact { padding: 22px 18px 22px 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 22px; }
.fact b { display: block; font-size: 18px; letter-spacing: -.01em; }
.fact span { font-size: 13.5px; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px); }
.section-alt { background: var(--panel); border-block: 1px solid var(--line); }
.sec-head { max-width: 1080px; margin: 0 auto 40px; }
h2 {
  font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -.02em; font-weight: 700;
  text-wrap: balance; margin-bottom: 10px;
}
.sec-sub { color: var(--muted); max-width: 62ch; }

/* services */
.cards {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.section-alt .card { box-shadow: none; }
.card h3 { font-size: 20px; letter-spacing: -.015em; }
.card p { font-size: 15.5px; color: var(--muted); }
.card-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green) !important; font-weight: 500;
}
.card-flag { border-color: var(--green); border-width: 1.5px; background: linear-gradient(180deg, var(--green-bg), var(--panel) 55%); }
.card-plus { border-style: dashed; box-shadow: none; }
.tech-line {
  margin-top: auto; padding-top: 8px;
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
  color: var(--muted) !important;
}
.tech-line a { color: var(--green) !important; text-decoration: none; font-weight: 500; }
.tech-line a:hover { text-decoration: underline; }

/* work */
.cases {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px;
}
.case {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 26px;
}
.case h3 { font-size: 19px; letter-spacing: -.015em; margin-bottom: 10px; text-wrap: balance; }
.outcome {
  font-weight: 600; color: var(--green); font-size: 15.5px;
  margin-bottom: 8px;
}
.case p:not(.outcome) { font-size: 15px; color: var(--muted); }

/* approach */
.steps {
  max-width: 1080px; margin: 0 auto; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.steps li { border-top: 2px solid var(--green); padding-top: 16px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-bg); color: var(--green);
  font-weight: 700; font-size: 14px; margin-bottom: 10px;
}
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--muted); }

/* stack: the engineer's corner */
.yaml {
  max-width: 720px; margin: 0 auto 0 0;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--bar);
}
.section-alt .yaml { margin: 0; }
.yaml-name {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: #9fb0a6;
  border-bottom: 1px solid #2c3a32; padding: 10px 18px;
}
.yaml pre {
  font-family: "IBM Plex Mono", monospace; font-size: 14px; line-height: 1.9;
  padding: 18px; margin: 0; overflow-x: auto; color: var(--bar-ink);
}

/* about */
.about {
  max-width: 880px; margin: 0 auto;
  display: flex; gap: 44px; align-items: flex-start; flex-wrap: wrap;
}
.about img { border-radius: 12px; flex: none; box-shadow: var(--shadow); }
.about > div { flex: 1; min-width: 300px; }
.about h2 { margin-bottom: 14px; }
.about p { margin-bottom: 14px; max-width: 58ch; }
.quiet { color: var(--muted); font-size: 15.5px; }

/* contact */
.section-contact { background: var(--panel); border-top: 1px solid var(--line); }
.contact-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact-copy h2 { margin-bottom: 12px; }
.contact-copy > p { color: var(--muted); margin-bottom: 26px; }
.line-card {
  display: inline-block; background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 22px; margin-bottom: 16px;
}
.line-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 3px;
}
.line-card a { text-decoration: none; font-weight: 700; font-size: 19px; }
.alt-links { font-size: 15px; line-height: 2; }
.alt-links a { color: var(--muted); }
.alt-links a:hover { color: var(--ink); }
.inquiry {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(22px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 16px;
}
.inquiry label { display: block; font-weight: 600; font-size: 14.5px; }
.inquiry input, .inquiry textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-weight: 400; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 13px; resize: vertical;
}
.inquiry input:focus, .inquiry textarea:focus {
  outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent;
}
.inquiry .btn { border: 0; cursor: pointer; font-family: inherit; align-self: flex-start; }
.form-hint { font-size: 13px; color: var(--muted); }

/* ---------- footer: status bar ---------- */
.statusbar {
  display: flex; align-items: stretch; flex-wrap: wrap;
  background: var(--bar); color: var(--bar-ink);
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
}
.seg { padding: 11px 16px; border-right: 1px solid #2c3a32; display: flex; align-items: center; }
.seg a { color: inherit; text-decoration: none; }
.seg a:hover { text-decoration: underline; }
.seg-a { background: var(--green); color: #fff; font-weight: 600; }
.grow { flex: 1; }
.seg-ok { color: #7ed09a; border-right: 0; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .bar nav a:not(.nav-cta) { display: none; }
  .fact + .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .fact { padding: 16px 0; }
}

/* ---- warm-up pass: tinted paper and airy hero washes ---- */
:root { --paper: #f2f5f1; }
.hero {
  background:
    radial-gradient(900px 480px at 85% -12%, #dcecdf 0%, transparent 62%),
    radial-gradient(760px 420px at -6% 14%, #e3edf6 0%, transparent 58%);
}
.tz-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ---- palette v3: navy trust + warm CTA (research-backed) ---- */
:root {
  --paper:    #edf1f7;          /* pale blue paper, not white */
  --ink:      #10202f;          /* deep navy */
  --muted:    #52657a;
  --green:    #1656b8;          /* structural accent is now trust blue */
  --green-2:  #12489c;
  --green-bg: #e3ecfa;
  --line:     #d5dde8;
  --bar:      #10202f;
  --bar-ink:  #e6ecf3;
  --cta:      #d97116;          /* warm amber: CTA contrast pair to navy */
  --cta-2:    #c05f0a;
  --shadow:   0 1px 2px rgba(16,32,47,.06), 0 8px 24px rgba(16,32,47,.08);
}
.hero {
  background:
    radial-gradient(900px 480px at 85% -12%, #dbe6f6 0%, transparent 62%),
    radial-gradient(760px 420px at -6% 14%, #e7e2f4 0%, transparent 58%);
}
.btn-solid, .nav-cta { background: var(--cta); }
.btn-solid:hover, .nav-cta:hover { background: var(--cta-2); }
.inquiry .btn { background: var(--cta); }
.inquiry .btn:hover { background: var(--cta-2); }
.seg-a { background: var(--green); }
.yaml-name { color: #93a5bb; border-bottom-color: #26384c; }
.seg { border-right-color: #26384c; }
.seg-ok { color: #86c7ff; }
.card-flag { border-color: var(--green); background: linear-gradient(180deg, var(--green-bg), var(--panel) 55%); }

/* ---- registered company ---- */
.regco { border-top: 1px solid var(--line); background: var(--paper); padding: clamp(36px, 5vw, 56px) clamp(20px, 5vw, 64px); }
.regco-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; gap: clamp(24px, 4vw, 56px); align-items: flex-start; flex-wrap: wrap;
}
.regco-name { flex: 0 0 220px; }
.regco-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.regco-grid {
  flex: 1; min-width: 300px; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel);
}
.regco-grid > div { padding: 16px 18px; border: 0 solid var(--line); border-width: 0 1px 1px 0; }
.regco-grid dt {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 3px;
}
.regco-grid dd { margin: 0; font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }

/* honeypot: вне экрана, для людей не существует */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.inquiry button[disabled] { opacity: .7; cursor: default; }

/* stack: блок по центру колонки, симметрично */
.yaml, .section-alt .yaml { margin: 0 auto; }

/* одна контентная колонка для всех секций: левые края совпадают */
.hero-inner, .about { max-width: 1080px; }
