/* ==========================================================================
   AROS — коммерческая тема для OpenCart 2.3
   Белый фон, синие кнопки и элементы взаимодействия.

   ВАЖНО: bootstrap 3 задаёт html { font-size: 10px }, поэтому 1rem = 10px,
   а не 16px. Все размеры в этом файле — в px. rem не использовать.
   ========================================================================== */

/* ---------- 1. Токены --------------------------------------------------- */

:root {
  /* поверхности */
  --bg:            #ffffff;
  --surface:       #ffffff;
  --surface-soft:  #f5f8fc;
  --surface-blue:  #eef5ff;
  --line:          #e3eaf2;
  --line-strong:   #cfdbe8;

  /* текст */
  --ink:           #0f1b2d;
  --ink-2:         #3f5164;
  --ink-3:         #66788d;

  /* синий — основной цвет действия */
  --blue:          #0b63d6;
  --blue-hover:    #0a53b4;
  --blue-active:   #08458f;
  --blue-ink:      #0a52b0;
  --blue-050:      #eef5ff;
  --blue-100:      #d8e7fb;
  --blue-200:      #b7d2f6;

  /* статусы */
  --green:         #0f7344;
  --green-050:     #eaf7f0;
  --amber:         #9a5b00;
  --amber-050:     #fff6e6;
  --red:           #c3122c;
  --red-050:       #fdeef0;

  /* радиусы */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  22px;
  --r-pill: 999px;

  /* тени */
  --sh-xs: 0 1px 2px rgba(15, 27, 45, .06);
  --sh-sm: 0 2px 8px rgba(15, 27, 45, .07);
  --sh-md: 0 8px 24px rgba(15, 27, 45, .09);
  --sh-lg: 0 18px 48px rgba(15, 27, 45, .12);
  --sh-blue: 0 6px 18px rgba(11, 99, 214, .28);

  /* движение */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur:  .2s;

  /* шапка */
  --header-h: 76px;
}

/* ---------- 2. База ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
svg { display: block; }

a {
  color: var(--blue-ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover, a:focus { color: var(--blue); text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--blue-200);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: inherit;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1, .h1 { font-size: 34px; }
h2, .h2 { font-size: 27px; }
h3, .h3 { font-size: 21px; }
h4, .h4 { font-size: 18px; }
h5 { font-size: 16px; }

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 22px; }
hr { border-top: 1px solid var(--line); margin: 28px 0; }

strong, b { font-weight: 600; color: var(--ink); }
small { font-size: 13px; }

::selection { background: var(--blue-100); color: var(--ink); }

/* Контейнер шире бутстраповского — под сетку 4 карточки */
.container { width: 100%; max-width: 1280px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 1200px) { .container { width: auto; } }

/* Бутстраповский .row внутри нашего контейнера */
.row { margin-left: -12px; margin-right: -12px; }
[class*="col-"] { padding-left: 12px; padding-right: 12px; }

/* ---------- 3. Кнопки --------------------------------------------------- */

.btn,
.a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform .12s var(--ease);
}
.btn:active, .a-btn:active { transform: translateY(1px); }

/* основная синяя */
.btn-primary,
.a-btn--primary,
.btn-warning {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: var(--sh-blue);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.a-btn--primary:hover, .a-btn--primary:focus, .a-btn--primary:active,
.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}

/* вторичная — синий контур */
.btn-default,
.btn-info,
.a-btn--ghost {
  background: #fff;
  border-color: var(--blue-200);
  color: var(--blue-ink);
}
.btn-default:hover, .btn-default:focus, .btn-default:active,
.btn-info:hover, .btn-info:focus, .btn-info:active,
.a-btn--ghost:hover, .a-btn--ghost:focus, .a-btn--ghost:active {
  background: var(--blue-050);
  border-color: var(--blue);
  color: var(--blue-ink);
}

/* нейтральная */
.a-btn--quiet {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--ink);
}
.a-btn--quiet:hover { background: #eaf0f7; color: var(--ink); }

.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover, .btn-success:focus { background: #0c5e37; border-color: #0c5e37; color: #fff; }

/* .btn-danger в базовых шаблонах — это «удалить», а не действие покупки */
.btn-danger {
  background: #fff;
  border-color: #f0c2c9;
  color: var(--red);
  box-shadow: none;
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
  background: var(--red-050);
  border-color: var(--red);
  color: var(--red);
}

.btn-link { color: var(--blue-ink); box-shadow: none; min-height: 0; padding: 0; }

.btn-lg, .a-btn--lg { min-height: 54px; padding: 14px 30px; font-size: 16px; border-radius: var(--r-md); }
.btn-sm, .a-btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-xs { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.btn-block, .a-btn--block { display: flex; width: 100%; }

.btn[disabled], .btn.disabled { opacity: .55; box-shadow: none; cursor: not-allowed; }

/* иконка внутри кнопки */
.btn > svg, .a-btn > svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* ---------- 4. Формы ---------------------------------------------------- */

.form-control,
select.form-control,
textarea.form-control,
.a-input {
  height: 46px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea.form-control { height: auto; min-height: 110px; }
.form-control:focus, .a-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-100);
  outline: none;
}
.form-control::placeholder { color: #94a3b4; }

.control-label, label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-group { margin-bottom: 18px; }
.help-block { font-size: 13px; color: var(--ink-3); }
.text-danger { color: var(--red); }
.has-error .form-control { border-color: var(--red); }

.input-group-btn .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* чекбоксы и радио */
.radio input, .checkbox input { margin-top: 5px; }

/* ---------- 5. Шапка ---------------------------------------------------- */

.a-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.a-header--scrolled { box-shadow: var(--sh-sm); }

/* верхняя тонкая полоса с УТП */
.a-topbar {
  background: var(--ink);
  color: #c6d3e2;
  font-size: 13px;
}
.a-topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  flex-wrap: wrap;
}
.a-topbar__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.a-topbar__list li { display: flex; align-items: center; gap: 7px; }
.a-topbar__list svg { width: 15px; height: 15px; fill: #6aa9f0; flex: none; }
.a-topbar a { color: #dbe6f3; }
.a-topbar a:hover { color: #fff; }

.a-header__row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.a-logo { flex: none; }
.a-logo img { width: auto; max-height: 48px; }
.a-logo__text { font-size: 22px; font-weight: 700; color: var(--ink); }

/* меню */
.a-nav { flex: 1 1 auto; min-width: 0; }
.a-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.a-nav__item { position: relative; }
.a-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.a-nav__link:hover, .a-nav__item:hover > .a-nav__link {
  background: var(--blue-050);
  color: var(--blue-ink);
}
.a-nav__item--cat > .a-nav__link {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding-left: 16px;
  padding-right: 14px;
}
.a-nav__item--cat:hover > .a-nav__link,
.a-nav__item--cat > .a-nav__link:hover { background: var(--blue-hover); color: #fff; }
.a-chev { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.a-nav__item:hover .a-chev { transform: rotate(180deg); }

/* выпадающий каталог */
.a-mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 330px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.a-nav__item:hover > .a-mega,
.a-nav__item:focus-within > .a-mega { opacity: 1; visibility: visible; transform: none; }
.a-mega__list, .a-mega__sub { list-style: none; margin: 0; padding: 0; }
.a-mega__list > li > a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.a-mega__list > li > a:hover { background: var(--blue-050); color: var(--blue-ink); }
.a-mega__sub { padding: 0 0 6px 12px; }
.a-mega__sub a { display: block; padding: 6px 12px; font-size: 14px; font-weight: 400; color: var(--ink-2); border-radius: var(--r-sm); }
.a-mega__sub a:hover { background: var(--blue-050); color: var(--blue-ink); }

/* правый блок */
.a-tools { display: flex; align-items: center; gap: 10px; flex: none; }

.a-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--blue-ink);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.a-icon-btn:hover { background: var(--blue-050); border-color: var(--blue-200); color: var(--blue-ink); }
.a-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

.a-phone { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.a-phone b { font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.a-phone span { font-size: 12px; color: var(--ink-3); }
.a-phone:hover b { color: var(--blue-ink); }

.a-header__cta { white-space: nowrap; }

/* модули OpenCart ($search, $cart) внутри шапки */
.a-modules { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; float: none; }
.a-modules > li { position: relative; list-style: none; }

/* корзина */
#cart > .btn {
  min-height: 46px;
  padding: 10px 18px;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-blue);
  font-weight: 600;
}
#cart > .btn:hover, #cart > .btn:focus, #cart.open > .btn { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
#cart > .btn .fa { margin-right: 6px; }
#cart .dropdown-menu {
  right: 0; left: auto;
  min-width: 340px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
}
#cart .dropdown-menu table { margin-bottom: 10px; }
#cart .dropdown-menu img { border: 1px solid var(--line); border-radius: var(--r-sm); }
#cart .dropdown-menu li > div { min-width: 300px; padding: 0; }

/* поиск в шапке */
.a-search { position: relative; }
.a-search__form {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(460px, calc(100vw - 32px));
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.a-search.is-open .a-search__form { opacity: 1; visibility: visible; transform: none; }
.a-search__form .form-control { flex: 1 1 auto; }

/* мобильные кнопки шапки */
.a-mob-btn, .a-burger { display: none; }
.a-burger {
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer;
}
.a-burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.a-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.a-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.a-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* мобильная панель */
.a-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  z-index: 1060;
  background: #fff;
  box-shadow: var(--sh-lg);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s var(--ease);
}
.a-panel.is-open { transform: none; }
.a-panel__inner { padding: 20px 20px 40px; }
.a-panel__group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.a-panel__group:last-child { border-bottom: 0; }
.a-panel__head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.a-panel__link {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font-size: 16px;
  color: var(--ink);
  text-align: left;
}
.a-panel__link:hover { background: var(--blue-050); color: var(--blue-ink); }
.a-panel__link--btn { background: var(--blue); color: #fff; font-weight: 600; text-align: center; margin-top: 6px; }
.a-panel__link--btn:hover { background: var(--blue-hover); color: #fff; }
.a-panel__scrim { position: fixed; inset: 0; z-index: 1050; background: rgba(15, 27, 45, .45); }

/* ---------- 6. Каркас страницы ------------------------------------------ */

#main-content { display: block; }

.a-page { padding: 26px 0 56px; }
.a-page--flush { padding-top: 0; }

.breadcrumb {
  padding: 0;
  margin: 0 0 18px;
  background: none;
  border-radius: 0;
  font-size: 13px;
}
.breadcrumb > li { display: inline; color: var(--ink-3); }
.breadcrumb > li + li::before { content: "/"; padding: 0 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--blue-ink); }
.breadcrumb > li:last-child { color: var(--ink); }

/* боковая колонка */
.a-side { display: flex; flex-direction: column; gap: 16px; }
.a-side .list-group,
.a-side .panel,
.a-side > div > .list-group {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  background: #fff;
}
.a-side .list-group-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--ink);
}
.a-side .list-group-item:last-child { border-bottom: 0; }
.a-side .list-group-item:hover { background: var(--blue-050); color: var(--blue-ink); }
.a-side .list-group-item.active,
.a-side .list-group-item.active:hover {
  background: var(--blue-050);
  color: var(--blue-ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--blue);
}

/* ---------- 7. Секции --------------------------------------------------- */

.a-section { padding: 56px 0; }
.a-section--soft { background: var(--surface-soft); }
.a-section--tight { padding: 36px 0; }

.a-section__head { max-width: 760px; margin: 0 0 30px; }
.a-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.a-section__kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  background: var(--blue-050);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-ink);
}
.a-section__title { margin: 0 0 10px; font-size: 30px; }
.a-section__sub { font-size: 16px; color: var(--ink-3); margin: 0; }

/* ---------- 8. Главная: первый экран ------------------------------------ */

.a-hero {
  position: relative;
  padding: 54px 0 48px;
  background:
    radial-gradient(900px 420px at 88% -10%, #e2eefc 0%, rgba(226, 238, 252, 0) 62%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.a-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 44px;
  align-items: center;
}
.a-hero__title { font-size: 44px; line-height: 1.1; margin: 0 0 16px; }
.a-hero__title em { font-style: normal; color: var(--blue); }
.a-hero__text { font-size: 17px; color: var(--ink-2); margin: 0 0 24px; max-width: 560px; }
.a-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.a-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 560px; }
.a-fact {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
}
.a-fact b { display: block; font-size: 26px; line-height: 1.1; color: var(--blue); }
.a-fact span { font-size: 13px; color: var(--ink-3); }

/* карточка заявки в первом экране */
.a-lead {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.a-lead__title { font-size: 21px; margin: 0 0 6px; }
.a-lead__sub { font-size: 14px; color: var(--ink-3); margin: 0 0 18px; }
.a-lead__note { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.a-lead__note a { color: var(--blue-ink); text-decoration: underline; }

/* ---------- 9. Плитки категорий ----------------------------------------- */

.a-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.a-cat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.a-cat:hover { border-color: var(--blue-200); box-shadow: var(--sh-md); transform: translateY(-2px); }
.a-cat__media {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  margin: -6px 0 16px;
  background: var(--surface-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.a-cat__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.a-cat__title { font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.a-cat__text { font-size: 14px; color: var(--ink-3); margin: 0 0 16px; flex: 1 1 auto; }
.a-cat__more { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--blue-ink); }
.a-cat:hover .a-cat__more { color: var(--blue); }
.a-cat__more svg { width: 16px; height: 16px; fill: currentColor; transition: transform var(--dur) var(--ease); }
.a-cat:hover .a-cat__more svg { transform: translateX(3px); }

/* ---------- 10. Карточка товара в сетке --------------------------------- */

.a-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 20px;
}
.a-grid--list { grid-template-columns: minmax(0, 1fr); }

/* нейтрализуем бутстраповские .col-* у .product-layout — раскладку даёт grid */
.a-grid > .product-layout {
  width: auto;
  float: none;
  padding: 0;
  min-width: 0;   /* иначе длинные подписи распирают колонку */
}

.pcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pcard:hover { border-color: var(--blue-200); box-shadow: var(--sh-md); transform: translateY(-2px); }

.pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: block;
  padding: 14px;
  background: #fff;
}
.pcard__media img { width: 100%; height: 100%; object-fit: contain; }

.pcard__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.pcard__badge {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  background: var(--blue-050);
  color: var(--blue-ink);
}
.pcard__badge--sale { background: var(--red-050); color: var(--red); }

.pcard__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 12px; padding: 4px 18px 18px; min-width: 0; }
.pcard__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.pcard__title a { color: var(--ink); }
.pcard__title a:hover { color: var(--blue-ink); }

.pcard__feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pcard__feats li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
}
.pcard__feats b { flex: none; max-width: 55%; font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }

.pcard__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.pcard__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pcard__price { font-size: 21px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pcard__old { font-size: 14px; color: var(--ink-3); text-decoration: line-through; }

.a-stock {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  background: var(--green-050); color: var(--green);
}
.a-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.a-stock--out { background: var(--amber-050); color: var(--amber); }

.pcard__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pcard__actions .a-btn--primary { width: 100%; }

/* режим списка */
.a-grid--list .pcard { flex-direction: row; align-items: stretch; }
.a-grid--list .pcard__media { flex: 0 0 240px; aspect-ratio: 4 / 3; }
.a-grid--list .pcard__body { padding: 18px; }

/* ---------- 11. Страница категории -------------------------------------- */

.a-cathead { margin-bottom: 22px; }
.a-cathead h1 { margin: 0 0 10px; font-size: 32px; }
.a-cathead__meta { font-size: 14px; color: var(--ink-3); }

.a-catdesc { font-size: 15px; color: var(--ink-2); }
.a-catdesc h2 { font-size: 22px; margin-top: 26px; }
.a-catdesc h3 { font-size: 18px; margin-top: 20px; }
.a-catdesc img { border-radius: var(--r-md); }
.a-catdesc table { width: 100%; margin: 16px 0; }

.a-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.a-toolbar__group { display: flex; align-items: center; gap: 8px; }
.a-toolbar label { margin: 0; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.a-toolbar .form-control { height: 38px; padding: 6px 12px; font-size: 14px; width: auto; }
.a-toolbar__spacer { margin-left: auto; }
.a-view-toggle { display: flex; gap: 4px; }
.a-view-toggle button {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  color: var(--ink-3); cursor: pointer;
}
.a-view-toggle button.is-active { background: var(--blue-050); border-color: var(--blue); color: var(--blue-ink); }
.a-view-toggle svg { width: 17px; height: 17px; fill: currentColor; }

.a-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 30px;
  font-size: 14px; color: var(--ink-3);
}
.pagination { margin: 0; }
.pagination > li > a, .pagination > li > span {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm) !important;
  color: var(--ink);
  font-weight: 600;
}
.pagination > li > a:hover { background: var(--blue-050); border-color: var(--blue-200); color: var(--blue-ink); }
.pagination > .active > span, .pagination > .active > span:hover {
  background: var(--blue); border-color: var(--blue); color: #fff;
}

/* ---------- 12. Страница товара ----------------------------------------- */

.a-pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: start; }

.a-gallery { min-width: 0; }
.a-gallery__main {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.a-gallery__main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.a-gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.a-gallery__thumbs a {
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease);
}
.a-gallery__thumbs a:hover { border-color: var(--blue); }
.a-gallery__thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }

.a-pdp__title { font-size: 30px; margin: 0 0 12px; }
.a-pdp__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; font-size: 13px; color: var(--ink-3); }

.a-keys { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.a-keys li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 7px; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink-3); }
.a-keys b { font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }

.a-buybox {
  padding: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.a-buybox__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.a-buybox__price { font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.a-buybox__old { font-size: 18px; color: var(--ink-3); text-decoration: line-through; }
.a-buybox__tax { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.a-buybox__row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.a-buybox__row .a-btn { flex: 1 1 190px; }
.a-buybox__qty { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.a-buybox__qty .form-control { width: 84px; text-align: center; }

.a-options { margin-top: 18px; }
.a-options .form-group { margin-bottom: 14px; }

/* каналы связи */
.a-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.a-contact {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.a-contact:hover { border-color: var(--blue-200); background: var(--blue-050); color: var(--blue-ink); }
.a-contact svg { width: 20px; height: 20px; flex: none; fill: var(--blue); }

/* доверие */
.a-trust { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.a-trust li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.a-trust svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: var(--green); }

/* табы */
.a-tabs { margin-top: 44px; }
.nav-tabs { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; padding: 0; }
.nav-tabs > li { float: none; margin: 0; }
.nav-tabs > li > a {
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 15px; font-weight: 600;
  color: var(--ink-3);
  background: none;
}
.nav-tabs > li > a:hover { background: none; color: var(--blue-ink); border-bottom-color: var(--blue-200); }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  border: 0; border-bottom: 2px solid var(--blue);
  background: none; color: var(--blue-ink);
}
.tab-content { padding: 24px 0 0; font-size: 15px; color: var(--ink-2); }
.tab-content img { border-radius: var(--r-md); }

/* таблица характеристик */
.a-specs { width: 100%; border-collapse: separate; border-spacing: 0; }
.a-specs caption { caption-side: top; padding: 0 0 12px; font-size: 17px; font-weight: 700; color: var(--ink); text-align: left; }
.a-specs th, .a-specs td { padding: 11px 14px; font-size: 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.a-specs th { width: 50%; font-weight: 500; color: var(--ink-3); }
.a-specs td { font-weight: 600; color: var(--ink); }
.a-specs tbody tr:nth-child(odd) { background: var(--surface-soft); }

/* липкая панель покупки на мобильных */
.a-sticky-buy {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1040;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(15, 27, 45, .1);
}
.a-sticky-buy__price { font-size: 19px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.a-sticky-buy .a-btn { flex: 1 1 auto; }

/* ---------- 13. Преимущества / процесс / FAQ ---------------------------- */

.a-usp { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.a-usp__item { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); }
.a-usp__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  background: var(--blue-050); border-radius: var(--r-md);
}
.a-usp__icon svg { width: 24px; height: 24px; fill: var(--blue); }
.a-usp__item h3 { font-size: 17px; margin: 0 0 8px; }
.a-usp__item p { font-size: 14px; color: var(--ink-3); margin: 0; }

.a-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.a-step { position: relative; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.a-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 12px;
  background: var(--blue); color: #fff;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700;
}
.a-step h3 { font-size: 16px; margin: 0 0 6px; }
.a-step p { font-size: 14px; color: var(--ink-3); margin: 0; }

.a-faq { display: grid; gap: 12px; max-width: 880px; }
.a-faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.a-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  padding: 16px 18px;
  background: none; border: 0;
  font-size: 16px; font-weight: 600; color: var(--ink); text-align: left;
  cursor: pointer;
}
.a-faq__q:hover { color: var(--blue-ink); }
.a-faq__q svg { width: 18px; height: 18px; flex: none; fill: var(--blue); transition: transform var(--dur) var(--ease); }
.a-faq__item.is-open .a-faq__q svg { transform: rotate(45deg); }
.a-faq__a { padding: 0 18px 18px; font-size: 15px; color: var(--ink-2); }
.a-faq__item:not(.is-open) .a-faq__a { display: none; }

/* полоса-призыв */
.a-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background: linear-gradient(135deg, #0b63d6 0%, #0a4ea8 100%);
  border-radius: var(--r-xl);
  color: #fff;
}
.a-cta h2 { color: #fff; font-size: 26px; margin: 0 0 8px; }
.a-cta p { color: #d3e4fb; margin: 0; font-size: 16px; }
.a-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.a-cta .a-btn--primary { background: #fff; border-color: #fff; color: var(--blue-ink); box-shadow: none; }
.a-cta .a-btn--primary:hover { background: #eaf2ff; color: var(--blue-active); }
.a-cta .a-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.a-cta .a-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* SEO-текст */
.a-seo { font-size: 15px; color: var(--ink-2); }
.a-seo h2 { font-size: 24px; margin-top: 28px; }
.a-seo h3 { font-size: 19px; margin-top: 22px; }
.a-seo ul, .a-seo ol { margin-bottom: 16px; }
.a-seo li { margin-bottom: 6px; }

/* ---------- 14. Контент из HTML-модулей --------------------------------- */

/* Модули «HTML» в админке приносят свою вёрстку. Даём им читаемый каркас,
   не ломая инлайновые стили. */
.a-mod { margin-bottom: 36px; }
.a-mod:last-child { margin-bottom: 0; }
.a-mod img { border-radius: var(--r-md); }
.a-mod table { max-width: 100%; }
.a-mod iframe { max-width: 100%; border-radius: var(--r-md); }
.a-mod h2 { font-size: 26px; }
.a-mod h3 { font-size: 20px; }

/* ---------- 15. Корзина и оформление ------------------------------------ */

.table { font-size: 14px; }
.table > thead > tr > th {
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .04em;
  padding: 12px;
}
.table > tbody > tr > td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.table-bordered { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: var(--line); }
.table-responsive { border: 0; }

.a-cart-img img { border: 1px solid var(--line); border-radius: var(--r-sm); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
}
.panel-heading { background: var(--surface-soft); border-bottom: 1px solid var(--line); border-radius: var(--r-md) var(--r-md) 0 0; padding: 14px 18px; }
.panel-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.panel-body { padding: 18px; }
.panel-default > .panel-heading { color: var(--ink); }

.well { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: none; }

.alert {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 15px;
}
.alert-success { background: var(--green-050); border-color: #bfe3d0; color: var(--green); }
.alert-danger  { background: var(--red-050);   border-color: #f3c6cd; color: var(--red); }
.alert-info    { background: var(--blue-050);  border-color: var(--blue-100); color: var(--blue-ink); }
.alert-warning { background: var(--amber-050); border-color: #f0dcb4; color: var(--amber); }

/* ---------- 16. Подвал -------------------------------------------------- */

.a-footer { margin-top: 60px; background: var(--ink); color: #aebdd0; font-size: 14px; }
.a-footer a { color: #d5e1ee; }
.a-footer a:hover { color: #fff; }

.a-footer__top { padding: 46px 0 34px; }
.a-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.a-footer__brand img { max-height: 46px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.a-footer__brand p { font-size: 14px; color: #9fb0c4; margin-bottom: 16px; }
.a-footer h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 14px; letter-spacing: .02em; }
.a-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.a-footer__contact { display: grid; gap: 12px; }
.a-footer__contact a, .a-footer__contact span { display: flex; align-items: flex-start; gap: 10px; }
.a-footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; fill: #6aa9f0; }
.a-footer__phone { font-size: 20px; font-weight: 700; color: #fff !important; }

.a-footer__msgs { display: flex; gap: 10px; margin-top: 16px; }
.a-msg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  color: #fff;
}
.a-msg svg { width: 20px; height: 20px; fill: #fff; }
.a-msg--tg { background: #1c86bf; }
.a-msg--tg:hover { background: #17719f; }
.a-msg--wa { background: #0f9d4f; }
.a-msg--wa:hover { background: #0c8342; }

.a-footer__bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #8fa2b8;
}

/* плавающая кнопка звонка */
.a-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 1035;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-blue);
  cursor: pointer;
}
.a-float:hover { background: var(--blue-hover); color: #fff; }
.a-float svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- 17. Модальное окно ------------------------------------------ */

.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.modal-header { border-bottom: 1px solid var(--line); padding: 20px 24px; }
.modal-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid var(--line); padding: 16px 24px; }
.modal-backdrop.in { opacity: .5; }

/* ---------- 18. Утилиты ------------------------------------------------- */

.a-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.a-muted { color: var(--ink-3); }
.a-nowrap { white-space: nowrap; }
.a-mt-0 { margin-top: 0; }

/* ---------- 19. Адаптив ------------------------------------------------- */

@media (max-width: 1199px) {
  .a-hero__title { font-size: 38px; }
  .a-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 991px) {
  :root { --header-h: 64px; }

  h1, .h1 { font-size: 28px; }
  h2, .h2 { font-size: 24px; }
  .a-section { padding: 40px 0; }
  .a-section__title { font-size: 25px; }

  .a-topbar { display: none; }
  .a-nav, .a-phone, .a-header__cta { display: none; }
  .a-mob-btn, .a-burger { display: inline-flex; }
  .a-logo img { max-height: 40px; }

  .a-hero { padding: 34px 0 32px; }
  .a-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .a-hero__title { font-size: 30px; }
  .a-hero__text { font-size: 16px; }

  .a-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-pdp { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .a-cta { grid-template-columns: minmax(0, 1fr); text-align: left; padding: 26px; }

  /* боковая колонка уходит под контент */
  #column-left, #column-right { margin-top: 28px; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  h1, .h1 { font-size: 25px; }

  .a-page { padding: 18px 0 40px; }
  .a-section { padding: 32px 0; }

  .a-hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .a-fact { padding: 12px; }
  .a-fact b { font-size: 21px; }
  .a-fact span { font-size: 11px; }

  .a-cats { grid-template-columns: minmax(0, 1fr); }
  .a-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
  .pcard__body { padding: 4px 12px 14px; gap: 10px; }
  .pcard__title { font-size: 14px; }
  .pcard__price { font-size: 18px; }
  .pcard__feats { display: none; }
  .pcard__actions { grid-template-columns: minmax(0, 1fr); }

  .a-grid--list .pcard { flex-direction: column; }
  .a-grid--list .pcard__media { flex: none; }

  .a-keys { grid-template-columns: minmax(0, 1fr); }
  .a-buybox { padding: 16px; }
  .a-buybox__price { font-size: 28px; }
  .a-gallery__thumbs a { width: 64px; height: 64px; }

  .a-specs th, .a-specs td { padding: 9px 10px; font-size: 13px; }
  .a-specs th { width: 52%; }

  .a-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .a-footer { margin-top: 36px; }

  .a-float { display: none; }
  .a-sticky-buy.is-on { display: flex; }
}

/* ---------- 20. Печать и reduced-motion --------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .a-header, .a-footer, .a-float, .a-sticky-buy, .a-toolbar, .breadcrumb { display: none !important; }
  body { color: #000; }
}

/* ==========================================================================
   21. Каркас страниц с колонками
   ========================================================================== */

.a-layout { display: block; }
.a-layout--side {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.a-layout--side #column-right { order: 3; }
.a-content { min-width: 0; }
.a-content--narrow { max-width: 860px; }

/* Страницы, унаследованные от базовых шаблонов OpenCart (аккаунт, оформление,
   сравнение): там разметка на бутстраповских колонках — выравниваем отступы. */
#content { min-width: 0; }
#content > h1:first-child, #content > h2:first-child { margin-top: 0; }

/* ==========================================================================
   22. Подразделы
   ========================================================================== */

.a-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.a-subcat {
  display: inline-flex; align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--blue-ink);
}
.a-subcat:hover { background: var(--blue-100); border-color: var(--blue-200); color: var(--blue-active); }

/* ==========================================================================
   23. Характеристики в карточке (разметка приходит из контроллера)
   ========================================================================== */

.pcard__feats .df {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.pcard__feats .attr_name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink-3);
  font-size: 13px !important;   /* тема отдаёт 12px через !important */
  font-weight: 400;
}
.pcard__feats .attr_value {
  flex: 0 1 auto;
  max-width: 58% !important;    /* было 101px и обрезало значения */
  float: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   24. Плитка раздела: счётчик и стрелка
   ========================================================================== */

.a-cat__more {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.a-cat__count { font-size: 13px; color: var(--ink-3); }
.a-cat__go { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--blue-ink); }
.a-cat__go svg { width: 16px; height: 16px; fill: currentColor; transition: transform var(--dur) var(--ease); }
.a-cat:hover .a-cat__go svg { transform: translateX(3px); }

/* ==========================================================================
   25. Верхняя полоса: правая часть
   ========================================================================== */

.a-topbar__aside { display: flex; align-items: center; gap: 16px; }

/* ==========================================================================
   26. Модули шапки: поиск и корзина (разметка moneymaker2 — li.dropdown)
   ========================================================================== */

.a-modules > li.dropdown > .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--blue-ink);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.a-modules > li.dropdown > .dropdown-toggle:hover,
.a-modules > li.dropdown.open > .dropdown-toggle { background: var(--blue-050); border-color: var(--blue-200); color: var(--blue-ink); }
.a-modules .fa-angle-down { display: none; }

/* поиск — только иконка */
#search.dropdown > .dropdown-toggle { width: 46px; padding: 0; }
#search.dropdown > .dropdown-toggle > span { display: none; }
#search .dropdown-menu {
  right: 0; left: auto;
  min-width: min(420px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
}
#search .dropdown-menu > li { padding: 0; }
#search .input-group { display: flex; width: 100%; }
#search .input-group.collapse { display: flex !important; height: auto !important; visibility: visible !important; }
#search .input-group .form-control { flex: 1 1 auto; width: auto; border-radius: var(--r-sm) 0 0 var(--r-sm); }
#search .input-group-btn { display: flex; width: auto; }

/* корзина — синяя пилюля */
#cart.dropdown > .dropdown-toggle {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: var(--sh-blue);
  padding: 0 18px;
}
#cart.dropdown > .dropdown-toggle:hover,
#cart.dropdown.open > .dropdown-toggle { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
#cart .fa-stack { width: auto; height: auto; line-height: 1; }
#cart .fa-stack .fa-circle { display: none; }
#cart .fa-stack .fa-stack-1x {
  position: static;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; line-height: 1;
}
#cart .dropdown-menu {
  right: 0; left: auto;
  min-width: min(380px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
}
#cart .dropdown-menu > li { padding: 0; }
#cart .dropdown-menu table { width: 100%; margin-bottom: 12px; font-size: 13px; }
#cart .dropdown-menu img { max-width: 48px; border: 1px solid var(--line); border-radius: var(--r-sm); }
#cart .dropdown-menu .btn { width: 100%; }
#cart .dropdown-menu .btn-link { width: auto; }

/* ==========================================================================
   27. 404
   ========================================================================== */

.a-404 { max-width: 620px; margin: 40px auto 60px; text-align: center; }
.a-404__code {
  display: block;
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -.04em;
}
.a-404 h1 { margin: 12px 0 10px; }

/* ==========================================================================
   28. Контакты
   ========================================================================== */

.a-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.a-contact-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}
.a-contact-card--form { background: var(--surface-soft); }
.a-contact-card__list { color: var(--ink-2); }
.a-contact-card__phone { display: inline-block; font-size: 26px; font-weight: 700; color: var(--ink); }
.a-contact-card__phone:hover { color: var(--blue-ink); }

/* ==========================================================================
   29. Поиск по каталогу (страница)
   ========================================================================== */

.a-searchbox {
  padding: 20px;
  margin-bottom: 26px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.a-searchbox__row { display: flex; flex-wrap: wrap; gap: 10px; }
.a-searchbox__row .form-control { flex: 1 1 220px; width: auto; }
.a-searchbox__row .a-btn { flex: 0 0 auto; }
.a-searchbox__opts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 14px; }
.a-searchbox__opts label { font-weight: 400; color: var(--ink-2); }

/* ==========================================================================
   30. Скидки за объём
   ========================================================================== */

.a-discounts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.a-discounts li { font-size: 14px; color: var(--ink-2); }

/* ==========================================================================
   31. Запасной вид карточек из базовых шаблонов (.product-thumb)
   ========================================================================== */

.product-thumb {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-thumb:hover { border-color: var(--blue-200); box-shadow: var(--sh-md); }
.product-thumb .image { padding: 14px; }
.product-thumb .image img { width: 100%; height: auto; object-fit: contain; }
.product-thumb .caption { flex: 1 1 auto; padding: 4px 18px 14px; }
.product-thumb .caption h4 { font-size: 16px; margin: 0 0 8px; }
.product-thumb .caption h4 a { color: var(--ink); }
.product-thumb .caption p { font-size: 13px; color: var(--ink-3); }
.product-thumb .price { font-size: 20px; font-weight: 700; color: var(--ink); }
.product-thumb .price-new { color: var(--ink); }
.product-thumb .price-old { font-size: 14px; color: var(--ink-3); text-decoration: line-through; margin-left: 8px; }
.product-thumb .price-tax { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.product-thumb .button-group { display: flex; gap: 8px; padding: 0 18px 18px; }
.product-thumb .button-group button { flex: 1 1 auto; }
.product-thumb .button-group button:first-child {
  background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--sh-blue);
}
.product-thumb .button-group button:first-child:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }

/* ==========================================================================
   32. Секция товаров из модуля
   ========================================================================== */

.a-mod-products { padding-top: 12px; padding-bottom: 12px; }
.a-mod-products .a-section__head { margin-bottom: 20px; }

/* ==========================================================================
   33. Адаптив для добавленных блоков
   ========================================================================== */

@media (max-width: 991px) {
  .a-layout--side { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .a-layout--side .a-side { order: 2; }
  .a-layout--side .a-content { order: 1; }
  .a-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .a-404__code { font-size: 66px; }
}

@media (max-width: 767px) {
  .a-toolbar { padding: 10px; gap: 8px; }
  .a-toolbar__group { flex: 1 1 100%; }
  .a-toolbar .form-control { flex: 1 1 auto; width: 100%; }
  .a-toolbar__spacer { margin-left: 0; flex: 0 0 auto; }
  .a-view-toggle { display: none; }

  .a-pager { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pagination > li > a, .pagination > li > span { min-width: 38px; height: 38px; margin: 0 2px; }

  .a-searchbox { padding: 14px; }
  .a-searchbox__row .a-btn { width: 100%; }

  .a-contact-card { padding: 18px; }
  .a-contact-card__phone { font-size: 22px; }

  /* таблицы корзины и заказа — горизонтальная прокрутка вместо развала */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-responsive > .table { min-width: 560px; }
}

/* на телефоне каталог остаётся в две колонки — так меньше прокрутки;
   в одну сваливается только на совсем узких экранах */
@media (max-width: 359px) {
  .a-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .a-hero__facts { grid-template-columns: minmax(0, 1fr); }
  .a-hero__actions .a-btn { width: 100%; }
  .a-buybox__row .a-btn { flex: 1 1 100%; }
}

/* ==========================================================================
   34. Правки после проверки в браузере
   ========================================================================== */

/* чип наличия не должен растягиваться на всю колонку */
.a-stock { align-self: flex-start; }

/* moneymaker2 рисует свою плавающую кнопку звонка и кнопку «наверх» —
   у нас есть собственные, чужие прячем, иначе они висят за краем экрана */
.btn-floating-callback,
.btn-floating-callback-tooltip { display: none !important; }

.toggle-scroll-top {
  position: fixed;
  right: 20px; bottom: 88px;
  z-index: 1035;
  width: 44px; height: 44px;
  display: flex !important; align-items: center; justify-content: center;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--blue-ink);
  box-shadow: var(--sh-sm);
  cursor: pointer;
}
.toggle-scroll-top .fa { font-size: 20px; }

/* ---- шапка на телефоне: всё должно помещаться в 320–414px ---- */
@media (max-width: 767px) {
  .a-header__row { gap: 8px; min-height: 60px; }
  .a-logo img { max-height: 34px; }
  .a-tools { gap: 6px; }

  .a-icon-btn { width: 40px; height: 40px; }
  .a-icon-btn svg { width: 18px; height: 18px; }
  .a-burger { width: 40px; height: 40px; }

  .a-modules > li.dropdown > .dropdown-toggle { height: 40px; padding: 0 12px; }
  #search.dropdown > .dropdown-toggle { width: 40px; }
  #cart.dropdown > .dropdown-toggle { padding: 0 12px; gap: 6px; }
  #cart .dropdown-toggle > span:not(.fa-stack) { display: none; }

  .a-hero__title { font-size: 27px; }
  .a-hero__text { font-size: 15px; }

  .a-float { display: none; }
  .toggle-scroll-top { display: none !important; }
}

@media (max-width: 359px) {
  .a-logo img { max-height: 28px; }
  .a-modules--search { display: none; }
}

/* ==========================================================================
   35. Боковая колонка OpenCart внутри нашей сетки
   Контроллер отдаёт готовый <aside id="column-left" class="col-sm-3 hidden-xs">,
   поэтому бутстраповские классы гасим, а оформление вешаем на id.
   ========================================================================== */

.a-layout--side > #column-left,
.a-layout--side > #column-right {
  display: flex !important;           /* перебиваем .hidden-xs на телефонах */
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  float: none;
  padding: 0;
  margin: 0;
}
.a-layout--side > #column-right { order: 3; }

#column-left .list-group,
#column-right .list-group,
#column-left .panel,
#column-right .panel {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  overflow: hidden;
}
#column-left .list-group-item,
#column-right .list-group-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 16px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
#column-left .list-group-item:last-child,
#column-right .list-group-item:last-child { border-bottom: 0; }
#column-left .list-group-item:hover,
#column-right .list-group-item:hover { background: var(--blue-050); color: var(--blue-ink); }
#column-left .list-group-item.active,
#column-left .list-group-item.active:hover,
#column-right .list-group-item.active,
#column-right .list-group-item.active:hover {
  background: var(--blue-050);
  color: var(--blue-ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--blue);
}

/* HTML-модули в колонке — в такую же карточку */
#column-left > div:not(.list-group):not(.panel),
#column-right > div:not(.list-group):not(.panel) {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  font-size: 14px;
  line-height: 1.55;
}
#column-left h3, #column-right h3,
#column-left .h5, #column-right .h5 { font-size: 16px; margin: 0 0 10px; }
#column-left img, #column-right img { border-radius: var(--r-sm); }

@media (max-width: 991px) {
  .a-layout--side > #column-left,
  .a-layout--side > #column-right { order: 4; }
}

/* описание категории идёт под каталогом — это SEO-текст, а не первый экран */
.a-catdesc { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.a-catdesc__thumb { display: block; max-width: 420px; margin: 0 0 20px; border-radius: var(--r-md); }

/* ==========================================================================
   36. Шапка: липкой остаётся только основная строка
   ========================================================================== */

.a-header { position: static; border-bottom: 0; }
.a-header--scrolled { box-shadow: none; }

.a-header__bar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
.a-header__bar.is-stuck { box-shadow: var(--sh-sm); }

body.is-locked { overflow: hidden; }

/* ---- поиск ---- */
.a-search { position: relative; }
.a-search__form {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  width: min(460px, calc(100vw - 32px));
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.a-search.is-open .a-search__form { opacity: 1; visibility: visible; transform: none; }
.a-search__form .form-control { flex: 1 1 auto; width: auto; }
.a-search__form .a-btn { flex: 0 0 auto; padding: 11px 16px; }

/* ---- корзина в шапке ---- */
.a-cart { position: relative; flex: none; }
.a-cart__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 18px 0 15px;
  border: 1px solid var(--blue);
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--sh-blue);
  transition: background-color var(--dur) var(--ease), transform .18s var(--ease);
}
.a-cart__btn:hover, .a-cart__btn:focus { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.a-cart__btn svg { width: 20px; height: 20px; fill: currentColor; }
.a-cart__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  background: rgba(255, 255, 255, .24);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; line-height: 1;
}
.a-cart__sum { font-size: 15px; }
.a-cart__btn.is-bump { animation: a-bump .4s var(--ease); }
@keyframes a-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* «полёт» товара в корзину */
.a-fly {
  position: fixed;
  z-index: 2000;
  pointer-events: none;
  object-fit: contain;
  border-radius: var(--r-sm);
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .6s ease-in;
}

/* ==========================================================================
   37. Своё модальное окно (корзина)
   ========================================================================== */

.a-modal { position: fixed; inset: 0; z-index: 1080; }
.a-modal__scrim {
  position: absolute; inset: 0;
  background: rgba(15, 27, 45, .5);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.a-modal.is-open .a-modal__scrim { opacity: 1; }

.a-modal__dialog {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 100vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: var(--sh-lg);
  transform: translateX(100%);
  transition: transform .26s var(--ease);
}
.a-modal.is-open .a-modal__dialog { transform: none; }

.a-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.a-modal__title { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.a-modal__close {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-soft); border: 0; border-radius: var(--r-pill);
  color: var(--ink-3); cursor: pointer;
}
.a-modal__close:hover { background: var(--blue-050); color: var(--blue-ink); }
.a-modal__close svg { width: 18px; height: 18px; fill: currentColor; }

.a-modal__flash {
  display: flex; align-items: center; gap: 9px;
  margin: 0;
  padding: 12px 20px;
  background: var(--green-050);
  color: var(--green);
  font-size: 14px; font-weight: 600;
}
.a-modal__flash svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

.a-modal__body { flex: 1 1 auto; overflow-y: auto; padding: 18px 20px 24px; }

/* ---- строки корзины ---- */
.a-cartlist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.a-cartline {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.a-cartline:last-child { border-bottom: 0; padding-bottom: 0; }
.a-cartline__media {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.a-cartline__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.a-cartline__body { min-width: 0; }
.a-cartline__name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.a-cartline__name:hover { color: var(--blue-ink); }
.a-cartline__opts { display: grid; gap: 2px; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.a-cartline__meta { margin-top: 5px; font-size: 13px; color: var(--ink-3); }
.a-cartline__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.a-cartline__total { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.a-cartline__del {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink-3); cursor: pointer;
}
.a-cartline__del:hover { border-color: #f0c2c9; background: var(--red-050); color: var(--red); }
.a-cartline__del svg { width: 14px; height: 14px; fill: currentColor; }

.a-carttotals { margin: 0 0 18px; padding: 14px 16px; background: var(--surface-soft); border-radius: var(--r-md); }
.a-carttotals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.a-carttotals dt { font-weight: 400; color: var(--ink-3); }
.a-carttotals dd { margin: 0; font-weight: 700; color: var(--ink); }
.a-carttotals > div:last-child dt,
.a-carttotals > div:last-child dd { font-size: 17px; color: var(--ink); font-weight: 700; }

.a-cartactions { display: grid; gap: 10px; }
.a-cartactions .a-btn { width: 100%; }

.a-cartempty { text-align: center; padding: 40px 0; color: var(--ink-3); }
.a-cartempty svg { width: 46px; height: 46px; margin: 0 auto 14px; fill: var(--line-strong); }

/* ==========================================================================
   38. Модалка заявки / обратного звонка
   ========================================================================== */

.a-order .modal-dialog { width: min(620px, calc(100vw - 32px)); margin: 40px auto; }
.a-order .modal-content { border-radius: var(--r-lg); overflow: hidden; }

.a-order .modal-header {
  position: relative;
  padding: 26px 28px 20px;
  background: linear-gradient(135deg, #0b63d6 0%, #0a4ea8 100%);
  border-bottom: 0;
  color: #fff;
}
.a-order .modal-title { color: #fff; font-size: 23px; font-weight: 700; text-align: left; margin: 0; }
.a-order__lead { margin: 8px 0 0; font-size: 14px; color: #cfe1fb; }
.a-order .modal-header .close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  opacity: .85;
  color: #fff;
  text-shadow: none;
  background: rgba(255, 255, 255, .16);
  border: 0;
  border-radius: var(--r-pill);
  font-size: 22px;
  line-height: 1;
}
.a-order .modal-header .close:hover { opacity: 1; background: rgba(255, 255, 255, .28); color: #fff; }

.a-order .modal-body { padding: 24px 28px 26px; }

.a-order__product { text-align: center; }
.a-order__product:empty { display: none; }
.a-order__img { max-width: 130px; max-height: 130px; margin: 0 auto 10px; object-fit: contain; }
.a-order__img[src$="no_image.png"] { display: none; }
.a-order__price { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 18px; }
.a-order__price:empty { display: none; margin: 0; }

.a-order__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.a-order__field { margin-bottom: 16px; }
.a-order__field--wide { grid-column: 1 / -1; }
.a-order__field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.a-order__field.required label::after { content: " *"; color: var(--red); }
.a-order__control { position: relative; }
.a-order__control .form-control { width: 100%; }
.a-order .form-control-feedback {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: auto; height: auto; line-height: 1;
  color: var(--green); pointer-events: none;
}
.a-order .has-error .form-control { border-color: var(--red); }
.a-order .has-success .form-control { border-color: var(--green); }

.a-order .panel { margin: 0; border: 0; box-shadow: none; background: var(--blue-050); border-radius: var(--r-md); }
.a-order .panel-heading { background: none; border: 0; padding: 12px 14px; border-radius: var(--r-md); }
.a-order .panel small { font-size: 13px; color: var(--blue-ink); line-height: 1.5; }
.a-order .panel-success { background: var(--green-050); }
.a-order .panel-success small { color: var(--green); }
.a-order .panel-danger { background: var(--red-050); }
.a-order .panel-danger small { color: var(--red); }

.a-order__agree { margin: 0; }
.a-order__agree label { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; font-weight: 400; color: var(--ink-3); line-height: 1.45; }
.a-order__agree input { margin: 3px 0 0; flex: none; }

.a-order__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.a-order__actions .btn-primary { flex: 1 1 240px; min-height: 52px; font-size: 16px; }
.a-order__actions .btn-default { flex: 0 1 auto; }
.a-order__note { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.45; }

.a-order .modal-body2:empty { display: none; }
.a-order .modal-body2 { padding: 0 28px 24px; font-size: 14px; }

/* ==========================================================================
   39. Галерея товара
   ========================================================================== */

.a-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.a-gallery__thumbs a {
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.a-gallery__thumbs a.is-active { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-100); }

/* ==========================================================================
   40. Блок покупки: опции и количество
   ========================================================================== */

.a-buybox { background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.a-options { margin-top: 20px; }
.a-options > .form-group {
  padding: 16px;
  margin-bottom: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.a-options > .form-group > label.control-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.a-options .checkbox, .a-options .radio { margin: 0; padding: 0; }
.a-options .checkbox + .checkbox, .a-options .radio + .radio { margin-top: 6px; }
.a-options .checkbox label, .a-options .radio label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.a-options .checkbox label:hover, .a-options .radio label:hover { border-color: var(--blue-200); background: var(--blue-050); }
.a-options .checkbox input, .a-options .radio input {
  position: static;
  margin: 0;
  width: 18px; height: 18px;
  flex: none;
  accent-color: var(--blue);
}

.a-buybox__qty { align-items: center; gap: 10px; margin-top: 18px; }
.a-buybox__qty label { margin: 0; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.a-buybox__qty .form-control { width: 90px; text-align: center; font-weight: 600; }

/* ==========================================================================
   41. Страница корзины
   ========================================================================== */

#content .table > thead > tr > th,
.table-responsive .table > thead > tr > th {
  background: var(--surface-soft);
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.table > tbody > tr > td .btn-primary,
.table > tbody > tr > td .btn-danger { min-height: 40px; padding: 8px 12px; }
.table > tbody > tr > td .btn + .btn { margin-left: 6px; }
.table .img-thumbnail { padding: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }

/* итоги корзины — в карточку */
#content .table.table-bordered tfoot td,
.table > tfoot > tr > td {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 15px;
}
.table > tfoot > tr:last-child > td { font-size: 18px; font-weight: 700; color: var(--ink); }

/* ==========================================================================
   42. Адаптив добавленных блоков
   ========================================================================== */

@media (max-width: 767px) {
  .a-cart__btn { height: 40px; padding: 0 12px; gap: 6px; }
  .a-cart__sum { display: none; }
  .a-modal__dialog { width: 100vw; }
  .a-order__form { grid-template-columns: minmax(0, 1fr); }
  .a-order .modal-header { padding: 20px 20px 16px; }
  .a-order .modal-title { font-size: 20px; }
  .a-order .modal-body { padding: 18px 20px 20px; }
  .a-order .modal-dialog { margin: 0; width: 100vw; }
  .a-order .modal-content { border-radius: 0; min-height: 100vh; }
  .a-gallery__thumbs { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
}

/* атрибут hidden не должен проигрывать классам темы */
[hidden] { display: none !important; }

/* поля модалки, скрытые скриптом, не должны оставлять пустое место */
.a-order__form .form-group.hidden { display: none !important; }

/* ==========================================================================
   43. Оформление информационных страниц
   ========================================================================== */

.a-seo > h2:first-child, .a-seo > h3:first-child { margin-top: 0; }

.a-lead-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  padding: 18px 20px;
  margin-bottom: 28px;
  background: var(--blue-050);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.a-lead-text b { color: var(--ink); }

.a-facts-row { margin: 0 0 30px; max-width: none; }

.a-list-check, .a-list-cross { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.a-list-check li, .a-list-cross li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.a-list-check li::before,
.a-list-cross li::before {
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.a-list-check li::before { content: "✓"; background: var(--green-050); color: var(--green); }
.a-list-cross li::before { content: "×"; background: var(--red-050); color: var(--red); font-size: 14px; }
.a-usp__item .a-list-check { margin-bottom: 0; }
.a-usp__item .a-list-check li { font-size: 14px; }

.a-specs--wide { margin: 0 0 26px; }
.a-specs--wide th { width: 46%; }

.a-steps-list { margin: 0 0 24px; padding-left: 22px; counter-reset: none; }
.a-steps-list li { margin-bottom: 9px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.a-steps-list li::marker { color: var(--blue); font-weight: 700; }

.a-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 26px;
  font-size: 14px;
}
.a-table th, .a-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.a-table thead th {
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-strong);
}
.a-table--service td:first-child { font-weight: 600; color: var(--ink); }

.a-cta--inline { margin-top: 36px; }
.a-cta--inline h2 { font-size: 23px; }

/* секции внутри статьи не должны тянуть свои внешние отступы */
.a-seo .a-usp, .a-seo .a-steps { margin: 0 0 28px; }
.a-seo .a-faq { margin: 0 0 28px; max-width: none; }

@media (max-width: 767px) {
  .a-lead-text { font-size: 16px; padding: 14px 16px; }
  .a-facts-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .a-table { font-size: 13px; }
  .a-table th, .a-table td { padding: 9px 10px; }
  .a-table--service { min-width: 540px; }
  .a-cta--inline h2 { font-size: 20px; }
}

/* ==========================================================================
   44. Правки по замечаниям
   ========================================================================== */

/* страховка: старая тема ставила отступ под свою фиксированную шапку */
body { padding-top: 0 !important; }

/* инфостраницы — во всю ширину контейнера, а не в узкую колонку */
.a-content--narrow { max-width: none; }

/* --- шапка: меню прячем раньше, чем оно наедет на телефон и корзину --- */
@media (max-width: 1199px) {
  .a-nav { display: none; }
  .a-header__cta { display: none; }
  .a-burger { display: inline-flex; }
  .a-header__row { justify-content: space-between; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .a-phone { display: flex; }
  .a-mob-btn { display: none; }
}

/* --- корзина: модалка по центру экрана --- */
.a-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.a-modal__dialog {
  position: relative;
  top: auto; right: auto; bottom: auto;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: var(--r-lg);
  overflow: hidden;
  transform: translateY(14px) scale(.985);
  opacity: 0;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.a-modal.is-open .a-modal__dialog { transform: none; opacity: 1; }

.a-cartactions .a-btn { width: 100%; }

@media (max-width: 767px) {
  .a-modal { padding: 0; align-items: flex-end; }
  .a-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: translateY(100%);
  }
  .a-modal.is-open .a-modal__dialog { transform: none; }
}

/* состав заказа под формой заявки */
.a-order .modal-body2 .a-cartlist { margin: 0; gap: 10px; }
.a-order .modal-body2 .a-cartline { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding-bottom: 10px; }
.a-order .modal-body2 .a-cartline__media { width: 52px; height: 52px; }
.a-order .modal-body2 .a-cartline__name { font-size: 14px; }
.a-order .modal-body2 .a-cartline__del,
.a-order .modal-body2 .a-carttotals,
.a-order .modal-body2 .a-cartactions { display: none; }
.a-order .modal-body2::before {
  content: "Состав заказа";
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.a-order .modal-body2 { border-top: 1px solid var(--line); padding-top: 18px; }

/* иконка на странице пустой корзины */
.a-404__icon { display: block; margin: 0 auto 14px; }
.a-404__icon svg { width: 62px; height: 62px; margin: 0 auto; fill: var(--blue-200); }

/* заголовки блоков, которые приходят из HTML-модулей админки */
.aros-cert-title,
.a-mod .pay-title,
.a-mod .service-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--ink);
  text-align: center;
  margin: 0 0 22px;
}
.a-mod iframe, .a-seo iframe { max-width: 100%; border: 0; border-radius: var(--r-md); }
.aros-video-wrapper { border-radius: var(--r-md); overflow: hidden; }

@media (max-width: 767px) {
  .aros-cert-title { font-size: 21px; }
  .a-404__icon svg { width: 48px; height: 48px; }
}

/* ==========================================================================
   45. MAX ⇄ Telegram в шапке
   Одна кнопка, значки меняются раз в 5 секунд: уходящий закручивается и
   сжимается, приходящий влетает с вращением и плавно тормозит.
   ========================================================================== */

.a-msgswap {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
}
.a-msgswap__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  opacity: 0;
  visibility: hidden;
  transform: rotate(-400deg) scale(.3);
  will-change: transform, opacity;
}
.a-msgswap__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--r-pill);
  pointer-events: none;
}
.a-msgswap__item.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  /* длинное замедление — «закрутился и плавно остановился» */
  transition: transform .85s cubic-bezier(.13, .86, .2, 1), opacity .3s ease-out, visibility 0s;
}
.a-msgswap__item.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: rotate(380deg) scale(.3);
  transition: transform .6s cubic-bezier(.5, 0, .75, 0), opacity .45s ease-in, visibility 0s linear .6s;
}
.a-msgswap__item:hover { filter: brightness(1.06); }
.a-msgswap__item:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .a-msgswap__item { transform: none; }
  .a-msgswap__item.is-active { transition: opacity .2s linear; }
  .a-msgswap__item.is-leaving { transform: none; transition: opacity .2s linear; }
}

/* значки мессенджеров в подвале и в карточке товара */
.a-msg--max, .a-msg--tg { background: none; padding: 0; width: 42px; height: 42px; }
.a-msg--max:hover, .a-msg--tg:hover { background: none; filter: brightness(1.08); }
.a-msg--max img, .a-msg--tg img { width: 42px; height: 42px; border-radius: var(--r-pill); }

.a-contact__ico { width: 20px; height: 20px; flex: none; object-fit: contain; }

@media (max-width: 767px) {
  .a-msgswap { width: 40px; height: 40px; }
}
