/* ===== article-head ===== */
header.fixed-header {
	position: relative;
}
.article-head {
  padding-bottom: 48px;
}

.article-head .breadcrumbs__item--current {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-head__title {
  max-width: 980px;
  font-size: 42px;
  line-height: 1.15;
}

.article-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.article-meta__tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.article-meta__tag:hover {
  background: rgba(255, 255, 255, 0.3);
}

.article-head__lead {
  position: relative;
  max-width: 820px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

/* ===== layout ===== */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 56px;
}

.article {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.article-aside {
  grid-column: 2;
  grid-row: 1;
}

.article-aside__sticky {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== toc ===== */

.toc {
  padding: 22px 22px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
}

.toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  color: #14213d;
  cursor: default;
  text-align: left;
}

.toc__title {
  font-size: 18px;
  font-weight: 700;
}

.toc__icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.toc__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  max-height: calc(100vh - 320px);
  overflow-y: auto;
}

.toc__list li {
  counter-increment: toc;
}

.toc__link {
  position: relative;
  display: block;
  padding: 8px 0 8px 30px;
  font-size: 15px;
  line-height: 1.4;
  color: #45566f;
  transition: color 0.2s ease;
}

.toc__link::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.toc__link:hover,
.toc__link--active {
  color: var(--accent);
}

.toc__link--active {
  font-weight: 600;
}

.toc__link:hover::before,
.toc__link--active::before {
  color: var(--accent);
}

/* ===== promo-card ===== */

.promo-card {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 55%, var(--accent-light) 100%);
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}

.promo-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -80px;
  right: -60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.promo-card__title {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.promo-card__text {
  position: relative;
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.promo-card__btn {
  position: relative;
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -8px rgba(20, 33, 61, 0.35);
}

/* ===== article-content (типографика уникального контента) ===== */

.article-content {
  font-size: 17px;
  line-height: 1.7;
  color: #1e2a3a;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content h2 {
  margin: 48px 0 18px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #14213d;
  scroll-margin-top: 24px;
}

.article-content h3 {
  margin: 32px 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: #14213d;
  scroll-margin-top: 24px;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: var(--accent-dark);
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding: 0;
}

.article-content ul > li,
.article-content ol > li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 30px;
  list-style: none;
}

.article-content ul > li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.article-content ol {
  list-style: none;
  counter-reset: list;
}

.article-content ol > li {
  counter-increment: list;
}

.article-content ol > li::before {
  content: counter(list);
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fdece0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.article-content figure {
  margin: 28px 0;
}

.article-content figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.article-content .article-cover {
  margin: 0 0 32px;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--accent);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
  color: #14213d;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* таблицы */

.table-wrap {
  margin: 24px 0 28px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.article-content table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.article-content th,
.article-content td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

.article-content th {
  background: #fff4ec;
  font-weight: 700;
  color: #14213d;
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-content tbody tr:nth-child(even) td {
  background: #fafbfc;
}

/* врезка */

.callout {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff4ec;
  border: 1px solid #ffd9bf;
}

.callout__title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* FAQ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 24px;
}

.faq__item {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item[open] {
  border-color: #ffd9bf;
  box-shadow: 0 10px 24px -14px rgba(241, 104, 33, 0.45);
}

.faq__question {
  position: relative;
  padding: 18px 60px 18px 22px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #14213d;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: #fdece0;
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 22px 18px;
  font-size: 16px;
  color: #45566f;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* ===== lead-form ===== */

.lead-form {
  padding: 0 0 56px;
}

.lead-form__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 48px;
  padding: 56px;
  border-radius: 28px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--accent) 0%, var(--accent) 50%, var(--accent-light) 100%);
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

/* декоративные круги */
.lead-form__inner::before,
.lead-form__inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.lead-form__inner::before {
  width: 420px;
  height: 420px;
  bottom: -230px;
  left: -140px;
  background: rgba(255, 255, 255, 0.1);
}

.lead-form__inner::after {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -90px;
  border: 40px solid rgba(255, 255, 255, 0.1);
}

.lead-form__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead-form__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.lead-form__title {
  margin: 18px 0 0;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead-form__desc {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

/* шаги */

.lead-steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.lead-steps__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lead-steps__item:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
}

.lead-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.lead-steps__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

/* карточка с формой */

.lead-card {
  position: relative;
  padding: 32px;
  border-radius: 22px;
  background: #ffffff;
  color: #14213d;
  box-shadow: 0 30px 60px -24px rgba(20, 33, 61, 0.45);
}

.lead-card__head {
  margin-bottom: 4px;
  text-align: center;
}

.lead-card__title {
  font-size: 22px;
  font-weight: 800;
  color: #14213d;
}

.lead-card__note {
  margin: 4px 0 0;
  font-size: 14px;
  color: #64748b;
}

.lead-form__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field--full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: #45566f;
}

.field__req {
  color: var(--accent);
}

.field__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 15px;
  color: #14213d;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field__input::placeholder {
  color: #94a3b8;
}

.field__input:hover {
  border-color: #cbd5e1;
}

.field__input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.15);
}

.field__input--error {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  cursor: pointer;
}

.consent__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.consent__box {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.consent:hover .consent__box {
  border-color: var(--accent);
}

.consent__input:checked + .consent__box {
  background: var(--accent);
  border-color: var(--accent);
}

.consent__input:checked + .consent__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent__input:focus-visible + .consent__box {
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.2);
}

.consent--error .consent__box {
  border-color: #dc2626;
}

.consent__text a {
  color: #45566f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent__text a:hover {
  color: var(--accent);
}

.lead-form__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-form__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 17px 28px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 14px 26px -12px rgba(241, 104, 33, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lead-form__btn svg {
  transition: transform 0.2s ease;
}

.lead-form__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -12px rgba(241, 104, 33, 0.8);
}

.lead-form__btn:hover svg {
  transform: translateX(4px);
}

.lead-form__error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef2f2;
  font-size: 14px;
  font-weight: 600;
  color: #b91c1c;
}

.lead-form__success {
  padding: 24px 0;
  text-align: center;
}

.lead-form__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fdece0;
  color: var(--accent);
}

/* ===== related ===== */

.related {
  padding: 0 0 64px;
}

.related__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.related__title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #14213d;
}

.related__all {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.related__all:hover {
  color: var(--accent-dark);
}

/* ===== adaptive ===== */

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 32px;
  }

  .article-aside {
    grid-column: 1;
    grid-row: 1;
  }

  .article {
    grid-row: 2;
  }

  .article-aside__sticky {
    position: static;
  }

  .promo-card {
    display: none;
  }

  .toc {
    padding: 16px 18px;
  }

  .toc__toggle {
    cursor: pointer;
  }

  .toc__icon {
    display: flex;
  }

  .toc--open .toc__icon {
    transform: rotate(180deg);
  }

  .toc__list {
    display: none;
    max-height: none;
  }

  .toc--open .toc__list {
    display: block;
  }

  .article-head__title {
    font-size: 34px;
  }

  .lead-form__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px;
  }

  .lead-form__title {
    font-size: 38px;
  }

  .related .blog-card:nth-child(3) {
    display: none;
  }
}

@media (max-width: 640px) {
  .article-head {
    padding-bottom: 32px;
  }

  .article-head__title {
    font-size: 26px;
  }

  .article-head__lead {
    font-size: 16px;
  }

  .article-content {
    font-size: 16px;
  }

  .article-content h2 {
    margin-top: 36px;
    font-size: 24px;
  }

  .article-content h3 {
    font-size: 19px;
  }

  .article-content blockquote {
    font-size: 17px;
    padding-left: 18px;
  }

  .faq__question {
    padding: 16px 54px 16px 18px;
    font-size: 16px;
  }

  .faq__answer {
    padding: 0 18px 16px;
  }


  .lead-form__inner {
    gap: 24px;
    padding: 28px 16px 16px;
    border-radius: 22px;
  }

  .lead-form__text {
    padding: 0 4px;
  }

  .lead-form__title {
    font-size: 30px;
  }

  .lead-form__desc {
    font-size: 15px;
  }

  .lead-steps__text {
    font-size: 15px;
  }

  .lead-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .lead-form__form {
    grid-template-columns: 1fr;
  }

  .related__title {
    font-size: 26px;
  }

  .related .blog-card:nth-child(3) {
    display: list-item;
  }
}
