@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("fonts/source-serif-4-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("fonts/source-serif-4-latin-wght-normal.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;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/onest-latin-wght-normal.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: #f3efe8;
  --sheet: #faf8f5;
  --ink: #1c1916;
  --muted: #5e584f;
  --line: #ddd4c8;
  --accent: #1f4b43;
  --mark: #9a4e2c;
  --band: #141210;
  --bone: #f3efe8;
  --danger: #8a2e24;
  --ok: #1f4b43;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Onest", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

a { color: inherit; }

.wrap {
  width: min(68rem, calc(100% - 2.4rem));
  margin: 0 auto;
  position: relative;
}

header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(243, 239, 232, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  text-decoration: none;
  letter-spacing: 0.01em;
  font-size: 1.2rem;
  font-weight: 500;
}

.mark {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 450;
}

nav a:hover { color: var(--ink); }

.nav-cta { color: var(--accent); }

.nav-cta:hover { color: #173832; }

.hero {
  display: grid;
  gap: 2.5rem;
  padding: 4.2rem 0 3.4rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: 3rem;
    padding: 5rem 0 4rem;
  }
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--mark);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  line-height: 1.02;
  font-weight: 550;
}

.lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 1.2rem 0 0;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--accent);
  color: #f7f4ef;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  font-weight: 500;
}

.cta:hover { background: #173832; }

.hero-plate {
  display: none;
}

@media (min-width: 900px) {
  .hero-plate { display: block; }
}

.index-plate {
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin-left: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(28, 25, 22, 0.08));
}

.index-plate .plate-label,
.index-plate .plate-foot {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.index-plate .plate-num {
  fill: var(--mark);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.index-plate .plate-name {
  fill: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.index-plate .plate-foot {
  letter-spacing: 0.08em;
}

section { padding: 3.4rem 0; }

h2 {
  margin: 0 0 1.8rem;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
}

.format {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  gap: 0.35rem 1.2rem;
  padding: 1.55rem 0;
  border-top: 1px solid transparent;
  position: relative;
}

.format::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(1);
  transform-origin: left;
  transition: background 0.25s ease, transform 0.35s ease;
}

.format:last-child {
  border-bottom: 1px solid var(--line);
}

.format:hover::before,
.format:focus-within::before {
  background: var(--mark);
  transform: scaleX(1);
}

.format:hover .num,
.format:focus-within .num {
  color: var(--mark);
}

.num {
  font-family: var(--serif);
  color: var(--muted);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.1;
  transition: color 0.2s ease;
}

.format h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.format p { margin: 0.2rem 0; }

.outcome {
  color: var(--ink);
  font-weight: 500;
  max-width: 36rem;
}

.muted { color: var(--muted); }

.format .muted {
  max-width: 40rem;
  font-size: 0.98rem;
}

.process {
  background: var(--band);
  color: var(--bone);
  border-top: 0;
  border-bottom: 0;
  padding: 3.8rem 0;
}

.process h2 { color: var(--bone); }

.process-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: baseline;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.process-words .dot {
  color: #9a4e2c;
  font-weight: 400;
}

.process-note {
  margin: 1.35rem 0 0;
  max-width: 36rem;
  color: rgba(243, 239, 232, 0.72);
  font-size: 1.02rem;
}

.products {
  background: var(--sheet);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.specimen {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  max-width: 36rem;
}

.specimen strong { font-weight: 600; }

.specimen-sep {
  margin: 0 0.35rem;
  color: var(--mark);
}

.specimen-note {
  margin: 0.7rem 0 0;
  max-width: 32rem;
}

.form-intro {
  margin: -0.6rem 0 1.4rem;
  max-width: 32rem;
}

.form {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

label span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

input, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.65rem 0;
}

textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #9a9288;
}

input:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}

.check input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.check a { color: var(--ink); }

button {
  justify-self: start;
  font: inherit;
  font-weight: 500;
  background: var(--accent);
  color: #f7f4ef;
  border: 0;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
}

button:hover { background: #173832; }

button:disabled { opacity: 0.6; cursor: wait; }

.status { min-height: 1.4rem; margin: 0; }

.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer p { margin: 0.2rem 0; }

footer a { color: var(--ink); }

.page { padding: 3rem 0 4rem; max-width: 40rem; }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: none; }
.page p, .page li { color: var(--muted); }
.page strong, .page a { color: var(--ink); }
.page h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .cta, .hero-plate {
    animation: rise 0.7s ease both;
  }
  .hero .lede { animation-delay: 0.08s; }
  .hero .cta { animation-delay: 0.16s; }
  .hero-plate { animation-delay: 0.2s; }

  .format::before {
    transform: scaleX(0.28);
  }

  .format:hover::before,
  .format:focus-within::before {
    transform: scaleX(1);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  header .wrap {
    min-height: 3.2rem;
    padding: 0.55rem 0;
  }

  .format {
    grid-template-columns: 3.2rem 1fr;
    gap: 0.2rem 0.8rem;
  }

  .num { font-size: 1.4rem; }
}
