@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/montserrat-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/montserrat-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/montserrat-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/montserrat-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/montserrat-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/montserrat-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/montserrat-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/montserrat-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}



:root {
  --pink: #fc6299;
  --pink-deep: #e8457f;

  --pink-ink: #c21f5e;
  --ink: #2e2a2d;
  --ink-soft: #5d575b;
  --muted: #766f73;
  --line: #ebe6e8;
  --paper: #fff;
  --mist: #faf6f7;
  --night: #1c191b;
  --black: #0a0a0a;
  --green-ink: #14804a;

  --accent: var(--pink);
  --header-height: 70px;
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-card: 0 18px 40px -22px rgba(46, 42, 45, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1170px, 100% - 48px);
  margin-inline: auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}



.chip--dealer, .filter--dealer, .post--dealer, .card[data-cluster="dealer"] { --accent: #fc6299; }
.chip--1c, .filter--1c, .post--1c, .card[data-cluster="1c"] { --accent: #ff9a3d; }
.chip--moysklad, .filter--moysklad, .post--moysklad, .card[data-cluster="moysklad"] { --accent: #4f8cff; }
.chip--bitrix, .filter--bitrix, .post--bitrix, .card[data-cluster="bitrix"] { --accent: #1fc8e8; }
.chip--crm, .filter--crm, .post--crm, .card[data-cluster="crm"] { --accent: #8f6bff; }
.chip--ai, .filter--ai, .post--ai, .card[data-cluster="ai"] { --accent: #1fcf7a; }
.chip--geo, .filter--geo, .post--geo, .card[data-cluster="geo"] { --accent: #00b8a9; }

.chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 5px 13px 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, #fff);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}


a.chip {
  position: relative;
}

a.chip::after {
  content: "";
  position: absolute;
  inset: -8px 0;
}

a.chip:hover {
  background: color-mix(in srgb, var(--accent) 24%, #fff);
}



.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pink);
  color: #fafafa;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-height);
}

.site-header__logo {
  display: flex;
  flex: none;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__list,
.nav__sub,
.site-footer__links,
.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__link {
  padding: 10px 8px;
  font-size: 1.06rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

a.nav__link:hover,
.nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 44px;
  margin-left: -6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav__toggle .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s var(--ease);
}

.nav__sub {
  position: absolute;
  top: calc(100% + 16px);
  left: -8px;
  min-width: 250px;
  padding: 8px;
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: 0 24px 50px -18px rgba(46, 42, 45, 0.45);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}


.nav__sub::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 22px;
}

.nav__sub a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
}

.nav__sub a:hover {
  background: var(--mist);
}

.nav__contacts {
  display: none;
}

.site-header__contacts,
.nav__contacts,
.site-footer__icons {
  gap: 14px;
}

.site-header__contacts,
.site-footer__icons {
  display: flex;
}

.icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid currentColor;
  border-radius: 7px;
  transition: background-color 0.2s, color 0.2s;
}


.icon-link::after {
  content: "";
  position: absolute;
  inset: -7px;
}

.icon-link .icon {
  width: 18px;
  height: 18px;
}

.site-header .icon-link:hover {
  background: #fafafa;
  color: var(--pink-deep);
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger .icon {
  width: 30px;
  height: 30px;
}

.burger__close,
.burger[aria-expanded="true"] .burger__open {
  display: none;
}

.burger[aria-expanded="true"] .burger__close {
  display: block;
}

@media (min-width: 1161px) {
  .nav__item--parent:hover > .nav__sub,
  .nav__item--parent:focus-within > .nav__sub,
  .nav__item--parent.is-open > .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__item--parent:hover .nav__toggle .icon,
  .nav__item--parent.is-open .nav__toggle .icon {
    transform: rotate(180deg);
  }
}

@media (max-width: 1160px) {
  .site-header__bar {
    justify-content: space-between;
  }

  .site-header__contacts {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
    padding: 8px 24px 40px;
    overflow-y: auto;
    background: var(--pink);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item {
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .nav__link {
    flex: 1;
    padding: 15px 0;
    font-size: 1.15rem;
    white-space: normal;
  }

  .nav__toggle {
    width: 44px;
    margin: 0 -10px 0 0;
  }

  .nav__toggle .icon {
    width: 16px;
    height: 16px;
  }

  .nav__item.is-open .nav__toggle .icon {
    transform: rotate(180deg);
  }

  .nav__sub {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 0 0 12px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__sub::before {
    display: none;
  }

  .nav__item.is-open > .nav__sub {
    display: block;
  }

  .nav__sub a {
    padding: 10px 0 10px 16px;
  }

  .nav__sub a:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  .nav__contacts {
    display: flex;
  }

  .nav__contacts .icon-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .nav__contacts .icon-link .icon {
    width: 24px;
    height: 24px;
  }

  body.menu-open {
    overflow: hidden;
  }
}



.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.button:hover {
  background: #ff7aa9;
  box-shadow: 0 14px 28px -14px var(--pink-deep);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.button .icon {
  transition: transform 0.2s var(--ease);
}

.button:hover .icon {
  transform: translateX(3px);
}

.button--ghost {
  border: 1.5px solid var(--ink);
  background: none;
}

.button--ghost:hover {
  background: var(--ink);
  box-shadow: none;
  color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--pink-ink);
}

.kicker {
  color: var(--pink-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 28px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}



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

.card {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.card[hidden] {
  display: none;
}

.card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
}

.card__cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--night);
}

.card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__cover img {
  transform: scale(1.05);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 22px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.card__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}



.blog-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(720px 360px at 92% -10%, rgba(252, 98, 153, 0.2), transparent 70%),
    radial-gradient(520px 320px at -6% 110%, rgba(31, 207, 122, 0.13), transparent 70%),
    var(--mist);
}

.blog-hero__title {
  max-width: 20ch;
  margin-top: 18px;
  font-size: clamp(2.1rem, 1rem + 4.6vw, 4.3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.blog-hero__title span {
  color: var(--pink-deep);
}

.blog-hero__text {
  max-width: 62ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

.featured {
  padding: 56px 0 24px;
}

.featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
}

.card--lead {
  grid-row: span 2;
}

.card--lead .card__body {
  gap: 14px;
  padding: 26px 28px 28px;
}

.card--lead .card__title {
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.card--lead .card__text {
  font-size: 1rem;
}

.card--side .card__link {
  flex-direction: row;
}

.card--side .card__cover {
  flex: none;
  width: 42%;
  aspect-ratio: auto;
}

.card--side .card__text {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.catalog {
  padding: 48px 0 96px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.filter span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.filter:hover {
  border-color: var(--accent);
}

.filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.filter.is-active span {
  color: rgba(255, 255, 255, 0.7);
}

.catalog__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.catalog__empty {
  color: var(--muted);
}



.post-hero {
  padding: 25px 0 150px;
  background:
    radial-gradient(760px 380px at 90% -20%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
    var(--mist);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
}


.crumbs a {
  padding: 11px 0;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.post-hero__title {
  max-width: 24ch;
  margin-top: 17px;
  font-size: clamp(1.85rem, 1.1rem + 3.1vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}


.post-cover {
  margin: -110px 0 0;
  border-radius: var(--radius-l);
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 40px 80px -40px rgba(46, 42, 45, 0.6);
}

.post-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  justify-content: space-between;
  gap: 64px;
  padding: 64px 0 96px;
}

.post-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 56px);
  display: flex;
  flex-direction: column;
}

.toc--side {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.toc__title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc__list {
  border-left: 2px solid var(--line);
}

.toc__list a {
  display: block;
  margin-left: -2px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.toc__list a:hover {
  color: var(--ink);
}

.toc__list a.is-active {
  border-left-color: var(--pink);
  color: var(--ink);
  font-weight: 600;
}

.toc--inline {
  display: none;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.toc--inline summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 20px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.toc--inline summary::-webkit-details-marker,
.faq__item summary::-webkit-details-marker {
  display: none;
}

.toc--inline[open] summary .icon {
  transform: rotate(180deg);
}

.toc--inline .toc__list {
  margin: 0 20px 18px;
}

.toc--inline .toc__list a {
  padding-block: 12px;
}

.aside-cta {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: var(--radius-m);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.aside-cta:hover {
  background: var(--pink);
  color: var(--ink);
}



.prose {
  font-size: 1.125rem;
  line-height: 1.72;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.25em;
}

.prose__intro > p:first-child {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.55;
}

.prose h2 {
  margin: 2.5em 0 0.7em;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.95rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.012em;
  scroll-margin-top: calc(var(--header-height) + 24px);
  text-wrap: balance;
}

.prose h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--accent);
}

.prose h3 {
  margin: 1.9em 0 0.5em;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: background-color 0.15s;
}

.prose a:hover {
  background: rgba(252, 98, 153, 0.16);
}

.prose ul,
.prose ol {
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  margin-bottom: 0.55em;
  padding-left: 1.7em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0.3em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.prose ol {
  counter-reset: step;
}

.prose ol > li {
  padding-left: 2.6em;
  counter-increment: step;
}

.prose ol > li::before {
  content: counter(step);
  position: absolute;
  top: 0.12em;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, #fff);
  font-size: 0.85em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  margin: 1.9em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow-x: auto;
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.prose td {
  border-top: 1px solid var(--line);
}

.prose tbody tr:nth-child(even) td {
  background: var(--mist);
}

.prose td:first-child {
  font-weight: 600;
}

.prose pre {
  margin: 1.8em 0;
  padding: 22px 26px;
  border-radius: var(--radius-m);
  background: var(--night);
  color: #f6eef1;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
}

.prose code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
}

.callout {
  margin: 2em 0;
  padding: 22px 26px 24px;
  border: 1px solid #ffd3e2;
  border-radius: 20px;
  background: #fff1f6;
}

.callout p:last-child {
  margin-bottom: 0;
}

.prose .callout__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--pink-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.callout__label .icon {
  width: 22px;
  height: 22px;
}

.callout--check {
  border-color: #c5ecd5;
  background: #effaf3;
}

.prose .callout--check .callout__label {
  color: var(--green-ink);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq__item summary .icon {
  margin-top: 0.2em;
  color: var(--pink-ink);
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary .icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding-bottom: 8px;
  color: var(--ink-soft);
}



.cta {
  padding: 88px 0;
  background:
    radial-gradient(640px 420px at 12% 0%, rgba(252, 98, 153, 0.34), transparent 70%),
    radial-gradient(520px 380px at 100% 100%, rgba(31, 207, 122, 0.16), transparent 70%),
    var(--night);
  color: #fff;
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 64px;
}

.cta h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cta__text p {
  max-width: 54ch;
  margin-bottom: 1.1em;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.65;
}

.cta__more {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin-top: 18px;
}

.cta__more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.cta__more a:hover {
  color: var(--pink);
}

.cta__form {
  padding: 32px;
  border-radius: var(--radius-l);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.cta__promise {
  margin-bottom: 22px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.lead-form {
  position: relative;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--mist);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.field input:focus {
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(252, 98, 153, 0.22);
  outline: none;
}


.lead-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lead-form .button {
  width: 100%;
  margin-top: 6px;
}

.lead-form__status {
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.45;
}

.lead-form__status:empty {
  display: none;
}

.lead-form__status.is-ok {
  color: var(--green-ink);
}

.lead-form__status.is-error {
  color: #b3261e;
}



.related {
  padding: 80px 0 96px;
  background: var(--mist);
}

.related__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.related__head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}



.site-footer {
  padding: 64px 0 28px;
  background: var(--black);
  color: #fafafa;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px;
}

.site-footer__title {
  margin: 22px 0 8px;
  color: var(--pink);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
}

.site-footer__grid > div:last-child .site-footer__title:first-child {
  margin-top: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer p > a,
.site-footer__grid > div > a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
}

.site-footer a:hover {
  color: var(--pink);
}

.site-footer__motto {
  margin-top: 28px;
  font-size: 1.45rem;
  line-height: 1.3;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.site-footer__icons .icon-link {
  color: var(--pink);
}

.site-footer__icons .icon-link:hover {
  background: var(--pink);
  color: var(--black);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 15px;
  margin-top: 20px;
  font-size: 0.97rem;
}

.site-footer__links a {
  display: inline-block;
  padding: 10px 0;
}

.site-footer__copy {
  margin-top: 48px;
  color: rgba(250, 250, 250, 0.85);
  font-size: 0.78rem;
  text-align: center;
}



@media (max-width: 1100px) {
  .post-layout {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
  }

  .post-aside {
    display: none;
  }

  .toc--inline {
    display: block;
  }
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured__grid,
  .cta__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta__grid {
    gap: 40px;
  }

  .card--lead {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .blog-hero {
    padding: 44px 0 40px;
  }

  .featured {
    padding-top: 40px;
  }

  .card--side .card__link {
    flex-direction: column;
  }

  .card--side .card__cover {
    width: auto;
    aspect-ratio: 16 / 9;
  }

  .catalog {
    padding-bottom: 64px;
  }


  .filters {
    flex-wrap: nowrap;
    margin-inline: -20px;
    padding: 2px 20px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: none;
  }

  .post-hero {
    padding: 13px 0 96px;
  }

  .post-hero__title {
    margin-top: 9px;
  }

  .post-cover {
    margin-top: -72px;
    border-radius: var(--radius-m);
    aspect-ratio: 16 / 9;
  }

  .post-layout {
    padding: 36px 0 64px;
  }

  .prose {
    font-size: 1.0625rem;
    line-height: 1.68;
  }

  .prose__intro > p:first-child {
    font-size: 1.16rem;
  }

  .callout {
    padding: 18px 20px 20px;
  }

  .cta {
    padding: 64px 0;
  }

  .cta__form {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .related {
    padding: 56px 0 64px;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__title,
  .site-footer__motto {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
