/* Hygor Soares Braga Advocacia e Consultoria Jurídica */
/* Layout: cabeçalho fixo, hero fotográfico com sobreposição petróleo, blocos educativos e explorador guiado até o WhatsApp. */
:root {
  --bg: #FBFCFC;
  --surface: #F1F6F7;
  --surface-2: #E3EDF0;
  --ink: #0F1E24;
  --ink-soft: #3E535C;
  --line: #CFDCE1;
  --brand: #183642;
  --on-brand: #FFFFFF;
  --accent: #496B79;
  --brass: #A07F45;
  --hero-bg: #183642;
  --hero-ink: #FFFFFF;
  --hero-soft: #D3DEE3;
  --wa: #1E6B4E;
  --wa-soft: #E6F2EC;
  --focus: #8BA6B2;

  --f-display: "Spectral", Georgia, "Times New Roman", serif;
  --f-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --r: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D171B; --surface: #13232A; --surface-2: #1A2F38; --ink: #E6EEF0; --ink-soft: #A9BCC3;
    --line: #2A424C; --brand: #9CC3D1; --on-brand: #0D171B; --accent: #8FB0BD; --brass: #CDB07A;
    --hero-bg: #0F2229; --hero-ink: #F2F7F8; --hero-soft: #B8C9CF;
    --wa: #6FC79F; --wa-soft: #143127;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D171B; --surface: #13232A; --surface-2: #1A2F38; --ink: #E6EEF0; --ink-soft: #A9BCC3;
  --line: #2A424C; --brand: #9CC3D1; --on-brand: #0D171B; --accent: #8FB0BD; --brass: #CDB07A;
  --hero-bg: #0F2229; --hero-ink: #F2F7F8; --hero-soft: #B8C9CF;
  --wa: #6FC79F; --wa-soft: #143127;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--ink); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; }

.eyebrow { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 64ch; }
.section { padding-block: 88px; }
.section--tint { background: var(--surface); }
.section__head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 780px; }
.prose p + p { margin-top: 14px; }
.prose p { color: var(--ink-soft); max-width: 68ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 0.88rem/1 var(--f-body); letter-spacing: 0.03em;
  padding: 15px 24px; border-radius: var(--r); border: 1.5px solid var(--brand);
  background: var(--brand); color: var(--on-brand); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--hero { background: var(--hero-ink); color: #183642; border-color: var(--hero-ink); }
.btn--hero-ghost { background: transparent; color: var(--hero-ink); border-color: var(--hero-soft); }
.btn--hero-ghost:hover { border-color: var(--hero-ink); }

/* Cabeçalho */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__mono { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border: 1.5px solid var(--brand); color: var(--brand); font: 700 1rem/1 var(--f-display); }
.brand__name { display: block; font: 700 0.92rem/1.2 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; }
.brand__sub { display: block; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.86rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav .btn { color: var(--on-brand); padding: 11px 18px; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--r); color: var(--ink); font: 600 0.82rem/1 var(--f-body); padding: 10px 14px; cursor: pointer; }

/* Hero */
.hero { position: relative; background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(12,28,34,0.95) 0%, rgba(18,44,54,0.84) 42%, rgba(24,54,66,0.38) 100%),
    linear-gradient(0deg, rgba(12,28,34,0.55) 0%, rgba(12,28,34,0) 35%);
}
.hero:not(.page-hero) .wrap { min-height: 640px; }
.hero h1 em { font-style: italic; color: #E8D6B0; }

/* Faixa de diferenciais */
.trust { background: var(--hero-bg); color: var(--hero-soft); border-top: 1px solid rgba(255,255,255,0.12); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: 22px 20px; display: grid; gap: 2px; }
.trust li + li { border-left: 1px solid rgba(255,255,255,0.12); }
.trust strong { font: 600 1.05rem/1.3 var(--f-display); color: var(--hero-ink); }
.trust span { font-size: 0.82rem; }
@media (max-width: 860px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.12); }
  .hero:not(.page-hero) .wrap { min-height: 0; }
}
.hero--plain::after {
  content: "§"; position: absolute; right: 4%; bottom: -14%; z-index: -1;
  font: 600 clamp(14rem, 34vw, 28rem)/1 var(--f-display); color: var(--hero-ink); opacity: 0.06; pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; padding-block: 96px; }
.hero .eyebrow { color: var(--hero-soft); }
.hero h1 { color: var(--hero-ink); font-size: clamp(2.2rem, 4.8vw, 3.7rem); margin-bottom: 20px; }
.hero__lead { color: var(--hero-soft); font-size: 1.1rem; max-width: 56ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__steps { list-style: none; margin: 0; padding: 28px; border: 1px solid rgba(255,255,255,0.22); background: rgba(10,24,30,0.35); backdrop-filter: blur(4px); border-radius: var(--r); display: grid; gap: 20px; }
.hero__steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.hero__steps .n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--hero-soft); font: 600 1.05rem/1 var(--f-display); color: var(--hero-ink); }
.hero__steps strong { display: block; color: var(--hero-ink); font-size: 0.98rem; }
.hero__steps span { color: var(--hero-soft); font-size: 0.9rem; }

/* Cabeçalho de página interna */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); }
.page-hero .wrap { padding-block: 72px 64px; }
.page-hero h1 { color: var(--hero-ink); font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 14px; }
.page-hero p { color: var(--hero-soft); max-width: 62ch; font-size: 1.05rem; }
.page-hero .eyebrow { color: var(--hero-soft); }
.crumbs { font-size: 0.8rem; color: var(--hero-soft); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--hero-ink); }

/* Blocos educativos */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; max-width: 100%; }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--fallback { background:
  radial-gradient(circle at 75% 30%, color-mix(in srgb, var(--brass) 30%, transparent) 0, transparent 45%),
  linear-gradient(150deg, var(--brand), var(--accent)); }
.figure--fallback::after { content: "§"; position: absolute; inset: 0; display: grid; place-items: center; font: 600 9rem/1 var(--f-display); color: var(--bg); opacity: 0.2; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; display: grid; gap: 12px; align-content: start; }
.mode__tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.mode p { color: var(--ink-soft); font-size: 0.95rem; }
.mode ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.9rem; }
.when ul { list-style: none; margin: 0; padding: 0; }
.when li { padding: 14px 0 14px 30px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.when li::before { content: ""; position: absolute; left: 0; top: 23px; width: 14px; height: 2px; background: var(--brass); }
.when li strong { color: var(--ink); }

/* Cartões de área com foto */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.area-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); text-decoration: none; color: var(--ink); transition: border-color .2s ease, transform .2s ease; height: 100%; }
.area-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.area-card__img { aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--brand), var(--accent)); overflow: hidden; }
.area-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.area-card:hover .area-card__img img { transform: scale(1.04); }
.area-card__body { padding: 22px 22px 24px; display: grid; gap: 8px; align-content: start; }
.area-card__body h3 { font-size: 1.25rem; }
.area-card__body p { color: var(--ink-soft); font-size: 0.9rem; }
.area-card__more { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }

/* Explorador guiado */
.step-label { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font: 600 1.3rem/1.3 var(--f-display); color: var(--ink); }
.step-n { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 600 0.95rem/1 var(--f-body); }
.step-help { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 4px 46px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 36px; }
.tile { text-align: left; cursor: pointer; font-family: var(--f-body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 4px; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.tile:hover { border-color: var(--accent); }
.tile__name { font: 600 1.08rem/1.25 var(--f-display); }
.tile__hint { font-size: 0.84rem; color: var(--ink-soft); }
.tile__count { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.tile[aria-pressed="true"] { border-color: var(--brand); background: var(--surface-2); box-shadow: inset 4px 0 0 var(--brand); }
.tile--other { border-style: dashed; }

.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 40px; display: grid; gap: 36px; }
.panel__head { display: grid; gap: 12px; }
.panel__head h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.panel__head a { font-size: 0.88rem; font-weight: 600; }
.panel__info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-box { background: var(--surface); border-radius: var(--r); padding: 22px 24px; min-width: 0; }
.info-box h4, .info-box h3 { margin: 0 0 10px; font: 600 0.76rem/1.3 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.info-box ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.92rem; display: grid; gap: 6px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.action { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--bg); transition: border-color .2s ease, background .2s ease; min-width: 0; }
.action:hover { border-color: var(--accent); }
.action input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand); cursor: pointer; }
.action strong { display: block; font-size: 0.97rem; color: var(--ink); margin-bottom: 4px; }
.action span { display: block; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }
.action:has(input:checked) { border-color: var(--brand); background: var(--surface); }

.result { background: var(--surface); border-radius: var(--r); padding: 28px; display: grid; gap: 18px; scroll-margin-top: 96px; }
.result__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.preview__box { background: var(--bg); border-radius: var(--r); border-left: 3px solid var(--wa); padding: 18px 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; color: var(--ink); min-height: 140px; }
.result__side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.result__hint { color: var(--ink-soft); font-size: 0.92rem; }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font: 600 0.9rem/1 var(--f-body); padding: 14px 20px; border-radius: 999px; color: var(--wa); background: var(--wa-soft); border: 1.5px solid var(--wa); transition: background .2s ease, color .2s ease; }
.btn-wa:hover { background: var(--wa); color: var(--bg); }
.btn-wa svg { width: 18px; height: 18px; }
.result.is-ready .btn-wa--main { background: var(--wa); color: var(--bg); }
.result:not(.is-ready) .btn-wa--main { opacity: 0.6; }
.btn-link { background: none; border: 0; color: var(--brand); font: 600 0.85rem/1 var(--f-body); cursor: pointer; padding: 10px 6px; text-decoration: underline; text-underline-offset: 3px; }
.preview__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.preview__note { font-size: 0.78rem; color: var(--ink-soft); }
.copied { font-size: 0.8rem; color: var(--wa); font-weight: 600; }

/* Página de área: lista de ações em texto */
.area-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 56px; align-items: start; }
.area-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.action-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.action-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.action-list h3 { font-size: 1.15rem; margin-bottom: 6px; }
.action-list p { color: var(--ink-soft); font-size: 0.95rem; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 0.85rem; text-decoration: none; color: var(--ink); }
.related a:hover { border-color: var(--accent); }

/* Atendimento e processo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { padding: 0 24px 0 0; display: grid; gap: 10px; align-content: start; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps .n { font: 600 2rem/1 var(--f-display); color: var(--brass); }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--ink-soft); font-size: 0.92rem; }
.path { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding-bottom: 20px; }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); display: grid; place-items: center; font: 600 0.82rem/1 var(--f-body); color: var(--accent); position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.timeline strong { display: block; color: var(--ink); font-size: 0.98rem; }
.timeline span { color: var(--ink-soft); font-size: 0.9rem; }
.callout { background: var(--surface); border-left: 3px solid var(--brand); padding: 18px 22px; border-radius: 0 var(--r) var(--r) 0; color: var(--ink-soft); font-size: 0.92rem; margin-top: 20px; }
.glossary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.glossary div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font: 600 1.05rem/1.3 var(--f-display); color: var(--ink); margin-bottom: 6px; }
.glossary dd { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc { border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; background: var(--bg); }
.doc h3 { font-size: 1.1rem; margin-bottom: 10px; }
.doc ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.92rem; display: grid; gap: 4px; }

.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 600 1.12rem/1.35 var(--f-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 400 1.6rem/1 var(--f-body); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-soft); font-size: 0.96rem; }

.office { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.office p { color: var(--ink-soft); }
.office p + p { margin-top: 14px; }
.contact-card { background: var(--surface); border-radius: var(--r); padding: 32px; display: grid; gap: 18px; }
.contact-card dl { margin: 0; display: grid; gap: 16px; }
.contact-card dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.contact-card dd { margin: 2px 0 0; color: var(--ink); overflow-wrap: anywhere; }

.footer { background: var(--hero-bg); color: var(--hero-soft); padding-block: 56px 40px; font-size: 0.86rem; }
.footer .wrap { display: grid; gap: 28px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer h2 { font: 600 0.76rem/1.3 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hero-ink); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--hero-ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer strong { color: var(--hero-ink); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.wa-mini { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 9px 14px; border-radius: 999px; font: 600 0.8rem/1 var(--f-body); background: var(--bg); color: var(--wa); border: 1.5px solid var(--wa); box-shadow: 0 4px 14px rgba(15,30,36,0.14); }
.wa-mini svg { width: 16px; height: 16px; }
.wa-mini:hover { background: var(--wa-soft); }

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

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-block: 72px; }
  .modes, .docs, .area-grid { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .split, .path, .office, .area-layout { grid-template-columns: 1fr; gap: 32px; }
  .area-aside { position: static; }
  .glossary { grid-template-columns: 1fr 1fr; }
  .result__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .brand__sub { display: none; }
}
@media (max-width: 640px) {
  .section { padding-block: 60px; }
  .modes, .docs, .actions, .panel__info, .glossary, .area-grid, .footer__grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; }
  .tile__hint { display: none; }
  .panel { padding: 24px 18px; gap: 28px; }
  .result { padding: 20px 16px; }
  .step-help { margin-left: 0; }
  .step-label { font-size: 1.15rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-left: 0; padding: 0; }
  .hero__actions .btn { width: 100%; }
  .brand__name { font-size: 0.78rem; letter-spacing: 0.08em; }
  .contact-card { padding: 24px 20px; }
}
