.nav-replacement { position: relative; display: flex; align-items: center; gap: 2px; }
.top nav { align-items: center; overflow: visible; }
.nav-dropdown summary {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  border-radius: 6px;
  list-style: none;
  color: var(--accent);
  cursor: pointer;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary span {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-dropdown[open] summary span { transform: translateY(2px) rotate(225deg); }
.nav-dropdown summary:is(:hover, :focus-visible) { background: var(--panel); outline: 1px solid var(--accent); }
.nav-submenu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  z-index: 5;
  width: max-content;
  max-width: calc(100vw - 36px);
  padding: 6px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgb(0 0 0 / .42);
}
.nav-submenu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); }
.nav-submenu a:is(:hover, :focus-visible) { background: var(--bg); color: var(--accent); }
.service-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: .875rem;
}
.service-heading { margin-block: clamp(24px, 4vw, 44px) clamp(28px, 5vw, 52px); }
.service-heading h1 {
  max-width: 22ch;
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  letter-spacing: -.035em;
  line-height: 1.06;
}
.service-advantages {
  padding: clamp(22px, 4vw, 48px);
  border-radius: 18px;
  background: var(--accent);
  color: #182009;
}
.service-advantages h2 { color: inherit; }
.service-advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(18px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
}
.service-advantage-grid li {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 14px;
  border-radius: 10px;
  background: rgb(24 32 9 / .09);
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  font-weight: 750;
}
.service-advantages p { margin: 16px 0 0; color: inherit; font-size: .875rem; }
@media (max-width: 640px) {
  .service-advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .service-advantage-grid { grid-template-columns: 1fr; }
  .service-advantage-grid li { min-height: 0; }
}
.section.service-article { width: min(100%, 840px); max-width: none; margin-inline: auto; }
.reading-heading { width: min(100%, 840px); margin-inline: auto; }
.reading-heading h1 { max-width: none; font-size: clamp(2rem, 4.5vw, 3.6rem); }
.reading-heading .lead { max-width: 55ch; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: clamp(22px, 3vw, 42px);
  width: min(100%, 1140px);
  margin: clamp(28px, 5vw, 56px) auto clamp(48px, 7vw, 70px);
}
.article-flow { min-width: 0; }
.article-flow > .reading-heading,
.article-flow > .section.service-article { width: 100%; margin-inline: 0; }
.article-flow > .service-heading { margin-top: 0; }
.article-flow > .section.service-article { margin-block: 0; }
.article-flow > .actions { margin-top: 1.5rem; }
.article-flow [id^="article-section-"] { scroll-margin-top: 24px; }
.article-flow h2:target { color: var(--accent); }
.article-toc-sidebar,
.article-toc-mobile {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.article-toc-sidebar {
  position: sticky;
  top: 22px;
  align-self: start;
  max-height: calc(100vh - 44px);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
}
.article-toc-sidebar > p,
.article-toc-mobile > summary {
  color: var(--accent);
  font-weight: 750;
}
.article-toc-sidebar > p { margin: 0 8px 8px; }
.article-toc-mobile { display: none; }
.article-toc-mobile > summary { padding: 4px 8px; cursor: pointer; }
.article-toc {
  display: block;
  font-size: .9rem;
  line-height: 1.4;
}
.article-toc ul { margin: 0; padding: 0; list-style: none; }
.article-toc a {
  display: block;
  padding: 7px 8px;
  border-radius: 6px;
}
.article-toc a:is(:hover, :focus-visible) {
  color: var(--accent);
  background: var(--bg);
  text-decoration: none;
}
@media (max-width: 920px) {
  .article-layout { display: block; width: min(100%, 840px); }
  .article-toc-sidebar { display: none; }
  .article-toc-mobile { display: block; margin-block: 0 22px; padding: 10px; }
  .article-toc-mobile[open] .article-toc { margin-top: 6px; }
}
.service-article details { margin-block: 1.5rem; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.service-article summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.section.service-article h2 { margin-top: 2rem; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.section.service-article p { max-width: none; }
.service-article a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.service-article li + li { margin-top: .35em; }
.service-illustration { margin: 1.7rem 0; }
.service-illustration img { display: block; width: 100%; height: auto; border-radius: 12px; }
.home-purchase-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  margin-bottom: 22px;
}
.home-purchase-header > h2 { grid-area: 1 / 2; margin: 0; }
.home-purchase-header > .service-illustration { grid-area: 1 / 1; width: min(100%, 600px); margin: 0; }
@media (max-width: 700px) {
  .home-purchase-header { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
}
.brand-model-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 14px;
  margin-top: 22px;
}
.brand-model-photos figure { margin: 0; }
.brand-model-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; border-radius: 10px; background: var(--panel); }
.brand-model-photos figcaption { margin-top: 6px; font-size: .9rem; font-weight: 700; }
@media (max-width: 800px) {
  .top { position: relative; }
  .nav-replacement { position: static; }
  .nav-submenu { inset-inline: 0; width: auto; }
}
@media (max-width: 360px) {
  .top nav { gap: 5px; font-size: .9rem; }
  .nav-dropdown summary { width: 27px; }
}
