/* Unified editorial design for every /stati/<slug>/ article. */
.article-page {
  --article-ink: #162019;
  --article-copy: #344039;
  --article-muted: #6a756e;
  --article-line: #d6e2db;
  --article-soft: #eef5f1;
  --article-soft-strong: #e3efe8;
  --article-accent: #0f5a38;
  --article-accent-hover: #18764a;
  --article-warm: #a34f12;
  background: #edf2ef;
  color: var(--article-ink);
}

.article-page .article-hero {
  position: relative;
  padding: 48px 0 44px;
  overflow: hidden;
  border-bottom: 1px solid var(--article-line);
  background:
    linear-gradient(90deg, rgba(15, 90, 56, .055) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #f0f7f3 0%, #fff 82%);
}

.article-page .article-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--article-accent) 0 26%, #d6a855 26% 34%, transparent 34%);
}

.article-page .article-hero .container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.article-page .breadcrumbs {
  margin-bottom: 24px;
  color: var(--article-muted);
}

.article-page .breadcrumbs a {
  color: var(--article-accent);
  text-decoration: none;
}

.article-page .breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-page .hero__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 0 15px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 90, 56, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .82);
  color: var(--article-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.article-page .hero__label::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 2px;
  background: #d6a855;
}

.article-page .article-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--article-ink);
  font-size: 2.8rem;
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
}

.article-page .article-hero .hero__sub,
.article-page .article-hero .article-lead {
  max-width: 800px;
  margin: 20px 0 0;
  padding: 17px 20px;
  border-left: 4px solid var(--article-accent);
  background: rgba(255, 255, 255, .76);
  color: #465249;
  font-size: 1.1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.article-page .article-hero .osnov-cta-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 800px;
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(15, 90, 56, .2);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.article-page .article-hero .osnov-cta-block p {
  margin: 0;
  color: #465249;
  font-size: .92rem;
  line-height: 1.55;
}

.article-page .article-hero .osnov-cta-block .btn {
  min-height: 42px;
  padding: 9px 16px;
  white-space: nowrap;
}

.article-page .article-content-section {
  padding: 42px 0 76px;
  background: #edf2ef;
}

.article-page .article-content-section > .container {
  max-width: 1040px;
}

.article-page .article-content-section .entry-content,
.article-page .article-content-section .article-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 58px 54px;
  border: 1px solid var(--article-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(31, 54, 41, .08);
}

.article-page .entry-content .parking-illustration {
  margin: -48px -58px 12px;
}

.article-page .entry-content .parking-illustration img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  border-radius: 9px 9px 0 0;
  object-fit: cover;
}

.article-page .entry-content .parking-illustration figcaption {
  margin: 0;
  padding: 10px 58px 0;
  color: var(--article-muted);
  font-size: .76rem;
  line-height: 1.5;
}

.article-page .entry-content > section {
  margin: 0;
  padding: 36px 0 38px;
  border-top: 1px solid var(--article-line);
  background: transparent;
}

.article-page .entry-content > section:first-of-type,
.article-page .entry-content > figure + section {
  margin: 0 0 8px;
  padding: 24px 26px;
  border: 1px solid rgba(15, 90, 56, .18);
  border-left: 5px solid var(--article-accent);
  border-radius: 7px;
  background: var(--article-soft);
}

.article-page .article-content > p:first-child {
  margin: 0 0 36px;
  padding: 22px 24px;
  border: 1px solid rgba(15, 90, 56, .18);
  border-left: 5px solid var(--article-accent);
  border-radius: 7px;
  background: var(--article-soft);
  font-size: 1.08rem;
}

.article-page .entry-content h2,
.article-page .article-content h2 {
  position: relative;
  max-width: 34ch;
  margin: 0 0 17px;
  padding-left: 20px;
  color: var(--article-ink);
  font-size: 1.75rem;
  line-height: 1.28;
  letter-spacing: 0;
  text-wrap: balance;
}

.article-page .entry-content h2::before,
.article-page .article-content h2::before {
  content: "";
  position: absolute;
  top: .18em;
  bottom: .18em;
  left: 0;
  width: 5px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--article-accent) 0 72%, #d6a855 72%);
}

.article-page .article-content > h2 {
  max-width: none;
  margin-top: 38px;
  padding-top: 36px;
  border-top: 1px solid var(--article-line);
}

.article-page .article-content > h2::before {
  top: calc(36px + .18em);
}

.article-page .article-content > h2:first-of-type {
  margin-top: 0;
}

.article-page .entry-content h3,
.article-page .article-content h3 {
  max-width: 68ch;
  margin: 24px 0 9px;
  color: var(--article-ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0;
}

.article-page .entry-content p,
.article-page .entry-content li,
.article-page .article-content p,
.article-page .article-content li {
  max-width: 70ch;
  color: var(--article-copy);
  font-size: 1.04rem;
  line-height: 1.76;
  text-wrap: pretty;
}

.article-page .entry-content p,
.article-page .article-content p {
  margin: 0 0 16px;
}

.article-page .entry-content p:last-child,
.article-page .article-content p:last-child {
  margin-bottom: 0;
}

.article-page .entry-content a,
.article-page .article-content a {
  color: var(--article-accent);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(15, 90, 56, .36);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-page .entry-content a:hover,
.article-page .article-content a:hover {
  color: var(--article-accent-hover);
  text-decoration-color: currentColor;
}

.article-page .entry-content a:focus-visible,
.article-page .article-content a:focus-visible,
.article-page summary:focus-visible {
  outline: 3px solid rgba(15, 90, 56, .22);
  outline-offset: 4px;
}

.article-page .entry-content ul,
.article-page .entry-content ol,
.article-page .article-content ul,
.article-page .article-content ol {
  max-width: 70ch;
  margin: 18px 0 22px;
  padding: 0;
}

.article-page .entry-content ul,
.article-page .article-content ul {
  padding-left: 23px;
}

.article-page .entry-content ul li::marker,
.article-page .article-content ul li::marker {
  color: var(--article-accent);
}

.article-page .entry-content li,
.article-page .article-content li {
  margin-bottom: 9px;
  padding-left: 3px;
}

.article-page .entry-content ol,
.article-page .article-content ol {
  counter-reset: article-step;
  list-style: none;
}

.article-page .entry-content ol > li,
.article-page .article-content ol > li {
  position: relative;
  min-height: 36px;
  margin-bottom: 14px;
  padding-left: 50px;
  counter-increment: article-step;
}

.article-page .entry-content ol > li::before,
.article-page .article-content ol > li::before {
  content: counter(article-step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(15, 90, 56, .24);
  border-radius: 7px;
  background: var(--article-soft);
  color: var(--article-accent);
  font-size: .86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.article-page .entry-content blockquote,
.article-page .article-content blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid #d6a855;
  border-radius: 0 7px 7px 0;
  background: #fff8e9;
  color: #54452b;
}

.article-page .entry-content table,
.article-page .article-content table {
  display: block;
  width: 100%;
  max-width: none;
  margin: 24px 0 30px;
  overflow-x: auto;
  border: 1px solid #cbdad1;
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 54, 41, .07);
  scrollbar-color: var(--article-accent) #e7eeea;
  scrollbar-width: thin;
}

.article-page .entry-content thead,
.article-page .entry-content tbody,
.article-page .article-content thead,
.article-page .article-content tbody {
  display: table;
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
}

.article-page .entry-content th,
.article-page .article-content th {
  padding: 15px 16px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .16);
  background: #174d37;
  color: #fff;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  vertical-align: top;
}

.article-page .entry-content th:last-child,
.article-page .article-content th:last-child {
  border-right: 0;
}

.article-page .entry-content td,
.article-page .article-content td {
  padding: 15px 16px;
  border: 0;
  border-right: 1px solid #dce6e0;
  border-bottom: 1px solid #dce6e0;
  color: #344039;
  font-size: .94rem;
  line-height: 1.58;
  vertical-align: top;
}

.article-page .entry-content td:last-child,
.article-page .article-content td:last-child {
  border-right: 0;
}

.article-page .entry-content tbody tr:nth-child(even) td,
.article-page .article-content tbody tr:nth-child(even) td {
  background: #f1f6f3;
}

.article-page .entry-content tbody tr:last-child td,
.article-page .article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-page .entry-content tbody td:first-child,
.article-page .article-content tbody td:first-child {
  color: #202c25;
  font-weight: 650;
}

.article-page .entry-content tbody td:nth-child(2) strong,
.article-page .article-content tbody td:nth-child(2) strong {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: #fff1df;
  color: var(--article-warm);
  font-size: .88rem;
}

.article-page .article-faq,
.article-page .entry-content section:has(> details) {
  padding-top: 38px;
}

.article-page .article-faq details,
.article-page .entry-content section > details {
  border-top: 1px solid var(--article-line);
  background: #fff;
}

.article-page .article-faq details:last-child,
.article-page .entry-content section > details:last-child {
  border-bottom: 1px solid var(--article-line);
}

.article-page .article-faq summary,
.article-page .entry-content section > details > summary {
  position: relative;
  padding: 18px 48px 18px 14px;
  color: var(--article-ink);
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.48;
  transition: background .18s ease, color .18s ease;
}

.article-page .article-faq summary::-webkit-details-marker,
.article-page .entry-content section > details > summary::-webkit-details-marker {
  display: none;
}

.article-page .article-faq summary::after,
.article-page .entry-content section > details > summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 14px;
  color: var(--article-accent);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.article-page .article-faq details[open] summary,
.article-page .entry-content section > details[open] > summary {
  background: var(--article-soft);
  color: var(--article-accent);
}

.article-page .article-faq details[open] summary::after,
.article-page .entry-content section > details[open] > summary::after {
  content: "−";
}

.article-page .article-faq details p,
.article-page .entry-content section > details > p {
  max-width: none;
  margin: 0;
  padding: 0 48px 20px 14px;
  background: var(--article-soft);
  color: #4c5850;
  font-size: .97rem;
}

.article-page .article-content h3,
.article-page .entry-content h3 {
  padding: 14px 16px;
  border: 1px solid var(--article-line);
  border-left: 4px solid var(--article-accent);
  border-radius: 6px;
  background: #f8faf9;
}

.article-page .article-content h3 + p,
.article-page .entry-content h3 + p {
  margin-top: -4px;
  padding: 0 17px 17px;
  border-right: 1px solid var(--article-line);
  border-bottom: 1px solid var(--article-line);
  border-left: 1px solid var(--article-line);
  border-radius: 0 0 6px 6px;
  background: #f8faf9;
}

.article-page .legal-warning,
.article-page .doc-source-block,
.article-page .court-practice {
  margin: 24px 0;
  border-radius: 0 7px 7px 0;
  box-shadow: none;
}

.article-page .doc-source-block {
  padding: 20px 22px;
  border-color: rgba(15, 90, 56, .22);
  border-left-color: var(--article-accent);
  background: var(--article-soft);
}

.article-page .doc-source-block ul {
  margin-bottom: 0;
}

.article-page .article-related,
.article-page .related-materials {
  margin: 8px -20px 0;
  padding: 30px 20px 32px !important;
  border-top: 0 !important;
  border-radius: 7px;
  background: var(--article-soft) !important;
}

.article-page .article-related h2,
.article-page .related-materials h2 {
  font-size: 1.45rem;
}

.article-page .article-related ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  max-width: none;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.article-page .article-related li {
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(15, 90, 56, .17);
}

.article-page .article-related a {
  position: relative;
  display: block;
  padding: 14px 34px 14px 0;
  color: var(--article-ink);
  font-size: .94rem;
  line-height: 1.45;
  text-decoration: none;
}

.article-page .article-related a::after {
  content: "→";
  position: absolute;
  top: 13px;
  right: 4px;
  color: var(--article-accent);
  transition: transform .18s ease;
}

.article-page .article-related a:hover {
  color: var(--article-accent);
}

.article-page .article-related a:hover::after {
  transform: translateX(3px);
}

.article-page .article-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-page .article-mini-card {
  min-height: 100%;
  border-color: var(--article-line);
  border-radius: 7px;
  box-shadow: none;
}

.article-page .article-mini-card:hover {
  border-color: var(--article-accent);
  box-shadow: 0 10px 24px rgba(31, 54, 41, .08);
}

.article-page .article-sources {
  padding-bottom: 0 !important;
}

.article-page .article-sources h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.article-page .article-sources p,
.article-page .article-sources li {
  color: var(--article-muted);
  font-size: .88rem;
  line-height: 1.65;
}

.article-page .article-sources ul {
  margin: 12px 0 0;
}

@media (max-width: 768px) {
  .article-page .article-hero {
    padding: 30px 0 34px;
  }

  .article-page .breadcrumbs {
    margin-bottom: 18px;
    font-size: .78rem;
  }

  .article-page .hero__label {
    display: flex;
    width: auto;
    max-width: 100%;
  }

  .article-page .article-hero h1 {
    font-size: 2rem;
    line-height: 1.18;
  }

  .article-page .article-hero .hero__sub,
  .article-page .article-hero .article-lead {
    margin-top: 18px;
    padding: 14px 15px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .article-page .article-hero .osnov-cta-block {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .article-page .article-hero .osnov-cta-block .btn {
    width: 100%;
  }

  .article-page .article-content-section {
    padding: 22px 0 48px;
  }

  .article-page .article-content-section .entry-content,
  .article-page .article-content-section .article-content {
    padding: 26px 20px 36px;
    border-radius: 8px;
  }

  .article-page .entry-content .parking-illustration {
    margin: -26px -20px 8px;
  }

  .article-page .entry-content .parking-illustration img {
    aspect-ratio: 4 / 3;
    border-radius: 7px 7px 0 0;
  }

  .article-page .entry-content .parking-illustration figcaption {
    padding: 9px 20px 0;
    font-size: .72rem;
  }

  .article-page .entry-content > section {
    padding: 29px 0 31px;
  }

  .article-page .entry-content > section:first-of-type,
  .article-page .entry-content > figure + section {
    padding: 20px 18px;
  }

  .article-page .article-content > p:first-child {
    margin-bottom: 30px;
    padding: 18px;
    font-size: 1rem;
  }

  .article-page .entry-content h2,
  .article-page .article-content h2 {
    margin-bottom: 14px;
    padding-left: 16px;
    font-size: 1.45rem;
    line-height: 1.32;
  }

  .article-page .article-content > h2 {
    margin-top: 30px;
    padding-top: 29px;
  }

  .article-page .article-content > h2::before {
    top: calc(29px + .18em);
  }

  .article-page .entry-content p,
  .article-page .entry-content li,
  .article-page .article-content p,
  .article-page .article-content li {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-page .entry-content table,
  .article-page .article-content table {
    margin-inline: 0;
  }

  .article-page .entry-content thead,
  .article-page .entry-content tbody,
  .article-page .article-content thead,
  .article-page .article-content tbody {
    min-width: 680px;
  }

  .article-page .article-faq summary,
  .article-page .entry-content section > details > summary {
    padding: 16px 40px 16px 10px;
    font-size: .97rem;
  }

  .article-page .article-faq summary::after,
  .article-page .entry-content section > details > summary::after {
    top: 15px;
    right: 10px;
  }

  .article-page .article-faq details p,
  .article-page .entry-content section > details > p {
    padding: 0 40px 17px 10px;
    font-size: .94rem;
  }

  .article-page .article-related,
  .article-page .related-materials {
    margin-inline: -8px;
    padding-inline: 18px !important;
  }

  .article-page .article-related ul,
  .article-page .article-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-page .article-related a::after,
  .article-page .article-faq summary,
  .article-page .entry-content section > details > summary {
    transition: none;
  }
}
