/* ==========================================================================
   AROS Moscow — тема arosmoscow (OpenCart 2.3)
   Дизайн: «инженерная точность + вода». Белый фон, синий #0369a1, бирюза — декор.
   ВАЖНО: все размеры в px. На страницах кабинета/чекаута подключается
   bootstrap 3 с html{font-size:10px}, rem там сломается.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --soft: #f3f8fc;
  --soft-2: #e7f1f9;
  --line: #dbe6ef;
  --line-2: #c3d4e3;
  --ink: #0b1b2b;
  --text: #2f4356;
  --mute: #566b7f;
  --pri: #0369a1;
  --pri-h: #075985;
  --pri-soft: #e0f2fe;
  --pri-ink: #0c4a6e;
  --aqua: #06b6d4;
  --aqua-2: #22d3ee;
  --ok: #047857;
  --ok-soft: #e6f6ee;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --err: #b91c1c;
  --r-s: 6px;
  --r: 10px;
  --r-l: 14px;
  --sh-1: 0 1px 2px rgba(11, 27, 43, .06), 0 1px 1px rgba(11, 27, 43, .04);
  --sh-2: 0 10px 28px -12px rgba(11, 27, 43, .22);
  --sh-3: 0 24px 60px -20px rgba(11, 27, 43, .35);
  --f-h: "Rubik", "Segoe UI", Arial, sans-serif;
  --f-b: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
  --gut: 20px;
  --hdr: 72px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body.am {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--f-b); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
.am img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
.am a { color: var(--pri); text-decoration: none; transition: color .2s var(--ease); }
.am a:hover { color: var(--pri-h); }
.am h1, .am h2, .am h3, .am h4 { font-family: var(--f-h); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
.am h1 { font-size: 34px; }
.am h2 { font-size: 28px; }
.am h3 { font-size: 20px; }
.am h4 { font-size: 17px; }
.am p { margin: 0 0 1em; }
.am button, .am input, .am select, .am textarea { font: inherit; color: inherit; }
.am :focus-visible { outline: 3px solid rgba(3, 105, 161, .45); outline-offset: 2px; border-radius: 4px; }
.am [hidden] { display: none !important; }
.am-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.am-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--pri); color: #fff !important; padding: 10px 16px; border-radius: var(--r-s); }
.am-skip:focus { top: 12px; }
.am-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.am-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-ico--s { width: 16px; height: 16px; }
.am-ico--l { width: 26px; height: 26px; }
.am-num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Кнопки ---------- */
.am-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--r-s); border: 1px solid transparent;
  font: 600 15px/1.2 var(--f-h); letter-spacing: .01em; cursor: pointer; text-align: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .1s;
  touch-action: manipulation; white-space: nowrap; -webkit-user-select: none; user-select: none;
}
.am-btn:active { transform: translateY(1px); }
.am-btn[disabled], .am-btn.is-busy { opacity: .6; cursor: progress; }
.am .am-btn--pri { background: var(--pri); color: #fff; box-shadow: 0 6px 16px -8px rgba(3, 105, 161, .8); }
.am .am-btn--pri:hover { background: var(--pri-h); color: #fff; }
.am .am-btn--ghost { background: #fff; color: var(--pri); border-color: var(--line-2); }
.am .am-btn--ghost:hover { border-color: var(--pri); color: var(--pri-h); background: var(--pri-soft); }
.am .am-btn--soft { background: var(--pri-soft); color: var(--pri-ink); }
.am .am-btn--soft:hover { background: #cbe9fb; color: var(--pri-ink); }
.am .am-btn--white { background: #fff; color: var(--pri-ink); }
.am .am-btn--white:hover { background: var(--pri-soft); color: var(--pri-ink); }
.am-btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.am-btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.am-btn--block { display: flex; width: 100%; }
.am-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.am-link .am-ico { transition: transform .2s var(--ease); }
.am-link:hover .am-ico { transform: translateX(3px); }

/* ---------- Мелочи: чипы, бейджи ---------- */
.am-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 13px/1.4 var(--f-b); background: var(--soft-2); color: var(--pri-ink); }
.am-chip--ok { background: var(--ok-soft); color: var(--ok); }
.am-chip--warn { background: var(--warn-soft); color: var(--warn); }
.am-chip--ok::before, .am-chip--warn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.am-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.3 var(--f-h); letter-spacing: .08em; text-transform: uppercase; color: var(--pri); margin-bottom: 12px; }
.am-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--aqua), var(--pri)); }

/* ==========================================================================
   Шапка
   ========================================================================== */
.am-top { background: var(--ink); color: #c9d7e4; font-size: 13px; }
.am-top .am-wrap, .am-hdr .am-wrap { max-width: 1560px; }
.am-top .am-wrap { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.am-top a { color: #dbe7f2; }
.am-top a:hover { color: #fff; }
.am-top__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.am-top__nav { margin-left: auto; display: flex; gap: 18px; }

.am-hdr { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
@supports (backdrop-filter: blur(8px)) { .am-hdr { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); } }
.am-hdr.is-stuck { box-shadow: 0 8px 24px -16px rgba(11, 27, 43, .35); }
.am-hdr__bar { display: flex; align-items: center; gap: 28px; height: var(--hdr); min-width: 0; }
.am-logo { display: inline-flex; align-items: center; flex: none; }
.am-logo img { width: 128px; height: 38px; }
.am-logo__cap { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); font-size: 12px; line-height: 1.3; color: var(--mute); max-width: 150px; }

.am-nav { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.am-nav > a, .am-nav__cat > button {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: var(--r-s);
  font: 500 15px/1 var(--f-h); color: var(--ink); background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.am-nav > a:hover, .am-nav__cat > button:hover, .am-nav__cat.is-open > button { background: var(--soft); color: var(--pri); }
.am-nav > a.is-active { color: var(--pri); box-shadow: inset 0 -2px 0 var(--pri); border-radius: 0; }
.am-nav__cat { position: relative; }
.am-nav__cat > button { background: var(--pri); color: #fff; padding: 0 16px; }
.am-nav__cat > button:hover, .am-nav__cat.is-open > button { background: var(--pri-h); color: #fff; }
.am-nav__cat .am-ico--s { transition: transform .2s var(--ease); }
.am-nav__cat.is-open .am-ico--s { transform: rotate(180deg); }

.am-mega {
  position: absolute; left: 0; top: calc(100% + 12px); width: 760px; padding: 18px; border-radius: var(--r-l);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.am-nav__cat.is-open .am-mega { opacity: 1; visibility: visible; transform: none; }
.am-mega__item { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r); border: 1px solid transparent; color: var(--ink) !important; }
.am-mega__item:hover { border-color: var(--line); background: var(--soft); }
.am-mega__img { aspect-ratio: 4 / 3; border-radius: var(--r-s); background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.am-mega__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.am-mega__name { font: 600 15px/1.3 var(--f-h); }
.am-mega__meta { font-size: 13px; color: var(--mute); }
.am-mega__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--pri-soft); color: var(--pri-ink); font-size: 14px; }

.am-hdr__tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.am-phone { margin: 0 8px 0 4px; }
.am-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; margin-right: 6px; }
.am-phone a { font: 600 18px/1.2 var(--f-h); color: var(--ink) !important; white-space: nowrap; }
.am-phone a:hover { color: var(--pri) !important; }
.am-phone button { padding: 0; border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--pri); cursor: pointer; border-bottom: 1px dashed currentColor; }
.am-iconbtn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.am-iconbtn:hover { border-color: var(--pri); color: var(--pri); }
.am-iconbtn img { width: 22px; height: 22px; }
.am-cartbtn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border-radius: var(--r-s); background: var(--ink); color: #fff !important; font: 600 14px/1 var(--f-h); }
.am-cartbtn:hover { background: var(--pri-h); }
.am-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--aqua-2); color: var(--ink); font: 700 12px/1 var(--f-b); }
.am-badge.is-pulse { animation: amPulse .6s var(--ease); }
@keyframes amPulse { 40% { transform: scale(1.35); } }
.am-burger, .am-show-m { display: none; }

/* Поиск в шапке */
.am-search { position: relative; }
.am-search__panel { position: absolute; right: 0; top: calc(100% + 12px); width: 380px; padding: 12px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.am-search.is-open .am-search__panel { opacity: 1; visibility: visible; transform: none; }
.am-search form { display: flex; gap: 8px; }
.am-input, .am select.am-input, .am textarea.am-input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-s); border: 1px solid var(--line-2);
  background: #fff; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.am-input:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 4px rgba(3, 105, 161, .15); }
.am textarea.am-input { min-height: 110px; resize: vertical; }

/* Мобильная панель */
.am-drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.am-drawer__bg { position: absolute; inset: 0; background: rgba(11, 27, 43, .5); opacity: 0; transition: opacity .25s var(--ease); }
.am-drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: var(--sh-3);
}
.am-drawer.is-open { visibility: visible; }
.am-drawer.is-open .am-drawer__bg { opacity: 1; }
.am-drawer.is-open .am-drawer__panel { transform: none; }
.am-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.am-drawer__body { flex: 1; overflow-y: auto; padding: 8px 16px 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.am-drawer__title { margin: 18px 0 6px; font: 600 12px/1 var(--f-h); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.am-drawer__link { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 4px; border-bottom: 1px solid var(--soft-2); color: var(--ink) !important; font: 500 16px/1.3 var(--f-h); }
.am-drawer__link img { width: 44px; height: 44px; object-fit: contain; border-radius: var(--r-s); background: var(--soft); mix-blend-mode: multiply; }
.am-drawer__link small { display: block; font: 400 13px/1.3 var(--f-b); color: var(--mute); }
.am-drawer__contacts { display: grid; gap: 10px; margin-top: 18px; }
.am-noscroll { overflow: hidden; }

/* ==========================================================================
   Хлебные крошки, заголовки страниц
   ========================================================================== */
.am-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 18px 0 0; list-style: none; font-size: 14px; color: var(--mute); }
.am-crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.am-crumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--line-2); border-right: 1.5px solid var(--line-2); transform: rotate(45deg); }
.am-crumbs a { color: var(--mute); }
.am-crumbs a:hover { color: var(--pri); }
.am-crumbs [aria-current] { color: var(--ink); }

.am-phead { position: relative; padding: 8px 0 30px; }
.am-phead h1 { margin: 14px 0 10px; font-size: 38px; max-width: 900px; }
.am-phead__lead { max-width: 760px; font-size: 18px; color: var(--mute); margin: 0; }
.am-phead--band { background: var(--soft); border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow: hidden; }
.am-phead--band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(3, 105, 161, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(3, 105, 161, .06) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.am-phead--band .am-wrap { position: relative; z-index: 1; }

/* ==========================================================================
   Секции, сетки
   ========================================================================== */
.am-sec { padding: 64px 0; }
.am-sec--soft { background: var(--soft); }
.am-sec--tight { padding: 40px 0; }
.am-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.am-sec__head h2 { margin: 0; }
.am-sec__head p { margin: 8px 0 0; color: var(--mute); max-width: 680px; }
.am-grid { display: grid; gap: 20px; }
.am-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.am-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; box-shadow: var(--sh-1); }
.am-card h3 { margin-bottom: 8px; }
.am-card p:last-child { margin-bottom: 0; }

/* Фичи с иконкой */
.am-feat { display: flex; gap: 16px; align-items: flex-start; }
.am-feat__ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--pri-soft); color: var(--pri); }
.am-feat__ico .am-ico { width: 24px; height: 24px; }
.am-feat h3 { font-size: 17px; margin: 2px 0 4px; }
.am-feat p { margin: 0; font-size: 15px; color: var(--mute); }

/* Шаги */
.am-steps { counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.am-steps li { position: relative; counter-increment: st; padding: 22px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); }
.am-steps li::before { content: "0" counter(st); display: block; font: 700 30px/1 var(--f-h); color: transparent; -webkit-text-stroke: 1.5px var(--pri); margin-bottom: 14px; }
.am-steps li h3 { font-size: 17px; margin: 0 0 6px; }
.am-steps li p { font-size: 15px; color: var(--mute); margin: 0; }

/* Цифры-шильдики */
.am-plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.am-plate { position: relative; padding: 12px 14px 12px 16px; border-radius: var(--r); background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.am-plate::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--aqua), var(--pri)); }
.am-plate dt { font-size: 12.5px; line-height: 1.3; color: var(--mute); margin: 0 0 4px; }
.am-plate dd { margin: 0; font: 600 20px/1.2 var(--f-h); color: var(--ink); font-variant-numeric: tabular-nums; }
.am-plate dd small { font: 500 13px/1 var(--f-b); color: var(--mute); margin-left: 3px; }

/* FAQ */
.am-faq { display: grid; gap: 10px; }
.am-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.am-faq details[open] { border-color: var(--line-2); box-shadow: var(--sh-2); }
.am-faq summary { position: relative; display: block; padding: 18px 56px 18px 20px; cursor: pointer; list-style: none; font: 600 16px/1.4 var(--f-h); color: var(--ink); }
.am-faq summary::-webkit-details-marker { display: none; }
.am-faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--pri-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230369a1' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s var(--ease); }
.am-faq details[open] summary::after { transform: rotate(45deg); }
.am-faq__a { padding: 0 20px 18px; color: var(--text); }
.am-faq__a p:last-child { margin: 0; }

/* Текст (описания, инфостраницы) */
.am-prose { color: var(--text); font-size: 17px; line-height: 1.7; }
.am-prose > *:first-child { margin-top: 0; }
.am-prose h2 { font-size: 26px; margin: 1.6em 0 .6em; }
.am-prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.am-prose ul, .am-prose ol { padding-left: 0; margin: 0 0 1.2em; list-style: none; }
.am-prose ul li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.am-prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--aqua); transform: rotate(45deg); }
.am-prose ol { counter-reset: li; }
.am-prose ol li { position: relative; padding-left: 36px; margin-bottom: .55em; counter-increment: li; }
.am-prose ol li::before { content: counter(li); position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%; background: var(--pri-soft); color: var(--pri-ink); font: 700 13px/24px var(--f-h); text-align: center; }
.am-prose img { border-radius: var(--r); }
.am-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.am-prose th, .am-prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.am-prose th { background: var(--soft); font: 600 14px/1.4 var(--f-h); color: var(--ink); }
.am-prose blockquote { margin: 0 0 1.2em; padding: 16px 20px; border-left: 4px solid var(--aqua); background: var(--soft); border-radius: 0 var(--r) var(--r) 0; }
.am-prose iframe { max-width: 100%; }
.am-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--r); }
.am-tablewrap table { margin: 0; min-width: 520px; }
.am-note { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--pri-soft); color: var(--pri-ink); margin: 0 0 1.4em; font-size: 15.5px; }
.am-note .am-ico { margin-top: 3px; color: var(--pri); }
.am-note--warn { background: var(--warn-soft); color: #6b4000; }
.am-note--warn .am-ico { color: var(--warn); }

/* Блоки для инфостраниц (контент из админки) */
.am-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 1.6em; }
.am-kv > div { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; }
.am-kv b { display: block; font: 600 22px/1.2 var(--f-h); color: var(--ink); margin-bottom: 4px; }
.am-kv span { font-size: 14.5px; color: var(--mute); line-height: 1.45; display: block; }
.am-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0 0 1.6em; }
.am-tile { padding: 20px; border-radius: var(--r-l); border: 1px solid var(--line); background: #fff; }
.am-tile h3 { margin: 0 0 6px !important; font-size: 18px !important; }
.am-tile p { margin: 0; font-size: 15px; color: var(--mute); line-height: 1.55; }
.am-tile ul { margin: 8px 0 0; font-size: 15px; }
.am-tile__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--pri-soft); color: var(--pri); margin-bottom: 12px; font: 700 18px/1 var(--f-h); }

/* ==========================================================================
   Карточка товара в списке
   ========================================================================== */
.am-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.am-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-pc { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.am-pc:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.am-pc__media { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #fff, var(--soft)); border-bottom: 1px solid var(--soft-2); }
.am-pc__media img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; mix-blend-mode: multiply; transition: transform .35s var(--ease); }
.am-pc:hover .am-pc__media img { transform: scale(1.03); }
.am-pc__flags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 1; }
.am-pc__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.am .am-pc__name { margin: 0 0 10px; font: 500 15px/1.35 var(--f-h); color: var(--ink); letter-spacing: 0; }
.am-pc__name a { color: inherit !important; }
.am-pc__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.am-pc__specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.am-pc__specs li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: var(--r-s); background: var(--soft); font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.am-pc__specs b { font-weight: 700; color: var(--ink); }
.am-pc__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.am-price { font: 600 21px/1.1 var(--f-h); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-price--old { display: block; font: 400 14px/1.2 var(--f-b); color: var(--mute); text-decoration: line-through; }
.am-price--new { color: var(--err); }
.am-pc__buy { position: relative; z-index: 1; }
.am-pc__buy .am-btn { min-height: 42px; padding: 0 14px; }

/* ==========================================================================
   Главная
   ========================================================================== */
.am-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #d6effd 0, transparent 60%), var(--soft); border-bottom: 1px solid var(--line); }
.am-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(3, 105, 161, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(3, 105, 161, .07) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at 75% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 20%, transparent 70%); }
.am-hero .am-wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
.am-hero h1 { font-size: 48px; line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; }
.am-hero h1 em { font-style: normal; color: var(--pri); }
.am-hero__lead { font-size: 19px; color: var(--text); max-width: 600px; margin: 0 0 26px; }
.am-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.am-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 620px; margin: 0; padding: 0; list-style: none; }
.am-hero__facts li { padding: 12px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }
.am-hero__facts b { display: block; font: 600 24px/1.1 var(--f-h); color: var(--ink); }
.am-hero__facts span { font-size: 13px; color: var(--mute); line-height: 1.35; display: block; margin-top: 3px; }
.am-hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: center; width: 100%; }
.am-hero__art::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff 0, #fff 45%, rgba(255, 255, 255, 0) 70%); }
.am-hero__art img { position: relative; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.am-hero__tag { position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); font-size: 13.5px; line-height: 1.3; color: var(--text); }
.am-hero__tag b { display: block; font: 600 15px/1.2 var(--f-h); color: var(--ink); }
.am-hero__tag--1 { left: -4%; top: 18%; }
.am-hero__tag--2 { right: -2%; bottom: 14%; }
.am-hero__tag .am-feat__ico { width: 38px; height: 38px; }
.am-hero__tag .am-feat__ico .am-ico { width: 20px; height: 20px; }

/* Разделы */
.am-cat { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); overflow: hidden; color: var(--ink) !important; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.am-cat:hover { box-shadow: var(--sh-2); border-color: var(--line-2); }
.am-cat__img { aspect-ratio: 16 / 10; background: linear-gradient(180deg, #fff, var(--soft)); display: grid; place-items: center; }
.am-cat__img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s var(--ease); }
.am-cat:hover .am-cat__img img { transform: scale(1.04); }
.am-cat__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.am-cat__body h3 { margin: 0; font-size: 21px; }
.am-cat__body p { margin: 0; color: var(--mute); font-size: 15px; }
.am-cat__meta { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line-2); }
.am-cat__meta span { font-size: 14px; color: var(--mute); }
.am-cat__meta b { font: 600 17px/1 var(--f-h); color: var(--ink); }

/* Подбор по числу постов */
.am-picker { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.am-picker__ctrl { position: sticky; top: calc(var(--hdr) + 20px); }
.am-picker__posts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 16px; }
.am-picker__posts button { height: 48px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: #fff; font: 600 17px/1 var(--f-h); color: var(--ink); cursor: pointer; transition: .2s var(--ease); }
.am-picker__posts button:hover { border-color: var(--pri); color: var(--pri); }
.am-picker__posts button[aria-pressed="true"] { background: var(--pri); border-color: var(--pri); color: #fff; }
.am-picker__hint { font-size: 14px; color: var(--mute); margin: 0; }
.am-picker__list { display: grid; gap: 10px; }
.am-prow { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)) auto; align-items: center; gap: 16px; padding: 10px 16px 10px 10px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.am-prow:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.am-prow.is-match { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(3, 105, 161, .14); }
.am-prow.is-dim { opacity: .55; }
.am-prow__img { width: 76px; height: 64px; border-radius: var(--r-s); background: var(--soft); display: grid; place-items: center; }
.am-prow__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.am-prow__name { font: 600 16px/1.25 var(--f-h); color: var(--ink) !important; }
.am-prow__name::after { content: ""; position: absolute; inset: 0; }
.am-prow__cell { font-size: 14px; color: var(--mute); line-height: 1.3; }
.am-prow__cell b { display: block; font: 600 16px/1.2 var(--f-h); color: var(--ink); font-variant-numeric: tabular-nums; }
.am-prow__tag { display: none; }
.am-prow__m { display: none; }
.am-prow.is-match .am-prow__tag { display: inline-flex; }

/* CTA-полоса */
.am-cta { position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(120deg, var(--pri-ink) 0%, var(--pri) 70%, #0891b2 100%); color: #e6f4fc; padding: 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.am-cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.am-cta > * { position: relative; }
.am-cta h2 { color: #fff; font-size: 30px; margin: 0 0 10px; }
.am-cta p { margin: 0; font-size: 17px; color: #cfe8f7; }
.am-cta__list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.am-cta__list li { display: flex; gap: 10px; align-items: center; color: #e6f4fc; font-size: 15.5px; }
.am-cta__list .am-ico { color: var(--aqua-2); }

/* Форма заявки */
.am-form { display: grid; gap: 12px; }
.am-form--card { background: #fff; color: var(--text); padding: 24px; border-radius: var(--r-l); box-shadow: var(--sh-3); }
.am-form--card h3 { margin: 0 0 2px; font-size: 20px; }
.am-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-field { display: grid; gap: 6px; }
.am-field label { font: 600 14px/1.2 var(--f-h); color: var(--ink); }
.am-field label i { font-style: normal; color: var(--err); }
.am-form__legal { font-size: 12.5px; line-height: 1.45; color: var(--mute); margin: 0; }
.am-form__legal a { color: var(--mute); text-decoration: underline; }
.am-form__msg { display: none; padding: 12px 14px; border-radius: var(--r-s); font-size: 15px; }
.am-form__msg.is-ok { display: block; background: var(--ok-soft); color: var(--ok); }
.am-form__msg.is-err { display: block; background: #fdecec; color: var(--err); }
.am-field.has-err .am-input { border-color: var(--err); }
.am-field__err { font-size: 13px; color: var(--err); }

/* Отзывы-«почему мы» с цифрами */
.am-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ==========================================================================
   Категория
   ========================================================================== */
.am-cattabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 0 20px; scrollbar-width: none; }
.am-cattabs::-webkit-scrollbar { display: none; }
.am-cattabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink) !important; font: 500 14.5px/1 var(--f-h); white-space: nowrap; }
.am-cattabs a:hover { border-color: var(--pri); color: var(--pri) !important; }
.am-cattabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.am-cattabs span { font: 600 12px/1 var(--f-b); padding: 3px 7px; border-radius: 999px; background: var(--soft-2); color: var(--pri-ink); }
.am-cattabs a.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }

.am-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.am-toolbar__count { font-size: 14.5px; color: var(--mute); }
.am-toolbar__count b { color: var(--ink); }
.am-toolbar label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); }
.am-toolbar select { min-height: 40px; width: auto; padding: 6px 36px 6px 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566b7f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; font-size: 14.5px; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; }
.am-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.am-subcats a { padding: 8px 14px; border-radius: var(--r-s); background: var(--soft); color: var(--ink) !important; font-size: 14.5px; }
.am-subcats a:hover { background: var(--pri-soft); }

.am-pager { display: flex; justify-content: center; margin: 32px 0 0; }
.am-pager .pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.am-pager .pagination li a, .am-pager .pagination li span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 15px/1 var(--f-h); }
.am-pager .pagination li a:hover { border-color: var(--pri); color: var(--pri); }
.am-pager .pagination li.active span { background: var(--pri); border-color: var(--pri); color: #fff; }
.am-empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-l); background: var(--soft); }
.am-empty .am-ico { width: 40px; height: 40px; color: var(--pri); margin-bottom: 10px; }

.am-catdesc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.am-aside { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 16px; }
.am-aside__card { padding: 22px; border-radius: var(--r-l); background: var(--ink); color: #c9d7e4; }
.am-aside__card h3 { color: #fff; font-size: 19px; margin: 0 0 6px; }
.am-aside__card p { font-size: 15px; margin: 0 0 16px; }
.am-aside__phone { display: block; font: 600 22px/1.2 var(--f-h); color: #fff !important; margin-bottom: 14px; }
.am-aside__nav { padding: 8px; border-radius: var(--r-l); border: 1px solid var(--line); background: #fff; }
.am-aside__nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: var(--r-s); color: var(--ink) !important; font: 500 15px/1.3 var(--f-h); }
.am-aside__nav a:hover { background: var(--soft); }
.am-aside__nav a.is-active { background: var(--pri-soft); color: var(--pri-ink) !important; }

/* ==========================================================================
   Страница товара (без табов: одна длинная страница с навигацией по якорям)
   ========================================================================== */
.am-pdp { padding-bottom: 20px; }
.am-pdp__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 18px 0 40px; }

/* Галерея */
.am-gal { position: sticky; top: calc(var(--hdr) + 16px); display: grid; gap: 12px; }
.am-gal__main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-l); border: 1px solid var(--line); background: linear-gradient(180deg, #fff 55%, var(--soft)); overflow: hidden; cursor: zoom-in; }
.am-gal__main img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .2s var(--ease); }
.am-gal__zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); font-size: 13px; color: var(--mute); pointer-events: none; }
.am-gal__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .95); display: grid; place-items: center; cursor: pointer; color: var(--ink); z-index: 2; }
.am-gal__nav:hover { color: var(--pri); border-color: var(--pri); }
.am-gal__nav--prev { left: 12px; }
.am-gal__nav--next { right: 12px; }
.am-gal__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.am-gal__thumbs button { aspect-ratio: 1 / 1; padding: 4px; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.am-gal__thumbs button:hover { border-color: var(--line-2); }
.am-gal__thumbs button[aria-current="true"] { border-color: var(--pri); box-shadow: 0 0 0 2px rgba(3, 105, 161, .2); }
.am-gal__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* Блок покупки */
.am-buy { display: grid; gap: 18px; }
.am-buy__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--mute); }
.am-buy h1 { font-size: 34px; margin: 0; }
.am-buy__sub { margin: -6px 0 0; font-size: 17px; color: var(--mute); }
.am-buy__box { padding: 22px; border-radius: var(--r-l); border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-2); display: grid; gap: 16px; }
.am-buy__price { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 14px; }
.am-buy__price .am-price { font-size: 36px; }
.am-buy__price small { font-size: 14px; color: var(--mute); }
.am-buy__row { display: flex; gap: 10px; }
.am-buy__row .am-btn--pri { flex: 1; }
.am-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r-s); overflow: hidden; height: 54px; }
.am-qty button { width: 42px; border: 0; background: #fff; font: 600 20px/1 var(--f-h); color: var(--ink); cursor: pointer; }
.am-qty button:hover { background: var(--soft); color: var(--pri); }
.am-qty input { width: 46px; border: 0; text-align: center; font: 600 17px/1 var(--f-h); -moz-appearance: textfield; }
.am-qty input::-webkit-outer-spin-button, .am-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.am-buy__alt { display: grid; grid-template-columns: 1fr; gap: 10px; }
.am-opts { display: grid; gap: 10px; }
.am-opts__title { font: 600 15px/1.3 var(--f-h); color: var(--ink); margin: 0; }
.am-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.am-opt:hover { border-color: var(--line-2); }
.am-opt input { width: 20px; height: 20px; accent-color: var(--pri); flex: none; margin: 0; }
.am-opt__name { flex: 1; font-size: 15px; color: var(--ink); }
.am-opt__price { font: 600 15px/1 var(--f-h); color: var(--pri-ink); white-space: nowrap; }
.am-opt:has(input:checked) { border-color: var(--pri); background: var(--pri-soft); }
.am-opts select.am-input { padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566b7f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.am-opts .text-danger { color: var(--err); font-size: 13.5px; }
.am-buy__contacts { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.am-buy__contacts a.am-phonebig { display: flex; flex-direction: column; font: 600 19px/1.2 var(--f-h); color: var(--ink) !important; }
.am-buy__contacts a.am-phonebig small { font: 400 13px/1.3 var(--f-b); color: var(--mute); }
.am-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.am-trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; color: var(--mute); }
.am-trust li .am-ico { color: var(--pri); margin-top: 1px; }
.am-trust b { display: block; font: 600 14px/1.3 var(--f-h); color: var(--ink); }

/* Навигация по разделам товара (якоря, не табы) */
.am-anchors { position: sticky; top: var(--hdr); z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .am-anchors { background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); } }
.am-anchors .am-wrap { display: flex; align-items: center; gap: 16px; }
.am-anchors nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.am-anchors nav::-webkit-scrollbar { display: none; }
.am-anchors nav a { flex: none; position: relative; display: inline-flex; align-items: center; height: 54px; padding: 0 14px; color: var(--mute) !important; font: 500 15px/1 var(--f-h); white-space: nowrap; }
.am-anchors nav a:hover { color: var(--ink) !important; }
.am-anchors nav a.is-current { color: var(--pri) !important; }
.am-anchors nav a.is-current::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--pri); }
.am-anchors__buy { display: flex; align-items: center; gap: 14px; opacity: 0; visibility: hidden; transition: opacity .2s; }
.am-anchors.is-buy .am-anchors__buy { opacity: 1; visibility: visible; }
.am-anchors__buy .am-price { font-size: 19px; }

.am-psec { padding: 48px 0; border-bottom: 1px solid var(--line); }
.am-psec:last-child { border-bottom: 0; }
.am-psec__title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.am-psec__title h2 { margin: 0; font-size: 28px; }
.am-psec__title span { font-size: 15px; color: var(--mute); }
.am-psec__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.am-desc { max-width: 820px; }
.am-desc .am-prose { font-size: 17px; }

/* Таблица характеристик */
.am-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.am-specs__group { grid-column: 1 / -1; font: 600 13px/1 var(--f-h); letter-spacing: .08em; text-transform: uppercase; color: var(--pri); margin: 18px 0 8px; }
.am-specs__group:first-child { margin-top: 0; }
.am-specs dl { display: contents; }
.am-specs__row { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; min-width: 0; }
.am-specs__row dt { color: var(--mute); flex: 1 1 auto; min-width: 0; margin: 0; display: flex; align-items: baseline; gap: 8px; }
.am-specs__row dt::after { content: ""; flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.am-specs__row dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; max-width: 55%; }

/* Комплектация, включено */
.am-incl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.am-incl li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--soft); font-size: 15px; color: var(--ink); }
.am-incl li .am-ico { color: var(--ok); }

/* Липкая панель покупки на телефоне */
.am-mbuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: none; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(11, 27, 43, .45); transform: translateY(110%); transition: transform .25s var(--ease); }
.am-mbuy.is-on { transform: none; }
.am-mbuy__price { flex: 1; min-width: 0; }
.am-mbuy__price .am-price { font-size: 19px; }
.am-mbuy__price small { display: block; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-mbuy .am-iconbtn { width: 48px; height: 48px; }

/* Отзывы */
.am-reviews { display: grid; gap: 14px; }
.am-review { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); }
.am-review__head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--mute); margin-bottom: 6px; }
.am-review__head b { color: var(--ink); font-family: var(--f-h); font-weight: 600; }
.am-stars { color: #d97706; letter-spacing: 2px; }
.am-rate { display: flex; gap: 4px; }
.am-rate label { cursor: pointer; }
.am-rate input { position: absolute; opacity: 0; }
.am-rate span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); border: 1px solid var(--line-2); font: 600 15px/1 var(--f-h); }
.am-rate input:checked + span { background: var(--pri); border-color: var(--pri); color: #fff; }
.am-rate input:focus-visible + span { outline: 3px solid rgba(3, 105, 161, .45); }

/* Лайтбокс */
.am-lb { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; background: rgba(8, 18, 30, .92); padding: 56px 16px; }
.am-lb.is-open { display: flex; }
.am-lb img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: var(--r); }
.am-lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.am-lb button:hover { background: rgba(255, 255, 255, .24); }
.am-lb__close { top: 12px; right: 12px; }
.am-lb__prev { left: 12px; top: 50%; margin-top: -24px; }
.am-lb__next { right: 12px; top: 50%; margin-top: -24px; }
.am-lb__count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: #cbd5e1; font-size: 14px; }

/* Модалка */
.am-modal { position: fixed; inset: 0; z-index: 350; display: flex; align-items: center; justify-content: center; padding: 16px; visibility: hidden; }
.am-modal__bg { position: absolute; inset: 0; background: rgba(11, 27, 43, .55); opacity: 0; transition: opacity .2s var(--ease); }
.am-modal__box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: var(--sh-3); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s var(--ease), transform .25s var(--ease); }
.am-modal.is-open { visibility: visible; }
.am-modal.is-open .am-modal__bg { opacity: 1; }
.am-modal.is-open .am-modal__box { opacity: 1; transform: none; }
.am-modal__head { position: relative; padding: 22px 60px 6px 24px; }
.am-modal__head h2 { font-size: 22px; margin: 0 0 4px; }
.am-modal__head p { margin: 0; color: var(--mute); font-size: 15px; }
.am-modal__close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.am-modal__close:hover { background: var(--soft-2); }
.am-modal__body { padding: 14px 24px 24px; }
.am-modal__prod { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--soft); margin-bottom: 14px; }
.am-modal__prod img { width: 56px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.am-modal__prod b { display: block; font: 600 15px/1.3 var(--f-h); color: var(--ink); }
.am-modal__prod span { font-size: 14px; color: var(--mute); }

/* Уведомление «в корзине» */
.am-toast { position: fixed; right: 20px; top: 90px; z-index: 380; width: min(380px, calc(100vw - 32px)); padding: 16px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); display: grid; grid-template-columns: 56px 1fr; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease); }
.am-toast.is-on { opacity: 1; visibility: visible; transform: none; }
.am-toast img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--r-s); background: var(--soft); mix-blend-mode: multiply; }
.am-toast__t { font: 600 15px/1.3 var(--f-h); color: var(--ink); margin-bottom: 2px; display: flex; gap: 6px; align-items: center; }
.am-toast__t .am-ico { color: var(--ok); }
.am-toast__n { font-size: 14px; color: var(--mute); margin-bottom: 10px; }
.am-toast__a { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.am-toast.is-err { grid-template-columns: 1fr; }
.am-toast.is-err .am-toast__t .am-ico { color: var(--err); }

/* ==========================================================================
   Контакты
   ========================================================================== */
.am-contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.am-ccard { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-l); border: 1px solid var(--line); background: #fff; }
.am-ccard .am-feat__ico { margin-bottom: 8px; }
.am-ccard span { font-size: 13.5px; color: var(--mute); }
.am-ccard b, .am-ccard a.am-ccard__v { font: 600 18px/1.3 var(--f-h); color: var(--ink) !important; word-break: break-word; }
.am-ccard small { font-size: 14px; color: var(--mute); }
.am-map { position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393aec4' stroke-width='1.5'%3E%3Cpath d='M12 21s-7-6.1-7-11.5A7 7 0 0 1 19 9.5C19 14.9 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / 56px no-repeat; aspect-ratio: 16 / 7; }
.am-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.am-map__btn { position: absolute; inset: 0; display: grid; place-items: center; }
.am-msgs { display: flex; flex-wrap: wrap; gap: 10px; }
.am-msg { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: #fff; color: var(--ink) !important; font: 600 15px/1 var(--f-h); }
.am-msg:hover { border-color: var(--pri); }
.am-msg img { width: 26px; height: 26px; border-radius: 6px; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.am-foot { margin-top: 72px; background: var(--ink); color: #b8c8d8; font-size: 15px; }
.am-foot a { color: #dbe7f2; }
.am-foot a:hover { color: #fff; }
.am-foot__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.am-foot__logo img { width: 140px; height: 42px; }
.am-foot__about { margin: 16px 0 18px; line-height: 1.6; max-width: 340px; }
.am-foot h3 { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 16px; }
.am-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.am-foot__phone { display: block; font: 600 22px/1.2 var(--f-h); color: #fff !important; margin-bottom: 6px; }
.am-foot__line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; line-height: 1.45; }
.am-foot__line .am-ico { margin-top: 2px; color: var(--aqua-2); }
.am-foot .am-msg { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff !important; }
.am-foot .am-msg:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.am-foot__bot { border-top: 1px solid rgba(255, 255, 255, .1); }
.am-foot__bot .am-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; color: #8fa5ba; }
.am-foot__bot a { color: #8fa5ba; }

/* ==========================================================================
   Страницы на bootstrap (кабинет, корзина, оформление) — приводим к теме
   ========================================================================== */
.am--legacy #content { min-height: 360px; padding-bottom: 20px; }
.am--legacy .am-legacy { padding-top: 10px; }
.am--legacy .am-legacy h1 { font-size: 32px; margin: 16px 0 20px; }
.am--legacy .am-legacy h2 { font-size: 22px; }
.am--legacy .btn { border-radius: var(--r-s); font: 600 14px/1.2 var(--f-h); padding: 11px 18px; }
.am--legacy .btn-primary { background: var(--pri); border-color: var(--pri); }
.am--legacy .btn-primary:hover, .am--legacy .btn-primary:focus { background: var(--pri-h); border-color: var(--pri-h); }
.am--legacy .btn-default { background: #fff; border-color: var(--line-2); color: var(--ink); }
.am--legacy .btn-danger { background: #fff; border-color: #f3b4b4; color: var(--err); }
.am--legacy .form-control { height: 46px; border-radius: var(--r-s); border-color: var(--line-2); box-shadow: none; font-size: 16px; }
.am--legacy textarea.form-control { height: auto; }
.am--legacy .form-control:focus { border-color: var(--pri); box-shadow: 0 0 0 4px rgba(3, 105, 161, .15); }
.am--legacy .panel { border-radius: var(--r); border-color: var(--line); box-shadow: none; }
.am--legacy .panel-heading { background: var(--soft) !important; border-color: var(--line) !important; border-radius: var(--r) var(--r) 0 0; }
.am--legacy .table > thead > tr > td, .am--legacy .table > thead > tr > th { background: var(--soft); font-weight: 700; color: var(--ink); }
.am--legacy .table-bordered, .am--legacy .table-bordered td { border-color: var(--line) !important; }
.am--legacy .list-group-item { border-color: var(--line); }
.am--legacy .list-group-item.active, .am--legacy .list-group-item.active:hover { background: var(--pri); border-color: var(--pri); }
.am--legacy .alert { border-radius: var(--r); }
.am--legacy .breadcrumb { background: none; padding: 18px 0 0; margin: 0; font-size: 14px; }
.am--legacy .breadcrumb > li + li::before { color: var(--line-2); }
.am--legacy .breadcrumb a { color: var(--mute); }
.am--legacy .img-thumbnail { border-radius: var(--r-s); }
.am--legacy #column-left, .am--legacy #column-right { padding-top: 70px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1499px) {
  .am-logo__cap { display: none; }
  .am-hdr__bar { gap: 20px; }
}
@media (max-width: 1359px) {
  .am-hdr__bar { gap: 14px; }
  .am-nav > a, .am-nav__cat > button { padding: 0 10px; }
  .am-nav { gap: 2px; }
}
@media (max-width: 1279px) {
  .am-nav > a:not(.am-nav__keep) { display: none; }
}
@media (max-width: 1199px) {
  .am-mega { width: 680px; }
  .am-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .am-hero h1 { font-size: 42px; }
  .am-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-foot__top { grid-template-columns: 1fr 1fr; }
  .am-psec__grid, .am-catdesc { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
}
@media (max-width: 991px) {
  :root { --hdr: 64px; --gut: 16px; }
  .am-top { display: none; }
  .am-nav, .am-phone, .am-search, .am-hdr__tools .am-hide-m { display: none; }
  .am-burger, .am-show-m { display: inline-grid; }
  .am-cartbtn { width: 44px; padding: 0; justify-content: center; position: relative; }
  .am-cartbtn__t { display: none; }
  .am-cartbtn .am-badge { position: absolute; right: -6px; top: -6px; }
  .am-logo img { width: 112px; height: 34px; }
  .am h1 { font-size: 28px; }
  .am h2 { font-size: 24px; }
  .am-phead h1 { font-size: 30px; }
  .am-phead__lead { font-size: 16.5px; }
  .am-sec { padding: 44px 0; }
  .am-sec__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .am-grid--3, .am-grid--4, .am-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-hero .am-wrap { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 36px; gap: 10px; }
  .am-hero__art { order: -1; max-width: 360px; }
  .am-hero__tag--1 { left: 0; }
  .am-hero__tag--2 { right: 0; }
  .am-hero h1 { font-size: 34px; }
  .am-hero__lead { font-size: 17px; }
  .am-picker { grid-template-columns: 1fr; }
  .am-picker__ctrl { position: static; }
  .am-cta { grid-template-columns: 1fr; padding: 28px 22px; }
  .am-pdp__top { grid-template-columns: 1fr; gap: 24px; padding-top: 12px; }
  .am-gal { position: static; }
  .am-buy h1 { font-size: 28px; }
  .am-psec { padding: 36px 0; }
  .am-psec__grid, .am-catdesc { grid-template-columns: 1fr; }
  .am-aside { position: static; }
  .am-anchors { top: var(--hdr); }
  .am-anchors__buy { display: none; }
  .am-anchors nav a { height: 48px; padding: 0 12px; font-size: 14.5px; }
  .am-mbuy { display: flex; }
  body.am-has-mbuy { padding-bottom: 76px; }
  body.am-has-mbuy .am-foot { padding-bottom: 8px; }
  .am-toast { top: auto; bottom: 90px; right: 16px; }
}
@media (max-width: 767px) {
  .am-cards, .am-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .am-pc__body { padding: 12px 12px 14px; }
  .am .am-pc__name { font-size: 14px; }
  .am-pc__specs li { font-size: 12px; padding: 2px 6px; }
  .am-pc__specs li:nth-child(n+3) { display: none; }
  .am-pc__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .am-price { font-size: 18px; }
  .am-pc__buy .am-btn { width: 100%; }
  .am-grid--2, .am-grid--3, .am-grid--4, .am-why, .am-form__row { grid-template-columns: 1fr; }
  .am-hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .am-hero__facts li { padding: 10px; }
  .am-hero__facts b { font-size: 19px; }
  .am-hero__facts span { font-size: 12px; }
  .am-hero__tag { display: none; }
  .am-hero__cta .am-btn { flex: 1 1 100%; }
  .am-prow { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
  .am-prow__img { width: 64px; height: 56px; }
  .am-prow__cell--hide { display: none; }
  .am-prow__m { display: block; font-size: 12.5px; }
  .am-toolbar { flex-wrap: wrap; }
  .am-specs { grid-template-columns: 1fr; }
  .am-specs__row { font-size: 15px; }
  .am-trust { grid-template-columns: 1fr; }
  .am-buy__alt { grid-template-columns: 1fr; }
  .am-buy__price .am-price { font-size: 30px; }
  .am-buy__box { padding: 16px; box-shadow: var(--sh-1); }
  .am-buy__contacts { grid-template-columns: 1fr auto auto; }
  .am-contacts { grid-template-columns: 1fr; }
  .am-map { aspect-ratio: 4 / 3; }
  .am-foot { margin-top: 48px; }
  .am-foot__top { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .am-steps { grid-template-columns: 1fr; }
  .am-psec__title { flex-direction: column; gap: 4px; }
  .am-psec__title h2 { font-size: 24px; }
  .am-prose { font-size: 16px; }
  .am-prose h2 { font-size: 22px; }
}
@media (max-width: 420px) {
  .am-cards, .am-cards--3 { grid-template-columns: 1fr; }
  .am-pc { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
  .am-pc__media { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--soft-2); }
  .am-hero__facts { grid-template-columns: 1fr 1fr 1fr; }
  .am-plates { grid-template-columns: 1fr 1fr; }
  .am-plate dd { font-size: 17px; }
  .am-mega { display: none; }
}
@media (max-width: 359px) {
  .am-pc { grid-template-columns: 96px minmax(0, 1fr); }
  .am-hero h1 { font-size: 29px; }
}
@media print {
  .am-top, .am-hdr, .am-anchors, .am-mbuy, .am-foot, .am-drawer, .am-modal, .am-toast { display: none !important; }
}

/* Характеристики под заголовком товара — одна компактная строка */
.am-keyline { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; margin: -6px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--mute); overflow-x: auto; scrollbar-width: none; }
.am-keyline::-webkit-scrollbar { display: none; }
.am-keyline li { white-space: nowrap; }
.am-keyline li + li::before { content: "·"; margin: 0 10px; color: var(--line-2); font-weight: 700; }
.am-keyline b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { .am-keyline { font-size: 13.5px; } }

/* SEO-текст категории: мини-блок + «Показать ещё» */
.am-more { position: relative; }
.am-more__body { position: relative; }
.am-more.is-collapsed .am-more__body { max-height: 360px; overflow: hidden; }
.am-more.is-collapsed .am-more__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.am-more__btn { margin-top: 16px; }
.am-more__btn .am-ico { transition: transform .2s var(--ease); }
.am-more:not(.is-collapsed) .am-more__btn .am-ico { transform: rotate(180deg); }
