/* ===== Tokens ===== */
:root {
  --bg: #fbf8f3;
  --bg-soft: #f3eee6;
  --surface: #ffffff;
  --ink: #1e2a2b;
  --ink-2: #4b5a5c;
  --muted: #7a8789;
  --line: #e6dfd4;
  --teal: #1f6f6b;
  --teal-deep: #164f4c;
  --teal-soft: #dcecea;
  --apricot: #e0855b;
  --apricot-soft: #fbe6da;
  --plum: #7c5a8c;
  --plum-soft: #ece2f0;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(30, 42, 43, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 5.4vw, 66px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 1em; }
.accent { color: var(--teal); font-style: italic; font-weight: 400; }
.wrap { width: min(1160px, 92vw); margin-inline: auto; }
.wrap--narrow { width: min(800px, 92vw); }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--apricot); margin-bottom: 14px;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 56ch; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -10px rgba(31,111,107,.7); }
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(31,111,107,.7); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(30,42,43,.35); }
.nav__inner { display: flex; align-items: center; gap: 28px; padding: 16px 0; transition: padding .3s var(--ease); }
.nav.is-scrolled .nav__inner { padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 20px; white-space: nowrap; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; padding: 5px; }
.brand__name em { color: var(--teal); font-style: italic; font-weight: 400; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav__links a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.nav__phone { font-weight: 600; font-size: 14px; color: var(--teal); }
.lang { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-2); transition: border-color .25s, color .25s, background .25s; }
.lang:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.nav__burger { display: none; margin-left: auto; background: none; border: 0; padding: 0; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; transform-origin: center; }
.nav__mobile { display: none; flex-direction: column; gap: 6px; padding: 8px 4vw 18px; font-weight: 500; }
.nav__mobile a { padding: 10px 0; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 10px; justify-content: center; border: 0; }
.nav.is-open { background: var(--bg); border-color: var(--line); }
.nav.is-open .nav__mobile { display: flex; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; will-change: transform; }
.hero__blob--a { width: 620px; height: 620px; background: radial-gradient(circle, var(--teal-soft), transparent 70%); top: -180px; right: -120px; }
.hero__blob--b { width: 480px; height: 480px; background: radial-gradient(circle, var(--apricot-soft), transparent 70%); bottom: -220px; left: -160px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-2); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--apricot); }

.member__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; color: #fff; background: var(--c, var(--teal)); flex: none; }

@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }
@keyframes spin { to { transform: rotate(360deg) } }

/* Hero scene (illustration + floating cards) */
.scene { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; }
.scene__ring { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--teal-soft), var(--apricot-soft) 70%, transparent 72%); opacity: .8; }
.scene__ring::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 1.5px dashed rgba(31,111,107,.3); animation: spin 80s linear infinite; }
.scene__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(30,42,43,.14)); }
.para { will-change: transform; }

/* Section figures */
.figure { margin: 0; position: relative; aspect-ratio: 1 / 1; }
.figure img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(30,42,43,.12)); will-change: transform; }
.figure__glow { position: absolute; inset: 10%; border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; opacity: .9; }
.figure__glow--apricot { background: radial-gradient(circle at 60% 40%, var(--apricot-soft), transparent 72%); }
.figure__glow--teal { background: radial-gradient(circle at 40% 40%, var(--teal-soft), transparent 72%); }
.split--figure { align-items: center; }
.split--figure .checklist { margin-top: 26px; }
.split--figure-left .figure { order: 0; }
.settings.settings--grid { grid-template-columns: 1fr 1fr; }
.settings.settings--grid .setting { min-height: 0; }

/* ===== Stats ===== */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__n { font-family: var(--font-head); font-size: 40px; color: var(--teal); line-height: 1; }
.stat__l { font-size: 13.5px; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--tight { padding-bottom: clamp(40px, 5vw, 70px); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 4vw, 56px); }
.section__head p:last-child { color: var(--ink-2); font-size: 17px; }
.section__head--light, .section__head--light h2 { color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--rev .split__text { order: 2; }
.split__text p { color: var(--ink-2); font-size: 17px; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-weight: 500; transition: transform .3s var(--ease), box-shadow .3s; }
.checklist li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.check { width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; position: relative; }
.check::after { content: ""; width: 6px; height: 11px; border: solid var(--teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px 26px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.card__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* settings */
.settings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.setting { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-height: 240px; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.setting:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.setting__num { font-family: var(--font-head); font-size: 15px; color: var(--apricot); letter-spacing: .1em; display: block; margin-bottom: 26px; }
.setting p { margin: 0; color: var(--ink-2); font-size: 15px; }
.setting--hi { background: var(--teal); border-color: var(--teal); color: #fff; }
.setting--hi p { color: rgba(255,255,255,.85); }
.setting--hi .setting__num { color: #ffd2b8; }
.setting--hi::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; bottom: -70px; background: rgba(255,255,255,.08); }

/* process */
.section--dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(31,111,107,.45), transparent 65%); top: -300px; right: -200px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .35s, transform .35s var(--ease); }
.step:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.step__n { width: 40px; height: 40px; border-radius: 50%; background: var(--apricot); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 18px; font-family: var(--font-head); font-size: 18px; }
.step h3 { color: #fff; }
.step p { color: rgba(255,255,255,.72); margin: 0; font-size: 15px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -22px; width: 22px; height: 1px; background: rgba(255,255,255,.25); }

/* team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; transition: transform .35s var(--ease), box-shadow .35s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member .member__avatar { width: 52px; height: 52px; font-size: 15px; margin-bottom: 12px; }
.member small { color: var(--muted); font-size: 13px; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.quote p { font-family: var(--font-head); font-size: 19px; line-height: 1.4; margin: 0; }
.quote p em { color: var(--teal); }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.quote footer strong { display: block; }
.quote footer small { color: var(--muted); }

/* faq */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: var(--teal); box-shadow: var(--shadow); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 22px; color: var(--teal); font-weight: 400; transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--ink-2); padding-bottom: 20px; margin: 0; font-size: 15.5px; }

/* CTA */
.section--cta { background: linear-gradient(160deg, var(--teal-soft), var(--bg) 55%, var(--apricot-soft)); }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.cta__copy p { color: var(--ink-2); font-size: 17px; }
.cta__contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-weight: 600; }
.cta__contacts a { color: var(--teal); }
.cta__contacts li:last-child { color: var(--muted); font-weight: 500; }
.form { background: var(--surface); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); transition: border-color .25s, box-shadow .25s; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,111,107,.12); background: #fff; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__fine { font-size: 12.5px; color: var(--muted); margin: 0; text-align: center; }
.form__ok { display: none; text-align: center; color: var(--teal); font-weight: 600; margin: 0; }
.form--sent .form__ok { display: block; }
.form--sent button { display: none; }

/* footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14.5px; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 14px; }
.footer__grid a { display: block; padding: 4px 0; transition: color .2s; }
.footer__grid a:hover { color: var(--teal); }
.footer__grid .brand { margin-bottom: 12px; }
.footer__grid .brand a { display: inline-flex; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ===== Scroll reveal ===== */
.reveal, .reveal-scale, .reveal-stagger > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal-scale { transform: translateY(18px) scale(.96); }
.reveal.in, .reveal-scale.in, .reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .09s }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .18s }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .27s }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .36s }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .45s }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-scale, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .scene__ring::after { animation: none; }
  .hero__blob { transform: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .cards, .quotes { grid-template-columns: repeat(2, 1fr); }
  .split--figure-left { grid-template-columns: 1fr; }
  .split--figure-left .figure { order: 2; max-width: 460px; margin-inline: auto; }
  .settings, .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .split--figure-left .figure { order: 2; max-width: 420px; margin-inline: auto; }
  .figure { max-width: 460px; margin-inline: auto; }
      .hero__grid, .split, .cta { grid-template-columns: 1fr; }
  .split--rev .split__text { order: 0; }
  .hero__art { max-width: 420px; margin-inline: auto; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 560px) {
  .cards, .quotes, .settings, .settings.settings--grid, .steps, .team, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .setting { min-height: 0; }
}
