.inner-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(155, 207, 99, 0.16), transparent 26%),
    var(--cream);
}

.inner-page .site-header {
  height: 94px;
}

.inner-page .site-header-shell {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 248, 0.88);
  backdrop-filter: blur(18px);
}

.inner-page .main-nav a::after {
  background: var(--green);
}

.articles-page-hero {
  padding: 92px 0 76px;
}

.articles-page-hero .section-title {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 88px);
}

.articles-page-hero .section-lead {
  max-width: 720px;
}

.articles-catalog {
  padding: 20px 0 120px;
}

.articles-catalog .articles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.articles-catalog .article-card h3 {
  min-height: auto;
  font-size: clamp(24px, 2.5vw, 34px);
}

.article-page-main {
  padding: 54px 0 120px;
}

.article-breadcrumbs {
  display: flex;
  margin-bottom: 36px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.article-breadcrumbs a {
  color: var(--coral-deep);
  font-weight: 800;
}

.article-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.article-page-copy {
  display: flex;
  padding: clamp(36px, 6vw, 78px);
  justify-content: center;
  flex-direction: column;
}

.article-page-copy h1 {
  margin: 18px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.article-page-copy p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.article-page-cover {
  min-height: 520px;
  background: #dfe8d9;
}

.article-page-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-ready-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 28px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(155, 207, 99, 0.18);
}

.article-detail-page .article-page-hero {
  min-height: 560px;
}

.article-detail-page .article-page-copy h1 {
  font-size: clamp(38px, 4.25vw, 64px);
  line-height: 1.04;
}

.article-publish-meta {
  display: flex;
  margin-top: 30px;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.article-layout {
  display: grid;
  max-width: 1120px;
  margin: 72px auto 0;
  grid-template-columns: minmax(190px, 240px) minmax(0, 760px);
  justify-content: center;
  align-items: start;
  gap: clamp(48px, 7vw, 104px);
}

.article-aside {
  position: sticky;
  top: 30px;
}

.article-toc,
.article-aside-note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 254, 248, 0.72);
}

.article-toc > p,
.article-aside-note strong {
  display: block;
  margin: 0 0 14px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-toc ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.article-toc a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
}

.article-toc a:hover {
  color: var(--coral-deep);
}

.article-aside-note {
  margin-top: 16px;
  background: rgba(155, 207, 99, 0.12);
}

.article-aside-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.article-content {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.82;
}

.article-content > p:first-child {
  margin-top: 0;
  color: #24443d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.3vw, 29px);
  line-height: 1.52;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table {
  margin: 0 0 25px;
}

.article-content h2,
.article-content h3 {
  scroll-margin-top: 28px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.article-content h2 {
  margin: 66px 0 24px;
  font-size: clamp(31px, 4vw, 43px);
  line-height: 1.16;
}

.article-content h3 {
  margin: 42px 0 18px;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.22;
}

.article-content ul,
.article-content ol {
  padding-left: 1.35em;
}

.article-content li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.article-content li::marker {
  color: var(--coral-deep);
  font-weight: 800;
}

.article-content blockquote {
  padding: 22px 26px;
  border-left: 4px solid var(--lime);
  border-radius: 0 18px 18px 0;
  color: #24443d;
  background: rgba(155, 207, 99, 0.12);
}

.article-content blockquote > :last-child {
  margin-bottom: 0;
}

.article-content hr {
  width: 82px;
  height: 3px;
  margin: 56px 0;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--green), var(--lime), var(--coral));
}

.article-content a {
  color: var(--coral-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(178, 91, 58, 0.34);
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration-color: currentColor;
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.article-content th,
.article-content td {
  min-width: 150px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.5;
}

.article-content th {
  color: var(--green);
  background: rgba(155, 207, 99, 0.13);
}

.article-content tr:last-child td {
  border-bottom: 0;
}

.article-back {
  display: flex;
  max-width: 760px;
  margin: 72px auto 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.article-back p {
  margin: 0;
}

.article-back a {
  color: var(--coral-deep);
  font-weight: 900;
}

.inner-page footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .articles-catalog .articles-grid,
  .article-page-hero {
    grid-template-columns: 1fr;
  }

  .article-page-cover {
    min-height: 420px;
    order: -1;
  }

  .article-page-main {
    padding-top: 34px;
  }

  .article-layout {
    display: block;
    margin-top: 54px;
  }

  .article-aside {
    position: static;
    margin: 0 auto 44px;
  }

  .article-toc {
    padding: 22px 24px;
  }

  .article-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 24px;
  }

  .article-aside-note {
    display: none;
  }

  .article-content {
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 580px) {
  .articles-page-hero {
    padding: 65px 0 54px;
  }

  .articles-page-hero .section-title {
    font-size: 46px;
  }

  .article-page-hero {
    border-radius: 26px;
  }

  .article-page-cover {
    min-height: 300px;
  }

  .article-page-copy {
    padding: 34px 26px 42px;
  }

  .article-page-copy h1 {
    font-size: 42px;
  }

  .article-detail-page .article-page-copy h1 {
    font-size: 38px;
  }

  .article-toc ol {
    grid-template-columns: 1fr;
  }

  .article-content {
    font-size: 17px;
    line-height: 1.76;
  }

  .article-content h2 {
    margin-top: 52px;
  }

  .article-content hr {
    margin: 44px 0;
  }

  .article-back {
    align-items: flex-start;
    flex-direction: column;
  }
}
