/* West&East
   Светлая и тёмная темы, системные шрифты без внешних запросов.
   West — стальной синий, East — античное золото, плиты — глубокий тёмно-синий. */

:root {
  --bg: #F2F0EB;
  --card: #FFFFFF;
  --card-2: #F7F5F0;
  --text: #111214;
  --text-2: #3A3936;
  --muted: #69655F;
  --rule: #E4E0D8;

  --slab: #0F141C;
  --slab-2: #19202B;
  --slab-text: #EEEAE2;
  --slab-muted: #A3A6AD;
  --slab-rule: #27303D;

  --west: #2D6A99;
  --east: #B98A35;
  --east-text: #8A6420;
  --gold: #C9A256;
  --gold-hover: #D9B66E;
  --west-on-slab: #79B0DC;
  --east-on-slab: #D8B062;

  --btn: #111214;
  --btn-text: #F7F5F0;
  --btn-hover: #2A2C30;

  --field: #FFFFFF;
  --field-border: #DAD5CB;
  --ok: #2F6B3A;
  --error: #A8402B;

  --r-xl: 36px;
  --r: 24px;
  --r-sm: 14px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 3.5vw, 40px);
  --header-h: 76px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0B0D;
    --card: #15171B;
    --card-2: #1B1E23;
    --text: #ECE9E2;
    --text-2: #C9C5BD;
    --muted: #8F8C86;
    --rule: #262A30;
    --slab: #111723;
    --slab-2: #1A2232;
    --slab-rule: #283246;
    --west: #79B0DC;
    --east: #D8B062;
    --east-text: #D8B062;
    --btn: #ECE9E2;
    --btn-text: #0A0B0D;
    --btn-hover: #FFFFFF;
    --field: #0F1114;
    --field-border: #2C3037;
    --ok: #7FC38E;
    --error: #E8907C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0B0D;
  --card: #15171B;
  --card-2: #1B1E23;
  --text: #ECE9E2;
  --text-2: #C9C5BD;
  --muted: #8F8C86;
  --rule: #262A30;
  --slab: #111723;
  --slab-2: #1A2232;
  --slab-rule: #283246;
  --west: #79B0DC;
  --east: #D8B062;
  --east-text: #D8B062;
  --btn: #ECE9E2;
  --btn-text: #0A0B0D;
  --btn-hover: #FFFFFF;
  --field: #0F1114;
  --field-border: #2C3037;
  --ok: #7FC38E;
  --error: #E8907C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.25; }
h1 b, h2 b, h3 b { font-weight: 600; }
.thin { font-weight: 400; }
::selection { background: var(--gold); color: #111214; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 10px 14px; background: var(--btn); color: var(--btn-text); text-decoration: none; border-radius: 8px; }
.skip:focus { top: 12px; }

/* знак */
.mk-w { stroke: var(--west); }
.mk-e { stroke: var(--east); }
.slab .mk-w { stroke: var(--west-on-slab); }
.slab .mk-e { stroke: var(--east-on-slab); }

/* ---------- элементы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px;
  border: 1px solid var(--btn); border-radius: 999px;
  background: var(--btn); color: var(--btn-text);
  font: inherit; font-size: .98rem; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #111214; }
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn--ghost { background: transparent; border-color: rgba(238, 234, 226, .28); color: var(--slab-text); }
.btn--ghost:hover { background: rgba(238, 234, 226, .08); border-color: rgba(238, 234, 226, .5); }
.btn--line { background: transparent; color: var(--text); border-color: var(--rule); }
.btn--line:hover { background: var(--card); border-color: var(--muted); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; font-weight: 400; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--card); color: var(--text-2);
  font: inherit; font-size: .84rem; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-text); }
.slab .chip { background: rgba(238, 234, 226, .06); border-color: rgba(238, 234, 226, .16); color: var(--slab-text); cursor: default; }

.eyebrow { color: var(--muted); font-size: .9rem; font-weight: 500; }
.eyebrow i { margin: 0 6px; font-style: normal; color: var(--gold); }
.slab .eyebrow { color: var(--slab-muted); }

.icon-tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-sm); background: rgba(185, 138, 53, .12); color: var(--east-text); }
.icon-tile--west { background: rgba(45, 106, 153, .12); color: var(--west); }
.icon-tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; font-family: var(--font-display); font-size: 1.14rem; font-weight: 600; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav > a { color: var(--text-2); font-size: .94rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav > a:hover { color: var(--text); }
.nav__extra { display: none; }
.header__tools { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; }
.langs a { padding: 6px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--text); }
.langs a[aria-current="true"] { background: var(--btn); color: var(--btn-text); }

.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s; }
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.burger { display: none; position: relative; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .25s, top .25s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- плиты ---------- */
.slab { background: var(--slab); color: var(--slab-text); border-radius: var(--r-xl); }
:root[data-theme="dark"] .slab { box-shadow: inset 0 0 0 1px var(--slab-rule); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .slab { box-shadow: inset 0 0 0 1px var(--slab-rule); } }
.slab-wrap { padding: 0 12px; }
.slab-wrap + .slab-wrap { margin-top: 12px; }

/* первый экран */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: center; }
.hero .chips { margin-bottom: 28px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.03; letter-spacing: -.04em; text-wrap: balance; }
.hero h1 .thin { color: rgba(238, 234, 226, .82); }
.hero__lead { max-width: 38em; margin-top: 28px; color: var(--slab-muted); font-size: clamp(1.04rem, 1.4vw, 1.18rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 38px; }
.hero__mark { justify-self: end; width: min(100%, 340px); opacity: .95; }
.hero__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 72px); }
.hero__notes li { padding: 18px 20px; border: 1px solid var(--slab-rule); border-radius: var(--r-sm); color: var(--slab-muted); font-size: .9rem; line-height: 1.45; }
.hero__notes b { display: block; margin-bottom: 4px; color: var(--slab-text); font-weight: 600; }

/* ---------- секции ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 20px clamp(32px, 6vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.head p { color: var(--text-2); max-width: 36em; }
.slab .head p { color: var(--slab-muted); }
.more { margin-top: 36px; }

/* бенто */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3vw, 36px); background: var(--card); border-radius: var(--r); }
.card--wide { grid-column: span 2; }
.card h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.card h3 b { font-weight: 600; }
.card p { color: var(--text-2); }
.card__tag { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--east-text); }
.card__tag--west { color: var(--west); }
.card__mark { position: absolute; right: 28px; bottom: 26px; width: 56px; opacity: .9; }

/* услуги — карточки на плите */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.svc {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px;
  padding: clamp(24px, 3vw, 34px); background: var(--card); color: var(--text); border-radius: var(--r);
  transition: transform .25s;
}
:root[data-theme="dark"] .svc { background: var(--slab-2); color: var(--slab-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .svc { background: var(--slab-2); color: var(--slab-text); } }
.svc:hover { transform: translateY(-3px); }
.svc .icon-tile { grid-row: span 3; }
.svc h3 a { text-decoration: none; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.svc p { color: var(--text-2); font-size: .97rem; }
.svc small { color: var(--muted); font-size: .88rem; line-height: 1.5; }
:root[data-theme="dark"] .svc p { color: var(--slab-muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .svc p { color: var(--slab-muted); } }
.svc__go { position: absolute; right: 24px; top: 24px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card-2); color: var(--text); font-size: 1rem; transition: background-color .2s, color .2s; }
:root[data-theme="dark"] .svc__go { background: rgba(238, 234, 226, .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .svc__go { background: rgba(238, 234, 226, .08); } }
.svc:hover .svc__go { background: var(--gold); color: #111214; }

/* процесс */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { padding: 28px; background: var(--card); border-radius: var(--r); }
.step__n { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 40px; border: 1px solid var(--rule); border-radius: 50%; color: var(--east-text); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: .96rem; }

/* отзывы */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review { display: flex; flex-direction: column; margin: 0; padding: clamp(28px, 3.4vw, 40px); background: var(--card); border-radius: var(--r); }
.review::before { content: "“"; height: 44px; margin-bottom: 8px; color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 4.2rem; line-height: 1; }
.review blockquote { flex: 1; margin: 0; }
.review blockquote p { font-size: 1.08rem; line-height: 1.6; }
.review__note { margin-top: 12px; color: var(--muted); font-size: .8rem; }
.review figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .92rem; }
.review figcaption span { color: var(--muted); }

/* о бренде */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.about .card { gap: 18px; }
.about h2 { margin-bottom: 6px; }
.about__lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--text) !important; }
.about__founder { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted) !important; font-size: .95rem; }
.ticks { display: grid; gap: 0; }
.ticks li { position: relative; padding: 18px 0 18px 34px; border-bottom: 1px solid var(--rule); color: var(--text-2); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 14px; height: 7px; border-left: 1.6px solid var(--east); border-bottom: 1.6px solid var(--east); transform: rotate(-45deg); }

/* новости */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--card); border-radius: var(--r); transition: transform .25s; }
.post-card:hover { transform: translateY(-3px); }
.post-card h3 { font-size: 1.16rem; line-height: 1.35; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.post-card p { color: var(--text-2); font-size: .95rem; }
.post-card[hidden] { display: none; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: .82rem; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(185, 138, 53, .14); color: var(--east-text); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tag--guide { background: rgba(45, 106, 153, .12); color: var(--west); }
.tag--tools { background: rgba(45, 106, 153, .12); color: var(--west); }
.slab .tag { background: rgba(216, 176, 98, .16); color: var(--east-on-slab); }
.slab .tag--guide, .slab .tag--tools { background: rgba(121, 176, 220, .16); color: var(--west-on-slab); }
.filters { margin-bottom: 28px; }

/* вопросы */
.faq { padding: 8px clamp(22px, 3vw, 40px); background: var(--card); border-radius: var(--r); }
.faq details + details { border-top: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.18rem); font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--card-2); color: var(--east-text); font-size: 1.3rem; font-weight: 400; line-height: 1; transition: transform .2s, background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); color: #111214; }
.faq details p { max-width: 48em; padding: 0 0 26px; color: var(--text-2); }

/* контакты (плита) */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding: clamp(40px, 6vw, 80px) 0; }
.contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.contact__lead { margin-top: 20px; color: var(--slab-muted); }
.direct { display: grid; gap: 10px; margin-top: 36px; }
.direct a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--slab-rule); border-radius: var(--r-sm); text-decoration: none; transition: border-color .2s, background-color .2s; }
.direct a:hover { border-color: rgba(216, 176, 98, .6); background: rgba(238, 234, 226, .04); }
.direct a span:first-child { color: var(--slab-muted); font-size: .88rem; }
.direct a span:last-child { font-weight: 600; overflow-wrap: anywhere; text-align: right; }

.form { display: grid; gap: 20px; padding: clamp(24px, 3.4vw, 40px); background: var(--card); color: var(--text); border-radius: var(--r); }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text-2); }
.field input, .field textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--field-border); border-radius: 12px; background: var(--field); color: var(--text); font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 86, .2); }
.is-invalid input, .is-invalid textarea { border-color: var(--error); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--text-2); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.consent a { text-underline-offset: 3px; }
.consent.is-invalid { color: var(--error); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form__note { color: var(--muted); font-size: .85rem; }
.form__status { font-size: .95rem; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--error); }

/* ---------- внутренние страницы ---------- */
.page-hero { padding: clamp(28px, 4vw, 44px) 0 clamp(44px, 6vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: clamp(28px, 4vw, 48px); color: var(--slab-muted); font-size: .85rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--slab-text); }
.crumbs [aria-current] { color: var(--slab-text); }
.page-hero h1 { max-width: 18em; font-size: clamp(2.1rem, 4.8vw, 3.8rem); line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
.page-hero .post-meta { margin-bottom: 22px; color: var(--slab-muted); }
.page-lead { max-width: 40em; margin-top: 24px; color: var(--slab-muted); font-size: clamp(1.06rem, 1.5vw, 1.22rem); }
.page-hero .hero__actions { margin-top: 32px; }

.page-body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px; align-items: start; padding-top: 16px; padding-bottom: clamp(72px, 9vw, 112px); }
.prose { padding: clamp(28px, 4vw, 56px); background: var(--card); border-radius: var(--r); color: var(--text-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 48px; color: var(--text); font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -.025em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; color: var(--text); }
.prose ul, .prose ol { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1.5px; background: var(--east); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: .05em; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--card-2); color: var(--east-text); font-size: .8rem; font-weight: 600; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration-color: var(--east); text-underline-offset: 3px; }
.prose details { border-bottom: 1px solid var(--rule); }
.prose details:first-of-type { border-top: 1px solid var(--rule); }
.prose summary { padding: 18px 0; color: var(--text); font-weight: 600; cursor: pointer; }
.prose details p { padding-bottom: 18px; }
.prose .note { padding: 18px 22px; background: var(--card-2); border-radius: var(--r-sm); font-size: .95rem; }

.aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.aside__box { display: grid; gap: 14px; padding: 28px; background: var(--card); border-radius: var(--r); }
.aside__box h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.aside__box p { color: var(--text-2); font-size: .95rem; }
.aside__box .btn { width: 100%; }
.aside__box--slab { background: var(--slab); color: var(--slab-text); }
.aside__box--slab p { color: var(--slab-muted); }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related__item { display: grid; gap: 8px; align-content: start; padding: 24px; background: var(--card); border-radius: var(--r); text-decoration: none; transition: transform .25s; }
.related__item:hover { transform: translateY(-3px); }
.related__item span { font-weight: 600; }
.related__item small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.related-title { margin-bottom: 28px; font-size: clamp(1.5rem, 2.6vw, 2rem); }

.sources { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); }
.sources h2 { margin: 0 0 12px; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.sources ul { display: grid; gap: 8px; }
.sources a { color: var(--text-2); overflow-wrap: anywhere; }

/* ---------- подвал ---------- */
.footer { padding: clamp(56px, 7vw, 88px) 0 48px; font-size: .92rem; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 36px 48px; align-items: start; }
.footer .logo { margin-bottom: 20px; color: var(--text); }
.footer__legal { display: grid; gap: 4px; }
.footer__title { margin-bottom: 14px; color: var(--text); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer__services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.footer__links { display: grid; gap: 8px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--text); }

/* политика */
.doc { max-width: 820px; margin: 16px auto clamp(72px, 9vw, 112px); padding: clamp(28px, 5vw, 64px); background: var(--card); border-radius: var(--r); }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.doc__meta { color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 12px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc ul { display: grid; gap: 8px; margin: 12px 0; padding-left: 22px; list-style: disc; }

/* 404 */
.notfound { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 48px 16px; text-align: center; }
.notfound__mark { width: 72px; height: 72px; margin: 0 auto 28px; }
.notfound__mark svg { width: 100%; height: 100%; }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.notfound p { color: var(--muted); margin-bottom: 32px; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: center; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .nav > a { font-size: .9rem; }
}

@media (max-width: 1060px) {
  .burger { display: block; }
  .header__tools .langs, .header__tools .btn { display: none; }
  .header__tools { margin-left: auto; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 32px; background: var(--bg); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav > a { padding: 18px 0; border-bottom: 1px solid var(--rule); font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--text); }
  .nav__extra { display: grid; gap: 22px; padding-top: 26px; justify-items: start; }
  .nav__extra .langs { font-size: .9rem; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { display: none; }
  .head { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews, .about, .contact, .page-body { grid-template-columns: 1fr; }
  .post-grid, .related { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; --r-xl: 26px; --r: 20px; }
  .header__inner { gap: 10px; }
  .header__tools { gap: 8px; }
  .logo { font-size: 1.02rem; gap: 10px; }
  .logo svg { width: 26px; height: 26px; }
  .theme-toggle, .burger { width: 38px; height: 38px; }
  .burger span { left: 11px; right: 11px; }
  .burger span:first-child { top: 15px; }
  .burger span:last-child { top: 21px; }
  .burger[aria-expanded="true"] span { top: 18px !important; }
  .slab-wrap { padding: 0 8px; }
  .hero__actions .btn { width: 100%; }
  .hero__notes { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .svc { grid-template-columns: 1fr; }
  .svc .icon-tile { grid-row: auto; margin-bottom: 8px; }
  .steps, .post-grid, .related { grid-template-columns: 1fr; }
  .step__n { margin-bottom: 24px; }
  .direct a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .direct a span:last-child { text-align: left; }
  .form .btn { width: 100%; }
  .footer__grid, .footer__services { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.section--list { padding-top: clamp(28px, 4vw, 48px); }
.more-posts { padding-top: 0; }
:root[data-theme="dark"] .form { box-shadow: inset 0 0 0 1px var(--slab-rule); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form { box-shadow: inset 0 0 0 1px var(--slab-rule); } }

/* ---------- 2026-10-17: метки-ссылки, панель связи на телефоне, форматы и цены, кейсы, фото основателя ---------- */

.slab a.chip { cursor: pointer; }
.slab a.chip:hover { background: rgba(238, 234, 226, .12); border-color: rgba(238, 234, 226, .32); }

/* Нижняя панель связи — только на телефоне */
.mbar { display: none; }
@media (max-width: 640px) {
  .mbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 6px;
    background: color-mix(in srgb, var(--slab) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--slab-rule); border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  }
  .mbar a {
    display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 13px;
    color: var(--slab-text); font-size: .9rem; font-weight: 600; text-decoration: none;
  }
  .mbar a:active { background: rgba(238, 234, 226, .08); }
  .mbar a.mbar__main { background: var(--gold); color: #111214; }
  body { padding-bottom: 76px; }
}

/* Форматы и цены */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.format { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 34px); background: var(--card); border: 2px solid transparent; border-radius: var(--r); }
.format--main { border-color: var(--gold); }
.format__tag { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--east-text); }
.format h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.format__for { color: var(--text-2); }
.format__price { margin-top: 4px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.format__price small { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font); font-size: .85rem; font-weight: 400; }
.format .ticks { margin-top: 4px; }
.format .btn { margin-top: auto; align-self: flex-start; }
.pricing-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pricing-notes .card ul { margin: 0; padding-left: 1.2em; color: var(--text-2); display: grid; gap: 6px; }
@media (max-width: 1060px) { .formats, .pricing-notes { grid-template-columns: 1fr; } }

/* Кейсы */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.case { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 32px); background: var(--card); border-radius: var(--r); }
.case__industry { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--east-text); }
.case__metric { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.case__metric small { display: block; margin-top: 6px; font-family: var(--font); font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.case h3 { font-size: 1.15rem; }
.case dl { display: grid; gap: 8px; margin: 4px 0 0; }
.case dt { font-size: .8rem; font-weight: 600; color: var(--muted); }
.case dd { margin: 0; color: var(--text-2); }

/* Фото основателя в блоке «О нас» */
.about__person { display: flex; align-items: center; gap: 16px; }
.about__photo { width: 84px; height: 84px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }

/* Блок «Что получает бизнес» */
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.value-grid .card h3 { font-weight: 600; }
.value__n { font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--east-text); }
.value__more { margin-top: 24px; }
@media (max-width: 1060px) { .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .value-grid { grid-template-columns: 1fr; } }
