/* Helvetia Pixel — styles. No external fonts or CDNs (privacy-friendly). */
:root {
  --navy: #0b2147;
  --navy-2: #13306a;
  --red: #d52b1e;
  --ink: #0f1b2d;
  --text: #2f3b4f;
  --muted: #64708a;
  --line: #e3e8f0;
  --bg-soft: #f4f7fb;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 33, 71, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 6px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy-2); color: var(--navy); background: var(--white); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-xs { padding: .5em .9em; font-size: .72rem; border-radius: 4px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; border-radius: 3px; background: var(--red); position: relative; flex: none; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.logo-mark::before { width: 60%; height: 20%; }
.logo-mark::after { width: 20%; height: 60%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-size: 1.15rem; letter-spacing: .06em; color: var(--ink); font-weight: 700; }
.logo-text small { font-size: .6rem; letter-spacing: .38em; color: var(--muted); margin-top: 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-size: .95rem; color: var(--ink); position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--red); transition: width .2s; }
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 20px; }

.lang-switch { display: flex; align-items: center; }
.lang-switch button { background: none; border: 0; font: inherit; font-size: .85rem; font-weight: 500; color: var(--muted); padding: 2px 9px; cursor: pointer; }
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: var(--ink); font-weight: 700; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 56px 0 64px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.01em; margin-bottom: .35em; }
.hero .lead { font-size: 1.2rem; color: var(--ink); font-weight: 500; }
.hero-copy > p:not(.lead) { max-width: 30em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.browser { background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(11, 33, 71, .15); overflow: hidden; border: 1px solid var(--line); }
.browser-bar { display: flex; gap: 6px; padding: 10px 14px; background: #eef2f7; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b8; }
.browser-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: .7rem; }
.logo-mini { display: flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .05em; color: var(--ink); }
.logo-mini .logo-mark { width: 16px; height: 16px; }
.browser-links { display: flex; gap: 18px; align-items: center; color: var(--text); }
.browser-links .pill { border: 1px solid var(--navy-2); padding: 3px 10px; border-radius: 4px; color: var(--navy); }
.browser-body { position: relative; min-height: 300px; }
.mountains { position: absolute; inset: 0; width: 100%; height: 100%; }
.browser-copy { position: relative; padding: 28px 24px; max-width: 58%; }
.browser-copy h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; }
.browser-copy p { font-size: .78rem; }
.float-card { position: absolute; right: 16px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 12px 14px; width: 40%; font-size: .75rem; }
.float-card p { margin: 0; color: var(--ink); }
.ai-card { top: 16px; }
.fc-head { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.sparkle { color: var(--navy-2); font-size: 1.1rem; }
.fake-input { margin-top: 10px; border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px; color: var(--muted); font-size: .7rem; }
.auto-card { bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.auto-card small { color: var(--muted); }
.check { width: 24px; height: 24px; border-radius: 50%; background: #1a9c5b; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); padding: 22px 0; }
.trust-title { text-align: center; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px 28px; }
.trust-list li { font-weight: 700; font-size: 1.1rem; color: #8592a8; letter-spacing: .02em; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; scroll-margin-top: 100px; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11, 33, 71, .12); }
.card h3 { font-size: 1.15rem; }
.card p { font-size: .93rem; flex: 1; }
.card-icon { width: 56px; height: 56px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon svg, .work-thumb svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.more { color: var(--navy-2); font-weight: 600; font-size: .9rem; }
.more:hover { color: var(--red); }
.card-cta { background: var(--navy); color: #cfd8e8; border-color: var(--navy); justify-content: center; }
.card-cta h3 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.card-cta .btn { align-self: flex-start; }

/* ---------- Process ---------- */
.process { background: var(--navy); color: #cfd8e8; padding: 40px 0; }
.process-inner { display: flex; align-items: center; gap: 40px; }
.process h2 { color: #fff; font-size: 1.5rem; margin: 0; white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; flex: 1; }
.steps li { display: flex; gap: 12px; position: relative; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 4px; color: #fff; font-size: 1.2rem; }
.num { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 700; display: grid; place-items: center; flex: none; }
.steps h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.steps p { font-size: .87rem; margin: 0; }

/* ---------- Work ---------- */
.work-inner { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.work-intro p { color: var(--muted); }
.work-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 96px 1fr; gap: 16px; box-shadow: var(--shadow); }
.work-card h3 { font-size: 1rem; }
.work-card p { font-size: .85rem; margin-bottom: .5em; }
.work-card small { color: var(--muted); font-size: .78rem; }
.work-thumb { height: 96px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: .8rem; text-align: center; padding: 6px; }
.thumb-a { background: #f1f3f6; color: var(--red); }
.thumb-b { background: var(--navy); color: #fff; }
.thumb-c { background: var(--bg-soft); }

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { background: #fff; border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--red); }
.value h3 { font-size: 1.05rem; }
.value p { font-size: .9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.mail-link { color: var(--navy-2); font-weight: 600; border-bottom: 1px solid currentColor; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .8rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; font-size: .95rem; padding: .65em .8em; border: 1px solid #cfd7e3; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(19, 48, 106, .25); border-color: var(--navy-2); }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-footer p { margin: 0; max-width: 26em; }
.send { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-status.success { color: #13824b; }
.form-status.error { color: var(--red); }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.footer-col h4 { font-size: .9rem; margin-bottom: 6px; }
.footer-col a:hover, .footer-contact a:hover { color: var(--red); }
.footer-contact { font-size: .9rem; text-align: right; }
.footer-contact p { margin: 4px 0 12px; }
.lang-switch-footer { justify-content: flex-end; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 20px; }
  .work-inner { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .process-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .header-actions .btn { display: none; }
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .cards, .work-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-contact { text-align: left; }
  .lang-switch-footer { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .logo-text small { display: none; }
  .lang-switch button { padding: 2px 6px; font-size: .8rem; }
  .header-actions { gap: 8px; }
  .cards, .work-cards, .values, .steps, .contact-form, .footer-inner { grid-template-columns: 1fr; }
  .float-card { width: 46%; }
  .browser-copy { max-width: 100%; }
  .browser-links span:not(.pill) { display: none; }
  .ai-card { display: none; }
  section { padding: 52px 0; }
}

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

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 72px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); margin: 24px 0 20px; }
.legal h2 { font-size: 1.2rem; margin-top: 2em; }
.legal-address { font-style: normal; background: var(--bg-soft); border-left: 3px solid var(--red); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1em; }
.legal-address a, .inline-link { color: var(--navy-2); text-decoration: underline; }
.legal > .container > p.muted { margin-top: 3em; }
.todo { background: #fff3cd; color: #7a5a00; padding: 0 4px; border-radius: 3px; }
.footer-legal { margin: 8px 0 0; color: var(--muted); }
.footer-legal a:hover { color: var(--red); }
