/* Верстак — статическая витрина. Токены из брифа: сосна и известь. */
:root {
  --paper: #f4f1e9;
  --paper-2: #ebe6da;
  --ink: #14201c;
  --pine: #2e6b4f;
  --sage: #a8b79b;
  --line: rgba(20, 32, 28, 0.14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(244, 241, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.mark { display: flex; align-items: center; gap: 12px; }

.mark-sign {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--pine);
  color: var(--paper);
  font: 600 22px/1 var(--serif);
}

.mark-text {
  display: flex;
  flex-direction: column;
  font: 600 19px/1.1 var(--serif);
  letter-spacing: 0.02em;
}

.mark-text em {
  font: 400 10px/1.4 var(--sans);
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20, 32, 28, 0.55);
}

.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav a { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--pine); }

.top-phone { font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ---------- общие блоки ---------- */

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

h1 { font-size: clamp(42px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: 22px; line-height: 1.2; }

.lead { font-size: 18px; color: rgba(20, 32, 28, 0.78); max-width: 46ch; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 80px);
}

.hero-main h1 { margin-bottom: 26px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--pine); color: var(--paper); }
.btn-solid:hover { background: #255a41; }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.hero-card {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 28px;
}

.card-label {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 32, 28, 0.6);
}

.facts { margin: 0; }
.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.facts dt { color: rgba(20, 32, 28, 0.6); font-size: 14px; margin: 0; }
.facts dd { margin: 0; font-size: 14px; font-weight: 500; text-align: right; }

.card-note { margin: 18px 0 0; font-size: 13px; color: rgba(20, 32, 28, 0.6); }

/* ---------- полоса цифр ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 clamp(20px, 5vw, 64px);
}

.strip > div {
  padding: 26px 4px 26px 20px;
  border-left: 1px solid var(--line);
}
.strip > div:first-child { border-left: 0; padding-left: 0; }

.strip b { display: block; font: 600 40px/1 var(--serif); }
.strip span { font-size: 13px; color: rgba(20, 32, 28, 0.6); }

/* ---------- секции ---------- */

.section { padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 64px); }

.sec-head { max-width: 30ch; margin-bottom: clamp(32px, 4vw, 56px); }

/* материал */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.wood { border-top: 2px solid var(--ink); padding-top: 18px; }

.swatch {
  height: 92px;
  margin-bottom: 20px;
  border: 1px solid rgba(20, 32, 28, 0.12);
}

.wood-oak .swatch {
  background:
    repeating-linear-gradient(94deg, rgba(90, 62, 34, 0.16) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #c9a173, #b08b5f);
}

.wood-ash .swatch {
  background:
    repeating-linear-gradient(92deg, rgba(120, 96, 62, 0.14) 0 2px, transparent 2px 12px),
    linear-gradient(160deg, #e3d3b8, #d3c0a1);
}

.wood-walnut .swatch {
  background:
    repeating-linear-gradient(96deg, rgba(30, 16, 10, 0.22) 0 2px, transparent 2px 8px),
    linear-gradient(160deg, #6b4a34, #4e3426);
}

.wood p { margin: 10px 0 0; font-size: 15px; color: rgba(20, 32, 28, 0.78); }

.wood-meta {
  font-size: 12px !important;
  letter-spacing: 0.04em;
  color: rgba(20, 32, 28, 0.5) !important;
}

/* тёмная секция */

.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .eyebrow { color: var(--sage); }
.section-dark h2 { color: var(--paper); }

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li { border-top: 1px solid rgba(244, 241, 233, 0.22); padding-top: 18px; }
.steps p { margin: 8px 0 0; font-size: 15px; color: rgba(244, 241, 233, 0.72); }

.step-no {
  display: block;
  margin-bottom: 12px;
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.16em;
  color: var(--sage);
}

/* работы */

.works { margin: 0; padding: 0; list-style: none; }

.works li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 160px;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s ease;
}

.works li:hover { background: var(--paper-2); }

.work-year { font-size: 13px; letter-spacing: 0.08em; color: rgba(20, 32, 28, 0.5); }
.work-body h3 { margin-bottom: 6px; }
.work-body p { margin: 0; font-size: 15px; color: rgba(20, 32, 28, 0.72); }
.work-meta { font-size: 13px; text-align: right; color: rgba(20, 32, 28, 0.55); }

/* контакты */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.contact-rows { margin-top: 30px; display: grid; gap: 10px; }

.contact-rows a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font: 500 22px/1.3 var(--serif);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.contact-rows a span {
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20, 32, 28, 0.55);
  min-width: 78px;
}

.contact-side { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 32px); }
.contact-side p { margin: 0 0 14px; font-size: 15px; }

/* подвал */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: rgba(20, 32, 28, 0.55);
}

/* ---------- адаптив ---------- */

@media (max-width: 960px) {
  .top { gap: 16px; }
  .nav { display: none; }
  .top-phone { margin-left: auto; }

  .hero { grid-template-columns: 1fr; align-items: start; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip > div { border-top: 1px solid var(--line); }
  .strip > div:nth-child(-n + 2) { border-top: 0; }

  .cards { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }

  .works li { grid-template-columns: 60px minmax(0, 1fr); }
  .work-meta { grid-column: 2; text-align: left; }

  .contact { grid-template-columns: 1fr; }
  .contact-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .works li { transition: none; }
  .btn:hover { transform: none; }
}
