:root {
  --bg: #f3f1ec;
  --surface: #ffffff;
  --ink: #12141a;
  --ink-2: #1b1f29;
  --muted: #5e636f;
  --line: #dcd8cf;
  --accent: #c0262f;
  --accent-soft: #f6e4e3;
  --on-dark: #f3f1ec;
  --on-dark-muted: #9ca1ad;
  --dark-line: #2b303c;
  --ok: #2f7d55;
  --max: 1160px;
  --gutter: 28px;
  --radius: 14px;
  --font: "Manrope", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html:lang(ka) { --font: "Noto Sans Georgian", "Manrope", system-ui, sans-serif; }
html:lang(ka) body { font-size: 16px; }

a { color: inherit; }
img, svg { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 20, 26, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--dark-line);
  color: var(--on-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--on-dark-muted); transition: color .15s; }
.nav a:hover { color: var(--on-dark); }
.nav .lang {
  color: var(--on-dark);
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color .15s, background .15s;
}
.nav .lang:hover { border-color: var(--on-dark-muted); background: var(--ink-2); }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 70% at 75% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 104px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin: 0 0 24px;
}
.eyebrow i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(192, 38, 47, .22);
}
h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 26px;
}
h1 em { font-style: normal; color: var(--accent); }
html:lang(ka) h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.22; letter-spacing: 0; font-weight: 700; }
.lead { font-size: 19px; color: var(--on-dark-muted); max-width: 54ch; margin: 0 0 40px; }
html:lang(ka) .lead { font-size: 17px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #a91f27; }
.btn-outline { border-color: var(--dark-line); color: var(--on-dark); }
.btn-outline:hover { border-color: var(--on-dark-muted); background: var(--ink-2); }

/* hero diagram */
.flow {
  border-left: 1px solid var(--dark-line);
  padding: 4px 0 4px 40px;
}
.flow-head {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--on-dark-muted);
  margin-bottom: 18px;
}
.flow ol { list-style: none; margin: 0; padding: 0; position: relative; }
.flow ol::before {
  content: "";
  position: absolute;
  left: 21px; top: 34px; bottom: 34px;
  width: 1px;
  background: var(--dark-line);
}
.flow li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  position: relative;
}
.flow li + li { border-top: 1px solid rgba(43, 48, 60, .6); }
.flow .ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--dark-line);
  display: grid; place-items: center;
  position: relative;
  z-index: 1;
}
.flow .ico svg { width: 19px; height: 19px; color: var(--on-dark-muted); }
.flow li:first-child .ico { border-color: var(--accent); }
.flow li:first-child .ico svg { color: var(--on-dark); }
.flow .t { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--on-dark); }
.flow .d { font-size: 14px; color: var(--on-dark-muted); line-height: 1.45; }
.tag {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--on-dark-muted);
}
.tag::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dark-line);
  margin-right: 8px;
  vertical-align: 1px;
}
.tag.ok::before { background: #4fae7f; }
.tag.work::before { background: var(--accent); }

/* ---------- facts strip ---------- */
.facts { background: var(--ink); color: var(--on-dark); }
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 36px 28px 48px 0;
  position: relative;
  border-top: 1px solid var(--dark-line);
}
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--dark-line); }
.fact::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}
.fact + .fact::before { left: 28px; }
.fact b {
  display: block;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
html:lang(ka) .fact b { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: 0; }
.fact span { display: block; font-size: 15px; color: var(--on-dark-muted); line-height: 1.5; max-width: 26ch; }

/* ---------- sections ---------- */
section { padding: 104px 0; }
.label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
}
html:lang(ka) h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; letter-spacing: 0; font-weight: 700; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 48ch; }
html:lang(ka) .section-head p { font-size: 16px; }

h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 10px; }
html:lang(ka) h3 { font-size: 18px; letter-spacing: 0; }

/* services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 34px 36px;
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: #c9c4b9; transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(18,20,26,.25); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--ink); color: var(--on-dark);
  display: grid; place-items: center;
}
.card-icon svg { width: 24px; height: 24px; }
.card .num { font-size: 14px; font-weight: 700; color: #b9b4a9; font-variant-numeric: tabular-nums; }
.card p { margin: 0; color: var(--muted); }

/* turnkey */
.turnkey { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.split-side { position: sticky; top: 108px; }
.split-side p { color: var(--muted); font-size: 18px; margin: 20px 0 0; max-width: 40ch; }
html:lang(ka) .split-side p { font-size: 16px; }
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.checklist li {
  counter-increment: c;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.checklist li:first-child { padding-top: 0; }
.checklist li::before {
  content: counter(c, decimal-leading-zero);
  grid-row: span 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  color: var(--accent);
}
.checklist strong { font-size: 19px; font-weight: 700; line-height: 1.3; align-self: center; }
html:lang(ka) .checklist strong { font-size: 17px; }
.checklist span { color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 27px; left: 28px; right: 28px;
  height: 2px;
  background: var(--line);
}
.step { position: relative; }
.step-n {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  margin-bottom: 28px;
  position: relative;
}
.step:last-child .step-n { background: var(--ink); color: var(--on-dark); }
.step p { margin: 0; color: var(--muted); max-width: 30ch; }

/* contact */
.contact { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; position: relative; }
.contact .label { color: #e2575e; }
.contact p { color: var(--on-dark-muted); font-size: 18px; margin: 20px 0 0; max-width: 40ch; }
html:lang(ka) .contact p { font-size: 16px; }
.contact-card {
  border: 1px solid var(--dark-line);
  border-radius: 20px;
  padding: 32px;
  background: var(--ink-2);
}
.contact-card small { display: block; color: var(--on-dark-muted); font-size: 13px; margin-bottom: 6px; }
.contact-mail {
  display: block;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-bottom: 28px;
  word-break: break-all;
}
.contact-mail:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 14px; }
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 26px; padding-bottom: 34px;
  border-top: 1px solid var(--dark-line);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .flow { max-width: 560px; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(3)::before { left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--dark-line); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-side { position: static; }
  .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .nav a:not(.lang) { display: none; }
  section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .services { grid-template-columns: 1fr; }
  .card { padding: 28px; }
  .card-top { margin-bottom: 28px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; padding-bottom: 32px; }
  .step-n { grid-row: span 2; margin-bottom: 0; }
  .step h3 { margin-top: 12px; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 24px 0 28px; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--dark-line); }
  .fact + .fact::before { left: 0; }
  .flow { padding-left: 20px; }
  .flow li { grid-template-columns: 40px 1fr; }
  .flow .tag { grid-column: 2; justify-self: start; }
  .contact-card { padding: 24px; }
  .site-footer .wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* write-to-us dialog */
.mail-dlg {
  border: 0;
  border-radius: 20px;
  padding: 30px 28px 28px;
  width: min(420px, calc(100% - 32px));
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.mail-dlg::backdrop { background: rgba(18, 20, 26, .62); backdrop-filter: blur(3px); }
.mail-dlg-x {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.mail-dlg-x:hover { color: var(--ink); }
.mail-dlg-t { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
html:lang(ka) .mail-dlg-t { font-size: 20px; letter-spacing: 0; }
.mail-dlg-a { color: var(--muted); margin: 0 0 22px; word-break: break-all; }
.mail-dlg-list { display: grid; gap: 8px; }
.mail-dlg-list a, .mail-dlg-list button {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.mail-dlg-list a:hover, .mail-dlg-list button:hover { border-color: var(--ink); background: var(--surface); }
.mail-dlg-list svg { width: 16px; height: 16px; color: var(--muted); }
.mail-dlg-copy { justify-content: center !important; background: var(--ink) !important; color: var(--on-dark) !important; border-color: var(--ink) !important; }
.mail-dlg-copy.ok { background: var(--ok) !important; border-color: var(--ok) !important; }
