/* Телефон: своя последовательность — штамп → вичитка → ризики (карусель) → розрахунок → фрагмент → схема → коди → порядок. */
[data-layout="m"] { font-size: 16px; padding-bottom: 84px; }
.m-top { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.m-brand { font-weight: 700; }
.m-tag { font-size: .78rem; color: var(--ink-2); }

.m-hero { padding: 26px 16px 28px; background: var(--sheet); border-bottom: 2px solid var(--rule); position: relative; }
.m-stamp { font-size: .95rem; margin: 0 0 18px 4px; }
.m-hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.3rem); font-weight: 700; }
.m-lead { margin: 16px 0 20px; font-size: .98rem; }
.m-cta { width: 100%; justify-content: center; text-align: center; }
.m-note { font-size: .82rem; color: var(--ink-2); margin: 10px 0 0; }

.m-sec { padding: 26px 16px; border-bottom: 1px solid var(--rule); }
.m-sec h2 { font-size: 1.15rem; margin-bottom: 12px; }
.m-hint { font-size: .85rem; color: var(--ink-2); margin: 8px 0 0; }

.m-redact { display: block; width: 100%; text-align: left; font: 1rem/1.55 var(--mono); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule); padding: 16px 14px; cursor: pointer; min-height: 132px; -webkit-tap-highlight-color: transparent; position: relative; }
.m-redact .r-pair { display: block; padding: 3px 0; }
.m-redact.redacted.done .r-new { display: block; width: fit-content; }
.m-redact::after { content: "торкніться"; position: absolute; right: 8px; bottom: 6px; font-size: .7rem; color: var(--ink-2); }
.m-redact.done::after { content: "ще раз"; }

.m-car { overflow: hidden; touch-action: pan-y; }
.m-car-track { display: flex; transition: transform .35s cubic-bezier(.2,.7,.1,1); }
.m-card { flex: 0 0 100%; background: var(--sheet); border: 1px solid var(--rule); padding: 16px 14px 18px; min-height: 200px; }
.m-card h3 { font-size: 1.1rem; margin: 2px 0 6px; }
.m-card p { margin: 0; }
.mc-n { font-weight: 700; color: var(--stamp); }
.mc-law { font-size: .8rem; color: var(--ink-2); margin-bottom: 10px !important; border-bottom: 1px dotted var(--ink-2); padding-bottom: 8px; }
.m-car-ctl { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.m-car-ctl button { width: 48px; height: 44px; font: 700 1.3rem var(--mono); background: transparent; color: var(--ink); border: 1.5px solid var(--ink); cursor: pointer; }
.m-dots { display: flex; gap: 8px; }
.m-dots i { width: 9px; height: 9px; border: 1.5px solid var(--ink); }
.m-dots i.on { background: var(--ink); }

.m-count-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; margin-top: 12px; text-align: left;
  background: var(--mark); color: var(--ink); border: 2px solid var(--ink); padding: 18px 14px; font-family: var(--mono); cursor: pointer; min-height: 168px; -webkit-tap-highlight-color: transparent; }
.mcc-n { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.mcc-t { font-size: 1rem; }
.mcc-r { font-size: .8rem; color: var(--ink-2); border-top: 1px dotted var(--ink-2); padding-top: 6px; margin-top: auto; width: 100%; }
.m-count-card.flip { animation: flip .35s ease; }
@keyframes flip { from { transform: translateY(8px); opacity: .3; } to { transform: none; opacity: 1; } }
.m-count-pos { font-size: .82rem; color: var(--ink-2); margin: 8px 0 0; }

.m-chips .chip { flex: 1 1 auto; }
.m-frag { margin: 0; border-top: 1px solid var(--rule); }
.m-frag > div { padding: 10px 2px; border-bottom: 1px solid var(--rule-soft); transition: background .25s, opacity .25s; }
.m-frag dt { font-size: .8rem; color: var(--ink-2); }
.m-frag dd { margin: 2px 0 0; font-weight: 700; }
.m-frag dd.b { font-weight: 400; font-size: .8rem; color: var(--ink-2); }

.m-annex { margin: 0; }
.m-annex figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 8px; }

.m-codes summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; }
.m-codes ul { padding-left: 18px; margin: 4px 0 0; font-size: .9rem; }
.m-codes li { margin-bottom: 8px; }

.m-order ol { list-style: none; padding: 0; margin: 0; }
.m-order li { padding: 8px 0; }
.m-order .rooms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.m-order .rooms a { border: 1.5px solid var(--ink); padding: 10px 12px; text-decoration: none; font-weight: 700; font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; }

.m-foot { padding: 18px 16px; font-size: .78rem; color: var(--ink-2); }
.m-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .3s; z-index: 20; }
.m-bar.show { transform: none; }
.m-bar .btn-primary { width: 100%; justify-content: center; box-shadow: 3px 3px 0 var(--stamp); }

/* посилання «Конфіденційність» у підвалі — кольором тексту підвалу */
.m-foot a, .m-fine a { color: inherit; }
