/* ==========================================================================
   content.css — компоненти контентних сторінок (Milestone 2)
   ДЖЕРЕЛО ТОКЕНІВ: tokens.css / DESIGN-TOKENS.md §7 (перелік компонентів:
   картка тарифу звичайна+популярна, картка формату, акордеон FAQ,
   таблиця прайсу, хлібні крихти, картка офісу, блок статусу, бейдж-пігулка).
   Кольори/радіуси/тіні — лише через var(--...) з tokens.css, нових значень
   палітри тут не додається (DESIGN-TOKENS.md §2 — заборона нових кольорів).
   ========================================================================== */

/* --- Хлібні крихти --- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: underline; text-decoration-color: transparent; }
.breadcrumbs a:hover { color: var(--brand); text-decoration-color: var(--brand); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* --- Callout (переваги/особливі повідомлення) --- */
.callout {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.callout-brand { border-color: var(--brand-soft); background: var(--brand-soft); }
.callout p:last-child { margin-bottom: 0; }

/* --- Картки (generic) --- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-grid {
  display: grid;
  gap: var(--grid-gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Бейдж-пігулка --- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: .8125rem;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
}

/* --- Картка тарифу (звичайна + популярна) --- */
.tariff-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--dur-ui) var(--ease-ui), border-color var(--dur-ui) var(--ease-ui);
}
.tariff-card:hover { box-shadow: var(--shadow-md); }
.tariff-card--popular {
  border-color: var(--brand);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}
.tariff-card--popular .badge-pill {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--brand);
  color: var(--on-cream);
}
.tariff-card h3 { font-family: var(--font-heading); font-size: 1.35rem; margin-bottom: 0; }
.tariff-card .tariff-price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}
.tariff-card .tariff-price small { font-size: 1rem; color: var(--text-muted); font-family: var(--font-body); }
.tariff-card .tariff-condition { color: var(--text-muted); font-size: .9375rem; }

/* --- Картка формату --- */
.format-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur-ui) var(--ease-ui), transform var(--dur-ui) var(--ease-ui);
}
.format-card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--text); }
.format-card .format-icon { width: 48px; height: 48px; color: var(--brand); }
.format-card h3 { font-size: 1.15rem; }
.format-card p { color: var(--text-muted); font-size: .9375rem; margin: 0; }

/* --- Акордеон FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform var(--dur-ui) var(--ease-ui);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--text-muted); }
.faq-item .faq-answer p:first-child { margin-top: 0; }

/* --- Картка відгуку --- */
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-card .review-rating { color: var(--brand); letter-spacing: 2px; }
.review-card .review-author { font-weight: 600; }
.review-card .review-placeholder-note {
  font-size: .8125rem;
  color: var(--warn);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  margin-top: 4px;
}

/* --- Таблиця прайсу (додаткові послуги) --- */
.price-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.price-table th, .price-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.price-table th { color: var(--text-muted); font-weight: 600; font-size: .875rem; }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

/* ==========================================================================
   Сторінка «Контакти» — картковий редизайн (30.08.2026, за скріншотом
   власника): телефони / «Напишіть нам» / графік роботи / адреси офісів /
   адреси для відправки — окремі картки .card у сітці card-grid--2, і карта
   Google — окремим блоком office-card нижче.
   ========================================================================== */
.contacts-cards-grid { margin-bottom: var(--grid-gutter); }
.contacts-cards-grid .card h3 { margin-bottom: 16px; }

.contacts-phone-list { display: flex; flex-direction: column; gap: 14px; }
.contacts-phone-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text);
}
.contacts-phone-link strong { font-size: 1.0625rem; }
.contacts-phone-link:hover strong { color: var(--brand); }

.contacts-messenger-list { display: flex; flex-direction: column; gap: 10px; }
.contacts-messenger-btn { width: 100%; justify-content: center; }

.contacts-schedule-list, .contacts-office-address-list { display: flex; flex-direction: column; gap: 16px; }
.contacts-schedule-item + .contacts-schedule-item,
.contacts-office-address-item + .contacts-office-address-item {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

/* Кольорові мітки офісів — узгоджені між картками «Графік роботи»,
   «Адреси офісів» і картою нижче, щоб було видно, який рядок якому
   офісу відповідає (як на скріншоті-макеті власника). Перший офіс у
   OFFICES (Лівий берег/Ревуцького) — бренд-жовтогарячий, другий
   (центр/Саксаганського) — бірюзовий (--cta), щоб не додавати нових
   кольорів поза палітрою (DESIGN-TOKENS.md §2). */
.contacts-office-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.contacts-office-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.contacts-office-label[data-office="revutskogo"] { color: var(--brand); }
.contacts-office-label[data-office="saksaganskogo"] { color: var(--cta); }
.contacts-office-label[data-office="saksaganskogo"]::before { background: var(--cta); }

.contacts-shipping-card { margin-top: var(--grid-gutter); }
.contacts-shipping-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.contacts-shipping-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* --- Картка офісу --- */
.office-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.office-card .office-map-facade {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.office-card .office-map-facade iframe { width: 100%; height: 220px; border: 0; display: block; }

/* --- Facade-кнопка карти (до кліку): заглушка з іконкою замість iframe --- */
.map-facade-btn {
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 30% 30%, var(--brand-soft), transparent 60%),
    var(--surface-2);
  border: 0;
  color: var(--brand);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  transition: background var(--dur-ui) var(--ease-ui);
}
.map-facade-btn:hover { background: var(--surface-2); color: var(--brand-hover); }
.map-facade-btn i { font-size: 1.5rem; }
.office-map-facade[data-loaded="true"] .map-facade-btn { display: none; }
.map-facade-noscript-link { display: block; padding: 16px; text-align: center; color: var(--brand); }

/* --- Секційна CTA-плитка ---
   ВАЖЛИВО: .section-cta завжди використовується ВСЕРЕДИНІ .container.section
   (яка вже сама має padding-block: var(--section-pad) зверху й знизу).
   Раніше тут був margin: var(--section-pad) 0 — тобто ще +56..120px згори
   ТА знизу ПОВЕРХ padding батьківської секції, що на стику двох секцій
   давало подвійний/потрійний відступ (баг «занадто великий проміжок між
   блоками» на десктопі й мобільній версії). 32px 0 — той самий відступ,
   який і так уже вручну виставлявся інлайн-стилями в pages.tsx/formats.tsx
   (style="margin:32px 0;"), тепер це узгоджений дефолт. */
.section-cta {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}
.section-cta h2 { margin: 0; }
.section-cta p { color: var(--text-muted); max-width: 60ch; margin: 0; }

/* --- Прозаїчний блок body_html (сторінки/лендинги з БД) --- */
.page-body { max-width: 68ch; }
.page-body h2 { margin-top: 2.2em; margin-bottom: .6em; }
.page-body h2:first-child { margin-top: 0; }
.page-body p { margin: 0 0 1.1em; }
.page-body ul, .page-body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.page-body li { margin-bottom: .4em; }
.page-body a { text-decoration: underline; }

/* --- Секція сторінки (обгортка над .section для контентних блоків) --- */
.content-section + .content-section { padding-top: 0; }

/* ==========================================================================
   11. Блог (Milestone 4) — STRUCTURE.md §3, DESIGN-TOKENS.md §5
   Сітка: 1 колонка <768px · 2 колонки 768–1023px · 3 колонки ≥1024px.
   ========================================================================== */
.blog-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 32px;
}
.blog-category-filter a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 600;
}
.blog-category-filter a:hover { color: var(--brand); border-color: var(--brand); }
.blog-category-filter a[aria-current="true"] { background: var(--brand); color: var(--on-cream); border-color: var(--brand); }

.blog-grid {
  display: grid;
  gap: var(--grid-gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-ui) var(--ease-ui), transform var(--dur-ui) var(--ease-ui);
}
.post-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.post-card-link { display: flex; flex-direction: column; color: var(--text); }
.post-card-link:hover { color: var(--text); }
.post-card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card-cover-placeholder { display: block; width: 100%; height: 100%; background: var(--surface-2); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.post-card-body .badge-pill { align-self: flex-start; }
.post-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
}
.post-card-excerpt {
  color: var(--text-muted);
  font-size: .9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--text-muted);
  font-size: .8125rem;
}
.post-card-cta { color: var(--brand); font-weight: 700; font-size: .9rem; }

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.blog-pagination-pages { display: flex; gap: 6px; align-items: center; }
.blog-pagination a, .blog-pagination [aria-current="page"] {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
}
.blog-pagination a:hover { color: var(--brand); background: var(--brand-soft); }
.blog-pagination [aria-current="page"] { background: var(--brand); color: var(--on-cream); }
.blog-pagination-disabled { color: var(--text-muted); opacity: .4; }
.blog-pagination-ellipsis { color: var(--text-muted); }

.post-article { max-width: 68ch; margin: 0 auto; }
.post-article h1 { margin-top: 12px; }
.post-article-meta { margin: 16px 0 24px; }
.post-article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.post-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.post-related { max-width: var(--container-max); margin: 64px auto 0; }
.post-related h2 { margin-bottom: 24px; }

/* ==========================================================================
   12. Форми (Milestone 5) — DESIGN-TOKENS.md §7 «поле форми з помилкою»,
   §2 (--err лише в статусах/валідації).
   ========================================================================== */
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--text);
}
.form-field .form-hint { font-size: .8125rem; color: var(--text-muted); }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--dur-ui) var(--ease-ui), box-shadow var(--dur-ui) var(--ease-ui);
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 2px var(--cta);
}
.form-field--error input, .form-field--error select, .form-field--error textarea {
  border-color: var(--err);
}
.form-field--error .form-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--err);
  font-size: .8125rem;
}
/* honeypot: приховане від людей, доступне ботам-парсерам DOM без CSS-евристик */
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checkbox-field { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-field input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cta); flex-shrink: 0; }
.checkbox-field span { font-size: .9375rem; color: var(--text); }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.form-status-msg { font-size: .9375rem; }
.form-status-msg--ok { color: var(--ok); }
.form-status-msg--err { color: var(--err); }

/* Cloudflare Turnstile — рендериться з data-size="flexible" (потрібно було
   для вузьких мобільних колонок ~220-270px, де фіксовані 300px не вміщались),
   тому віджет підлаштовується під ширину БАТЬКІВСЬКОГО контейнера. На
   десктопі (широка форма) це виглядало як розтягнута на всю форму смуга —
   баг. Обмежуємо контейнер до min(300px, 100%): на мобільних (де доступна
   ширина < 300px) обмеження не заважає — віджет усе одно займає всю
   доступну ширину; на десктопі — тримає компактний «як у Cloudflare»
   вигляд ~300px замість розтягування на всю форму. */
.cf-turnstile, .cf-turnstile-slot { margin-top: 4px; max-width: min(300px, 100%); overflow: hidden; }
.cf-turnstile iframe, .cf-turnstile-slot iframe { max-width: 100%; }

/* ==========================================================================
   13. Тост (DESIGN-TOKENS.md §7)
   ========================================================================== */
.toast {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-top: 8px;
  box-shadow: var(--shadow-md);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in var(--dur-ui) var(--ease-ui);
}
.toast--ok { border-color: var(--ok); }
.toast--err { border-color: var(--err); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   14. Перемикач «Терміново ×2» (DESIGN-TOKENS.md §7)
   ========================================================================== */
.urgent-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--dur-ui) var(--ease-ui), background var(--dur-ui) var(--ease-ui);
}
.urgent-toggle[data-active="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.urgent-toggle-label { display: flex; flex-direction: column; gap: 2px; }
.urgent-toggle-label strong { font-family: var(--font-heading); font-size: .9375rem; }
.urgent-toggle-label span { font-size: .8125rem; color: var(--text-muted); }
.urgent-toggle-switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--line);
  border: 0;
  cursor: pointer;
  transition: background var(--dur-ui) var(--ease-ui);
}
.urgent-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--text);
  transition: transform var(--dur-ui) var(--ease-ui);
}
.urgent-toggle-switch[aria-checked="true"] { background: var(--brand); }
.urgent-toggle-switch[aria-checked="true"]::after { transform: translateX(22px); background: var(--on-cream); }
.urgent-toggle-switch:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.urgent-toggle-note {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 700;
  font-size: .8125rem;
}
.urgent-toggle[data-active="true"] .urgent-toggle-note { display: flex; }

/* ==========================================================================
   15. Калькулятор
   ========================================================================== */
.calculator-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.calculator-mode-switch { display: flex; gap: 8px; }
.calculator-mode-switch button {
  flex: 1;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-ui), color var(--dur-ui) var(--ease-ui), background var(--dur-ui) var(--ease-ui);
}
.calculator-mode-switch button[aria-pressed="true"] {
  border-color: var(--brand);
  color: var(--on-cream);
  background: var(--brand);
}
.calculator-result {
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calculator-result-row { display: flex; justify-content: space-between; font-size: .9375rem; color: var(--text-muted); }
.calculator-result-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.calculator-result-total small { font-size: 1rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }
.calculator-result-error { color: var(--err); font-size: .9375rem; }

/* ==========================================================================
   16. Блок статусу замовлення (/status) (DESIGN-TOKENS.md §7)
   ========================================================================== */
.order-status-search { display: flex; gap: 10px; max-width: 420px; }
.order-status-search input {
  flex: 1;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.order-status-block {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.order-status-code { font-family: var(--font-mono); color: var(--text-muted); font-size: .9375rem; margin-bottom: 20px; }
.order-status-code strong { color: var(--text); letter-spacing: .05em; }
.order-status-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  counter-reset: step;
}
.order-status-step {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 3px solid var(--line);
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 600;
}
.order-status-step[data-state="done"] { border-top-color: var(--brand); color: var(--text); }
.order-status-step[data-state="current"] { border-top-color: var(--cta); color: var(--text); }
.order-status-step-icon { font-size: 1.1rem; color: inherit; }
.order-status-step[data-state="done"] .order-status-step-icon { color: var(--brand); }
.order-status-step[data-state="current"] .order-status-step-icon { color: var(--cta); }
.order-status-not-found { color: var(--err); margin-top: 20px; }

/* ==========================================================================
   17. Плаваючий віджет месенджерів (DESIGN-TOKENS.md §7, §9)
   ========================================================================== */
.floating-widget {
  position: fixed;
  right: 20px;
  bottom: calc(var(--sticky-h) + 20px);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
@media (min-width: 1024px) { .floating-widget { bottom: 24px; } }
.floating-widget-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cta);
  color: var(--on-cta);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--dur-ui) var(--ease-ui), transform var(--dur-ui) var(--ease-ui);
}
.floating-widget-toggle:hover { background: var(--cta-hover); }
.floating-widget-toggle[aria-expanded="true"] { transform: rotate(45deg); }
.floating-widget-panel {
  width: min(320px, calc(100vw - 40px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.floating-widget-panel[hidden] { display: none; }
.floating-widget-title { font-family: var(--font-heading); font-size: 1.05rem; margin: 0; }
.floating-widget-channels { display: flex; gap: 10px; }
.floating-widget-channels a {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.1rem;
  transition: border-color var(--dur-ui) var(--ease-ui), color var(--dur-ui) var(--ease-ui);
}
.floating-widget-channels a:hover { border-color: var(--brand); color: var(--brand); }
.floating-widget-divider { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: .8125rem; }
.floating-widget-divider::before, .floating-widget-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
