/* ============================================================
   AartsIT — Maatwerksoftware & Automatisering
   Design system: clean, confident, professional.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink: #0e1628;
  --ink-2: #3c465e;
  --muted: #6b7590;
  --paper: #f5f7fa;
  --card: #ffffff;
  --line: #e2e7f0;
  --line-strong: #cbd4e3;
  --accent: #1f56d6;
  --accent-deep: #16419f;
  --accent-soft: #ecf1fc;
  --dark: #0b1120;
  --dark-2: #121c33;
  --on-dark: #e9eef9;
  --muted-dark: #93a0bd;
  --green: #17a26a;
  --green-soft: #e2f5ec;

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1160px;
  --gutter: 24px;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 9px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(14, 22, 40, 0.05);
  --shadow-md: 0 10px 30px rgba(14, 22, 40, 0.09);
  --shadow-accent: 0 10px 28px rgba(31, 86, 214, 0.28);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2,
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
  margin-top: 16px;
}

.section-head .lead {
  margin-top: 18px;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s,
    transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: var(--shadow-accent);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(233, 238, 249, 0.28);
  color: var(--on-dark);
}

.btn-ghost-light:hover {
  background: rgba(233, 238, 249, 0.08);
  border-color: rgba(233, 238, 249, 0.45);
}

.btn .btn-arrow {
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 250, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(14, 22, 40, 0.05);
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand .brand-accent {
  color: var(--accent);
}

.brand:hover .brand-accent {
  color: var(--accent-deep);
}

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

.main-nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding-block: 6px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-cta {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* Burger */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s, top 0.3s;
}

.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }

.burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(248, 249, 252, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 110px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a.mm-nav {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a.mm-nav:hover {
  color: var(--accent);
}

.mobile-menu .mm-cta {
  margin-top: 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(72px + clamp(3.5rem, 8vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 22, 40, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 22, 40, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 30%, transparent 75%);
}

.hero-bg .glow {
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(31, 86, 214, 0.16), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
}

/* Hero eyebrow: symmetric rule on both sides (centered layout) */
.hero .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
  margin-top: 24px;
}

.hero h1 .hl {
  color: var(--accent);
}

.hero .hero-sub {
  margin: 26px auto 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 42rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.hero-note {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-note .dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ---------- Value strip ---------- */
.value-strip {
  border-block: 1px solid var(--line);
  background: #fbfcfe;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.value-item {
  padding: 30px 28px;
  border-left: 1px solid var(--line);
}

.value-item:first-child {
  border-left: none;
  padding-left: 0;
}

.value-item .vi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.value-item .vi-icon svg {
  width: 19px;
  height: 19px;
}

.value-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}

.value-item p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Services ---------- */
.services {
  background: #fff;
  border-block: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #c3d1f0;
  box-shadow: var(--shadow-md);
  background: #fff;
}

.service-card .sc-num {
  position: absolute;
  top: 30px;
  right: 30px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--line-strong);
}

.service-card .sc-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: background-color 0.3s, color 0.3s;
}

.service-card:hover .sc-icon {
  background: var(--accent);
  color: #fff;
}

.service-card .sc-icon svg {
  width: 23px;
  height: 23px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}

.service-card .sc-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.service-card li .li-check {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.service-card li .li-check svg {
  width: 10px;
  height: 10px;
}

/* ---------- Process ---------- */
.process {
  background: #edf0f6;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.step {
  position: relative;
  padding-top: 26px;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.step::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.step .step-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px #b6c3da;
  line-height: 1;
  margin-bottom: 18px;
  user-select: none;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 22px;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.facts-panel {
  position: relative;
  background: var(--dark);
  border-radius: 20px;
  padding: 40px 36px;
  color: var(--on-dark);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(11, 17, 32, 0.25);
}

.facts-panel::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(31, 86, 214, 0.4), transparent 65%);
  pointer-events: none;
}

.facts-panel .fp-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}

.facts-panel .fp-tag {
  font-size: 0.85rem;
  color: var(--muted-dark);
  margin-top: 6px;
  margin-bottom: 26px;
}

.facts-panel .fp-rows {
  display: flex;
  flex-direction: column;
}

.facts-panel .fp-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(233, 238, 249, 0.12);
  font-size: 0.875rem;
}

.facts-panel .fp-row .fp-k {
  color: var(--muted-dark);
}

.facts-panel .fp-row .fp-v {
  font-weight: 600;
  color: var(--on-dark);
  text-align: right;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(31, 86, 214, 0.32), transparent 65%);
  pointer-events: none;
}

.cta-band .cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(233, 238, 249, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(233, 238, 249, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
}

.cta-band h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  max-width: 720px;
  margin-inline: auto;
}

.cta-band .cta-sub {
  position: relative;
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--muted-dark);
  max-width: 540px;
  margin-inline: auto;
}

.cta-band .cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.cta-band .cta-foot {
  position: relative;
  margin-top: 30px;
  font-size: 0.82rem;
  color: rgba(147, 160, 189, 0.75);
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 60px 48px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a,
.footer-col .plain {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Page header (contact / privacy) ---------- */
.page-head {
  padding-top: calc(72px + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -150px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(31, 86, 214, 0.1), transparent 65%);
  pointer-events: none;
}

.page-head h1 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  margin-top: 18px;
}

.page-head .page-sub {
  position: relative;
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 560px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.contact-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
}

.contact-info .ci-intro {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.ci-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.ci-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.ci-item .ci-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.ci-item .ci-icon svg {
  width: 18px;
  height: 18px;
}

.ci-item .ci-k {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.ci-item .ci-v {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.ci-item .ci-v a {
  color: var(--accent);
  transition: color 0.2s;
}

.ci-item .ci-v a:hover {
  color: var(--accent-deep);
}

/* Form */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-form-card .cf-sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.form-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #f0c5bf;
  background: #fbf1ef;
  color: #8f3125;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 24px;
}

.form-banner[hidden] {
  display: none;
}

.form-banner svg {
  flex: none;
  margin-top: 2px;
  color: #a63d2e;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.field label .req {
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa3b8;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 86, 214, 0.15);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Form success */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 60px 20px;
  min-height: 380px;
  justify-content: center;
}

.contact-form-card.is-sent form {
  display: none;
}

.contact-form-card.is-sent .form-success {
  display: flex;
}

.form-success .fs-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  animation: fsPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success .fs-icon svg {
  width: 28px;
  height: 28px;
}

@keyframes fsPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}

.form-success p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 380px;
}

/* ---------- Privacy (prose) ---------- */
.prose {
  max-width: 780px;
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.prose section {
  margin-top: 44px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.prose h2 .prose-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.prose p {
  margin-bottom: 14px;
  font-size: 0.975rem;
  line-height: 1.7;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 10px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.prose ul li {
  position: relative;
  padding-left: 26px;
  font-size: 0.975rem;
  line-height: 1.65;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose .updated-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  margin-top: 20px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-item {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 24px 0;
  }

  .value-item:nth-child(-n + 2) {
    border-top: none;
  }

  .value-item {
    padding-inline: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 26px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .facts-panel {
    max-width: 560px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
}

@media (max-width: 760px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero {
    padding-top: calc(72px + 2.5rem);
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 30px 22px;
  }

  .contact-info {
    padding: 28px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-item:nth-child(2) {
    border-top: 1px solid var(--line);
  }
}
