.article-layout {
  gap: 1.4rem;
  align-items: start;
}

.article-single-card {
  padding: clamp(1.15rem, 1.7vw, 1.7rem);
  gap: 1.35rem;
  border-radius: 18px;
}

.article-single-title {
  font-size: clamp(1.8rem, 3.8vw, 3.1rem);
  line-height: 0.98;
  text-wrap: balance;
  max-width: 16ch;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.2rem 0 0.95rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(216, 209, 194, 0.92);
  background: linear-gradient(180deg, rgba(251, 250, 246, 0.96), rgba(245, 241, 232, 0.96));
  box-shadow: 0 8px 18px rgba(21, 21, 21, 0.05);
  font-size: 0.73rem;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-breadcrumbs a {
  color: var(--accent);
  font-weight: 700;
  transition: color var(--transition);
}

.article-breadcrumbs a:hover {
  color: var(--dark);
}

.article-breadcrumbs span:last-child {
  color: var(--dark);
  font-weight: 700;
}

.article-breadcrumbs__sep {
  color: rgba(106, 104, 95, 0.56);
  font-size: 0.66rem;
}

.article-meta {
  gap: 0.6rem 0.8rem;
  align-items: center;
}

.article-single-cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(21, 21, 21, 0.08);
}

.article-single-cover img {
  aspect-ratio: 970 / 200;
  object-fit: cover;
}

.article-single-content {
  max-width: 78ch;
  font-size: 1rem;
  line-height: 1.9;
  color: #2c2925;
}

.article-single-content h2 {
  margin-top: 1.25rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.36rem, 2vw, 1.72rem);
  line-height: 1;
}

.article-single-content h3 {
  margin-top: 1.05rem;
  margin-bottom: 0.4rem;
  font-size: clamp(1.08rem, 1.6vw, 1.26rem);
  line-height: 1.12;
}

.article-single-content h4 {
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: #4a443d;
}

.article-single-content p {
  max-width: 72ch;
}

.article-single-content p + p {
  margin-top: 0.45rem;
}

.article-single-content ul,
.article-single-content ol {
  margin: 0.2rem 0 0.35rem 1.35rem;
  padding-left: 0.35rem;
  gap: 0.5rem;
}

.article-single-content li {
  padding-left: 0.15rem;
}

.article-single-content li::marker {
  color: var(--accent);
}

.article-single-content blockquote {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 1.35rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, rgba(215, 157, 49, 0.08), rgba(245, 241, 232, 0.95));
  color: #37322d;
}

.article-single-content table {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(21, 21, 21, 0.05);
}

.article-toc {
  display: grid;
  gap: 0.95rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(216, 209, 194, 0.95);
  background: linear-gradient(180deg, rgba(215, 157, 49, 0.1), rgba(245, 241, 232, 0.96));
  box-shadow: 0 8px 18px rgba(21, 21, 21, 0.04);
  border-radius: 16px;
}

.article-toc__head,
.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-toc h2,
.toc-title {
  font-size: 1.02rem;
  margin: 0;
}

.article-toc ol,
.toc-list {
  display: grid;
  gap: 0.55rem;
  margin-left: 1rem;
}

.article-toc__toggle,
.toc-toggle {
  appearance: none;
  border: 1px solid rgba(42, 39, 35, 0.14);
  background: #fff;
  color: var(--dark);
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.toc-toggle-icon {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(182, 84, 47, 0.14), rgba(182, 84, 47, 0.26));
  position: relative;
  flex: 0 0 auto;
}

.toc-toggle-icon::before,
.toc-toggle-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.48rem;
  height: 1px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.toc-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.article-toc__toggle:hover,
.toc-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(21, 21, 21, 0.07);
  border-color: rgba(182, 84, 47, 0.34);
  color: var(--accent);
}

.article-toc a,
.toc-list a {
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px dashed rgba(42, 39, 35, 0.28);
  transition: color var(--transition), border-color var(--transition);
}

.article-toc a:hover,
.article-toc a.is-active,
.toc-list a:hover,
.toc-list a.is-active {
  color: var(--accent);
  border-bottom-color: rgba(182, 84, 47, 0.42);
}

.article-tags {
  margin-top: 0.2rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(216, 209, 194, 0.7);
}

.article-tag {
  background: #fff;
  color: var(--dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-author-box {
  background: linear-gradient(180deg, rgba(182, 84, 47, 0.06), rgba(251, 250, 246, 0.98));
  box-shadow: 0 8px 18px rgba(21, 21, 21, 0.05);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
}

.article-author-box__content strong {
  font-size: 1.08rem;
}

.article-author-box__content a {
  color: var(--dark);
}

.article-author-box__content a:hover {
  color: var(--accent);
}

.article-related-block h2,
.article-faq-block h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.article-related-grid .article-card {
  padding: 0.8rem;
  border-radius: 16px;
}

.article-faq-item {
  background: linear-gradient(180deg, rgba(251, 250, 246, 1), rgba(245, 241, 232, 0.96));
  box-shadow: 0 6px 14px rgba(21, 21, 21, 0.04);
  border-radius: 16px;
  overflow: hidden;
}

.article-faq-question {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dark);
  padding: 0.9rem 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font: inherit;
  font-family: "Oswald", "Segoe UI", sans-serif;
  text-transform: uppercase;
  line-height: 1.1;
}

.article-faq-question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
}

.article-faq-question[aria-expanded="true"]::after {
  content: "−";
}

.article-faq-answer {
  padding: 0 1rem 1rem;
  color: #35312c;
  line-height: 1.75;
}

.article-faq-answer[hidden] {
  display: none !important;
}

.article-prev-next__item {
  background: linear-gradient(180deg, rgba(251, 250, 246, 1), rgba(245, 241, 232, 0.98));
  box-shadow: 0 8px 18px rgba(21, 21, 21, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-radius: 16px;
}

.article-prev-next__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(21, 21, 21, 0.07);
  border-color: rgba(182, 84, 47, 0.34);
}

.article-prev-next__item--next {
  text-align: right;
}

.side-card {
  gap: 0.9rem;
}

.side-card h2 {
  font-size: 0.98rem;
}

.article-related-block,
.article-faq-block,
.article-prev-next {
  margin-top: 0.2rem;
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #e36b3b);
  box-shadow: 0 1px 8px rgba(182, 84, 47, 0.35);
  pointer-events: none;
}

@media (max-width: 860px) {
  .article-single-card {
    padding: 1rem;
  }

  .article-single-title {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
    max-width: none;
  }

  .article-breadcrumbs {
    padding: 0.6rem 0.8rem;
    font-size: 0.68rem;
  }

  .article-author-box {
    grid-template-columns: 1fr;
  }

  .article-author-box__avatar img {
    width: 72px;
    height: 72px;
  }

  .article-prev-next__item--next {
    text-align: left;
  }

  .article-toc__head {
    align-items: stretch;
  }

  .article-toc__toggle,
  .toc-toggle {
    width: 100%;
    justify-content: center;
  }
}
