/* Manrope — self-hosted variable font (weights 400–800) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope/manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0f1412;
  --panel: #f4f1eb;
  --ink: #f7f4ed;
  --ink-dark: #17201c;
  --muted: #aeb8b1;
  --muted-dark: #5c6760;
  --line: rgba(247, 244, 237, 0.16);
  --line-dark: rgba(23, 32, 28, 0.14);
  --green: #dfe9d8;
  --green-deep: #214631;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(247, 244, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 237, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 78% 0%, rgba(95, 143, 112, 0.2), transparent 34rem),
    linear-gradient(180deg, #0f1412 0%, #151b18 42%, #f4f1eb 42%, #f4f1eb 100%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  font-family: "Manrope", Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(15, 20, 18, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.hero,
.section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 42px;
  align-items: center;
  min-height: 560px;
}

.hero > *,
.section > * {
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: #91b49b;
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink-dark);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-card {
  padding: 26px;
  color: var(--ink-dark);
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
}

.hero-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green-deep);
  font-size: 18px;
}

.hero-card ul,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li,
.check-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted-dark);
  line-height: 1.5;
}

.hero-card li + li,
.check-list li + li {
  margin-top: 10px;
}

.hero-card li::before,
.check-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--green-deep);
  border-radius: 50%;
  content: "";
}

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

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.btn.primary {
  color: #07110c;
  background: var(--green);
}

.btn.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
}

.light {
  color: var(--ink-dark);
  background: var(--panel);
}

.grid-3,
.grid-2,
.process-grid {
  display: grid;
  gap: 14px;
}

.grid-3,
.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 24px;
  background: #fffaf2;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
}

.card p,
.section-lead,
.faq p,
.privacy-text p,
.privacy-text li {
  color: var(--muted-dark);
  font-size: 17px;
  line-height: 1.56;
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green-deep);
  font-weight: 900;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 18px 20px;
  background: #fffaf2;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
}

.faq summary {
  cursor: pointer;
  color: var(--ink-dark);
  font-weight: 850;
}

.faq p {
  margin: 12px 0 0;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  color: var(--ink);
  background: var(--green-deep);
  border-radius: 16px;
}

.cta h2 {
  color: var(--ink);
}

.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 42px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

:focus-visible {
  outline: 3px solid #dfe9d8;
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }

  .hero,
  .grid-2,
  .grid-3,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero,
  .section,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .actions,
  .btn {
    width: 100%;
  }
}

/* ============ High-end layer (service pages) ============ */
:root {
  --e: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow: 0 40px 90px -24px rgba(6, 12, 9, 0.55);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  line-height: 1.2;
}
.nav-toggle {
  display: none;
}
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0;
  gap: 22px;
  padding: 9px 10px 9px 20px;
  border: 1px solid rgba(247, 244, 237, 0.12);
  border-radius: 999px;
  background: rgba(15, 20, 18, 0.55);
  box-shadow: 0 22px 50px -22px rgba(6, 12, 9, 0.7);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
.hero {
  padding-top: 116px;
}
.btn {
  transition: transform 0.5s var(--e), background 0.4s var(--e), border-color 0.4s var(--e);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.primary { padding-right: 7px; }
.btn.primary::after {
  content: "\2197";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 12px;
  border-radius: 999px;
  background: rgba(7, 17, 12, 0.1);
  font-size: 15px;
  transition: transform 0.5s var(--e), background 0.4s var(--e);
}
.btn.primary:hover::after {
  transform: translate(2px, -2px) scale(1.06);
  background: rgba(7, 17, 12, 0.17);
}
.hero-card {
  box-shadow: var(--shadow), inset 0 1px 1px rgba(23, 32, 28, 0.06);
}

/* Scroll-reveal (block-level) + fail-safe */
@keyframes reveal-fs {
  to { opacity: 1; transform: none; filter: none; }
}
html.anim .hero,
html.anim .section {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.8s var(--e), transform 0.8s var(--e), filter 0.8s var(--e);
  animation: reveal-fs 0.1s linear 3s forwards;
}
html.anim .in {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html.anim * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Mobile: hamburger + full-screen glass menu */
@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    z-index: 95;
  }
  .nav-toggle span {
    position: relative;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transition: background 0.3s var(--e);
  }
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.4s var(--e);
  }
  .nav-toggle span::before { top: -5px; }
  .nav-toggle span::after { top: 5px; }
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
  body.nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(15, 20, 18, 0.82);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--e);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { opacity: 1; pointer-events: auto; }
  .site-nav a {
    color: var(--ink);
    font-size: 28px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--e), transform 0.5s var(--e);
  }
  body.nav-open .site-nav a { opacity: 1; transform: none; }
  body.nav-open .site-nav a:nth-child(1) { transition-delay: 0.08s; }
  body.nav-open .site-nav a:nth-child(2) { transition-delay: 0.13s; }
  body.nav-open .site-nav a:nth-child(3) { transition-delay: 0.18s; }
  body.nav-open .site-nav a:nth-child(4) { transition-delay: 0.23s; }
}

/* Mobile header must not trap the fixed nav overlay (no transform/blur) */
@media (max-width: 920px) {
  .site-header {
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-width: none;
    justify-content: space-between;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
