@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --ink: #1c1616;
  --muted: #5e5856;
  --paper: #f4efe6;
  --paper-2: #fbf7f1;
  --white: #ffffff;
  --line: rgba(80, 45, 50, 0.14);
  --deep: #1a1414;
  --deep-2: #2a1e20;
  --accent: #8d2a30;
  --accent-dark: #641c22;
  --accent-soft: rgba(141, 42, 48, 0.09);
  --gold: #b8956a;
  --focus: rgba(141, 42, 48, 0.2);
  --shadow: 0 18px 50px rgba(28, 22, 22, 0.08);
  --radius: 16px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(197, 164, 106, 0.16), transparent 32rem),
    linear-gradient(180deg, var(--paper), #f9f5ee 48%, #ffffff);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 14px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(251, 247, 241, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -1px 0 rgba(184, 149, 106, 0.45);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}
.brand strong { display: block; font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: #241c1c; }
.brand span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 3px; letter-spacing: 0.01em; }

.nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex: 0 0 auto; flex-wrap: nowrap; margin-left: auto; white-space: nowrap; }
.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #3b3331;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); transform: translateY(-1px); }
.nav a.nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
}
.nav a.nav-home svg { display: block; }


.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 16, 17, 0.96), rgba(23, 16, 17, 0.72) 48%, rgba(23, 16, 17, 0.28)),
    url('/intake-assets/img/hero.jpg') center / cover no-repeat;
  transform: scale(1.035);
  animation: settle 900ms ease-out forwards;
}
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--gold), transparent);
  opacity: 0.9;
}
.hero-inner {
  position: relative;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(66px, 9vw, 112px) 0;
  color: var(--white);
}
.kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.kicker.dark { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero p {
  max-width: 710px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2vw, 20px);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-dark); box-shadow: 0 12px 26px rgba(150,45,50,0.2); text-decoration: none; }
.btn.secondary { background: transparent; border-color: rgba(80, 45, 50, 0.28); color: var(--deep); }
.btn.secondary:hover { background: var(--accent-soft); border-color: rgba(80, 45, 50, 0.4); color: var(--accent-dark); }
.hero .btn.secondary, .page-hero .btn.secondary { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.38); color: #fff; }
.hero .btn.secondary:hover, .page-hero .btn.secondary:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.section { width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: clamp(46px, 7vw, 88px) 0; }
.section.tight { padding-top: 28px; }
.section-title { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.58fr); gap: 34px; align-items: end; margin-bottom: 34px; }
.section-title h2, .split-section h2, .intro-grid h2, .assistant-choice h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
.section-title p, .intro-grid p, .text-card p { margin: 0; color: var(--muted); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.trust-strip div { background: var(--paper-2); padding: 26px; }
.trust-strip strong { display: block; margin-bottom: 8px; color: var(--accent); }
.trust-strip span { color: var(--muted); font-size: 14px; }

.routes { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.route {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  background: rgba(255, 250, 242, 0.94);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  position: relative;
}
.route:hover { background: var(--white); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(33, 24, 25, 0.13); text-decoration: none; }
.route .mark { color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; }
.route h3 { margin: 22px 0 10px; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.route p { margin: 0; color: var(--muted); font-size: 14px; }
.route span:last-child { margin-top: 22px; color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; }
.route::after { content: ""; position: absolute; left: 25px; right: 25px; bottom: 20px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 220ms ease; }
.route:hover::after, .route:focus-visible::after { transform: scaleX(1); }

.split-section, .intro-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.65fr); gap: 34px; align-items: start; }
.text-card, .intro-grid > div:last-child { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.fine-print, .note { color: var(--muted); font-size: 12px; margin-top: 14px; }

.page-hero { background: var(--deep); color: var(--white); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,16,17,0.96), rgba(23,16,17,0.7), rgba(23,16,17,0.35)), url('/intake-assets/img/page-hero.jpg') center / cover no-repeat; opacity: 0.92; }
.page-hero .section { position: relative; padding-top: clamp(70px, 9vw, 116px); padding-bottom: clamp(64px, 8vw, 96px); }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; }
.page-hero p { max-width: 760px; color: rgba(255,255,255,0.84); font-size: 18px; }

.intake-shell { display: grid; grid-template-columns: minmax(0, 0.68fr) minmax(320px, 0.32fr); gap: 34px; align-items: start; }
.intake-form, .summary-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.form-block { padding: 30px; border-bottom: 1px solid var(--line); }
.form-block:last-child { border-bottom: 0; }
.form-block h2 { margin: 0 0 18px; font-size: 26px; letter-spacing: -0.02em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: #2b2423; font-weight: 600; font-size: 13px; }
input, textarea, select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fffdf8; color: var(--ink); padding: 12px 13px; outline: none; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }
input::placeholder, textarea::placeholder { color: rgba(103, 97, 95, 0.72); }
.checks { display: grid; gap: 10px; }
.checks label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fffdf8; font-weight: 700; }
.checks input { width: 18px; min-height: 18px; margin-top: 1px; accent-color: var(--accent); }

.summary-panel { position: sticky; top: 98px; padding: 24px; }
.summary-panel h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.025em; }
.summary-panel p { margin: 0 0 18px; color: var(--muted); }
.summary-output { width: 100%; min-height: 320px; white-space: pre-wrap; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; padding: 15px; color: #24211f; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; overflow: auto; }
.summary-actions { display: grid; gap: 10px; margin-top: 14px; }

.footer { border-top: 1px solid var(--line); padding: 28px clamp(18px, 4vw, 58px); color: var(--muted); display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; background: rgba(255,250,242,0.75); }
.footer a { color: var(--accent); font-weight: 600; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
::selection { background: rgba(150, 45, 50, 0.22); }
.btn:focus-visible, .nav a:focus-visible, .route:focus-visible { outline: 3px solid rgba(150, 45, 50, 0.36); outline-offset: 3px; }
@keyframes settle { to { transform: scale(1); } }

@media (max-width: 1080px) {
  .routes { grid-template-columns: repeat(2, 1fr); }
  .route:last-child { grid-column: 1 / -1; }
  .intake-shell { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
}
@media (max-width: 820px) {
  .site-header { position: relative; align-items: center; gap: 16px; padding-left: 16px; padding-right: 16px; }
  .brand span span { display: none; }
  .nav { justify-content: flex-end; gap: 2px; }
  .nav a { padding: 8px 9px; font-size: 12.5px; }
  .nav a.nav-home { width: 34px; height: 34px; padding: 0; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 78px; padding-bottom: 78px; }
  .section-title, .form-grid, .trust-strip, .split-section, .intro-grid { grid-template-columns: 1fr; }
  .routes { grid-template-columns: 1fr; }
  .route:last-child { grid-column: auto; }
  .form-block { padding: 23px; }
  h1 { letter-spacing: -0.04em; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-side { margin-left: 0; justify-content: flex-start; }
  .footer-resources { justify-items: start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* Mediatorius.ai legal assistant entry */
.assistant-choice {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 380px);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(26px, 5vw, 58px);
  margin-bottom: clamp(28px, 5vw, 60px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(80, 45, 50, .16);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(248,243,238,.96));
  box-shadow: 0 24px 60px rgba(48, 30, 32, .08);
}

.assistant-choice h2 {
  margin: 8px 0 14px;
  max-width: 760px;
}

.assistant-choice-copy > p:not(.kicker) {
  max-width: 780px;
}

.assistant-choice-note {
  margin-top: 16px;
  font-size: .94rem;
  line-height: 1.65;
  color: var(--muted, #6f6363);
}

.assistant-choice-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assistant-choice-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

@media (max-width: 820px) {
  .assistant-choice {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .assistant-choice-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .assistant-choice-actions .btn {
    width: auto;
    flex: 1 1 240px;
  }
}


.footer-main { display: grid; gap: 14px; }
.footer-contacts { display: grid; gap: 2px; margin: 0; max-width: 460px; font-style: normal; color: #3b3331; font-size: 14px; line-height: 1.5; }
.footer-contacts strong { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.02em; }
.footer-side { margin-left: auto; display: flex; align-items: flex-end; justify-content: flex-end; gap: 36px; flex-wrap: wrap; }
.footer-note { align-self: end; }
.footer-resources { display: grid; gap: 4px; justify-items: end; text-align: right; align-self: start; margin-left: auto; }
.footer-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
