:root {
  --ivory: #FFFFF0;
  --graphite: #1C1C1A;
  --blue: #304C6E;
  --soft: #F1F1EC;
  --line: rgba(28, 28, 26, 0.16);
  --line-light: rgba(255, 255, 240, 0.22);
  --muted: rgba(28, 28, 26, 0.68);
  --muted-light: rgba(255, 255, 240, 0.72);
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 860px; }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.08; }

h1 { font-size: clamp(32px, 9.5vw, 88px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

.label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}

.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--graphite); color: var(--ivory); border-top: none; }

.section__head { max-width: 760px; margin-bottom: 64px; }
.section__num {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 20px;
}
.section__num--light { color: var(--ivory); opacity: 0.55; }
.section__lead { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 640px; }
.section__lead--light { color: var(--muted-light); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--graphite); }
.logo__mark { width: 34px; height: 34px; object-fit: contain; }
.logo__full { height: 42px; width: auto; object-fit: contain; }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: 0.06em; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--graphite);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav a:hover { border-color: var(--blue); color: var(--blue); }
.nav__cta {
  border: 1px solid var(--graphite) !important;
  padding: 10px 20px !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}
.nav__cta:hover { background: var(--graphite); color: var(--ivory) !important; }

.burger { display: none; background: none; border: none; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; align-items: center; }
.burger span { display: block; width: 24px; height: 2px; background: var(--graphite); transition: transform 0.25s ease, opacity 0.25s ease; }
.burger.open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero */
.hero { padding: 120px 0 96px; }
.hero h1 { max-width: 900px; }
.hero__sub { margin-top: 32px; max-width: 560px; font-size: 19px; color: var(--muted); }
.hero__actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__metrics {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.metric { padding: 28px 24px 0 0; }
.metric + .metric { border-left: 1px solid var(--line); padding-left: 32px; }
.metric__value { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--blue); letter-spacing: -0.01em; }
.metric__label { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  padding: 16px 32px;
  border: 1px solid var(--graphite);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--graphite); color: var(--ivory); }
.btn--primary:hover { background: var(--blue); border-color: var(--blue); }
.btn--ghost { background: transparent; color: var(--graphite); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--full { width: 100%; }

/* Grids & cards */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--ivory); padding: 36px 30px 40px; }
.section--soft .card { background: var(--ivory); }
.card__num {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 22px;
}
.card h3 { margin-bottom: 14px; }
.card p { font-size: 15px; color: var(--muted); }
.card__tag {
  display: block;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--graphite);
}

/* Steps (dark) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.step { background: var(--graphite); padding: 36px 30px 44px; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--blue);
  color: var(--ivory);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 26px;
}
.step h3 { color: var(--ivory); margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--muted-light); }

/* Consult */
.consult { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.consult__list { margin-top: 30px; list-style: none; }
.consult__list li {
  padding: 18px 0 18px 34px;
  border-top: 1px solid var(--line);
  position: relative;
  font-size: 16px;
  color: var(--muted);
}
.consult__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 14px;
  height: 2px;
  background: var(--blue);
}

.form { background: var(--soft); border: 1px solid var(--line); padding: 40px 36px; }
.form__title { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 28px; }
.form__field { display: block; margin-bottom: 20px; }
.form__field span { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 8px; color: var(--muted); }
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--graphite);
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus { border-color: var(--blue); }
.form__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.form__error { display: block; margin-top: 8px; font-size: 13px; font-style: normal; color: #7A2E2E; }
.form__error[hidden] { display: none; }
.form__field input.invalid { border-color: #7A2E2E; }

.chips { border: none; }
.chips legend { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 10px; color: var(--muted); }
.chips__item { display: inline-block; margin: 0 8px 8px 0; }
.chips__item input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.chips__item span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chips__item input:checked + span { background: var(--graphite); border-color: var(--graphite); color: var(--ivory); }
.chips__item input:focus-visible + span { border-color: var(--blue); }

.toast {
  position: fixed;
  left: 50%;
  top: 22vh;
  transform: translate(-50%, -12px);
  z-index: 70;
  background: var(--graphite);
  color: var(--ivory);
  border-left: 3px solid var(--blue);
  padding: 16px 28px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Principles */
.principle { background: var(--soft); padding: 36px 30px 40px; }
.principle h3 { margin-bottom: 12px; }
.principle p { font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 4px 28px; max-width: 680px; color: var(--muted); font-size: 16px; }

/* Contact (dark) */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.contact__links { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.contact__link {
  background: var(--graphite);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.contact__link:hover { background: #262624; }
.contact__label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-light); }
.contact__value { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ivory); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.footer__brand .logo__mark { width: 26px; height: 26px; }
.footer__copy { font-size: 13px; color: var(--muted); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(28, 28, 26, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__box { background: var(--ivory); border: 1px solid var(--graphite); max-width: 520px; width: 100%; padding: 36px; }
.modal__title { font-family: var(--font-head); font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.modal__text { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.modal__copy {
  width: 100%;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--graphite);
  margin-bottom: 24px;
}
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal__actions .btn { padding: 13px 22px; font-size: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .consult { grid-template-columns: 1fr; gap: 56px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero__metrics { grid-template-columns: 1fr; }
  .metric + .metric { border-left: none; padding-left: 0; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .section { padding: 76px 0; }
  .hero { padding: 72px 0 64px; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__cta { border: 1px solid var(--graphite) !important; padding: 12px 20px !important; width: auto; margin-top: 16px; }
  .burger { display: flex; }
  .grid--4, .grid--2, .steps { grid-template-columns: 1fr; }
  .form { padding: 28px 22px; }
  .contact__link { flex-wrap: wrap; row-gap: 6px; padding: 18px 20px; }
  .contact__value { font-size: 16px; }
  .hero__actions .btn { width: 100%; }
}
