/* Hallmark · v2.0.0 · theme: custom (Aurora brand, from the client deck) · genre: modern-minimal · shape: product page, the document read in the hero · signature: a real-looking ТЗ fragment with values pulled out, each with its page, one sent to a person · job: book a session on the client's own documents · material: real: four abilities, flow, trust rules, licence model, 8-week pilot, УмноСтрой and УмноСмета; absent: logos, quotes, metrics */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, the abilities could fit any document AI; tied each to its proof (source page, nightly check, rights) */

:root {
  --night: #121A2B;
  --night-2: #1C2740;
  --paper: #F6F5F1;
  --paper-2: #ECEAE3;
  --card: #FBFAF7;
  --ink: #121A2B;
  --ink-soft: #46506A;
  --mist: #BFD3DE;
  --aurora: #3CC9A7;
  --aurora-deep: #0E7A63;
  --aurora-wash: #D7F1E9;
  --dawn: #F0A36B;
  --dawn-wash: #FBE6D6;
  --line: #D9D6CC;
  --line-dark: #2C3956;

  --font-display: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4vw, 4.75rem);

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.08;
  margin: 0;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Controls */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--night); color: var(--paper); }
.btn-primary:hover { background: var(--aurora-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:active { transform: translateY(1px); }
.on-dark .btn-primary { background: var(--aurora); color: var(--night); }
.on-dark .btn-primary:hover { background: var(--paper); }
.on-dark .btn-ghost { border-color: var(--line-dark); color: var(--paper); }
.on-dark .btn-ghost:hover { border-color: var(--mist); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--aurora);
  outline-offset: 3px;
  transition: none;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  color: var(--ink);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 500;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 12px 20px; font-size: var(--step--1); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 96px;
}
.hero h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
.hero .lede {
  margin-top: 24px;
  font-size: var(--step-1);
  max-width: 30ch;
  color: var(--ink-soft);
}
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* Signature: the document being read */
.reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--night);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--mist);
  animation: arrive .7s ease-out both;
}
.doc {
  background: var(--card);
  color: var(--ink-soft);
  padding: 32px 28px;
  font-size: var(--step-0);
  line-height: 1.7;
}
.doc-name { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.doc p + p { margin-top: 8px; }
.hl {
  background: var(--aurora-wash);
  color: var(--ink);
  border-radius: 4px;
  padding: 0 4px;
}
.hl-warn { background: var(--dawn-wash); }
.facts { padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.facts-title { font-family: var(--font-display); font-weight: 700; color: var(--paper); font-size: var(--step-0); }
.fact {
  border-top: 1px solid var(--line-dark);
  padding-top: 12px;
  font-size: var(--step-0);
}
.fact b { display: block; color: var(--paper); font-weight: 600; }
.fact span { color: var(--mist); }
.fact.ask b { color: var(--dawn); }

/* Sections */
.section { padding-top: 104px; padding-bottom: 104px; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--night); color: var(--mist); }
.section.dark h2, .section.dark h3 { color: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 16px; font-size: var(--step-1); }

/* Abilities: four verbs set big */
.verbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.verb { border-top: 3px solid var(--aurora-deep); padding-top: 24px; }
.verb h3 { font-size: var(--step-3); }
.verb p { margin-top: 16px; }

/* Flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  counter-reset: step;
}
.flow li {
  list-style: none;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.flow li.core { background: var(--night); color: var(--mist); }
.flow li.core h3 { color: var(--paper); }
.flow .who { font-size: var(--step--1); color: var(--aurora-deep); font-weight: 600; }
.flow li.core .who { color: var(--aurora); }
.flow h3 { font-size: var(--step-1); margin-top: 8px; }
.flow p { margin-top: 8px; font-size: var(--step--1); }
.flow-list { padding: 0; margin: 0; display: contents; }
.integr {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.integr p { margin-right: 8px; color: var(--ink); font-weight: 600; }
.pill {
  font-size: var(--step--1);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--night);
  color: var(--paper);
}
.pill.soft { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Trust rows */
.rows { border-top: 1px solid var(--line-dark); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--gap);
  padding: 32px 0;
  border-bottom: 1px solid var(--line-dark);
}
.row h3 { font-size: var(--step-2); }
.row p { font-size: var(--step-1); }

/* Solutions */
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.case {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px;
  text-decoration: none;
  border-top: 5px solid var(--aurora);
  transition: transform .2s ease, background-color .2s ease;
}
.case.warm { border-top-color: var(--dawn); }
.case:hover { transform: translateY(-3px); background: var(--paper); }
.case:active { transform: translateY(0); }
.case h3 { font-size: var(--step-3); }
.case .what { color: var(--ink); font-size: var(--step-1); }
.case .more { margin-top: auto; font-weight: 600; color: var(--aurora-deep); }
.modules {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--gap);
}
.modules h3 { font-size: var(--step-2); }
.modules ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px var(--gap);
}
.modules li { border-top: 1px solid var(--line); padding-top: 12px; }
.modules li b { display: block; color: var(--ink); font-family: var(--font-display); }

/* Licence */
.licence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.term { border-top: 3px solid var(--aurora-deep); padding-top: 20px; }
.term.yearly { border-top-color: var(--dawn); }
.term .when { font-size: var(--step--1); font-weight: 600; color: var(--aurora-deep); }
.term.yearly .when { color: var(--ink-soft); }
.term h3 { font-size: var(--step-2); margin-top: 8px; }
.term p { margin-top: 8px; }
.note { margin-top: 48px; font-size: var(--step-1); max-width: 60ch; color: var(--ink); }

/* Call */
.call { padding-top: 120px; padding-bottom: 120px; }
.call h2 { font-size: var(--step-4); max-width: 16ch; }
.call p { margin-top: 24px; font-size: var(--step-1); max-width: 52ch; }
.contacts { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Footer */
.foot {
  background: var(--night);
  color: var(--mist);
  border-top: 1px solid var(--line-dark);
  padding-top: 36px;
  padding-bottom: 36px;
  font-size: var(--step--1);
}
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { color: var(--aurora); }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(16px); }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 72px; }
  .verbs, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases, .licence, .modules { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 560px) {
  .reading { grid-template-columns: minmax(0, 1fr); }
  .verbs, .flow, .modules ul { grid-template-columns: minmax(0, 1fr); }
  .nav .btn { display: none; }
  .case { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .reading { animation: none; }
  .btn, .case, .nav-links a { transition: none; }
  html { scroll-behavior: auto; }
}
