/* ==========================================================================
   Внутренние страницы в визуале Steep: документация, тарифы, правовые.
   Шрифты и палитра — те же, что на главной.
   ========================================================================== */

@font-face {
  font-family: 'Steep Serif';
  src: url('/fonts/signifier-regular.f38fd10d.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Steep Sans';
  src: url('/fonts/sohne-vf.b7215353.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #fff;
  --s2: #f7f7f8;
  --s3: #f2f2f3;
  --ink: #000;
  --muted: #777b86;
  --faint: #a3a6af;
  --line: #ececec;
  --warm: #fbe1d1;
  --blue: #d3e3fc;
  --serif: 'Steep Serif', Georgia, serif;
  --sans: 'Steep Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }

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

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.in { border-color: var(--line); }
.nav-in { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--warm); color: #5d2a1a;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 15px;
}
.links { display: flex; gap: 6px; justify-content: center; font-size: 15.5px; }
.links a { padding: 8px 14px; border-radius: 9999px; transition: background-color .16s; }
.links a:hover { background: var(--s2); }
.links a.on { background: var(--s3); }
.right { display: flex; gap: 16px; align-items: center; justify-content: flex-end; font-size: 15.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; padding: 13px 24px;
  font-family: var(--sans); font-size: 16px; font-weight: 430; line-height: 1.2;
  background: #121212; color: #fff;
  transition: background-color .16s, transform .16s, box-shadow .16s;
}
.btn:hover { background: #000; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, .16); }
.btn.ghost { background: var(--s3); color: #000; box-shadow: none; }
.btn.ghost:hover { background: #e9e9ea; box-shadow: none; }

/* -------------------------------- герой ---------------------------------- */

.hero { padding: 84px 0 48px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin-top: 16px;
  max-width: 20ch;
}
.lead { font-size: 19px; line-height: 1.5; color: var(--muted); margin-top: 20px; max-width: 62ch; }

/* ------------------------------- контент --------------------------------- */

.main { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 64px; padding: 56px 0 96px; }
.main.no-side { grid-template-columns: minmax(0, 1fr); }
.main.wide article { max-width: none; }

.side { position: sticky; top: 88px; align-self: start; font-size: 15px; }
.side h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin: 0 0 12px; }
.side a { display: block; padding: 7px 0; color: var(--muted); transition: color .16s; }
.side a:hover { color: #000; }
.side .grp { margin-bottom: 26px; }

article { max-width: 78ch; }
article h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 46px 0 14px;
}
article h2:first-child { margin-top: 0; }
article h3 { font-size: 19px; font-weight: 500; margin: 26px 0 8px; letter-spacing: -.01em; }
article p { color: #333338; margin: 0 0 14px; }
article ul, article ol { margin: 0 0 16px; padding-left: 22px; color: #333338; }
article li { margin: 6px 0; }
article a.link { color: #1f5fbf; text-decoration: underline; text-underline-offset: 3px; }

code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px; background: var(--s2); border-radius: 6px; padding: 2px 6px;
}
pre {
  background: #121212; color: #ececec; border-radius: 16px;
  padding: 18px 20px; overflow: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px; line-height: 1.65; margin: 0 0 18px;
}
pre code { background: none; padding: 0; color: inherit; }

.note { background: var(--blue); color: #23415f; border-radius: 16px; padding: 16px 20px; font-size: 15px; margin: 0 0 18px; }
.note.warm { background: var(--warm); color: #7a4632; }

table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding: 0 12px 10px; }
td { padding: 12px; border-top: 1px solid var(--line); }
td.num, th.num { text-align: right; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 26px 0 0; }
.step { border-top: 1px solid var(--line); padding-top: 16px; }
.step b { font-family: var(--serif); font-size: 26px; color: #d5d5d8; display: block; line-height: 1; }
.step span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 22px 0 0; }
.card { background: var(--s2); border-radius: 20px; padding: 28px; }
.card.warm { background: var(--warm); }
.card.blue { background: var(--blue); }
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }
.card .price { font-family: var(--serif); font-size: 40px; line-height: 1; margin: 16px 0 6px; letter-spacing: -.02em; white-space: nowrap; }
.card ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 15px; color: #333338; }
.card li { padding: 6px 0; border-top: 1px solid rgba(0, 0, 0, .06); }

/* ------------------------------- подвал ---------------------------------- */

footer { border-top: 1px solid var(--line); padding: 52px 0 56px; font-size: 15px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.foot h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin: 0 0 12px; }
.foot a { display: block; padding: 5px 0; color: var(--muted); transition: color .16s; }
.foot a:hover { color: #000; }
.copy { margin-top: 36px; display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; font-size: 13px; color: var(--faint); }

/* --------------------------------- мобильный ------------------------------ */

article { min-width: 0; }
pre { max-width: 100%; overflow-x: auto; }
table { display: block; overflow-x: auto; }

@media (max-width: 1000px) {
  .main { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 72px; }
  .side { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 22px; }
  .side .grp { margin-bottom: 16px; }
  article { order: 1; max-width: none; }
  .links { display: none; }
  .cards, .steps, .foot { grid-template-columns: 1fr; }
  .steps { gap: 16px; }
}

@media (max-width: 900px) {
  .nav-in { grid-template-columns: 1fr auto; height: 58px; gap: 12px; }
  .right { gap: 10px; }
  .right a:first-child { display: none; }
  .btn { padding: 11px 18px; font-size: 15px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 40px 0 28px; }
  h1 { font-size: clamp(28px, 8.5vw, 38px); max-width: none; }
  .lead { font-size: 16.5px; margin-top: 14px; }
  article h2 { font-size: clamp(23px, 6.4vw, 30px); margin-top: 34px; }
  .main { padding: 28px 0 56px; gap: 24px; }
  .card { padding: 20px; border-radius: 16px; }
  .card .price { font-size: 32px; }
  footer { padding: 36px 0 40px; }
  .copy { flex-direction: column; gap: 8px; }
  .side { font-size: 14px; }
}

/* ==================== Мобильное меню (бургер) ==================== */

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
  padding: 0; align-items: center; justify-content: center; gap: 4px; flex-direction: column;
}
.burger span { display: block; width: 16px; height: 1.6px; background: #121212; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
body.nav-open .burger span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.navpanel {
  display: none;
  position: fixed; left: 0; right: 0; top: 58px; bottom: 0;
  background: #fff; z-index: 60;
  padding: 22px 20px 40px; overflow-y: auto;
  border-top: 1px solid var(--line);
}
body.nav-open .navpanel { display: block; }
.navpanel a { display: block; padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
.navpanel .np-right { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.navpanel .np-right a { border: 0; padding: 0; text-align: center; }
.navpanel .np-right .btn { display: flex; justify-content: center; border-bottom: 0; }

@media (max-width: 1000px) {
  .burger { display: inline-flex; }
  .nav-in { grid-template-columns: 1fr auto auto; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1001px) {
  .navpanel { display: none !important; }
}