/* barsik-dg, витражная визитка. Без внешних шрифтов и скриптов. */
:root {
  --paper: #f4eee4;
  --paper-2: #ebe3d4;
  --ink: #1c1612;
  --muted: #5e5348;
  --line: #d4c3a8;
  --card: #fbf6ee;
  --copper: #9a5a38;
  --copper-2: #c4845a;
  --lead: #2a211c;
  --teal: #1a6a74;
  --ruby: #7a1f2b;
  --sage: #3d5e4a;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(26, 106, 116, 0.10), transparent 55%),
    radial-gradient(700px 380px at 100% 8%, rgba(122, 31, 43, 0.08), transparent 50%),
    radial-gradient(800px 500px at 80% 110%, rgba(196, 132, 90, 0.14), transparent 55%),
    var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

a {
  color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--lead); }

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0 1.15rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand img { width: 32px; height: 32px; display: block; }

nav { display: flex; gap: 1.15rem; font-size: 0.95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover,
nav a[aria-current="page"] { color: var(--ink); }

main { padding: 2.2rem 0 3rem; }
.hero-plain { grid-template-columns: 1fr; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(16rem, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.hero-photo {
  margin: 0;
  background: #f4f4f2;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.55rem;
  box-shadow: 0 18px 40px rgba(36, 24, 18, 0.08);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
  background: #f4f4f2;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  line-height: 0.98;
  margin: 0 0 0.7rem;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  max-width: 22em;
  font-size: 1.15rem;
  color: var(--muted);
}

.mark {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.18rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--copper);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

section { margin-top: 3rem; }

h2 {
  margin: 0 0 0.95rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.prose { max-width: 38em; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 1px 0 rgba(36, 24, 18, 0.04);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.work {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.15rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 1.15rem 0.7rem 0.7rem;
}

.work img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  background: #f4f4f2;
}

.work h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.work p { margin: 0; color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--card);
  border-top: 3px solid var(--copper-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  padding: 0.9rem 0.95rem 1.05rem;
}

.steps .num {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Segoe UI", "Liberation Sans", Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.steps h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.not-found { padding: 4rem 0 5.2rem; }
.not-found .code {
  margin: 0 0 0.4rem;
  font-family: "Segoe UI", "Liberation Sans", Helvetica, Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--copper);
}
.not-found h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}

@media (max-width: 800px) {
  .hero,
  .grid,
  .steps { grid-template-columns: 1fr; }
  .hero { gap: 1.3rem; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  header { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .work { grid-template-columns: 6.2rem 1fr; }
  .steps { grid-template-columns: 1fr; }
}

.nowrap { white-space: nowrap; }

