/* ============================================================================
 *  main.css — стили публичного сайта (главная, поиск, вакансии)
 *  Подключается после variables.css / base.css / components.css.
 * ========================================================================== */

/* --- Шапка публичная -------------------------------------------------------*/
.city-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-full);
  background: var(--color-surface-2); color: var(--color-text);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  white-space: nowrap; transition: var(--transition-fast);
}
.city-btn:hover { background: var(--color-border); color: var(--color-text); }
.city-btn i:first-child { color: var(--color-primary); }
@media (max-width: 768px) { .city-btn span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; } }

/* Поиск с автодополнением */
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown); overflow: hidden; display: none;
}
.search-suggest.is-open { display: block; animation: fadeInUp 0.15s ease both; }
.suggest-group { padding: 6px; }
.suggest-group__title { font-size: var(--fs-xs); color: var(--color-text-light); padding: 6px 10px; text-transform: uppercase; letter-spacing: .03em; }
.suggest-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--color-text);
  transition: var(--transition-fast);
}
.suggest-item:hover { background: var(--color-surface-2); }
.suggest-item img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.suggest-item .price { margin-left: auto; color: var(--color-primary); font-weight: var(--fw-semibold); }

/* Список городов */
.city-item {
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition-fast);
}
.city-item:hover { background: var(--color-surface-2); }
.city-item small { color: var(--color-text-light); }

/* --- Переключатель режимов ------------------------------------------------ */
.view-switch {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--color-surface-2); border-radius: var(--radius-full);
}
.view-switch__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-full);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--color-text-muted); transition: var(--transition-fast);
}
.view-switch__btn.is-active { background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow-sm); }

/* --- Баннер-слайдер -------------------------------------------------------- */
.banner-slider {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: var(--space-6); background: var(--color-surface-2);
}
.banner-track { display: flex; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.banner-slide { min-width: 100%; aspect-ratio: 1100 / 320; position: relative; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide__title {
  position: absolute; left: var(--space-6); bottom: var(--space-6);
  color: #fff; font-size: 1.5rem; font-weight: var(--fw-bold);
  text-shadow: 0 2px 12px rgba(0,0,0,.4); max-width: 60%;
}
.banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: var(--transition-fast); }
.banner-dot.is-active { background: #fff; width: 22px; border-radius: var(--radius-full); }
@media (max-width: 640px) { .banner-slide { aspect-ratio: 16/9; } .banner-slide__title { font-size: 1.1rem; left: 16px; bottom: 16px; } }

/* --- Категории (горизонтальный скролл) ------------------------------------ */
.cat-scroller {
  display: flex; gap: var(--space-4); overflow-x: auto;
  padding-bottom: var(--space-2); margin-bottom: var(--space-6);
  scrollbar-width: none;
}
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 84px; cursor: pointer;
}
.cat-item__icon {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: var(--color-primary-bg); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  transition: var(--transition);
}
.cat-item:hover .cat-item__icon { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-item.is-active .cat-item__icon { background: var(--color-primary); color: #fff; }
.cat-item span { font-size: var(--fs-xs); color: var(--color-text); text-align: center; }

/* --- Панель действий главной ----------------------------------------------*/
.home-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-5); }

/* --- Сетка организаций ----------------------------------------------------- */
.shop-status-dot { display: inline-flex; align-items: center; gap: 4px; }

/* --- Блок вакансий на главной --------------------------------------------- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: var(--space-8) 0 var(--space-4); }
.jobs-scroller { display: flex; gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-2); scrollbar-width: none; }
.jobs-scroller::-webkit-scrollbar { display: none; }
.job-mini { min-width: 260px; }

/* --- Карточка вакансии ----------------------------------------------------- */
.vacancy-card { display: block; }
.vacancy-card__top { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.vacancy-card__logo { width: 44px; height: 44px; border-radius: var(--radius-md); object-fit: cover; background: var(--color-surface-2); }
.vacancy-card__salary { font-size: 1.125rem; font-weight: var(--fw-bold); color: var(--color-primary); margin: var(--space-2) 0; }
.vacancy-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0; }

/* --- Поиск: табы результатов ----------------------------------------------*/
.search-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-5); overflow-x: auto; }

/* --- Сетка фильтров вакансий ---------------------------------------------- */
.filters-bar { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-5); }
.filters-bar .select, .filters-bar .input { width: auto; min-width: 160px; }

/* --- Подвал ---------------------------------------------------------------- */
.pub-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); margin-top: var(--space-12); padding: var(--space-8) 0; color: var(--color-text-muted); }
.pub-footer a { color: var(--color-text-muted); }
.pub-footer a:hover { color: var(--color-primary); }

/* ============================================================================
 *  Страница организации
 * ========================================================================== */
.shop-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-5); background: var(--color-surface-2); }
.shop-hero__banner { aspect-ratio: 1100/300; }
.shop-hero__banner img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%); }
.shop-hero__info { position: absolute; left: var(--space-6); bottom: var(--space-5); right: var(--space-6); display: flex; align-items: flex-end; gap: var(--space-4); color: #fff; }
.shop-hero__logo { width: 84px; height: 84px; border-radius: var(--radius-lg); border: 3px solid #fff; object-fit: cover; background: #fff; flex-shrink: 0; }
.shop-hero__name { font-size: 1.75rem; font-weight: var(--fw-bold); text-shadow: 0 2px 10px rgba(0,0,0,.4); margin: 0; line-height: 1.2; }   /* это h1 — гасим браузерные отступы */
.shop-hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
@media (max-width: 640px) { .shop-hero__banner { aspect-ratio: 16/9; } .shop-hero__logo { width: 56px; height: 56px; } .shop-hero__name { font-size: 1.25rem; } }

.shop-toolbar { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); flex-wrap: wrap; }
.diet-filters { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.menu-category { margin-bottom: var(--space-8); }
.menu-category h2 { margin-bottom: var(--space-4); }
.menu-item.is-stopped { opacity: .55; }
.menu-item__stop { color: var(--color-danger); font-weight: var(--fw-semibold); }

.rating-breakdown { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.rating-breakdown__item { text-align: center; }
.rating-breakdown__num { font-size: 1.5rem; font-weight: var(--fw-bold); color: var(--color-dark); }
.rating-bar { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 6px; }
.rating-bar__track { flex: 1; height: 8px; background: var(--color-surface-2); border-radius: var(--radius-full); overflow: hidden; }
.rating-bar__fill { height: 100%; background: #FBBF24; }

.review-item { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border-light); }
.review-reply { margin-top: var(--space-3); padding: var(--space-3); background: var(--color-surface-2); border-radius: var(--radius-md); }

/* ============================================================================
 *  Страница товара
 * ========================================================================== */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; gap: var(--space-5); } }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs span { color: var(--color-text-light); }

/* Карусель */
.gallery { position: relative; }
.gallery__main { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-2); }
.gallery__track { display: flex; height: 100%; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.gallery__slide { min-width: 100%; height: 100%; position: relative; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery__slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 2; }
.gallery__nav--prev { left: 10px; } .gallery__nav--next { right: 10px; }
.gallery__thumbs { display: flex; gap: var(--space-2); margin-top: var(--space-3); overflow-x: auto; }
.gallery__thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; position: relative; }
.gallery__thumb.is-active { border-color: var(--color-primary); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb--video::after { content: '\25B6'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0,0,0,.35); font-size: 14px; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; animation: fadeIn .2s ease; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 28px; }

/* Инфо */
.product-price { display: flex; align-items: baseline; gap: var(--space-3); margin: var(--space-3) 0; }
.product-price__now { font-size: 1.75rem; font-weight: var(--fw-bold); color: var(--color-primary); }
.product-price__old { font-size: 1.125rem; color: var(--color-text-light); text-decoration: line-through; }
.sells-block { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); background: var(--color-surface-2); border-radius: var(--radius-md); margin: var(--space-4) 0; }
.sells-block img { width: 48px; height: 48px; border-radius: var(--radius-md); object-fit: cover; }

.kbju { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin: var(--space-4) 0; }
.kbju__cell { text-align: center; padding: var(--space-3); background: var(--color-surface-2); border-radius: var(--radius-md); }
.kbju__val { font-weight: var(--fw-bold); color: var(--color-dark); }
.kbju__lbl { font-size: var(--fs-xs); color: var(--color-text-muted); }

.modifier-group { margin: var(--space-4) 0; }
.modifier-group__title { font-weight: var(--fw-semibold); margin-bottom: var(--space-2); }
.modifier-options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.modifier-opt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-full); cursor: pointer; font-size: var(--fs-sm); transition: var(--transition-fast); }
.modifier-opt:hover { border-color: var(--color-primary); }
.modifier-opt.is-selected { background: var(--color-primary-bg); border-color: var(--color-primary); color: var(--color-primary); }
.modifier-opt.is-stopped { opacity: .5; pointer-events: none; text-decoration: line-through; }
.modifier-opt__price { color: var(--color-text-muted); }

.qty { display: inline-flex; align-items: center; gap: var(--space-3); border: 1.5px solid var(--color-border); border-radius: var(--radius-full); padding: 4px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; background: var(--color-surface-2); font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-weight: var(--fw-semibold); }

.product-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.product-cta { display: flex; gap: var(--space-3); align-items: center; margin: var(--space-5) 0; }
@media (max-width: 640px) {
  .product-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header); background: var(--color-surface); padding: var(--space-3) var(--space-4); box-shadow: 0 -4px 16px rgba(0,0,0,.08); margin: 0; }
}

/* ============================================================================
 *  Виджет сравнения и страница /compare
 * ========================================================================== */
.compare-widget { position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: var(--z-toast); background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-3); display: none; align-items: center; gap: var(--space-2); }
.compare-widget.is-open { display: flex; animation: fadeInUp .2s ease both; }
.compare-widget__thumbs { display: flex; gap: 4px; }
.compare-widget__thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--color-border); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: var(--space-3); border-bottom: 1px solid var(--color-border-light); text-align: left; vertical-align: top; }
.compare-table th { font-size: var(--fs-sm); color: var(--color-text-muted); width: 160px; }
.compare-table .best-price { color: var(--color-success-text); font-weight: var(--fw-bold); }
.compare-table img { width: 100%; max-width: 160px; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-md); }

/* ============================================================================
 *  Корзина (бейдж, drawer) и оформление заказа
 * ========================================================================== */
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--color-primary); color: #fff;
  border-radius: var(--radius-full); font-size: 11px; font-weight: var(--fw-bold);
  display: flex; align-items: center; justify-content: center;
}
.cart-drawer-backdrop { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(0,0,0,.5); display: flex; justify-content: flex-end; animation: fadeIn .2s ease; }
.cart-drawer { width: 420px; max-width: 100%; height: 100%; background: var(--color-surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: sheetRight .28s cubic-bezier(.4,0,.2,1); }
@keyframes sheetRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5); border-bottom: 1px solid var(--color-border-light); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: var(--space-5); }
.cart-drawer__foot { padding: var(--space-5); border-top: 1px solid var(--color-border-light); }
.cart-row { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border-light); align-items: center; }
.cart-row__img { width: 56px; height: 56px; border-radius: var(--radius-md); object-fit: cover; background: var(--color-surface-2); flex-shrink: 0; }
.cart-row__info { flex: 1; min-width: 0; }
.cart-row__qty { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 480px) { .cart-drawer { width: 100%; } }

.checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: var(--space-6); align-items: start; }
.checkout-summary { position: sticky; top: 88px; }
.co-step { display: none; }
.co-step.is-active { display: block; animation: fadeIn .2s ease both; }
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
}

/* ============================================================================
 *  Кабинет клиента
 * ========================================================================== */
.cabinet__layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-6); padding-top: var(--space-6); padding-bottom: var(--space-12); align-items: start; }
.cabinet__nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow-card); }
.cabinet__link { display: flex; align-items: center; gap: var(--space-3); padding: 11px var(--space-4); border-radius: var(--radius-md); color: var(--color-text-muted); font-weight: var(--fw-medium); font-size: var(--fs-sm); transition: var(--transition-fast); }
.cabinet__link i { font-size: 20px; }
.cabinet__link:hover { background: var(--color-surface-2); color: var(--color-text); }
.cabinet__link.is-active { background: var(--color-primary-bg); color: var(--color-primary); }
.cabinet__content { min-width: 0; }
.cabinet__bottom { display: none; }
@media (max-width: 860px) {
  .cabinet__layout { grid-template-columns: 1fr; }
  .cabinet__nav { display: none; }
  .cabinet__bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header); background: var(--color-surface); border-top: 1px solid var(--color-border); justify-content: space-around; padding: 6px 0; }
  .cabinet__bottom-link { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--color-text-muted); padding: 4px 8px; }
  .cabinet__bottom-link i { font-size: 22px; }
  .cabinet__bottom-link.is-active { color: var(--color-primary); }
  .cabinet__content { padding-bottom: 64px; }
}

/* Трекер статусов заказа */
.order-tracker { display: flex; align-items: center; margin: var(--space-4) 0; }
.order-tracker__step { flex: 1; text-align: center; position: relative; }
.order-tracker__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--color-surface-2); color: var(--color-text-muted); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; border: 2px solid var(--color-border); position: relative; z-index: 1; }
.order-tracker__step.is-done .order-tracker__dot, .order-tracker__step.is-active .order-tracker__dot { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.order-tracker__step::before { content: ''; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--color-border); z-index: 0; }
.order-tracker__step:first-child::before { display: none; }
.order-tracker__step.is-done::before, .order-tracker__step.is-active::before { background: var(--color-primary); }
.order-tracker__label { font-size: var(--fs-xs); color: var(--color-text-muted); }
.order-tracker__step.is-active .order-tracker__label { color: var(--color-primary); font-weight: var(--fw-semibold); }

/* Чат заказа */
.order-chat { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: var(--space-3); background: var(--color-surface-2); border-radius: var(--radius-md); }
.chat-msg { max-width: 75%; padding: 8px 12px; border-radius: var(--radius-md); font-size: var(--fs-sm); }
.chat-msg.mine { align-self: flex-end; background: var(--color-primary); color: #fff; }
.chat-msg.theirs { align-self: flex-start; background: var(--color-surface); }

/* Уровень лояльности */
.loyalty-card { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); color: #fff; border-radius: var(--radius-lg); padding: var(--space-6); }
.loyalty-progress { height: 8px; background: rgba(255,255,255,.3); border-radius: var(--radius-full); overflow: hidden; margin: var(--space-3) 0; }
.loyalty-progress__fill { height: 100%; background: #fff; }

/* Звёзды для отзыва */
.star-input { display: inline-flex; gap: 4px; font-size: 28px; cursor: pointer; }
.star-input i { color: var(--color-border); }
.star-input i.on { color: #FBBF24; }

/* Меню профиля (как в iOS-приложении) */
.pm-menu { padding: 0; overflow: hidden; }
.pm-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--color-border-light); color: var(--color-text); font-weight: 600; font-size: 15px; text-decoration: none; }
.pm-row:last-child { border-bottom: none; }
.pm-row:hover { background: var(--color-surface-2); }
.pm-row i:first-child { font-size: 22px; color: var(--color-primary); width: 26px; text-align: center; }
.pm-chev { margin-left: auto; color: var(--color-text-muted); font-size: 18px; }
.pm-row.danger, .pm-row.danger i:first-child { color: var(--color-danger); }

/* ===========================================================================
 *  БАЗА ЗНАНИЙ (/help)
 * ========================================================================== */
.help-wrap { max-width: 1120px; }

.help-hero { text-align: center; padding: 24px 0 8px; }
.help-hero h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin: 0 0 8px; }
.help-hero > p { color: var(--color-text-muted); margin: 0 auto 24px; max-width: 620px; }

.help-search-box { position: relative; max-width: 620px; margin: 0 auto; }
.help-search-box--hero > i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--color-text-light); font-size: 20px; pointer-events: none;
}
.help-search-box--hero .input { padding-left: 46px; height: 52px; font-size: 1rem; }

.help-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: var(--z-dropdown);
  background: var(--color-surface); border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left; max-height: 60vh; overflow-y: auto;
}
.help-results__item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--color-border-light); }
.help-results__item:last-child { border-bottom: none; }
.help-results__item:hover, .help-results__item.is-active { background: var(--color-surface-2); }
.help-results__group { display: block; font-size: var(--fs-xs); color: var(--color-primary); font-weight: var(--fw-semibold); }
.help-results__title { display: block; font-weight: var(--fw-semibold); color: var(--color-dark); }
.help-results__lead { display: block; font-size: var(--fs-sm); color: var(--color-text-muted); }
.help-results__empty { padding: 16px; color: var(--color-text-muted); font-size: var(--fs-sm); }

.help-section { margin-top: 44px; }
.help-section__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.help-section__head i { font-size: 30px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.help-section__head h2 { margin: 0 0 2px; }
.help-section__head p { margin: 0; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.help-card h3 { font-size: 1.0625rem; margin: 0 0 6px; letter-spacing: -0.015em; }
.help-card p { margin: 0; }

/* --- Статья --------------------------------------------------------------- */
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-8); align-items: start; }
.help-article { min-width: 0; font-size: 1rem; line-height: 1.65; }
.help-article h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 10px; }
.help-lead { font-size: 1.0625rem; color: var(--color-text-muted); margin: 0 0 28px; }
.help-article h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.help-article h3 { font-size: 1.0625rem; margin: 24px 0 8px; }
.help-article p { margin: 0 0 14px; }
.help-article ul, .help-article ol { margin: 0 0 16px; padding-left: 22px; }
.help-article li { margin-bottom: 7px; }
.help-article a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }

.help-article code {
  background: var(--color-surface-2); padding: 1px 5px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875em;
}
.help-code {
  background: var(--color-dark); color: #E8E8F0; padding: 14px 16px;
  border-radius: var(--radius-md); overflow-x: auto; margin: 0 0 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875rem; line-height: 1.5;
}

.help-note {
  background: var(--color-primary-bg); border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px;
}
.help-note :last-child { margin-bottom: 0; }

/* Разновидности врезок. Цвет здесь несёт смысл, а не украшает:
   зелёная — приятная новость («это бесплатно»), синяя — порядок действий
   («так устроено, вот к кому обращаться»), оранжевая по умолчанию —
   предупреждение, на которое стоит обратить внимание. */
.help-note--ok {
  background: var(--color-success-bg);
  border-left-color: var(--color-success);
}
.help-note--info {
  background: var(--color-info-bg);
  border-left-color: var(--color-info);
}

/* Таблицы в статьях должны прокручиваться внутри себя, а не растягивать страницу */
.help-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; display: block; overflow-x: auto; }
.help-table th, .help-table td {
  padding: 9px 12px; border-bottom: 1px solid var(--color-border-light);
  text-align: left; vertical-align: top; font-size: var(--fs-sm);
}
.help-table th { color: var(--color-text-muted); font-weight: var(--fw-semibold); white-space: nowrap; }

.help-shot { margin: 0 0 20px; }
.help-shot img {
  width: 100%; height: auto; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); display: block;
}
.help-shot figcaption { font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: 8px; text-align: center; }

.help-foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--color-border-light); }

.help-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: var(--space-4); }
.help-aside__title { font-weight: var(--fw-semibold); margin-bottom: 10px; }
.help-nav { display: flex; flex-direction: column; gap: 2px; }
.help-nav__link {
  padding: 8px 10px; border-radius: var(--radius-sm); font-size: var(--fs-sm);
  color: var(--color-text-muted); transition: var(--transition-fast);
}
.help-nav__link:hover { background: var(--color-surface-2); color: var(--color-text); }
.help-nav__link.is-active { background: var(--color-primary-bg); color: var(--color-primary); font-weight: var(--fw-semibold); }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-aside { position: static; order: -1; }
  .help-aside .card { display: none; }   /* на телефоне список статей уводим вниз страницы */
}

/* ===========================================================================
 *  СТРАНИЦА «О НАС» (/about)
 *  Витринная страница: крупная обложка, сетки карточек, схема пути заказа.
 *  Всё на общих переменных темы — своих цветов страница не заводит.
 * ========================================================================== */
.about-wrap { max-width: 1120px; }

/* --- Обложка -------------------------------------------------------------- */
.about-hero { text-align: center; padding: 28px 0 8px; }
.about-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-primary-bg); color: var(--color-primary);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  padding: 6px 14px; border-radius: var(--radius-full); margin-bottom: 16px;
}
.about-hero h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
.about-hero > p { color: var(--color-text-muted); font-size: 1.0625rem; line-height: 1.65; max-width: 700px; margin: 0 auto; }

.about-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
  margin-top: 36px; text-align: center;
}
.about-stat {
  background: var(--color-surface); border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg); padding: 18px 12px; box-shadow: var(--shadow-card);
}
.about-stat b { display: block; font-size: 1.75rem; color: var(--color-primary); line-height: 1.1; }
.about-stat span { display: block; font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: 6px; }

/* --- Секции --------------------------------------------------------------- */
.about-section { margin-top: 56px; }
.about-section > h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 12px; letter-spacing: -0.015em; }
.about-lead { color: var(--color-text-muted); font-size: 1.0625rem; line-height: 1.65; max-width: 760px; margin: 0 0 24px; }

.about-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.about-two p { line-height: 1.7; margin: 0 0 14px; }

/* Схема пути заказа: приём → работа → выдача → учёт. */
.about-flow {
  background: var(--color-surface); border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-card);
}
.about-flow__row { display: flex; gap: 14px; align-items: flex-start; }
.about-flow__row > i { font-size: 26px; color: var(--color-primary); flex-shrink: 0; }
.about-flow__row b { display: block; line-height: 1.3; }
.about-flow__row span { display: block; font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: 3px; }
.about-flow__arrow { color: var(--color-text-light); opacity: .5; font-size: 18px; padding: 8px 0 8px 5px; }

/* --- Что бесплатно, а что нет --------------------------------------------- */
.about-money { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-5); }
.about-money__col {
  background: var(--color-surface); border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card);
}
.about-money__col--ok { background: var(--color-success-bg); border-color: transparent; }
.about-money__col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.0625rem; }
.about-money__col--ok h3 { color: var(--color-success-text); }
.about-money__col ul { margin: 0; padding-left: 20px; }
.about-money__col li { margin-bottom: 8px; line-height: 1.55; }
.about-note { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 14px 0 0; line-height: 1.55; }

/* --- Сетки карточек ------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.about-grid--compact { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.about-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.about-card {
  background: var(--color-surface); border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}
.about-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.about-card > i { font-size: 30px; color: var(--color-primary); display: block; margin-bottom: 12px; }
.about-card h3 { font-size: 1.0625rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.about-card p { margin: 0; color: var(--color-text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.about-card--sm > i { font-size: 24px; margin-bottom: 10px; }
.about-card--type { padding: 24px; }
.about-card--type > i { font-size: 34px; }

/* --- Шаги ----------------------------------------------------------------- */
.about-steps { counter-reset: st; list-style: none; padding: 0; margin: 0; max-width: 820px; }
.about-steps li {
  counter-increment: st; position: relative; padding: 0 0 18px 46px;
  line-height: 1.65; border-left: 2px solid var(--color-border-light); margin-left: 15px;
}
.about-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.about-steps li::before {
  content: counter(st); position: absolute; left: -16px; top: -2px;
  width: 30px; height: 30px; border-radius: var(--radius-full);
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}

/* --- Вопросы и подвал страницы -------------------------------------------- */
.about-faq { margin-top: 10px; padding: 14px 18px; }
.about-faq summary { cursor: pointer; font-weight: var(--fw-semibold); }
.about-faq p { color: var(--color-text-muted); margin: 10px 0 0; line-height: 1.65; }

.about-legal p { line-height: 1.7; margin: 0 0 12px; }
.about-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 4px 0 0 !important; }
.about-links a { color: var(--color-primary); }

.about-final {
  margin-top: 56px; text-align: center; padding: 40px 24px;
  background: var(--color-primary-bg); border-radius: var(--radius-xl);
}
.about-final h2 { margin: 0 0 10px; font-size: clamp(1.25rem, 3vw, 1.65rem); }
.about-final p { color: var(--color-text-muted); margin: 0 0 22px; }

@media (max-width: 900px) {
  .about-two, .about-money { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
