/* Konstrukt M-2 – vzhled webu. Generuje se do dist/assets/ (needituj dist/). */
:root {
  --ink: #1d2125;
  --ink-2: #2a3036;
  --text: #2b2f33;
  --muted: #646b72;
  --line: #e3dfd9;
  --paper: #f6f4f0;
  --white: #fff;
  --accent: #d9692c;
  --accent-d: #b9531c;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(20, 24, 28, .25);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #15181b; overscroll-behavior-y: none; }
body { margin: 0; overscroll-behavior-y: none; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--accent-d); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: #aeb4ba; }
.center { text-align: center; }

/* ---- Tlačítka ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--accent); color: #fff; text-decoration: none; font-weight: 650; padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--accent); transition: background .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); transform: translateY(-1px); }
.btn-sm { padding: .5em 1em; font-size: .95rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); border-color: #fff; }

/* ---- Hlavička ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.logo-mark { width: 38px; height: 38px; color: var(--ink); flex: none; }
.logo-light { color: #fff; }
.logo-light .logo-mark { color: #353c43; }
.nav { display: flex; align-items: center; gap: 14px; }
.logo span { white-space: nowrap; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul a { display: block; padding: .5em .55em; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .93rem; white-space: nowrap; }
.nav ul a:hover { background: var(--paper); }
.nav ul a[aria-current="page"] { color: var(--accent-d); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: .8em .6em; font-size: 1.05rem; border-bottom: 1px solid var(--paper); border-radius: 0; }
  .header-tel { margin-top: 10px; }
}

/* ---- Hero (úvod) ---- */
.hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,21,24,.15) 0%, rgba(18,21,24,.45) 45%, rgba(18,21,24,.88) 100%); }
.hero-in { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 72px; }
.hero h1 { color: #fff; max-width: 15em; font-size: clamp(2.2rem, 5.4vw, 4rem); }
.hero .lead { max-width: 36em; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e9ecef; }
.eyebrow { display: inline-block; font-weight: 650; letter-spacing: .04em; color: #ffd0b3; margin-bottom: 1em; font-style: italic; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---- Sekce ---- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 40px; padding-bottom: 8px; }
.section-dark { background: var(--ink); color: #d7dbdf; }
.section-dark h2, .section-dark h3 { color: #fff; }
.kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .6em; }
.h-section { margin-bottom: 1.2em; }

/* ---- Karty služeb ---- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .96rem; flex: 1; }
.more { color: var(--accent-d); font-weight: 650; font-size: .95rem; }

/* ---- Reference ---- */
.refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ref { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; background: var(--ink-2); }
.ref img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ref:hover img { transform: scale(1.06); }
.ref::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.ref-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.ref-txt strong { font-size: 1.1rem; }
.ref-txt span { font-size: .9rem; color: #d9dde1; line-height: 1.45; }
@media (max-width: 960px) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .refs { grid-template-columns: 1fr; } .ref { aspect-ratio: 4 / 3; } }

/* ---- O nás ---- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.features { display: grid; gap: 14px; }
.feature { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }
.feature h3 { margin-bottom: .3em; }
.f-num { color: var(--accent); font-weight: 800; font-size: .85rem; letter-spacing: .1em; }
.cert-box { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.cert-box h3 { font-size: 1rem; }
.cert-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cert-box li { background: var(--ink); color: #fff; font-weight: 650; font-size: .85rem; padding: .35em .8em; border-radius: 6px; }

/* ---- Text ---- */
.prose { max-width: 760px; }
.prose-block + .prose-block { margin-top: 2em; }
.prose p, .prose li { font-size: 1.05rem; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* ---- Hlavička podstránky ---- */
.page-head { background: var(--paper); padding: clamp(40px, 6vw, 72px) 0; }
.page-head-in { display: grid; gap: 40px; align-items: center; }
.page-head.has-img .page-head-in { grid-template-columns: 1.1fr 1fr; }
.page-head-img { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px; color: #fff; font-size: .92rem; line-height: 1.4; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.page-head-img img, .g-item.page-head-img img { width: 100%; height: 100%; object-fit: cover; }
.page-head-img:focus { outline: none; }
.page-head-img:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1em; }
.crumbs a { color: var(--muted); }
@media (max-width: 860px) { .page-head.has-img .page-head-in { grid-template-columns: 1fr; } }

/* ---- Galerie ---- */
.gallery { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 16px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.g-item { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.g-item img { width: 100%; height: auto; transition: transform .5s; }
.g-item:hover img { transform: scale(1.03); }
.g-item:focus { outline: none; }
.g-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: .9rem; line-height: 1.4; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .25s; }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; }
@media (hover: none) { .g-cap { opacity: 1; } }

/* ---- Lightbox ---- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,12,14,.94); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #e6e8ea; margin-top: 14px; text-align: center; max-width: 60em; }
.lightbox button { position: fixed; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 60px 8px 20px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---- CTA ---- */
.cta { background: linear-gradient(120deg, var(--ink) 0%, #2f2620 100%); color: #e8eaec; padding: clamp(48px, 6vw, 72px) 0; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #c4c9ce; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Kontakt ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 40px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.contact-card strong { font-size: 1.15rem; overflow-wrap: anywhere; }
.c-label { color: var(--accent-d); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.c-note { color: var(--muted); font-size: .9rem; }

/* ---- Patička ---- */
.site-footer { background: #15181b; color: #c3c8cd; padding: 64px 0 0; font-size: .95rem; }
.site-footer a { color: #e7e9eb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.f-h { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; }
.cert { font-size: .85rem; color: #9aa1a8; }
.footer-bottom { border-top: 1px solid #2a2f34; margin-top: 48px; padding-top: 20px; padding-bottom: 24px; font-size: .85rem; color: #8b9299; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ==== Revize 2: nové sekce a prvky ==== */
.btn svg, .mobile-bar svg, .f-contact svg, .side-list svg, .hero-points svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: #cfcac3; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.header-tel svg { width: 1em; height: 1em; }

/* Banner: body důvěry */
.hero-points { list-style: none; margin: 2.2em 0 0; padding: 1.4em 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: repeat(4, auto); gap: 10px 28px; justify-content: start; }
.hero-points li { display: flex; align-items: center; gap: 8px; color: #e4e7ea; font-size: .95rem; font-weight: 550; }
.hero-points svg { color: var(--accent); }
@media (max-width: 1000px) { .hero-points { grid-template-columns: repeat(2, auto); } }
@media (max-width: 560px) { .hero-points { grid-template-columns: 1fr; } }

/* Hlavičky sekcí */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 1.6em; }
.sec-head .h-section { margin-bottom: 0; }
.sec-note { color: var(--muted); margin: 0; max-width: 28em; }
.section-dark .sec-note { color: #aeb4ba; }
.section-paper { background: var(--paper); }

/* Zvýrazněná sekce (kovárna) */
.spotlight { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.spot-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.spot-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--paper); }
.spot-img img { width: 100%; height: 100%; object-fit: cover; }
.spot-txt h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.spot-txt p { font-size: 1.08rem; }
.spot-txt .btn { margin-top: .6em; }
@media (max-width: 860px) { .spot-in { grid-template-columns: 1fr; } .spot-img { aspect-ratio: 4 / 3; } }

/* Odrážky s fajfkou */
ul.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: .55em; }
ul.checks li { position: relative; padding-left: 1.9em; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.2em; height: 1.2em; border-radius: 50%; background: #fbe6d9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z' fill='%23b9531c'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Postup ve 4 krocích */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: k; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; }
.section-dark .step { background: var(--ink-2); border-color: #384047; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -22px; width: 22px; height: 2px; background: var(--accent); opacity: .6; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Podstránka: text + kontaktní box */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.side-box { position: sticky; top: 96px; background: var(--paper); border-radius: 16px; padding: 26px; display: grid; gap: 12px; }
.side-box h2 { font-size: 1.25rem; margin: 0; }
.side-box p { color: var(--muted); margin: 0 0 4px; font-size: .97rem; }
.side-list { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .94rem; }
.side-list li { display: flex; gap: 8px; align-items: center; }
.side-list svg { color: var(--accent-d); }
@media (max-width: 960px) { .with-side { grid-template-columns: 1fr; } .side-box { position: static; } }
.head-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6em; }

/* Kontakt */
.contact-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.c-ico { width: 44px; height: 44px; border-radius: 12px; background: #fbe6d9; color: var(--accent-d); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.c-ico svg { width: 22px; height: 22px; }
.contact-main { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-main { grid-template-columns: 1fr; } }
.map { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { position: absolute; right: 10px; bottom: 10px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 650; font-size: .9rem; padding: .45em .8em; border-radius: 8px; box-shadow: var(--shadow); }
.muted-dark { color: var(--muted); }

/* Patička */
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact svg { color: var(--accent); margin-top: .25em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: #c3c8cd; text-decoration: underline; text-decoration-color: #4a5158; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; text-decoration-color: currentColor; }

/* Lightbox – počítadlo */
.lightbox figcaption { display: flex; gap: 14px; justify-content: center; align-items: baseline; flex-wrap: wrap; }
.lb-count { color: #9aa1a8; font-size: .9rem; font-variant-numeric: tabular-nums; }

/* Mobilní lišta Zavolat / Napsat */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); box-shadow: 0 -6px 20px rgba(0,0,0,.2); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; color: #fff; text-decoration: none; font-weight: 650; }
  .mobile-bar a:first-child { background: var(--accent); }
  .site-footer { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* Ořez fotek z administrace (počítač / mobil) */
img[style*="--pos"] { object-position: var(--pos); }
@media (max-width: 700px) { img[style*="--pos"] { object-position: var(--pos-m, var(--pos)); } }

/* Rozbalovací menu Služby */
.has-sub { position: relative; }
.sub-toggle { display: flex; align-items: center; gap: 4px; background: none; border: 0; font: inherit; font-weight: 550; font-size: .93rem; color: var(--text); padding: .5em .7em; border-radius: 8px; cursor: pointer; }
.sub-toggle:hover, .has-sub:hover .sub-toggle { background: var(--paper); }
.sub-toggle.is-active { color: var(--accent-d); }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px -16px rgba(20,24,28,.3); display: none; grid-template-columns: 1fr 1fr; gap: 2px; z-index: 70; }
.nav ul.sub { display: none; }
.nav .has-sub:hover > ul.sub, .nav .has-sub.open > ul.sub { display: grid; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.nav .sub a { display: flex; flex-direction: column; gap: 2px; padding: .65em .8em; border-radius: 10px; white-space: normal; }
.nav .sub a strong { color: var(--ink); font-weight: 650; font-size: .95rem; }
.nav .sub a span { color: var(--muted); font-size: .82rem; font-weight: 400; line-height: 1.35; }
.nav .sub a:hover { background: var(--paper); }
.nav .sub a[aria-current="page"] strong { color: var(--accent-d); }
@media (max-width: 960px) {
  .sub-toggle { width: 100%; justify-content: space-between; padding: .8em .6em; font-size: 1.05rem; border-bottom: 1px solid var(--paper); border-radius: 0; }
  .nav .has-sub:hover > ul.sub { display: none; }
  .nav .has-sub.open > ul.sub { display: grid; }
  .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
  .sub { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 4px 0 8px 10px; grid-template-columns: 1fr; }
  .nav .sub a { border-bottom: 0; }
  .nav .sub a span { display: none; }
}

html { scroll-padding-top: 84px; }
