/* ARTICLES */
body.is-notes .change-theme {
  position: static;
}

.notes-top__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem .45rem;
  margin-left: auto;
  flex-shrink: 0;
}

.notes-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .5rem;
  color: var(--title-color);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  transition: color .2s, background .2s;
}

.notes-close:hover {
  color: var(--first-color);
  background: hsla(var(--hue), var(--sat), var(--lig), .1);
}

.notes-close:focus {
  outline: none;
}

.notes-close:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}

.section-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: .35rem;
  background: transparent;
  color: var(--text-color-light);
  cursor: pointer;
  opacity: 0;
  flex: 0 0 auto;
  transition: opacity .15s, color .15s, background .15s;
}

.section-anchor i {
  font-size: .95rem;
  line-height: 1;
}

.section-heading__title:hover .section-anchor,
.section-heading__title:focus-within .section-anchor,
.section-anchor:focus-visible {
  opacity: 1;
  color: var(--first-color);
}

.section-anchor:hover {
  background: hsla(var(--hue), var(--sat), var(--lig), .1);
}

.section-anchor.is-copied {
  opacity: 1;
  color: hsl(145, 55%, 38%);
}

@media (prefers-reduced-motion: reduce) {
  .section-anchor {
    transition: none;
  }
}

@media (hover: none) {
  .section-anchor {
    opacity: .5;
  }
}

/* Inline file button (soft compact, sits in prose) */
a.note-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .26rem;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 1.55rem;
  padding: .12rem .42rem;
  margin: .2rem .12rem;
  border-radius: .45rem;
  border: 1px solid hsla(var(--hue), 12%, 50%, .14);
  background: hsla(var(--hue), 12%, 50%, .045);
  color: var(--title-color);
  font-family: var(--body-font);
  font-size: var(--smaller-font-size);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  vertical-align: middle;
  /* allow wrap on narrow screens; badge stays single-line */
  white-space: normal;
  transition: border-color .2s, color .2s, background-color .2s;
}

a.note-file-btn > i {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  color: hsl(0, 62%, 48%);
}

html.dark-theme a.note-file-btn > i {
  color: hsl(0, 72%, 68%);
}

a.note-file-btn .note-file-btn__title {
  min-width: 0;
  max-width: 100%;
  font-weight: 600;
  overflow-wrap: anywhere;
}

a.note-file-btn .note-file-btn__badge {
  flex-shrink: 0;
  padding: .08em .32em;
  border-radius: 999px;
  font-size: .7em;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--text-color-light);
  background: hsla(var(--hue), 12%, 50%, .1);
  border: 1px solid hsla(var(--hue), 12%, 50%, .08);
}

a.note-file-btn:hover,
a.note-file-btn:focus-visible {
  border-color: hsla(var(--hue), var(--sat), var(--lig), .45);
  background: hsla(var(--hue), var(--sat), var(--lig), .08);
  color: var(--first-color);
  outline: none;
}

a.note-file-btn:hover > i,
a.note-file-btn:focus-visible > i {
  color: var(--first-color);
}

a.note-file-btn:focus-visible {
  box-shadow: 0 0 0 2px hsla(var(--hue), var(--sat), var(--lig), .28);
}

a.note-file-btn:hover .note-file-btn__badge,
a.note-file-btn:focus-visible .note-file-btn__badge {
  color: var(--text-color-light);
}

.note__footer {
  padding: .9rem 1.25rem 1rem;
  border-top: 1px solid hsla(var(--hue), 12%, 50%, .12);
  background: hsla(var(--hue), 12%, 50%, .04);
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .65rem;
}

.note-actions__sep {
  width: 1px;
  height: 1.35rem;
  background: hsla(var(--hue), 12%, 50%, .22);
  flex-shrink: 0;
}

.note-share {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}

.note-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  flex-shrink: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 .65rem;
  border-radius: .5rem;
  border: 1px solid hsla(var(--hue), 12%, 50%, .18);
  background: var(--body-color);
  color: var(--title-color);
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}

.note-share__btn i {
  font-size: 1.15rem;
  line-height: 1;
  font-style: normal;
}

.note-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 .65rem;
  border-radius: .5rem;
  border: 1px solid hsla(var(--hue), 12%, 50%, .18);
  background: var(--body-color);
  color: var(--title-color);
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}

.note-like i {
  font-size: 1.15rem;
  line-height: 1;
}

.note-like.is-liked {
  color: hsl(0, 72%, 48%);
  border-color: hsla(0, 70%, 50%, .4);
  background: hsla(0, 70%, 50%, .08);
}

@media (hover: hover) and (pointer: fine) {
  .note-like:hover {
    border-color: hsla(0, 70%, 50%, .45);
    color: hsl(0, 72%, 48%);
  }

  .note-like.is-liked:hover {
    color: hsl(0, 72%, 42%);
  }

  .note-share__btn:hover {
    border-color: hsla(var(--hue), var(--sat), var(--lig), .45);
    color: var(--first-color);
  }
}

@media (prefers-reduced-motion: reduce) {
  .note-like,
  .note-share__btn {
    transition: border-color .2s, color .2s, background .2s;
  }

}

@media screen and (max-width: 575px) {
  .note__footer {
    padding: .85rem 1rem .95rem;
  }

  .note-actions {
    gap: .4rem .45rem;
  }

  .note-share {
    gap: .3rem;
  }

  .note-like,
  .note-share__btn {
    padding: 0 .5rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .note-share__btn[data-share-tg] span,
  .note-share__btn[data-share-vk] span {
    display: none;
  }
}


/* ARTICLE GUIDE */

.guide-article-page {
  --article-accent-text: hsl(var(--hue), var(--sat), 44%);
  --guide-line: hsla(var(--hue), 12%, 50%, .14);
  --guide-soft: hsla(var(--hue), 12%, 50%, .055);
  --guide-success: hsl(155, 48%, 38%);
  --guide-warning: hsl(34, 88%, 44%);
  --guide-danger: hsl(0, 68%, 48%);
}

.reading-progress {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: 3px;
  background: transparent;
}

.reading-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--first-color);
  box-shadow: 0 0 12px hsla(var(--hue), var(--sat), var(--lig), .3);
  transition: width .08s linear;
}

.guide-page {
  padding-top: 1.2rem;
}

.guide-topbar {
  display: block;
}

.guide-header .notes-top__actions,
.guide-header .change-theme {
  position: static;
}

.guide-header .breadcrumbs {
  flex-wrap: nowrap;
}

.guide-header .breadcrumbs__current {
  max-width: clamp(8rem, 28vw, 18rem);
}

.guide-header .reading-progress {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 2px;
}

.guide-header .reading-progress__bar {
  box-shadow: none;
}

.guide-toc__nav a:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 178px minmax(0, 760px);
  gap: 1.65rem;
  justify-content: center;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: var(--site-header-anchor-offset);
}

.guide-toc__eyebrow {
  display: block;
  margin-bottom: .6rem;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  font-weight: 600;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.guide-toc__nav {
  display: grid;
  gap: .12rem;
}

.guide-toc__nav a {
  position: relative;
  display: block;
  padding: .33rem .2rem .33rem .72rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.35;
  transition: color .18s;
}

.guide-toc__nav a::before {
  position: absolute;
  top: .46rem;
  left: 0;
  width: 3px;
  height: 1rem;
  border-radius: 2px;
  background: var(--first-color);
  opacity: 0;
  content: "";
}

.guide-toc__nav a:hover,
.guide-toc__nav a.is-active {
  color: var(--first-color);
}

.guide-toc__nav a.is-active {
  font-weight: 600;
}

.guide-toc__nav a.is-active::before {
  opacity: 1;
}

@media screen and (min-width: 992px) {
  .guide-toc {
    padding: .85rem .7rem;
    border: 1px solid var(--guide-line);
    border-radius: .85rem;
    background: var(--container-color);
    box-shadow: 0 12px 36px hsla(var(--hue), 28%, 18%, .055);
  }

  .guide-toc__eyebrow {
    margin-inline: .25rem;
  }

  .guide-toc__nav a {
    padding: .38rem .4rem .38rem .82rem;
    border-radius: .4rem;
  }

  .guide-toc__nav a::before {
    left: .28rem;
  }
}

.guide-article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 1rem;
  background: var(--container-color);
}

.guide-hero {
  position: relative;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  overflow: hidden;
  border-bottom: 1px solid var(--guide-line);
  background:
    radial-gradient(circle at 88% 12%, hsla(var(--hue), var(--sat), var(--lig), .16), transparent 31%),
    linear-gradient(145deg, hsla(var(--hue), var(--sat), var(--lig), .1), transparent 62%);
}

.guide-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .42rem .65rem;
  margin-bottom: .8rem;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.guide-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: .18rem .52rem;
  border-radius: 999px;
  font-weight: 600;
}

.guide-chip--accent {
  border: 1px solid hsla(var(--hue), var(--sat), var(--lig), .2);
  background: hsla(var(--hue), var(--sat), var(--lig), .1);
  color: var(--first-color);
}

.guide-hero h1 {
  max-width: 650px;
  margin: 0 0 .7rem;
  color: var(--title-color);
  font-size: clamp(1.8rem, 5vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -.028em;
}

.guide-hero__lead {
  max-width: 610px;
  margin: 0;
  color: var(--text-color);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.58;
}

.guide-hero__updated {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.guide-hero__updated strong {
  color: var(--title-color);
  font-weight: 600;
}

.guide-hero__updated time {
  color: var(--title-color);
  font-weight: 600;
}

.mobile-toc {
  display: none;
}

.guide-body {
  padding: clamp(1.1rem, 4vw, 2rem);
}

.section-heading__kicker {
  display: block;
  margin-bottom: .28rem;
  color: var(--article-accent-text);
  font-size: var(--smaller-font-size);
  font-weight: 600;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.guide-prose p,
.guide-prose ul,
.guide-prose ol {
  margin: 0 0 .9rem;
  color: var(--text-color);
  font-size: var(--normal-font-size);
  line-height: 1.68;
}

.guide-prose ul,
.guide-prose ol {
  padding-left: 1.25rem;
}

.guide-prose ul {
  list-style: disc;
}

.guide-prose ol {
  list-style: decimal;
}

.guide-prose li + li {
  margin-top: .36rem;
}

.guide-prose strong,
.guide-step-card strong {
  color: var(--title-color);
}

.guide-prose a {
  color: var(--first-color);
}

.guide-body a:not(.note-file-btn):not(.report-link) {
  position: relative;
  color: var(--first-color);
  font-weight: 500;
  text-decoration: none;
}

.guide-body a:not(.note-file-btn):not(.report-link)::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease-in-out;
}

.guide-body a:not(.note-file-btn):not(.report-link):hover::after,
.guide-body a:not(.note-file-btn):not(.report-link):focus-visible::after {
  transform: scaleX(1);
}

.guide-section {
  position: relative;
  margin-top: 2.6rem;
  scroll-margin-top: var(--site-header-anchor-offset);
}

.guide-hero {
  scroll-margin-top: var(--site-header-anchor-offset);
}

.guide-body > .guide-section:first-child {
  margin-top: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  margin-bottom: 1rem;
}

.section-heading__index {
  padding-top: 1.25rem;
  color: var(--first-color);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.22;
}

.section-heading__title {
  display: flex;
  gap: .42rem;
  align-items: center;
}

.section-heading__title .section-anchor {
  transform: translateY(3px);
}

.section-heading h2 {
  min-width: 0;
  margin: 0;
  color: var(--title-color);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  line-height: 1.22;
}

.guide-copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guide-media {
  margin: 1.1rem 0 0;
}

.guide-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--guide-line);
  border-radius: .72rem;
  background: var(--guide-soft);
}

.guide-media__placeholder {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  min-height: 9rem;
  padding: 1.1rem;
  border: 1px dashed hsla(var(--hue), var(--sat), var(--lig), .34);
  border-radius: .72rem;
  background:
    linear-gradient(145deg, hsla(var(--hue), var(--sat), var(--lig), .075), transparent 62%),
    var(--guide-soft);
}

.guide-media__placeholder > i {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .65rem;
  background: hsla(var(--hue), var(--sat), var(--lig), .11);
  color: var(--first-color);
  font-size: 1.35rem;
  line-height: 1;
}

.guide-media__placeholder strong,
.guide-media__placeholder span {
  display: block;
}

.guide-media__placeholder strong {
  color: var(--title-color);
  font-size: var(--small-font-size);
  line-height: 1.4;
}

.guide-media__placeholder span {
  margin-top: .25rem;
  color: var(--text-color);
  font-size: var(--smaller-font-size);
  line-height: 1.5;
}

.guide-media figcaption {
  margin-top: .42rem;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  line-height: 1.45;
  text-align: center;
}

.guide-panel {
  --panel-accent: var(--first-color);
  --panel-border: hsla(var(--hue), var(--sat), var(--lig), .22);
  --panel-bg: hsla(var(--hue), var(--sat), var(--lig), .065);
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  gap: .68rem;
  align-items: start;
  margin-top: .85rem;
  padding: .85rem;
  border: 1px solid var(--panel-border);
  border-radius: .68rem;
  background: var(--panel-bg);
}

.guide-panel__icon {
  display: flex;
  align-self: start;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--panel-accent);
  font-size: 1.18rem;
  line-height: 1;
}

.guide-panel__icon i {
  display: block;
  line-height: 1;
}

.guide-panel__content {
  min-width: 0;
}

.guide-panel p:not(.guide-panel__title),
.guide-panel ul {
  margin: 0;
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.58;
}

.guide-panel__title {
  display: block;
  margin: 0 0 .32rem;
  color: var(--title-color);
  font-size: var(--normal-font-size);
  font-weight: 700;
  line-height: 1.35;
}

.guide-panel p + p,
.guide-panel p + ul,
.guide-panel ul + p {
  margin-top: .45rem;
}

.guide-panel ul {
  padding-left: 1.15rem;
  list-style: disc;
}

.guide-panel li + li {
  margin-top: .3rem;
}

.guide-panel + .guide-prose {
  margin-top: 1.1rem;
}

.guide-panel + .guide-step-card {
  margin-top: 1.1rem;
}

.guide-panel--info {
  --panel-accent: hsl(211, 72%, 48%);
  --panel-border: hsla(211, 72%, 48%, .24);
  --panel-bg: hsla(211, 72%, 48%, .075);
}

.guide-panel--note {
  --panel-accent: hsl(274, 55%, 52%);
  --panel-border: hsla(274, 55%, 52%, .24);
  --panel-bg: hsla(274, 55%, 52%, .075);
}

.guide-panel--success {
  --panel-accent: var(--guide-success);
  --panel-border: hsla(155, 48%, 42%, .24);
  --panel-bg: hsla(155, 48%, 42%, .075);
}

.guide-panel--warning {
  --panel-accent: var(--guide-warning);
  --panel-border: hsla(34, 88%, 44%, .28);
  --panel-bg: hsla(34, 88%, 44%, .085);
}

.guide-panel--danger {
  --panel-accent: var(--guide-danger);
  --panel-border: hsla(0, 68%, 50%, .24);
  --panel-bg: hsla(0, 68%, 50%, .075);
}

.guide-panel--final {
  margin-top: 2.7rem;
  padding: 1.1rem;
}

.fit-card h3,
.guide-step-card h3 {
  margin: 0 0 .4rem;
  color: var(--title-color);
  font-size: var(--normal-font-size);
  line-height: 1.35;
}

.fit-card p {
  margin: 0;
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.58;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .8rem;
}

.fit-card {
  padding: .9rem;
  border: 1px solid var(--guide-line);
  border-radius: .7rem;
  background: var(--guide-soft);
}

.fit-card ul {
  margin: 0;
  padding-left: 1.05rem;
  list-style: disc;
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.55;
}

.fit-card li + li {
  margin-top: .3rem;
}

.fit-card__icon {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-bottom: .55rem;
  border-radius: 50%;
  font-size: .9rem;
}

.fit-card--yes .fit-card__icon {
  background: hsla(155, 48%, 42%, .12);
  color: var(--guide-success);
}

.fit-card--no .fit-card__icon {
  background: hsla(34, 88%, 48%, .12);
  color: var(--guide-warning);
}

.prep-list {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prep-list > li {
  display: grid;
  grid-template-columns: 1.55rem 1fr;
  gap: .68rem;
  padding: .85rem;
  border: 1px solid var(--guide-line);
  border-radius: .68rem;
  background: var(--guide-soft);
}

.prep-list > li > i {
  display: grid;
  align-self: start;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--first-color);
  font-size: 1.18rem;
  line-height: 1;
}

.prep-list strong {
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.prep-list p:not(.guide-panel__title),
.prep-list ul {
  margin: .2rem 0 0;
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.58;
}

.prep-list ul {
  padding-left: 1.15rem;
  list-style: disc;
}

.prep-list ul li + li {
  margin-top: .42rem;
}

.prep-list a:not(.note-file-btn) {
  color: var(--first-color);
}

.prep-list .note-file-btn {
  -webkit-tap-highlight-color: transparent;
}

.guide-article-page .prep-list .note-file-btn__badge {
  font-size: .68rem;
  color: var(--text-color);
}

.prep-list .guide-panel {
  margin: .7rem 0 0;
}

.prep-list .guide-panel__title {
  margin-top: 0;
}

.guide-step-card {
  position: relative;
  display: grid;
  grid-template-columns: 2.15rem 1fr;
  gap: .8rem;
  padding: 0 0 1.4rem;
  scroll-margin-top: 1rem;
}

.guide-step-card::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 1.075rem;
  width: 1px;
  background: hsla(var(--hue), var(--sat), var(--lig), .42);
  content: "";
}

.guide-step-card:first-of-type::before {
  top: 1.075rem;
}

.guide-step-card:last-of-type::before {
  bottom: calc(100% - 1.075rem);
}

.guide-step-card__number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid hsla(var(--hue), var(--sat), var(--lig), .22);
  border-radius: 50%;
  background: var(--container-color);
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: 700;
}

.guide-step-card__content {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--guide-line);
  border-radius: .78rem;
  background: var(--guide-soft);
}

.guide-step-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem .7rem;
  margin-bottom: .38rem;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.guide-step-card__meta span:first-child {
  color: var(--first-color);
  font-weight: 600;
}

.guide-step-card ol {
  margin: .6rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.58;
}

.guide-step-card p,
.guide-step-card ul {
  margin: .6rem 0 0;
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.58;
}

.guide-step-card .guide-panel__title {
  margin-top: 0;
  margin-bottom: .32rem;
  color: var(--title-color);
  line-height: 1.4;
}

.guide-step-card ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.guide-step-card ol ul,
.guide-step-card ol ol {
  margin-top: .38rem;
}

.guide-step-card code {
  padding: .1em .32em;
  border-radius: .28rem;
  background: var(--container-color);
  color: var(--title-color);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

.step-subblock {
  margin-top: .75rem;
  padding: .78rem .85rem;
  border: 1px solid var(--guide-line);
  border-radius: .65rem;
  background: var(--container-color);
}

.step-subblock h4 {
  margin: 0 0 .35rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.step-subblock h4:not(:first-child) {
  margin-top: .85rem;
}

.step-subblock ul,
.step-subblock ol {
  margin-bottom: 0;
}

.step-subblock ul {
  list-style: disc;
}

.step-subblock ol {
  list-style: decimal;
}

.guide-checklist {
  margin-left: 2.95rem;
  padding: 1rem;
  border: 1px solid hsla(155, 48%, 42%, .22);
  border-radius: .78rem;
  background: hsla(155, 48%, 42%, .055);
}

.guide-checklist h3 {
  margin: 0 0 .7rem;
  color: var(--title-color);
  font-size: var(--normal-font-size);
}

.guide-checklist__list {
  display: grid;
  gap: .42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-checklist__list li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: .5rem;
  align-items: start;
  margin: 0;
  padding: .6rem .7rem;
  border: 1px solid hsla(155, 48%, 42%, .13);
  border-radius: .58rem;
  background: var(--container-color);
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.48;
}

.guide-checklist__icon {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: hsla(155, 48%, 42%, .12);
  color: var(--guide-success);
  font-size: .88rem;
  line-height: 1;
}

.guide-step-card li + li {
  margin-top: .34rem;
}

.ui-path {
  padding: .1em .38em;
  border: 1px solid var(--guide-line);
  border-radius: .3rem;
  background: var(--container-color);
  color: var(--title-color);
  font-size: .94em;
  font-weight: 600;
}

.step-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .45rem;
  align-items: start;
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 1px solid var(--guide-line);
  color: var(--text-color);
  font-size: var(--smaller-font-size);
  line-height: 1.48;
}

.step-result i {
  color: var(--guide-success);
  font-size: 1rem;
}

.step-result strong {
  color: var(--title-color);
}

.fee-table {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: .72rem;
}

.fee-table + .guide-prose {
  margin-top: 1.1rem;
}

.fee-table__stage,
.fee-table__source {
  width: 25%;
}

.fee-table__check {
  width: 50%;
}

.fee-table th,
.fee-table td {
  padding: .72rem .85rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.fee-table tbody tr:first-child > *,
.fee-table tbody tr + tr > * {
  border-top: 1px solid var(--guide-line);
}

.fee-table thead th {
  background: var(--guide-soft);
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  font-weight: 600;
  text-transform: uppercase;
}

.fee-table th[scope="row"] {
  color: var(--title-color);
  font-weight: 700;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .58rem;
  padding: .8rem;
  border: 1px solid var(--guide-line);
  border-radius: .68rem;
  background: var(--guide-soft);
  color: var(--text-color);
  font-size: var(--smaller-font-size);
  line-height: 1.45;
}

.security-list i {
  display: grid;
  align-self: start;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--first-color);
  font-size: 1.1rem;
  line-height: 1;
}

.security-list strong {
  display: block;
  margin-bottom: .16rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.trouble-list,
.faq-list {
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: .72rem;
}

.trouble-list details + details,
.faq-item + .faq-item {
  border-top: 1px solid var(--guide-line);
}

.trouble-list summary,
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 2.75rem;
  padding: .82rem .9rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.trouble-list summary:focus,
.faq-item summary:focus {
  outline: none;
}

.trouble-list summary:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: -2px;
}

.trouble-list summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.trouble-list summary:hover,
.faq-item summary:hover {
  background: var(--guide-soft);
}

.disclosure-icon {
  flex: 0 0 auto;
  color: var(--text-color-light);
  transition: transform .2s ease, color .2s ease;
}

details[open] > summary .disclosure-icon {
  color: var(--first-color);
  transform: rotate(45deg);
}

.trouble-list details p,
.faq-item p {
  margin: 0;
  padding: .7rem .9rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  line-height: 1.58;
}

.report-link {
  width: max-content;
  margin-top: .7rem;
}

html.dark-theme .guide-article-page {
  --article-accent-text: var(--first-color-alt);
  --guide-success: hsl(155, 48%, 58%);
  --guide-warning: hsl(34, 88%, 62%);
  --guide-danger: hsl(0, 70%, 66%);
}

@media screen and (max-width: 991px) {
  .guide-layout {
    display: block;
    max-width: 760px;
    margin: 0 auto;
  }

  .guide-toc {
    display: none;
  }

  .mobile-toc {
    display: block;
    margin: .85rem clamp(.75rem, 3vw, 1rem);
    overflow: hidden;
    border: 1px solid var(--guide-line);
    border-radius: .8rem;
    background: var(--container-color);
    box-shadow: 0 8px 24px hsla(var(--hue), 28%, 18%, .045);
  }

  .mobile-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
    padding: .7rem .8rem;
    color: var(--title-color);
    font-size: var(--small-font-size);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
  }

  .mobile-toc summary:focus {
    outline: none;
  }

  .mobile-toc summary:focus-visible {
    border-radius: .8rem;
    outline: 2px solid var(--first-color);
    outline-offset: -2px;
  }

  .mobile-toc summary::-webkit-details-marker {
    display: none;
  }

  .mobile-toc summary span:first-child {
    display: flex;
    align-items: center;
    gap: .4rem;
  }

  .mobile-toc__meta {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--text-color-light);
    font-size: var(--smaller-font-size);
    font-weight: 400;
    white-space: nowrap;
  }

  .mobile-toc__meta i {
    color: var(--text-color-light);
    font-size: 1rem;
    transition: transform .2s ease;
  }

  .mobile-toc[open] .mobile-toc__meta i {
    transform: rotate(180deg);
  }

  .mobile-toc nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .15rem .35rem;
    padding: .45rem .55rem .6rem;
    border-top: 1px solid var(--guide-line);
  }

  .mobile-toc a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2.55rem;
    padding: .42rem .55rem .42rem .85rem;
    color: var(--text-color);
    border-radius: .48rem;
    font-size: var(--small-font-size);
    line-height: 1.35;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-toc a::before {
    position: absolute;
    top: 50%;
    left: .35rem;
    width: 3px;
    height: 1rem;
    border-radius: 2px;
    background: var(--first-color);
    opacity: 0;
    content: "";
    transform: translateY(-50%);
  }

  .mobile-toc a:focus {
    outline: none;
  }

  .mobile-toc a:focus-visible {
    outline: 2px solid var(--first-color);
    outline-offset: 2px;
  }

  .mobile-toc a:hover,
  .mobile-toc a:active {
    background: transparent;
    color: var(--text-color);
  }

  .mobile-toc a.is-active {
    background: transparent;
    box-shadow: none;
    color: var(--first-color);
    font-weight: 600;
  }

  .mobile-toc a.is-active::before {
    opacity: 1;
  }
}

@media screen and (max-width: 640px) {
  .fit-grid,
  .security-list {
    grid-template-columns: 1fr;
  }

  .fee-table {
    display: block;
    border: 0;
    overflow: visible;
  }

  .fee-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .fee-table tbody {
    display: grid;
    gap: .55rem;
  }

  .fee-table__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .18rem;
    padding: .75rem;
    border: 1px solid var(--guide-line);
    border-radius: .65rem;
    background: var(--guide-soft);
  }

  .fee-table th,
  .fee-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0 !important;
  }

  .fee-table td:last-child::before {
    margin-right: .3rem;
    color: var(--text-color-light);
    content: "Источник:";
  }
}

@media screen and (max-width: 575px) {
  .guide-page {
    padding-top: .75rem;
  }

  .guide-header .breadcrumbs {
    gap: .15rem .25rem;
    font-size: var(--smaller-font-size);
  }

  .guide-header .breadcrumbs li {
    gap: .25rem;
  }

  .guide-header .breadcrumbs__current {
    max-width: clamp(3.5rem, 16vw, 5.5rem);
  }

  .guide-article {
    border-radius: .9rem;
  }

  .guide-hero h1 {
    font-size: 1.75rem;
  }

  .guide-hero__updated > span:last-child {
    width: 100%;
    margin-left: 0;
  }

  .guide-body {
    padding: 1rem;
  }

  .section-heading {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .4rem;
  }

  .guide-panel {
    grid-template-columns: 1.55rem minmax(0, 1fr);
    gap: .58rem;
    padding: .82rem;
  }

  .guide-section {
    margin-top: 2.25rem;
  }

  .guide-step-card {
    grid-template-columns: 1.85rem 1fr;
    gap: .55rem;
  }

  .guide-step-card__number {
    width: 1.85rem;
    height: 1.85rem;
  }

  .guide-step-card::before {
    left: .925rem;
  }

  .guide-step-card:first-of-type::before {
    top: .925rem;
  }

  .guide-step-card:last-of-type::before {
    bottom: calc(100% - .925rem);
  }

  .guide-step-card__content {
    padding: .82rem;
  }

  .guide-checklist {
    margin-left: 0;
  }

}

@media screen and (max-width: 340px) {
  .guide-article-page .note-actions__sep {
    display: none;
  }

  .guide-article-page .note-share {
    width: 100%;
  }

  .guide-article-page .note-share__btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: .45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress__bar,
  .disclosure-icon,
  .mobile-toc__meta i {
    transition: none;
  }
}
