/* ProFit Lab — общая тёмная тема */
:root {
  --bg: #0b0f19;
  --bg-footer: #070a12;
  --card: #131d31;
  --card-2: #182540;
  --accent: #38bdf8;
  --accent-2: #0ea5e9;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #1e293b;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 12px;
  --maxw: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: #7dd3fc; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: #0b0f19; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 29, 49, .85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--accent); text-decoration: none; letter-spacing: .5px; white-space: nowrap; }
.logo:hover { color: #7dd3fc; }
.logo span { color: var(--text); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-weight: 500;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--accent); background: rgba(56, 189, 248, .08); }
.main-nav a[aria-current="page"] { color: var(--accent); background: rgba(56, 189, 248, .14); }
.nav-toggle {
  display: none; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer;
}

/* ---------- Типографика и каркас ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 50px 20px; }
.container.narrow { max-width: 820px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.4rem; font-weight: 800; }
h2 { font-size: 1.7rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 12px; }
.section-lead { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 40px; }
.page-head { text-align: center; padding: 60px 20px 10px; max-width: 820px; margin: 0 auto; }
.page-head p { color: var(--muted); font-size: 1.1rem; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 90px 20px 50px; max-width: 860px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(56, 189, 248, .4); border-radius: 999px; padding: 4px 14px; margin-bottom: 22px;
}
.hero h1 { font-size: 2.9rem; margin-bottom: 20px; }
.hero p { color: var(--muted); font-size: 1.2rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
  max-width: 860px; margin: 10px auto 0; padding: 0 20px 20px; list-style: none;
}
.hero-stats li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--accent); }
.hero-stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; text-align: center; cursor: pointer; border: 1px solid var(--accent);
  background: var(--accent); color: #0b0f19; padding: 12px 24px; border-radius: 8px;
  font: inherit; font-weight: 700; text-decoration: none; transition: opacity .2s, transform .2s, background .2s;
}
.btn:hover { opacity: .9; color: #0b0f19; transform: translateY(-1px); }
.btn.btn-outline { background: transparent; color: var(--accent); }
.btn.btn-outline:hover { background: rgba(56, 189, 248, .1); color: var(--accent); }
.btn.btn-block { display: block; width: 100%; }
.btn.btn-lg { padding: 15px 32px; font-size: 1.1rem; }

/* ---------- Карточки ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 25px; margin-bottom: 40px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(56, 189, 248, .25), 0 12px 40px rgba(14, 165, 233, .12); }
.card h3 { margin-top: 0; color: #fff; }
.card p { color: var(--muted); }
.badge {
  display: inline-block; align-self: flex-start; background: var(--accent); color: #0b0f19;
  padding: 3px 10px; border-radius: 4px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; margin-bottom: 12px;
}
.price { font-size: 2rem; font-weight: 800; color: var(--accent); margin: 10px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.features { list-style: none; padding: 0; margin: 14px 0 25px; color: var(--muted); }
.features li { margin-bottom: 10px; position: relative; padding-left: 24px; }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .ico { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Калькулятор ---------- */
.calculator {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; max-width: 640px; margin: 0 auto 20px;
}
.calculator h3 { text-align: center; margin-bottom: 22px; }
.calc-group { margin-bottom: 22px; border: 0; padding: 0; min-width: 0; }
.calc-group legend, .calc-group > label { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 500; padding: 0; }
.calc-group select {
  width: 100%; padding: 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: #fff; font: inherit;
}
.term-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.term-options input { position: absolute; opacity: 0; pointer-events: none; }
.term-options label {
  display: block; text-align: center; padding: 12px 6px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; line-height: 1.3;
}
.term-options label small { display: block; color: var(--ok); font-weight: 700; }
.term-options input:checked + label { border-color: var(--accent); background: rgba(56, 189, 248, .12); }
.term-options input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-summary { border-top: 1px solid var(--border); padding-top: 18px; margin-bottom: 20px; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--muted); }
.calc-row strong { color: var(--text); font-weight: 600; }
.calc-row.saving strong { color: var(--ok); }
.calc-total { font-size: 1.7rem; font-weight: 800; color: var(--accent); text-align: center; margin: 14px 0 0; }
.calc-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 30px; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--card); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--card-2); font-weight: 700; }
td { color: var(--muted); }
td:first-child, th:first-child { color: var(--text); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #64748b; }

/* ---------- Шаги / FAQ / заметки ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 20px 72px; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #0b0f19; font-weight: 800; display: grid; place-items: center;
}
.steps h3 { margin-bottom: .25em; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

details.faq { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
details.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 48px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.4rem; color: var(--accent); }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 20px 16px; color: var(--muted); }

.notice {
  background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .35);
  border-left: 4px solid var(--accent); border-radius: 8px; padding: 16px 20px; margin: 24px 0; color: #cbd5e1;
}
.notice.warn { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .35); border-left-color: var(--warn); }
.notice p:last-child { margin: 0; }
.cta-band {
  background: linear-gradient(135deg, var(--card) 0%, var(--card-2) 100%); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 24px; text-align: center; margin-top: 30px;
}
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 40px; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.contact-card h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.contact-card p { margin: 0; font-size: 1.05rem; }
dl.req { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
dl.req dt { color: var(--muted); }
dl.req dd { margin: 0; }

/* ---------- База знаний и статьи ---------- */
.article-list { display: grid; gap: 22px; }
.article-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color .2s; }
.article-card:hover { border-color: var(--accent); }
.article-card h2 { font-size: 1.35rem; margin-bottom: 8px; }
.article-card h2 a { color: var(--text); text-decoration: none; }
.article-card h2 a:hover { color: var(--accent); }
.article-card p { color: var(--muted); }
.meta { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.tag { background: rgba(56, 189, 248, .12); color: var(--accent); padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }

.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.8em; padding-top: .4em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: #fff; }
.prose code, .formula {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; color: #7dd3fc;
}
.formula { display: block; padding: 14px 18px; margin: 0 0 1.2em; overflow-x: auto; white-space: pre-wrap; }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px; margin: 0 0 30px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-section { scroll-margin-top: 90px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.article-section:last-of-type { border-bottom: 0; }

/* --- Список статей: фильтры, сетка карточек --- */
.article-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.article-card { display: flex; flex-direction: column; }
.article-card[hidden] { display: none; }
.article-card p { flex: 1 1 auto; }
.read-more { font-weight: 600; text-decoration: none; align-self: flex-start; }
.read-more:hover { text-decoration: underline; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
html:not(.js) .filter-tabs, html:not(.js) .filter-status { display: none; }
.filter-tab {
  background: var(--card); color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font: inherit; font-weight: 600; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.filter-tab:hover { color: var(--text); border-color: var(--accent); }
.filter-tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0b0f19; }
.filter-tab .count { font-size: .8rem; opacity: .75; margin-left: 4px; }
.filter-status { text-align: center; font-size: .9rem; min-height: 1.4em; margin-bottom: 18px; }

/* --- Страница статьи: крошки, «читайте также», навигация --- */
.breadcrumbs span[aria-current] { color: var(--text); }
a.tag { text-decoration: none; }
a.tag:hover { background: rgba(56, 189, 248, .22); }
.prose h2 { scroll-margin-top: 90px; }
.prose .table-wrap { margin-top: 1em; }
.prose p.muted { font-size: .92rem; }
.related { margin-top: 44px; }
.related h2 { font-size: 1.4rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related-card {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.related-card .muted { font-size: .88rem; line-height: 1.5; }
.article-nav a { max-width: 48%; text-decoration: none; font-weight: 600; }
.article-nav a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .article-list { grid-template-columns: 1fr; }
  .article-nav a { max-width: 100%; }
}

/* ---------- Юридические документы ---------- */
.legal { font-size: 1rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; color: #fff; }
.legal p, .legal li { color: #cbd5e1; }
.legal ol { padding-left: 1.3em; }
.legal .clauses { list-style: none; padding: 0; margin: 0 0 1em; }
.legal .clauses li { margin-bottom: .7em; }
.legal .clauses li > span.n { color: var(--accent); font-weight: 700; margin-right: .5em; }
.legal .date { color: var(--muted); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--border); color: var(--muted); font-size: .92rem; margin-top: 40px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 24px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 30px;
}
.footer-inner h4 { color: var(--text); font-size: .95rem; margin-bottom: 10px; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; }
.footer-inner li { margin-bottom: 6px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); text-decoration: underline; }
.footer-inner p { margin: 0 0 6px; }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid var(--border); text-align: center; font-size: .85rem; }

/* ---------- Адаптивность ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .js .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #101828; border-bottom: 1px solid var(--border); padding: 10px 20px 16px; }
  .js .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .no-js-fallback .main-nav ul { flex-wrap: wrap; }
  html:not(.js) .header-inner { flex-direction: column; align-items: flex-start; }
  html:not(.js) .main-nav ul { flex-wrap: wrap; flex-direction: row; }
  html:not(.js) .nav-toggle { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  h1, .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 560px) {
  .container { padding: 36px 16px; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: 1.8rem; }
  .calculator { padding: 24px 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  dl.req { grid-template-columns: 1fr; gap: 0; }
  dl.req dd { margin-bottom: 10px; }
  .term-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .legal p, .legal li, .prose { color: #000; }
}
.center { text-align: center; }
.mt { margin-top: 50px; }

/* ---------- Каталог: карточки программ ---------- */
[hidden] { display: none !important; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 8px; }
.product-card { gap: 18px; }
.product-card h3 { font-size: 1.15rem; margin: 0 0 .5em; }
.product-card .lead { font-size: .95rem; margin-bottom: 0; }
.product-card .features { font-size: .93rem; margin: 14px 0 0; }
.product-card .buy { border-top: 1px solid var(--border); padding-top: 14px; }
.product-card .price { margin-top: 0; margin-bottom: 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.chips li {
  background: rgba(56, 189, 248, .1); color: #7dd3fc; border-radius: 999px;
  padding: 2px 10px; font-size: .78rem; font-weight: 600; line-height: 1.5;
}
.feature-link { display: block; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.feature-link:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.feature-link h3 { color: #fff; }
.calc-label { display: block; margin-bottom: 4px; color: var(--muted); font-weight: 500; }
.calc-service { display: block; line-height: 1.4; }
.terms-table { min-width: 460px; margin: 0; }
.terms-table + * { margin-top: 0; }

/* ---------- Окно заказа ---------- */
html.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center;
  background: rgba(3, 7, 18, .78); padding: 24px 12px; overflow-y: auto;
}
.modal {
  position: relative; width: 100%; max-width: 560px; margin: auto; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 28px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.modal h2 { font-size: 1.35rem; padding-right: 36px; margin-bottom: 14px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--border); font: inherit; font-size: 1.2rem; line-height: 1;
}
.modal-close:hover { color: var(--text); border-color: var(--accent); }
.order-product { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.order-product strong { display: block; line-height: 1.4; }
.order-product .order-price { display: block; margin-top: 6px; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.order-fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.order-fieldset legend { padding: 0; margin-bottom: 8px; color: var(--muted); font-weight: 500; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label {
  display: block; text-align: center; padding: 10px 8px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); cursor: pointer; line-height: 1.3; transition: border-color .2s, background .2s;
}
.choice-row label small { display: block; color: var(--ok); font-weight: 700; }
.choice-row input:checked + label { border-color: var(--accent); background: rgba(56, 189, 248, .12); }
.choice-row input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; padding: 11px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: #fff; font: inherit;
}
.field input[aria-invalid="true"] { border-color: #f87171; }
.field-error { color: #fca5a5; font-size: .85rem; margin: 6px 0 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 14px; font-size: .92rem; color: #cbd5e1; }
.consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.order-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 14px; color: var(--muted); }
.order-total strong { font-size: 1.5rem; color: var(--accent); }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.order-hint { color: var(--muted); font-size: .82rem; text-align: center; margin: 10px 0 0; }
.order-summary { margin: 0 0 16px; }
.order-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.order-summary dt { color: var(--muted); flex: 0 0 38%; }
.order-summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.order-summary .sum-total dd { color: var(--accent); font-weight: 800; font-size: 1.2rem; }
.order-done-actions { display: grid; gap: 10px; margin-top: 16px; }
@media (max-width: 560px) {
  .modal { padding: 22px 16px 18px; }
  .order-summary div { flex-direction: column; gap: 2px; }
  .order-summary dd { text-align: left; }
}
