@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/open-sans-latin.woff2") format("woff2");
}

:root {
  --purple: #685bc7;
  --purple-deep: #4b3fa8;
  --purple-soft: #efedfa;
  --ink: #212322;
  --ink-2: #2d302f;
  --text: #161616;
  --muted: #5b5e66;
  --line: #e6e6ea;
  --bg: #ffffff;
  --bg-alt: #f7f7fa;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--purple-deep); }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }

h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }

p { margin: 0; }

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}

.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--purple-deep); background: var(--purple-soft); }

.nav .lang {
  margin-left: 8px; border: 1px solid var(--line); font-size: 13px; letter-spacing: 0.04em;
}

.nav .nav-cta { background: var(--ink); color: #fff; margin-left: 4px; }
.nav .nav-cta:hover { background: var(--purple-deep); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--text);
}
.menu-toggle svg { margin: auto; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav .lang, .nav .nav-cta { margin-left: 0; text-align: center; }
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--purple-soft); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */

.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 110px); }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(104, 91, 199, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 48px; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--purple-deep); margin-bottom: 18px;
}

.hero h1 span { color: var(--purple); }

.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); margin: 24px 0 36px; max-width: 36em; }

.hero-mark {
  position: relative; aspect-ratio: 1; border-radius: 36px; width: 100%; max-width: 400px; justify-self: end;
  background: linear-gradient(145deg, var(--purple) 0%, var(--purple-deep) 100%);
  box-shadow: 0 30px 80px -30px rgba(75, 63, 168, 0.55);
  display: grid; place-items: center;
}
.hero-mark svg { width: 58%; height: auto; }
.hero-mark::after {
  content: ""; position: absolute; inset: 18px; border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}

/* Page header (inner pages) */

.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); }
.page-head .lead { margin-bottom: 0; }

/* Sections */

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #f2f2f2; }
.section-dark .muted { color: #b9bbc2; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

.muted { color: var(--muted); }

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

@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: rgba(104, 91, 199, 0.45); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(33, 35, 34, 0.25); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 16px; }

.icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--purple-soft); color: var(--purple-deep);
  display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; }

.steps { counter-reset: step; }
.step { border-top: 2px solid var(--purple); padding-top: 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-weight: 800; font-size: 14px; letter-spacing: 0.1em; color: var(--purple);
  margin-bottom: 10px;
}
.section-dark .step p { color: #b9bbc2; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

.cta-band {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff; border-radius: 32px; padding: clamp(36px, 6vw, 72px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { max-width: 16em; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-top: 12px; font-size: 18px; }

/* Services detail */

.service {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px);
  padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line);
}
.service:last-child { border-bottom: 0; }
.service h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 18px; }
.service > div > p { color: var(--muted); margin-top: 14px; font-size: 18px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--purple-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234b3fa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

@media (max-width: 820px) { .service { grid-template-columns: 1fr; } }

/* About */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split .prose p + p { margin-top: 18px; }
.split .prose p { font-size: 18px; color: var(--ink-2); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.facts { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.facts dl { margin: 0; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* Contact */

.contact-card { display: flex; flex-direction: column; gap: 6px; }
.contact-card h3 { margin-top: 18px; }
.contact-card a.big { font-size: 20px; font-weight: 700; text-decoration: none; color: var(--ink); word-break: break-word; }
.contact-card a.big:hover { color: var(--purple-deep); }

/* Legal */

.legal { max-width: 780px; }
.legal h2 { font-size: 24px; margin: 44px 0 14px; }
.legal h3 { font-size: 18px; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li + li { margin-top: 8px; }
.legal .updated { color: var(--muted); font-size: 15px; }
.legal .toc { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 22px 26px; margin-top: 28px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 22px; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }

/* Footer */

.site-footer { background: var(--ink); color: #c9cbd1; padding: 64px 0 32px; font-size: 15px; }
.site-footer a { color: #f2f2f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 26em; }

.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #9a9da5;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font-size: clamp(80px, 14vw, 160px); font-weight: 800; color: var(--purple); line-height: 1; }
.notfound .actions { justify-content: center; margin-top: 32px; }
