/* Mais Saúde: componentes de conteúdo e de aplicação (adesão, loja, checkout, conta) */

[hidden] { display: none !important; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

/* ===== diretório de especialidades ===== */
.directory__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 56px); }
.directory__head .section-head { max-width: 640px; }
.directory__tools { display: grid; gap: 12px; justify-items: end; }
.directory__legend { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); display: inline-block; }
.search--lg { width: min(100%, 420px); }
.search--lg input { height: 58px; font-size: 1.02rem; box-shadow: var(--shadow-soft); border-color: transparent; }
.areas { columns: 3 320px; column-gap: var(--gap); }
.area {
  break-inside: avoid; margin-bottom: var(--gap); background: var(--surface); border-radius: var(--r-lg);
  padding: clamp(22px, 2.2vw, 30px); border: 1px solid var(--line); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.area:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.area[hidden] { display: none; }
.area__head { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; margin-bottom: 20px; }
.area__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--green-700); }
.area__icon .icon { width: 22px; height: 22px; }
.area__title { font-family: var(--serif); font-weight: 400; font-size: 1.32rem; line-height: 1.15; letter-spacing: -0.012em; }
.area__count { font-size: 0.8rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--paper); }
.area__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-spec {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid transparent; font-size: 0.9rem; color: var(--ink-2); line-height: 1.25;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip-spec:hover { border-color: var(--line-strong); color: var(--ink); }
.chip-spec.is-featured { background: var(--mist); color: var(--green-800); font-weight: 600; }
.chip-spec.is-featured::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-700); flex: none; }
.chip-spec[hidden] { display: none; }
.chip-spec mark { background: var(--lime-300); color: var(--ink); border-radius: 3px; padding: 0 1px; }

/* ===== benefícios ===== */
.benefits__head { margin-bottom: clamp(40px, 4vw, 60px); }
.benefits__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.benefits__list li { padding: 30px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.benefits__list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.benefits__icon { color: var(--green-700); }
.benefits__icon .icon { width: 28px; height: 28px; }
.benefits__title { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; letter-spacing: -0.015em; line-height: 1.1; }
.access-line { margin-top: clamp(64px, 7vw, 104px); padding: clamp(32px, 4vw, 56px); border-radius: var(--r-xl); background: var(--green-900); color: var(--on-dark); display: grid; gap: 22px; }
.access-line__label { font-size: var(--fs-micro); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--lime-300); }
.access-line__items { font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.7rem); line-height: 1.2; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; gap: 0.1em 0.45em; align-items: baseline; }
.access-line__items .plus { color: var(--red-500); font-weight: 300; }
.access-line__traits { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: var(--fs-small); }
.access-line__traits li { display: inline-flex; gap: 8px; align-items: center; }
.access-line__traits .icon { width: 16px; height: 16px; color: var(--lime-300); }

/* ===== formulários longos ===== */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.flow__aside { position: sticky; top: 104px; display: grid; gap: 16px; }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset + .fieldset, .block + .block { margin-top: clamp(36px, 4vw, 52px); }
.fieldset__head { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; margin-bottom: 22px; padding: 0; }
.fieldset__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: #fff; font-family: var(--serif); font-size: 1.1rem; }
.fieldset__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: -0.015em; line-height: 1.15; }
.fieldset__sub { font-size: var(--fs-small); color: var(--ink-3); margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.form-grid > .field { grid-column: span 3; }
.form-grid > .field--full { grid-column: 1 / -1; }
.form-grid > .field--2 { grid-column: span 2; }
.form-grid > .field--4 { grid-column: span 4; }
.req { color: var(--red-500); margin-left: 2px; }
.field__hint { font-size: 0.8rem; color: var(--ink-3); }
.input-wrap { position: relative; }
.input-wrap .field__btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px;
  border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center;
}
.input-wrap .field__btn:hover { background: var(--paper); color: var(--ink); }
.input-wrap .field__btn .icon { width: 20px; height: 20px; }
.input-wrap input.has-btn { padding-right: 56px; }
.field input:disabled, .field input[readonly] { background: var(--paper); color: var(--ink-2); }
.field .status-inline { font-size: 0.8rem; color: var(--ink-3); min-height: 1em; }

/* seleção segmentada */
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.seg span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 0.95rem; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.seg span small { font-weight: 500; opacity: 0.75; font-size: 0.82rem; }
.seg input:checked + span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--green-700); outline-offset: 3px; }
.seg--sm span { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }

/* caixa de seleção */
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.93rem; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.2s var(--ease); }
.check input:checked { background: var(--green-700); border-color: var(--green-700); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input[aria-invalid="true"] { border-color: #B3261E; }
.check a { color: var(--green-700); }

/* lista suspensa própria (o select nativo fica escondido como fonte do valor) */
.select { position: relative; }
.select__native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: 0; top: 0; }
.select__btn {
  width: 100%; min-height: 54px; padding: 0 48px 0 18px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--surface); text-align: left; font-size: 1rem; color: var(--ink); display: flex; align-items: center; position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.select__btn.is-empty { color: var(--ink-3); }
.select__btn > .icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.25s var(--ease); }
.select.is-open .select__btn { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(0, 90, 79, 0.12); }
.select.is-open .select__btn > .icon { transform: translateY(-50%) rotate(180deg); }
.select__btn[aria-invalid="true"] { border-color: #B3261E; }
.select__list, .ac__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: 288px; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-float); border: 1px solid var(--line); padding: 6px; margin: 0;
  opacity: 0; transform: translateY(-4px); visibility: hidden; transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}
.select.is-up .select__list { top: auto; bottom: calc(100% + 6px); transform: translateY(4px); }
.select.is-open .select__list, .ac.is-open .ac__list { opacity: 1; transform: none; visibility: visible; transition: opacity 0.18s var(--ease), transform 0.18s var(--ease); }
.select__opt, .ac__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 0.97rem; color: var(--ink-2);
}
.select__opt .icon { width: 16px; height: 16px; color: var(--green-700); opacity: 0; flex: none; }
.select__opt.is-active, .ac__opt.is-active { background: var(--paper); color: var(--ink); }
.select__opt[aria-selected="true"] { color: var(--green-700); font-weight: 600; }
.select__opt[aria-selected="true"] .icon { opacity: 1; }
.select--pill .select__btn { min-height: 46px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; }
.ac { position: relative; }
.ac__opt mark { background: none; color: var(--green-700); font-weight: 700; }
.ac__empty { padding: 12px; font-size: 0.9rem; color: var(--ink-3); }

/* avisos e selos */
.alert { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--mist); color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.alert .icon { width: 20px; height: 20px; color: var(--green-700); margin-top: 1px; }
.alert strong { color: var(--ink); }
.alert--warn { background: #FBF3E4; }
.alert--warn .icon { color: #8A5A00; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill--ok { background: #E3F2E7; color: #1E6B3A; }
.status-pill--wait { background: #FBF0DA; color: #8A5A00; }

/* ===== adesão ===== */
.plan-hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(32px, 4vw, 56px); }
.plan-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; margin-top: 22px; }
.plan-hero .h-display { font-size: clamp(2.8rem, 1.4rem + 4.4vw, 5.4rem); }
.plan-hero .lead { margin-top: 18px; max-width: 560px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.facts div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.facts dt { font-size: 0.8rem; color: var(--ink-3); }
.facts dd { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.steps-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.steps-bar li { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; color: var(--ink-3); transition: color 0.3s, border-color 0.3s; }
.steps-bar li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 0.8rem; transition: background-color 0.3s, color 0.3s; }
.steps-bar li.is-on { color: var(--ink); border-color: var(--line-strong); }
.steps-bar li.is-on span { background: var(--green-700); color: #fff; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 30px); }
.person + .person { margin-top: 14px; }
.person[hidden] { display: none; }
.person__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.person__tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; }
.person__tag .icon { width: 20px; height: 20px; color: var(--green-700); }
.person__fee { font-size: 0.82rem; color: var(--ink-3); }
.person.is-entering { animation: personIn 0.5s var(--ease); }
@keyframes personIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.count-pick { display: grid; gap: 12px; }
.count-pick legend { margin-bottom: 12px; }
.picker__label { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
.count-pick__note { font-size: 0.86rem; color: var(--ink-3); }

.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.order__head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.order__label { font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.order__name { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.015em; line-height: 1.1; }
.order__who { font-size: 0.88rem; color: var(--ink-3); }
.order__rows { padding: 8px 24px; }
.order__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 0.93rem; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.order__row:last-child { border-bottom: 0; }
.order__row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order__total { padding: 18px 24px; background: var(--paper); display: grid; gap: 6px; }
.order__total-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.order__total-line span { font-size: 0.9rem; color: var(--ink-2); }
.order__total-line strong { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.order__recurring { font-size: 0.86rem; color: var(--ink-3); }
.order__foot { padding: 18px 24px 22px; display: grid; gap: 12px; }
.aside-links { display: grid; gap: 10px; padding: 4px 4px 0; }

/* ===== loja e carrinho ===== */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.toolbar__count { font-size: 0.92rem; color: var(--ink-3); }
.toolbar .select { width: min(100%, 300px); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.product {
  display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.product:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.product__plan { font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--green-700); }
.product__name { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.12; letter-spacing: -0.015em; }
.product__name a { text-decoration: none; }
.product__name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.product__who { font-size: 0.92rem; color: var(--ink-3); margin-top: -8px; }
.product__price { padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.product__price strong { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; letter-spacing: -0.03em; line-height: 1; }
.product__price strong small { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-3); letter-spacing: 0; }
.product__price span { font-size: 0.86rem; color: var(--ink-3); }
.product .btn { margin-top: auto; }
.empty { text-align: center; padding: clamp(40px, 6vw, 72px) 20px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; justify-items: center; }
.empty__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--green-700); }
.empty__icon .icon { width: 32px; height: 32px; }
.empty .body { max-width: 440px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line-strong); }
.cart-line__name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: -0.01em; }
.cart-line__meta { font-size: 0.88rem; color: var(--ink-3); margin-top: 2px; }
.cart-line__price { font-variant-numeric: tabular-nums; text-align: right; font-size: 0.92rem; color: var(--ink-2); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; color: var(--ink-2); text-decoration: none; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn .icon { width: 18px; height: 18px; }

/* ===== checkout ===== */
.login-inline { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.login-inline summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 0.95rem; color: var(--ink-2); }
.login-inline summary::-webkit-details-marker { display: none; }
.login-inline summary b { color: var(--green-700); }
.login-inline summary > .icon { width: 20px; height: 20px; color: var(--green-700); }
.login-inline__body { padding: 0 18px 20px; display: grid; gap: 16px; }
.terms-box { max-height: 260px; overflow-y: auto; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); font-size: 0.86rem; line-height: 1.6; color: var(--ink-2); }
.terms-box h2 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--ink); margin: 18px 0 6px; }
.terms-box h2:first-child { margin-top: 0; }
.terms-box h3 { font-size: 0.9rem; margin: 14px 0 4px; color: var(--ink); font-family: var(--sans); font-weight: 700; }
.terms-box p + p, .terms-box ul { margin-top: 8px; }
.terms-box ul { padding-left: 18px; list-style: disc; }
.terms-box li + li { margin-top: 4px; }
.terms-box table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.82rem; }
.terms-box th, .terms-box td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.paybox { border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.paybox__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper); flex-wrap: wrap; }
.paybox__head b { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; }
.paybox__head .icon { width: 22px; height: 22px; color: var(--green-700); }
.paybox__secure { display: inline-flex; gap: 6px; align-items: center; font-size: 0.8rem; color: var(--ink-3); }
.paybox__secure .icon { width: 15px; height: 15px; color: var(--ink-3); }
.paybox__body { padding: 20px; display: grid; gap: 16px; }

/* ===== autenticação ===== */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.auth__brand { border-radius: var(--r-xl); background: var(--green-900); color: var(--on-dark); padding: clamp(28px, 4vw, 52px); display: grid; gap: 28px; align-content: space-between; position: relative; overflow: hidden; isolation: isolate; }
.auth__brand::after { content: "+"; position: absolute; right: -0.08em; bottom: -0.34em; z-index: -1; font-family: var(--serif); font-weight: 300; font-size: 26rem; line-height: 1; color: rgba(242, 241, 234, 0.05); }
.auth__list { display: grid; border-top: 1px solid var(--line-dark); }
.auth__list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: 0.93rem; }
.auth__list .icon { width: 22px; height: 22px; color: var(--lime-300); }
.auth__list b { display: block; color: var(--on-dark); font-weight: 600; }
.auth__card { background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--line); padding: clamp(28px, 4vw, 52px); display: grid; gap: 24px; align-content: center; }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ===== área do associado ===== */
.account { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.account__nav { position: sticky; top: 104px; display: grid; gap: 14px; }
.account__user { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); background: var(--green-900); color: var(--on-dark); }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-300); color: var(--green-950); font-family: var(--serif); font-size: 1.3rem; }
.account__user small { display: block; font-size: 0.78rem; color: var(--on-dark-2); }
.account__user b { font-weight: 600; font-size: 0.98rem; }
.account__menu { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; }
.account__menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-size: 0.94rem; font-weight: 500; transition: background-color 0.2s, color 0.2s; white-space: nowrap; }
.account__menu a .icon { width: 20px; height: 20px; color: var(--ink-3); }
.account__menu a:hover { background: var(--paper); color: var(--ink); }
.account__menu a[aria-current="page"] { background: var(--mist); color: var(--green-800); font-weight: 600; }
.account__menu a[aria-current="page"] .icon { color: var(--green-700); }
.account__menu .sep { border-top: 1px solid var(--line); margin: 6px 4px; }
.account__main { display: grid; gap: clamp(24px, 3vw, 36px); min-width: 0; align-content: start; }
.account__title { display: grid; gap: 10px; }
.account__title .h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.tile > .icon { width: 26px; height: 26px; color: var(--green-700); }
.tile b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: -0.01em; }
.tile span { font-size: 0.88rem; color: var(--ink-3); }
.tile--dark { background: var(--green-900); border-color: var(--green-900); color: var(--on-dark); }
.tile--dark > .icon { color: var(--lime-300); }
.tile--dark span { color: var(--on-dark-2); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.kv div:nth-child(odd) { padding-right: 16px; }
.kv dt { font-size: 0.8rem; color: var(--ink-3); }
.kv dd { font-weight: 600; color: var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.tbl th { text-align: left; font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line-strong); }
.tbl td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.tbl td:first-child { color: var(--ink); font-weight: 600; }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .actions { text-align: right; white-space: nowrap; }
.tbl tfoot td { font-weight: 600; color: var(--ink); }
.idcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.idcard {
  position: relative; aspect-ratio: 1.586; border-radius: 20px; padding: 20px 22px; overflow: hidden; isolation: isolate; color: var(--on-dark);
  background: radial-gradient(120% 90% at 100% 0%, rgba(214, 238, 110, 0.16), transparent 55%), linear-gradient(150deg, var(--green-700) 0%, var(--green-800) 55%, var(--green-950) 100%);
  display: grid; grid-template-rows: auto 1fr auto; box-shadow: var(--shadow-soft);
}
.idcard::after { content: "+"; position: absolute; right: -0.06em; bottom: -0.36em; z-index: -1; font-family: var(--serif); font-weight: 300; font-size: 14rem; line-height: 1; color: rgba(242, 241, 234, 0.06); }
.idcard--dep { background: radial-gradient(120% 90% at 100% 0%, rgba(214, 238, 110, 0.1), transparent 55%), linear-gradient(150deg, #11554B 0%, #0B3F38 60%, var(--green-950) 100%); }
.idcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.idcard__mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.idcard__mark img { width: 28px; height: 28px; border-radius: 50%; background: #fff; padding: 2px; }
.idcard__role { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--lime-300); white-space: nowrap; }
.idcard__name { align-self: center; font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 0.7vw, 1.6rem); letter-spacing: -0.015em; line-height: 1.1; }
.idcard__foot { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.66rem; color: var(--on-dark-2); }
.idcard__foot b { display: block; color: var(--on-dark); font-weight: 600; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.idcard-wrap { display: grid; gap: 10px; }
.idcard-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn--xs { min-height: 36px; padding: 0 14px; font-size: 0.84rem; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-title h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.015em; }
.meter { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--green-700); border-radius: inherit; }
.address { font-style: normal; line-height: 1.7; color: var(--ink-2); }

dialog.modal { border: 0; padding: 0; border-radius: var(--r-xl); width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
dialog.modal::backdrop { background: rgba(4, 35, 31, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__body { padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* 404 */
.notfound { min-height: 56vh; display: grid; align-content: center; gap: 26px; padding-block: clamp(64px, 10vw, 140px); }
.notfound__code { font-family: var(--serif); font-size: clamp(6rem, 3rem + 12vw, 13rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--green-700); }
.notfound__code span { color: var(--red-500); }
.notfound__links { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .areas { columns: 2 280px; }
  .benefits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .benefits__list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; }
  .flow__main { display: contents; }
  .flow__main > * { order: 1; }
  .flow__main > .block:last-child { order: 3; }
  .flow__aside { position: static; order: 2; }
  .plan-hero__grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: 1fr; }
  .auth__brand { order: 2; }
  .account { grid-template-columns: 1fr; }
  .account__nav { position: static; }
  .account__menu { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  .account__menu::-webkit-scrollbar { display: none; }
  .account__menu .sep { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .directory__tools { justify-items: start; width: 100%; }
  .search--lg { width: 100%; }
  .areas { columns: 1; }
  .benefits__list { grid-template-columns: 1fr; }
  .benefits__list li, .benefits__list li + li { padding-left: 0; border-left: 0; }
  .benefits__list li + li { border-top: 1px solid var(--line); }
  .access-line { border-radius: var(--r-lg); padding: 26px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid > .field, .form-grid > .field--2, .form-grid > .field--4 { grid-column: 1 / -1; }
  .products { grid-template-columns: 1fr; }
  .facts dd { font-size: 1.2rem; }
  .tiles { grid-template-columns: 1fr; }
  .idcards { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv div:nth-child(odd) { padding-right: 0; }
  .tbl--stack thead { display: none; }
  .tbl--stack tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tbl--stack td { border: 0; padding: 0; }
  .tbl--stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-weight: 500; }
  .tbl--stack .actions { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  .cart-line { grid-template-columns: 1fr auto; }
  .cart-line__price { grid-column: 1 / -1; text-align: left; }
  .steps-bar li { height: 36px; font-size: 0.8rem; padding-right: 12px; }
  .seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); width: 100%; }
  .seg span { justify-content: center; width: 100%; }
}
