@font-face {
  font-family: "TildaSans";
  src: url("/fonts/TildaSans-VF.woff2") format("woff2-variations"), url("/fonts/TildaSans-VF.woff2") format("woff2");
  font-weight: 250 1000;
  font-display: swap;
}

:root {
  --accent: #9f4e28;
  --accent-dark: #913b23;
  --ink: #0d0d0d;
  --muted: #5c5650;
  --paper: #ffffff;
  --linen: #f4efe9;
  --line: #e4dcd3;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 "TildaSans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { font-weight: 700; letter-spacing: .14em; text-decoration: none; color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 20px; }
.phone { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }

.btn {
  display: inline-block; padding: 16px 30px; border-radius: 40px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px; letter-spacing: .02em; transition: background .2s;
}
.btn:hover { background: var(--accent-dark); }
.btn.small { padding: 10px 20px; font-size: 15px; }
.btn.light { background: #fff; color: var(--accent); }
.btn.light:hover { background: var(--linen); }

/* секции */
section { padding: 96px 0; }
.linen { background: var(--linen); }
.dark { background: var(--accent); color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 600; color: var(--accent); margin: 0 0 16px; }
.dark .eyebrow { color: #f1d9cb; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 24px; }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: .02em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 22px; margin-bottom: 12px; }
p { margin: 0 0 16px; }
.lead { font-size: 21px; color: var(--muted); }
.dark .lead { color: #f7e9e1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* первый экран */
.hero { padding: 72px 0 96px; }
.hero .role { font-size: 20px; font-weight: 600; color: var(--accent); margin-bottom: 28px; }
.hero img { border-radius: 4px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* боли */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.card { background: #fff; padding: 32px; border-top: 3px solid var(--accent); }
.card h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.card p { color: var(--muted); font-size: 17px; }
.card .quote { color: var(--ink); font-weight: 600; margin: 0; }

/* о себе */
.about img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.stat b { display: block; font-size: 40px; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 16px; }

/* форматы */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.format { border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; }
.format p { color: var(--muted); font-size: 17px; }
.format .fmt { margin-top: auto; padding-top: 16px; font-size: 15px; color: var(--ink); font-weight: 600; }

/* кейсы */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.case { background: #fff; padding: 32px; }
.case .tag { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.case p { color: var(--muted); font-size: 17px; }
.case .result { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }

/* вопросы */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 14px 0 0; }

/* подвал */
footer { background: var(--ink); color: #cfc8c1; padding: 56px 0 40px; font-size: 15px; }
footer a { color: #fff; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot h4 { color: #fff; margin: 0 0 12px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.foot p { margin: 0 0 6px; }
.copy { margin-top: 40px; padding-top: 24px; border-top: 1px solid #2a2622; color: #8a837c; }

/* юридические страницы */
.doc { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); }
.doc h2 { font-size: 24px; margin: 40px 0 14px; }
.doc p, .doc li { color: #2b2723; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .updated { color: var(--muted); }
.doc .box { background: var(--linen); padding: 24px 28px; border-left: 3px solid var(--accent); margin: 24px 0; }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .grid-2, .cards, .formats, .cases, .stats, .foot { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; }
  .hero img { order: -1; aspect-ratio: 1/1; object-position: top; }
  .stats { grid-template-columns: 1fr 1fr; }
  .phone { display: none; }
  .wrap { padding: 0 16px; }
}
