/* ==========================================================================
   allMarket.BiZ — шаблон інтерфейсу
   Один файл стилів. Усі кольори — змінні; тема перемикається атрибутом
   data-am-theme на <html>: ocean (типова) | mint | teal | dark.
   Макет: контейнер 1280px, сітки auto-fill, мобільне нижнє меню < 768px.
   ========================================================================== */

/* UA: ---------- 1. Токени: тема «Океан» (типова, з ua.php) ---------- | EN: ---------- 1. The tokens: the "Ocean" theme (the default one, from ua.php) ---------- */
:root {
  /* UA: бренд | EN: the brand */
  --c-primary: #007BC3;          /* кнопки, посилання, активні стани */
  --c-primary-hover: #005A8F;
  --c-on-primary: #FFFFFF;
  --c-accent: #FF8F00;           /* головні дії: «Розмістити», «Додати» */
  --c-on-accent: #13293D;
  --c-soft: #EAF5FC;             /* світлий відтінок основного */
  --c-soft-line: #CBE6F7;
  --c-focus: #8CC8F0;

  /* UA: нейтральні | EN: the neutrals */
  --c-ink: #13293D;              /* заголовки й основний текст */
  --c-text: #13293D;
  --c-text-2: #3E5468;
  --c-muted: #5A6B7D;
  --c-faint: #93A3B5;            /* іконки-заглушки */
  --c-bg: #F5F8FB;
  --c-surface: #FFFFFF;
  --c-surface-2: #EEF3F8;        /* фон фото-заглушок, рядків */
  --c-line: #E2E9F0;
  --c-line-strong: #C9D5E2;
  --c-track: #E8EEF4;            /* фон сегментованих перемикачів */

  /* UA: темні плашки: бейджі, активні чіпи | EN: the dark plates: the badges, the active chips */
  --c-dark: #13293D;
  --c-on-dark: #FFFFFF;

  /* UA: герой і верхня панель | EN: the hero and the top panel */
  --g-hero: linear-gradient(30deg, #00609E, #127F80);
  --c-hero-line: transparent;
  --c-on-hero: #FFFFFF;
  --c-on-hero-2: #FFFFFF;
  --c-hero-chip: rgba(255, 255, 255, .16);
  --c-hero-ring: rgba(255, 255, 255, .14);
  --c-hero-cta: var(--c-accent);
  --c-on-hero-cta: var(--c-on-accent);
  --c-hero-outline: rgba(255, 255, 255, .7);
  --g-topbar: linear-gradient(30deg, #00609E, #127F80);
  --c-on-topbar: #FFFFFF;

  /* UA: футер | EN: footer */
  --c-footer: #13293D;
  --c-on-footer: #C9DAEA;
  --c-footer-title: #FFFFFF;
  --c-footer-line: #24486B;
  --c-footer-ph: #A9C8E2;

  /* UA: кольори сервісів (іконки швидких дій) | EN: the services' colours (the quick-action icons) */
  --svc-shop-bg: #E3F1FB;  --svc-shop: #007BC3;
  --svc-auto-bg: #FDECEA;  --svc-auto: #C62828;
  --svc-realty-bg: #E1F5FE; --svc-realty: #0277BD;
  --svc-ads-bg: #FFF3E0;   --svc-ads: #E65100;
  --svc-logi-bg: #E0F4F4;  --svc-logi: #127F80;
  --svc-blog-bg: #EDE9FB;  --svc-blog: #5B3FA8;
  --svc-srv-bg: #E7F5EA;   --svc-srv: #2E7D43;

  /* UA: типографіка, розміри | EN: the typography, the sizes */
  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --gutter: clamp(16px, 3vw, 24px);
  --shadow-pop: 0 6px 16px rgba(19, 41, 61, .22);
  color-scheme: light;
}

/* UA: ---------- 2. Тема «М'ята» (ComfortLife) ---------- | EN: ---------- 2. The "Mint" theme (ComfortLife) ---------- */
:root[data-am-theme="mint"] {
  --c-primary: #0B8570; --c-primary-hover: #0C6E5C; --c-on-primary: #FFFFFF;
  --c-accent: #20D2AD; --c-on-accent: #103C34;
  --c-soft: #E9FBF6; --c-soft-line: #C8EFE4; --c-focus: #7FE3CC;
  --c-ink: #103C34; --c-text: #103C34; --c-text-2: #3D5A54; --c-muted: #5A6B67; --c-faint: #8FA7A1;
  --c-bg: #F6F9F8; --c-surface: #FFFFFF; --c-surface-2: #EEF6F3;
  --c-line: #E3ECE9; --c-line-strong: #C8D9D4; --c-track: #E8F1EE;
  --c-dark: #103C34; --c-on-dark: #FFFFFF;
  --g-hero: #E9FBF6; --c-hero-line: #C8EFE4; --c-on-hero: #103C34; --c-on-hero-2: #3D5A54;
  --c-hero-chip: #FFFFFF; --c-hero-ring: rgba(32, 210, 173, .4);
  --c-hero-cta: var(--c-primary); --c-on-hero-cta: #FFFFFF; --c-hero-outline: #0B8570;
  --g-topbar: #0B8570; --c-on-topbar: #FFFFFF;
  --c-footer: #103C34; --c-on-footer: #CDE9E1; --c-footer-title: #FFFFFF; --c-footer-line: #1E5247; --c-footer-ph: #A9D6CA;
  --svc-shop-bg: #E9FBF6; --svc-shop: #0B8570;
  --svc-auto-bg: #FDEEE6; --svc-auto: #C2410C;
  --svc-realty-bg: #E6F4FB; --svc-realty: #0369A1;
  --svc-ads-bg: #FFF4E5; --svc-ads: #B45309;
  --svc-logi-bg: #E9FBF6; --svc-logi: #0C6E5C;
  --svc-blog-bg: #F1ECFB; --svc-blog: #5B3FA8;
  --svc-srv-bg: #E8F6EC; --svc-srv: #2F7D42;
  --shadow-pop: 0 6px 16px rgba(16, 60, 52, .22);
}

/* UA: ---------- 3. Тема «Бірюза» (кольори логотипу) ---------- | EN: ---------- 3. The "Turquoise" theme (the logo's colours) ---------- */
:root[data-am-theme="teal"] {
  --c-primary: #097774; --c-primary-hover: #075B59; --c-on-primary: #FFFFFF;
  --c-accent: #5AB7B5; --c-on-accent: #0E2F31;
  --c-soft: #E3F2F1; --c-soft-line: #B9DCDB; --c-focus: #71B4B5;
  --c-ink: #0E2F31; --c-text: #0E2F31; --c-text-2: #34494A; --c-muted: #4F6566; --c-faint: #84A0A0;
  --c-bg: #F3F7F7; --c-surface: #FFFFFF; --c-surface-2: #EAF2F2;
  --c-line: #DDE8E8; --c-line-strong: #C2D6D5; --c-track: #E4EEEE;
  --c-dark: #0E2F31; --c-on-dark: #FFFFFF;
  --g-hero: linear-gradient(30deg, #075B59, #127775); --c-hero-line: transparent;
  --c-on-hero: #FFFFFF; --c-on-hero-2: #FFFFFF;
  --c-hero-chip: rgba(255, 255, 255, .16); --c-hero-ring: rgba(255, 255, 255, .14);
  --c-hero-cta: var(--c-accent); --c-on-hero-cta: var(--c-on-accent); --c-hero-outline: rgba(255, 255, 255, .7);
  --g-topbar: #097774; --c-on-topbar: #FFFFFF;
  --c-footer: #0E2F31; --c-on-footer: #B9D3D2; --c-footer-title: #FFFFFF; --c-footer-line: #24494B; --c-footer-ph: #9DC0BF;
  --svc-shop-bg: #E3F2F1; --svc-shop: #097774;
  --svc-auto-bg: #FBEDEA; --svc-auto: #B23A2B;
  --svc-realty-bg: #E5F1F8; --svc-realty: #1F6F9A;
  --svc-ads-bg: #FCF1E3; --svc-ads: #A85A0F;
  --svc-logi-bg: #E3F2F1; --svc-logi: #075B59;
  --svc-blog-bg: #EEEAF7; --svc-blog: #56439B;
  --svc-srv-bg: #E6F2E8; --svc-srv: #2E6B3B;
  --shadow-pop: 0 6px 16px rgba(14, 47, 49, .22);
}

/* UA: ---------- 4. Тема «Темна» ---------- | EN: ---------- 4. The "Dark" theme ---------- */
:root[data-am-theme="dark"] {
  --c-primary: #3DA5F0; --c-primary-hover: #69BAF5; --c-on-primary: #06223A;
  --c-accent: #FF9F2E; --c-on-accent: #1A1206;
  --c-soft: #13314B; --c-soft-line: #1F4A6E; --c-focus: #69BAF5;
  --c-ink: #E6EDF5; --c-text: #E6EDF5; --c-text-2: #C2CFDD; --c-muted: #9FB0C3; --c-faint: #6F8399;
  --c-bg: #0E1621; --c-surface: #16212F; --c-surface-2: #1C2A3B;
  --c-line: #243447; --c-line-strong: #31465E; --c-track: #1C2A3B;
  --c-dark: #E6EDF5; --c-on-dark: #0E1621;
  --g-hero: linear-gradient(30deg, #0A3E66, #0E5E5F); --c-hero-line: #1F4A6E;
  --c-on-hero: #FFFFFF; --c-on-hero-2: #E2ECF5;
  --c-hero-chip: rgba(255, 255, 255, .12); --c-hero-ring: rgba(255, 255, 255, .1);
  --c-hero-cta: var(--c-accent); --c-on-hero-cta: var(--c-on-accent); --c-hero-outline: rgba(255, 255, 255, .55);
  --g-topbar: #0A1118; --c-on-topbar: #C2CFDD;
  --c-footer: #0A1118; --c-on-footer: #9FB0C3; --c-footer-title: #E6EDF5; --c-footer-line: #1E2B3A; --c-footer-ph: #7F93A8;
  --svc-shop-bg: #13314B; --svc-shop: #7CC4F7;
  --svc-auto-bg: #3A1D1D; --svc-auto: #F49A92;
  --svc-realty-bg: #12324A; --svc-realty: #81D4FA;
  --svc-ads-bg: #3A2814; --svc-ads: #FFB866;
  --svc-logi-bg: #12333A; --svc-logi: #6FD6D3;
  --svc-blog-bg: #241C3D; --svc-blog: #B9A7F5;
  --svc-srv-bg: #14301F; --svc-srv: #86D6A1;
  --shadow-pop: 0 6px 16px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* UA: ---------- 5. База ---------- | EN: ---------- 5. The base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 15px/1.5 var(--f-body);
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-hover); }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; color: var(--c-ink); text-wrap: balance; line-height: 1.2; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.am-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.am-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.am-ico--sm { width: 16px; height: 16px; }
.am-ico--lg { width: 28px; height: 28px; stroke-width: 1.6; }
.am-container { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.am-main { display: flex; flex-direction: column; gap: 44px; padding-block: 28px 72px; }
.am-section { display: flex; flex-direction: column; gap: 16px; }
.am-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.am-section__title { font-size: 24px; }
.am-more { font-weight: 600; }
.am-num { font-variant-numeric: tabular-nums; }

/* UA: ---------- 6. Кнопки ---------- | EN: ---------- 6. The buttons ---------- */
.am-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-md);
  border: 1.5px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.am-btn--lg { min-height: 52px; padding: 0 24px; border-radius: 14px; font-size: 16px; }
.am-btn--primary { background: var(--c-primary); color: var(--c-on-primary); }
.am-btn--primary:hover { background: var(--c-primary-hover); color: var(--c-on-primary); }
.am-btn--accent { background: var(--c-accent); color: var(--c-on-accent); font-weight: 700; }
.am-btn--accent:hover { color: var(--c-on-accent); filter: brightness(1.06); }
.am-btn--outline { background: var(--c-surface); border-color: var(--c-line-strong); color: var(--c-ink); }
.am-btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.am-btn--block { width: 100%; }
.am-iconbtn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-md);
  border: 1.5px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink);
}
.am-iconbtn--ghost { border-color: transparent; background: transparent; }
.am-iconbtn--primary { border-color: transparent; background: var(--c-primary); color: var(--c-on-primary); }
.am-iconbtn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.am-iconbtn--primary:hover { background: var(--c-primary-hover); color: var(--c-on-primary); }
.am-count {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--c-dark); color: var(--c-on-dark);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* UA: сегментований перемикач (таби) | EN: a segmented switch (the tabs) */
.am-seg { display: inline-flex; padding: 4px; border-radius: var(--r-md); background: var(--c-track); }
.am-seg__btn {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent;
  color: var(--c-muted); font-weight: 600; font-size: 14px;
}
.am-seg__btn[aria-selected="true"] { background: var(--c-surface); color: var(--c-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

/* UA: бейджі | EN: the badges */
.am-badge {
  display: inline-block; padding: 4px 9px; border-radius: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; line-height: 1.2;
}
.am-badge--dark { background: var(--c-dark); color: var(--c-on-dark); }
.am-badge--accent { background: var(--c-accent); color: var(--c-on-accent); }

/* UA: ---------- 7. Шапка ---------- | EN: ---------- 7. The header ---------- */
.am-topbar { background: var(--g-topbar); color: var(--c-on-topbar); font-size: 13px; position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 8px rgba(19, 41, 61, .22); }
.am-topbar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 40px; }
.am-topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.am-topbar a, .am-topbar__btn { color: var(--c-on-topbar); }
.am-topbar a:hover { color: var(--c-on-topbar); text-decoration: underline; }
.am-topbar__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: transparent; font-weight: 500; }
.am-topbar__pro { padding: 3px 8px; border-radius: 6px; background: var(--c-accent); color: var(--c-on-accent) !important; font-weight: 800; letter-spacing: .05em; }

/* UA: перемикач тем | EN: the theme switcher */
.am-themes { display: inline-flex; align-items: center; gap: 6px; }
.am-themes__label { opacity: .85; }
.am-themes__btn {
  width: 26px; height: 26px; padding: 0; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55); background: var(--sw);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08);
}
.am-themes__btn[aria-pressed="true"] { border-color: #FFFFFF; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
/* UA: розширюємо зону натискання до 44px без зміни вигляду | EN: we widen the tap area to 44px without changing the appearance */
.am-themes__btn { position: relative; }
.am-themes__btn::after { content: ""; position: absolute; inset: -9px; }

.am-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.am-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-block: 16px; }
.am-logo { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); }
.am-logo:hover { color: var(--c-ink); }
.am-logo__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--c-primary); color: var(--c-on-primary); }
.am-logo__text { font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.am-logo__text b { color: var(--c-primary); font-weight: 700; }
.am-logo__text i { color: var(--c-muted); font-style: normal; font-weight: 500; }

.am-search {
  flex: 1 1 420px; min-width: 0; display: flex; height: 50px;
  border: 1.5px solid var(--c-line-strong); border-radius: 14px; overflow: hidden; background: var(--c-surface);
}
.am-search:focus-within { border-color: var(--c-primary); }
.am-search__scope {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px;
  border: 0; border-right: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-ink); font-weight: 600; font-size: 14px;
}
.am-search__field { flex: 1; min-width: 0; display: flex; }
.am-search__input { flex: 1; min-width: 0; border: 0; padding: 0 14px; background: transparent; font-size: 15px; color: var(--c-ink); outline: none; }
.am-search__input::placeholder { color: var(--c-muted); }
.am-search__go { flex: none; width: 56px; border: 0; background: var(--c-primary); color: var(--c-on-primary); display: grid; place-items: center; }
.am-search__go:hover { background: var(--c-primary-hover); }

.am-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.am-login { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; color: var(--c-ink); font-weight: 600; }

.am-nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.am-nav::-webkit-scrollbar { display: none; }
.am-nav__cats {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 8px 8px 0; padding: 0 14px;
  border-radius: var(--r-sm); background: var(--c-dark); color: var(--c-on-dark); font-weight: 600; font-size: 14px;
}
.am-nav__cats:hover { color: var(--c-on-dark); }
.am-nav__link {
  flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  border-bottom: 3px solid transparent; color: var(--c-text-2); font-weight: 500; white-space: nowrap;
}
.am-nav__link:hover { color: var(--c-primary); }
.am-nav__link[aria-current="page"] { border-bottom-color: var(--c-primary); color: var(--c-primary); font-weight: 700; }

/* UA: ---------- 8. Герой ---------- | EN: ---------- 8. The hero ---------- */
.am-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.am-hero__main {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--r-xl);
  background: var(--g-hero); border: 1px solid var(--c-hero-line); color: var(--c-on-hero);
}
.am-hero__rings { position: absolute; right: -120px; bottom: -140px; width: 420px; height: 420px; fill: none; stroke: var(--c-hero-ring); stroke-width: 1.5; pointer-events: none; }
.am-hero__main > :not(.am-hero__rings) { position: relative; }
.am-hero__chip { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--c-hero-chip); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.am-hero__title { color: inherit; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; max-width: 620px; }
.am-hero__lead { max-width: 540px; color: var(--c-on-hero-2); font-size: 17px; line-height: 1.6; }
.am-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.am-hero__cta { background: var(--c-hero-cta); color: var(--c-on-hero-cta); font-weight: 700; }
.am-hero__cta:hover { color: var(--c-on-hero-cta); filter: brightness(1.06); }
.am-hero__ghost { border-color: var(--c-hero-outline); color: var(--c-on-hero); background: transparent; }
.am-hero__ghost:hover { color: var(--c-on-hero); background: var(--c-hero-chip); }
.am-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 6px; color: var(--c-on-hero-2); font-size: 14px; }
.am-hero__facts span { display: inline-flex; align-items: center; gap: 8px; }

/* UA: швидкі дії | EN: the quick actions */
.am-panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.am-panel__title { font-size: 20px; }
.am-panel__sub { margin-top: 6px; color: var(--c-muted); }
.am-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.am-quick__item { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--c-line); border-radius: 14px; color: var(--c-ink); }
.am-quick__item:hover { border-color: var(--c-primary); color: var(--c-ink); }
.am-quick__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--svc-bg, var(--c-soft)); color: var(--svc, var(--c-primary)); }
.am-quick__name { display: block; font-weight: 600; }
.am-quick__hint { display: block; color: var(--c-muted); font-size: 13px; }
.svc-shop { --svc-bg: var(--svc-shop-bg); --svc: var(--svc-shop); }
.svc-auto { --svc-bg: var(--svc-auto-bg); --svc: var(--svc-auto); }
.svc-realty { --svc-bg: var(--svc-realty-bg); --svc: var(--svc-realty); }
.svc-ads { --svc-bg: var(--svc-ads-bg); --svc: var(--svc-ads); }
.svc-logi { --svc-bg: var(--svc-logi-bg); --svc: var(--svc-logi); }
.svc-blog { --svc-bg: var(--svc-blog-bg); --svc: var(--svc-blog); }
.svc-srv { --svc-bg: var(--svc-srv-bg); --svc: var(--svc-srv); }
.am-demand { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--c-bg); color: var(--c-ink); }
.am-demand:hover { color: var(--c-primary); }

/* UA: ---------- 9. Категорії ---------- | EN: ---------- 9. The categories ---------- */
.am-cats { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: 4px; }
.am-cats::-webkit-scrollbar { display: none; }
.am-cat { flex: 0 0 auto; width: clamp(150px, 17vw, 196px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); color: var(--c-ink); font-weight: 600; }
.am-cat .am-ico { color: var(--c-primary); }
.am-cat:hover { border-color: var(--c-primary); color: var(--c-ink); }

/* UA: ---------- 10. Картка товару ---------- | EN: ---------- 10. The product card ---------- */
.am-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min, 200px), 1fr)); gap: 16px; }
.am-product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); }
.am-product__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; background: var(--c-surface-2); color: var(--c-faint); }
.am-product__media img { width: 100%; height: 100%; object-fit: cover; }
.am-product__badge { position: absolute; top: 10px; left: 10px; }
.am-product__fav { position: absolute; top: 6px; right: 6px; border: 0; background: var(--c-surface); opacity: .94; }
.am-product__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.am-product__cat { color: var(--c-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.am-product__title {
  min-height: 40px; color: var(--c-ink); font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.am-product__title:hover { color: var(--c-primary); }
.am-product__meta { color: var(--c-muted); font-size: 13px; }
.am-product__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.am-price { font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.am-product__order { margin-top: 8px; }

/* UA: ---------- 11. Блоки розділів ---------- | EN: ---------- 11. The section blocks ---------- */
.am-verts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.am-vert { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-surface); }
.am-vert__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.am-vert__title { font-size: 18px; }
.am-vert__add { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; font-size: 14px; }
.am-listing { display: flex; align-items: center; gap: 14px; color: var(--c-ink); }
.am-listing:hover { color: var(--c-primary); }
.am-listing__thumb { flex: none; display: grid; place-items: center; width: 96px; height: 76px; border-radius: var(--r-md); background: var(--c-surface-2); color: var(--c-faint); overflow: hidden; }
.am-listing__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.am-listing__title { font-weight: 600; }
.am-vert__foot { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--c-line-strong); }
.am-vert__hint { color: var(--c-muted); font-size: 14px; }
.am-minisearch { display: flex; height: 44px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-md); overflow: hidden; }
.am-minisearch:focus-within { border-color: var(--c-primary); }
.am-minisearch input { flex: 1; min-width: 0; border: 0; padding: 0 12px; background: transparent; font-size: 14px; color: var(--c-ink); outline: none; }
.am-minisearch button { width: 44px; border: 0; background: var(--c-bg); color: var(--c-ink); display: grid; place-items: center; }

/* UA: ---------- 12. Логістика ---------- | EN: ---------- 12. The logistics ---------- */
.am-logi__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.am-logi__intro { display: flex; align-items: center; gap: 16px; }
.am-logi__mark { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c-dark); color: var(--c-on-dark); }
.am-logi__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.am-field { display: flex; flex-direction: column; gap: 6px; color: var(--c-text-2); font-size: 13px; font-weight: 600; }
.am-input, .am-select {
  height: 48px; padding: 0 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-md);
  background: var(--c-surface); color: var(--c-ink); font-size: 15px; font-weight: 400;
}
.am-input:focus, .am-select:focus { border-color: var(--c-primary); outline: none; }
.am-input::placeholder { color: var(--c-muted); }
.am-input--sm, .am-select--sm { height: 44px; padding: 0 12px; border-radius: var(--r-sm); }
.am-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-radius: 14px; background: var(--c-bg); }
.am-empty__text { display: flex; align-items: center; gap: 14px; color: var(--c-text-2); }
.am-empty__text .am-ico { color: var(--c-faint); width: 36px; height: 36px; stroke-width: 1.4; }
.am-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* UA: ---------- 13. Нижній ряд: котирування, PRO, міста ---------- | EN: ---------- 13. The bottom row: the quotes, PRO, the cities ---------- */
.am-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.am-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-surface); }
.am-card__title { font-size: 18px; }
.am-rates { margin: 0; padding: 0; list-style: none; }
.am-rates li { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--c-surface-2); }
.am-rates__code { display: inline-grid; place-items: center; width: 36px; height: 24px; margin-right: 10px; border-radius: 6px; background: var(--c-surface-2); color: var(--c-text-2); font-size: 12px; font-weight: 700; }
.am-rates__val { font-weight: 600; font-variant-numeric: tabular-nums; }
.am-pro { background: var(--c-primary); border-color: transparent; color: var(--c-on-primary); }
.am-pro .am-card__title { color: var(--c-on-primary); font-size: 22px; }
.am-pro p { line-height: 1.6; }
.am-pro__ctas { margin-top: auto; }
.am-pro .am-btn--outline { background: var(--c-surface); color: var(--c-ink); border-color: transparent; }
.am-pro .am-btn--ghost { background: transparent; color: var(--c-on-primary); border-color: currentColor; opacity: .9; }
.am-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.am-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-ink); font-size: 14px; white-space: nowrap;
}
.am-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.am-chip--lg { min-height: 40px; padding: 0 16px; font-weight: 600; background: var(--c-surface); border-color: var(--c-line-strong); }
.am-chip[aria-current="page"] { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-on-dark); }

/* UA: ---------- 14. Футер ---------- | EN: ---------- 14. The footer ---------- */

/* UA: ---------- 15. Сторінка категорії ---------- | EN: ---------- 15. The category page ---------- */
.am-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--c-muted); font-size: 14px; }
.am-crumbs [aria-current] { color: var(--c-ink); }
.am-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.am-pagehead h1 { font-size: clamp(24px, 2.6vw, 32px); }
.am-pagehead p { margin-top: 6px; color: var(--c-muted); }
.am-scroller { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.am-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.am-filters { flex: 1 1 260px; display: flex; flex-direction: column; gap: 22px; padding: 20px; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-surface); }
.am-filters__head { display: flex; align-items: center; justify-content: space-between; }
.am-filters__head h2 { font-family: var(--f-body); font-size: 17px; font-weight: 700; }
.am-linkbtn { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--c-primary); font-weight: 600; font-size: 14px; }
.am-fieldset { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.am-fieldset legend { margin-bottom: 8px; padding: 0; font-weight: 700; font-size: 14px; }
.am-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.am-field--sm { font-size: 12px; font-weight: 400; color: var(--c-muted); gap: 4px; }
.am-check { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.am-check input { width: 20px; height: 20px; accent-color: var(--c-primary); }
.am-results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; --card-min: 220px; }
.am-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-surface); }
.am-toolbar label { display: flex; align-items: center; gap: 10px; color: var(--c-muted); font-size: 14px; }
.am-toolbar .am-select { height: 40px; font-size: 14px; font-weight: 500; }
.am-toolbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.am-tag { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--c-soft-line); background: var(--c-soft); color: var(--c-primary-hover); font-size: 13px; font-weight: 500; }
.am-view { width: 44px; height: 40px; border-radius: var(--r-sm); border: 1.5px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink); display: grid; place-items: center; }
.am-view[aria-pressed="true"] { border-color: var(--c-dark); background: var(--c-dark); color: var(--c-on-dark); }
.am-grid--list { grid-template-columns: 1fr; }
.am-grid--list .am-product { flex-direction: row; }
.am-grid--list .am-product__media { flex: 0 0 min(36%, 220px); aspect-ratio: auto; min-height: 160px; }
.am-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding-top: 8px; }
.am-pager a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); border: 1.5px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink); font-variant-numeric: tabular-nums; }
.am-pager a[aria-current="page"] { border-color: var(--c-dark); background: var(--c-dark); color: var(--c-on-dark); font-weight: 700; }

/* UA: ---------- 16. Мобільне нижнє меню ---------- | EN: ---------- 16. The mobile bottom menu ---------- */
.am-tabbar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .am-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
    height: calc(70px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--c-surface); border-top: 1px solid var(--c-line);
  }
  .am-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 48px; justify-content: center; color: var(--c-muted); font-size: 11px; font-weight: 600; }
  .am-tabbar a[aria-current="page"] { color: var(--c-primary); }
  .am-tabbar .am-ico { width: 24px; height: 24px; }
  .am-tabbar__add {
    justify-self: center; width: 58px; height: 58px !important; margin-top: -26px; border-radius: 50%;
    border: 4px solid var(--c-surface); background: var(--c-accent); color: var(--c-on-accent) !important; box-shadow: var(--shadow-pop);
  }
  .am-tabbar__add .am-ico { stroke-width: 2.6; }
  /* UA: у шапці ховаємо те, що є в нижньому меню | EN: in the header we hide whatever is already in the bottom menu */
  .am-login__text, .am-header__post, .am-topbar__extra { display: none; }
  .am-search { order: 3; flex-basis: 100%; }
  .am-search__scope { display: none; }
  .am-header__row { padding-block: 12px; }
  .am-main { gap: 32px; padding-block: 20px 40px; }
  .am-section__title { font-size: 20px; }
  .am-grid { --card-min: 150px; gap: 10px; }
  .am-results { --card-min: 150px; }
  .am-product__body { padding: 10px 12px 12px; }
  .am-price { font-size: 15px; }
  .am-grid--list .am-product { flex-direction: column; }
  .am-grid--list .am-product__media { flex-basis: auto; aspect-ratio: 4 / 3; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* UA: ===== Нова пошта в оформленні замовлення ===== | EN: ===== Nova Poshta at the checkout ===== */
.np-box { margin: 10px 0 6px; padding: 16px; border: 1px solid var(--c-line); border-left: 4px solid #DA291C; border-radius: 14px; background: var(--c-surface-2); display: flex; flex-direction: column; gap: 12px; }
.np-box__t { font-weight: 700; color: var(--c-ink); }
.np-field { position: relative; display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.np-field > label { font-size: 13px; font-weight: 600; color: var(--c-text-2); }
.np-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; max-height: 280px; overflow: auto; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(19,41,61,.18); padding: 6px; }
.np-list[hidden] { display: none; }
.np-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: var(--c-ink); }
.np-opt:hover { background: var(--c-soft); }
.np-opt span { font-size: 12px; color: var(--c-muted); }
.np-empty { padding: 10px 12px; color: var(--c-muted); font-size: 14px; }
.np-note { font-size: 13px; color: var(--c-muted); }
.np-calc { font-size: 14px; color: var(--c-text-2); min-height: 1px; }
.np-calc b { color: var(--c-ink); }
.np-est { position: relative; display: flex; flex-direction: column; gap: 6px; }
.np-est__city { width: 100%; }
.np-est__res { font-size: 13px; line-height: 1.4; color: var(--c-text-2); }
.np-est__res b { color: var(--c-ink); }
.np-est__res span { color: var(--c-muted); }

/* UA: логотип порталу — зображення з теми default (skin/*/images/logo.png) | EN: the portal's logo is an image from the default theme (skin/*/images/logo.png) */
.am-logo__img { display: block; height: 50px; width: auto; max-width: 100%; }
@media (max-width: 600px) { .am-logo__img { height: 38px; } }

/* UA: перемикач стилів у футері (під вибором мови та валюти) | EN: the style switcher in the footer (under the language and currency selectors) */

/* UA: Логотипи брендів користувачів (кабінет → Бренди) у картках товарів порталу | EN: The logos of the users' brands (cabinet -> Brands) on the portal's product cards */
.am-brandlogo { display: inline-block; max-height: 30px; max-width: 110px; width: auto; height: auto; object-fit: contain; vertical-align: middle; }
.am-product__brand { display: block; min-height: 30px; margin: 2px 0 0; }
.am-brandrow { display: inline-flex; align-items: center; gap: 10px; }
.am-brandrow .am-brandlogo { max-height: 34px; max-width: 120px; background: #fff; border-radius: 6px; padding: 2px 6px; }
.am-brandabout { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--c-text-2, inherit); }
.am-pd__brandlogo { display: inline-flex; margin: 0 0 10px; }
.am-pd__brandlogo .am-brandlogo { max-height: 44px; max-width: 150px; }

/* UA: Бічний фільтр: компактніше — менші відступи між блоками й елементами | EN: The side filter: more compact — less space between the blocks and the elements */
.am-filters { gap: 12px; padding: 14px 16px; border-radius: 14px; }
.am-filters__head h2 { font-size: 16px; }
.am-filters form { gap: 8px !important; }
.am-filters .am-field { gap: 4px; font-size: 13px; }
.am-filters .am-input, .am-filters .am-select { height: 38px; min-height: 38px; font-size: 14px; }
.am-filters .am-btn { min-height: 40px !important; font-size: 14px; }
.am-filters details > div[style] { gap: 10px !important; margin-top: 12px !important; }
.am-fieldset { gap: 0; }
.am-fieldset legend { margin-bottom: 4px; font-size: 13px; }
.am-check { min-height: 28px; gap: 8px; font-size: 14px; }
.am-check input { width: 16px; height: 16px; }
.am-pair { gap: 6px; margin-bottom: 6px; }
.am-filters .am-fold__sum { margin: 0; }
.am-filters hr, .am-filters .am-sep { margin: 4px 0; }
.am-filters form[style*="gap"] { gap: 10px !important; }
.am-filters .am-field--sm { font-size: 0; gap: 0; }
.am-filters .am-field--sm .am-input { font-size: 14px; height: 36px; min-height: 36px; }
.am-filters .am-range { margin: 0 0 6px; }
.am-filters .am-range__bounds { margin-top: 2px; font-size: 11px; }
.am-filters .am-areasel select, .am-filters .am-areasel .am-select { height: 38px; }
.am-filters .am-more { font-size: 13px !important; }
.am-filters button[type=submit].am-btn { min-height: 40px !important; }
.am-check__n { margin-left: auto; padding: 0 7px; border-radius: 999px; background: var(--c-soft); color: var(--c-muted); font-size: 11px; line-height: 18px; }
.am-brandlink { color: var(--c-text); text-decoration: none; }
.am-brandlink:hover { color: var(--c-primary); }
.am-brandset .am-check { min-height: 26px; }
.am-brandind { margin: 8px 0 2px; font: 700 11px var(--f-body, inherit); letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); }
.am-brandset { max-height: 380px; overflow-y: auto; }

/* UA: Кнопка-сердечко «Додати в закладки» | EN: The heart "Add to bookmarks" button */
.am-fav{width:40px;height:40px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#4a4f57;display:inline-grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.16);transition:transform .15s,color .15s,background .15s}
.am-fav svg{fill:none;transition:fill .15s}
.am-fav:hover{color:#E0245E;transform:scale(1.08)}
.am-fav.is-on{color:#E0245E}.am-fav.is-on svg{fill:currentColor}
.am-fav:disabled{opacity:.6}
.am-fav:focus-visible{outline:3px solid #E9A3B5;outline-offset:2px}
.am-product,.cf-card,.at-card,.pr-card{position:relative}
.am-fav--card{position:absolute;top:10px;right:10px;z-index:4}
.at-card>.am-fav--card{top:16%;right:12px}
.am-fav--pd{margin-left:auto;align-self:center}
.am-fav-row{display:inline-flex;align-items:center;gap:8px}
.am-fav--text{width:34px;height:34px;box-shadow:none;border:1px solid #D9D9D9;background:transparent}
.am-rates__u { font-weight: 500; color: var(--c-muted); font-size: 11px; }
.am-rates__chg { font: 600 11px var(--f-body, inherit); font-style: normal; margin-left: 4px; }
.am-rates__chg.is-up { color: #2e9d4f; }
.am-rates__chg.is-down { color: #d64545; }
.am-rates__val { text-align: right; }

/* UA: ===== Каталог компаній (/company/) ===== | EN: ===== The company catalogue (/company/) ===== */
.am-cogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.am-co { display: flex; flex-direction: column; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-surface); overflow: hidden; transition: box-shadow .18s, border-color .18s, transform .18s; }
.am-co:hover { box-shadow: 0 10px 24px rgba(19,41,61,.12); border-color: var(--c-soft-line, var(--c-line)); transform: translateY(-2px); }
.am-co__logo { position: relative; display: grid; place-items: center; height: 150px; padding: 16px; background: #fff; border-bottom: 1px solid var(--c-line); }
.am-co__logo img { max-width: 100%; max-height: 118px; width: auto; height: auto; object-fit: contain; }
.am-co__logo > span { font: 800 46px var(--f-display, inherit); color: var(--c-primary); }
.am-co__badge, .am-co__logo > .am-co__badge { position: absolute; top: 8px; left: 8px; padding: 2px 6px; border-radius: 5px; font-family: inherit; font-weight: 800; font-size: 10px; line-height: 1.3; letter-spacing: .04em; color: var(--c-on-dark); }
.am-co__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.am-co__name { margin: 0; font: 700 16px/1.3 var(--f-display, inherit); overflow-wrap: anywhere; }
.am-co__name a { color: var(--c-ink); }
.am-co__ok { color: var(--c-primary); vertical-align: middle; }
.am-co__meta { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--c-text-2); }
.am-co__loc { color: var(--c-muted); }
.am-co__act { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.am-chip__n { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--c-soft); color: var(--c-muted); font-size: 11px; line-height: 18px; }
.am-sidebox { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 8px; }
.am-sidebox__t { margin: 0; font: 700 14px var(--f-body, inherit); }
.am-sidebox ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.am-section__head .am-more { font-size: 14px; }
.am-co__ok { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; background: var(--c-primary); color: #fff; font: 700 11px/1 var(--f-body, inherit); vertical-align: middle; }
/* UA: Каталог компаній: горизонтальні блоки (режим «список») | EN: The company catalogue: horizontal blocks (the "list" mode) */
.am-cogrid.am-grid--list { grid-template-columns: 1fr; gap: 12px; }
.am-cogrid.am-grid--list .am-co { flex-direction: row; align-items: stretch; }
.am-cogrid.am-grid--list .am-co__logo { flex: 0 0 min(28%, 200px); height: auto; min-height: 130px; border-bottom: 0; border-right: 1px solid var(--c-line); }
.am-cogrid.am-grid--list .am-co__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; padding: 16px 20px; }
.am-cogrid.am-grid--list .am-co__name { grid-column: 1; font-size: 18px; }
.am-cogrid.am-grid--list .am-co__meta { grid-column: 1; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
.am-cogrid.am-grid--list .am-co__act { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; flex-direction: column; align-items: stretch; }
@media (max-width: 640px) {
  .am-cogrid.am-grid--list .am-co { flex-direction: column; }
  .am-cogrid.am-grid--list .am-co__logo { flex-basis: auto; min-height: 120px; border-right: 0; border-bottom: 1px solid var(--c-line); }
  .am-cogrid.am-grid--list .am-co__body { grid-template-columns: 1fr; }
  .am-cogrid.am-grid--list .am-co__act { grid-column: 1; grid-row: auto; flex-direction: row; justify-content: space-between; }
}
.am-sidelist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.am-sidelist a { color: var(--c-text); }
.am-sidelist a:hover { color: var(--c-primary); }

/* UA: Месенджери та соцмережі: кнопки-пігулки з кольоровою точкою бренду | EN: Messengers and social networks: pill buttons with the brand's colour dot */
.am-socs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }

/* UA: ===== Банер головної: група «Інтеграції» — той самий рядок фактів, відділена лише заголовком-словом ===== | EN: ===== The home page banner: the "Integrations" group — the same facts row, separated only by a one-word heading ===== */
.am-hero__grp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: -6px; padding: 0; border: 0; background: none; border-radius: 0; color: var(--c-on-hero-2); font-size: 14px; }
.am-hero__grpt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-on-hero); opacity: .9; }
.am-hero__chips { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.am-hero__chip2 { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; border-radius: 0; font-size: 14px; font-weight: 400; white-space: normal; }
.am-hero__chip2 b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c-on-hero); }

/* UA: ===== Карусель «Сервіси порталу» під банером ===== | EN: ===== The "The portal's services" carousel under the banner ===== */
.am-svc__nav { display: flex; gap: 8px; }
.am-svc__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.am-svc__btn:hover { background: var(--c-soft); border-color: var(--c-primary); color: var(--c-primary); }
.am-svc__track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 10px 6px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: 4px; }
.am-svc__track::-webkit-scrollbar { display: none; }
.am-svc__card { flex: 0 0 auto; width: clamp(150px, 17vw, 184px); aspect-ratio: 1 / 1; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 18px 16px; text-align: center; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-soft-line, var(--c-line)); color: var(--c-ink) !important; text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s, background .18s; }
.am-svc__card:hover, .am-svc__card:focus-visible { transform: translateY(-4px) scale(1.03); border-color: var(--c-primary); background: var(--c-soft); box-shadow: 0 12px 30px rgba(19,41,61,.14); outline: 0; }
.am-svc__ico { width: 26px; height: 26px; color: var(--c-primary); margin-bottom: 2px; }
.am-svc__num { font: 800 clamp(26px, 3vw, 34px)/1.05 var(--f-display, var(--f-body)); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.am-svc__lbl { color: var(--c-text-2); font-weight: 600; font-size: 13px; line-height: 1.25; max-width: 11ch; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 560px) { .am-svc__track { gap: 14px; } .am-svc__card { width: 142px; padding: 14px 12px; } .am-svc__lbl { font-size: 12px; } }

/* UA: ===== Гео-мітка над правим верхнім кутом логотипу: код країни в колі / назва міста в овалі ===== | EN: ===== The geo marker above the logo's top right corner: the country code in a circle / the city's name in an oval ===== */
.am-geo { position: absolute; top: -7px; right: -14px; z-index: 3; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--c-soft); color: var(--c-primary); font-weight: 800; letter-spacing: .01em; line-height: 1; white-space: nowrap; pointer-events: none; }
.am-geo--ring { width: 20px; height: 20px; border-radius: 50%; font-size: 8px; }
.am-geo--oval { height: 15px; padding: 0 6px; border-radius: 999px; font-size: 8px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; right: -22px; }
@media (max-width: 560px) { .am-geo { top: -6px; } .am-geo--ring { width: 18px; height: 18px; font-size: 7.5px; right: -12px; } .am-geo--oval { height: 14px; padding: 0 5px; font-size: 7.5px; max-width: 78px; right: -16px; } }

/* UA: Повідомлення про автовизначення геопозиції біля вибору міста у верхньому рядку (template header.htm, system/place.inc.php) | EN: The notice about the automatic location detection next to the city selector in the top row (the header.htm template, system/place.inc.php) */
.am-geonote-wrap { position: relative; display: inline-flex; align-items: center; }
.am-geonote { position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; width: min(340px, calc(100vw - 32px)); padding: 14px 44px 14px 16px; border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent); border-radius: 12px; background: var(--c-surface); color: var(--c-text); box-shadow: 0 12px 32px rgba(19, 41, 61, .28); font-size: 14px; line-height: 1.45; text-align: left; font-weight: 400; }
.am-geonote[hidden] { display: none; }
.am-geonote::before { content: ""; position: absolute; top: -7px; left: 18px; width: 12px; height: 12px; background: var(--c-surface); border-left: 1px solid var(--c-line); border-top: 1px solid var(--c-line); transform: rotate(45deg); }
.am-geonote__t { display: block; margin: 0 0 4px; color: var(--c-ink, var(--c-text)); }
.am-geonote__b { margin: 0 0 12px; color: var(--c-text-2, var(--c-text)); }
.am-geonote__b b { color: var(--c-text); }
.am-topbar .am-geonote a.am-geonote__all { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 9px; background: var(--c-primary); color: var(--c-on-primary); font-weight: 700; text-decoration: none; }
.am-topbar .am-geonote a.am-geonote__all:hover { background: var(--c-primary-hover); color: var(--c-on-primary); }
.am-geonote__x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--c-muted, var(--c-text)); font-size: 22px; line-height: 1; cursor: pointer; }
.am-geonote__x:hover { background: var(--c-soft, rgba(0, 0, 0, .06)); color: var(--c-text); }
.am-geonote__x:focus-visible { outline: 2px solid var(--c-focus, var(--c-primary)); outline-offset: 1px; }


/* UA: Соцмережі й месенджери — іконки (Font Awesome 6 Brands, лише шрифт); оператори біля телефонів (system/operators.func.php) | EN: The social networks and messengers — the icons (Font Awesome 6 Brands, the font alone); the operators next to the phone numbers (system/operators.func.php) */
@font-face { font-family: "AM Brands"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/webfonts/fa-brands-400.woff2") format("woff2"); }
.am-soc { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: none; color: var(--soc, var(--c-text)) !important; text-decoration: none !important; transition: transform .15s, opacity .15s; }
.am-soc:hover, .am-soc:focus-visible { transform: translateY(-1px); opacity: .8; }
.am-soc:focus-visible { outline: 2px solid var(--c-focus, var(--soc)); outline-offset: 2px; }
.am-soc i { font: normal 400 24px/1 "AM Brands"; font-style: normal; }
.am-soc--tiktok, .am-soc--xtwitter, .am-soc--threads { color: var(--c-text, #111) !important; }
.am-soc--telegram i::before { content: "\f2c6"; }
.am-soc--viber i::before { content: "\f409"; }
.am-soc--whatsapp i::before { content: "\f232"; }
.am-soc--signal i::before { content: "\e663"; }
.am-soc--facebook i::before { content: "\f39e"; }
.am-soc--instagram i::before { content: "\f16d"; }
.am-soc--tiktok i::before { content: "\e07b"; }
.am-soc--youtube i::before { content: "\f167"; }
.am-soc--linkedin i::before { content: "\f0e1"; }
.am-soc--xtwitter i::before { content: "\e61b"; }
.am-soc--threads i::before { content: "\e618"; }
.am-socs { gap: 8px; }
.am-phones { margin-top: 8px; }
.am-phone .am-seller__lbl { display: flex; align-items: center; min-height: 20px; }
.am-op__logo { display: block; height: 18px; width: auto; max-width: 90px; object-fit: contain; }
.am-op__chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--c-soft, rgba(0,0,0,.06)); border: 1px solid var(--c-line, rgba(128,128,128,.3)); color: var(--c-text, inherit); font-size: 11.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.am-phone__num a { color: inherit; font-weight: 700; }
.am-phone__op { background: none !important; }
.am-phone__op img { display: block; width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
/* UA: Бокові списки компаній (template b2b-b2c/tag/list-com.htm) | EN: The side company lists (the template b2b-b2c/tag/list-com.htm) */
.am-sidelist__co { display: flex; flex-direction: column; gap: 1px; padding: 4px 0; }
.am-sidelist__name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.am-sidelist__meta { font-size: 12.5px; color: var(--c-muted, var(--c-text-2)); line-height: 1.3; }

/* ===== Help center (hp-*) ===== */
.hp-hero { background: var(--g-hero, var(--c-soft)); border: 1px solid var(--c-hero-line, var(--c-soft-line)); border-radius: 20px; padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 40px); text-align: center; }
.hp-hero h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); line-height: 1.2; color: var(--c-on-hero, var(--c-ink)); }
.hp-hero p { margin: 0 auto 20px; max-width: 620px; color: var(--c-on-hero-2, var(--c-text-2)); }
.hp-search { position: relative; display: flex; gap: 8px; max-width: 640px; margin: 0 auto; background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: 14px; padding: 6px 6px 6px 44px; box-shadow: 0 6px 20px rgba(19, 41, 61, .06); }
.hp-search:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-focus); }
.hp-search > .am-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--c-muted); }
.hp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--c-text); }
.hp-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hp-topic { display: flex; flex-direction: column; gap: 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: 18px; transition: border-color .15s, box-shadow .15s; }
.hp-topic:hover { border-color: var(--c-soft-line); box-shadow: 0 8px 24px rgba(19, 41, 61, .07); }
.hp-topic__head { display: flex; align-items: center; gap: 12px; color: var(--c-ink); text-decoration: none; }
.hp-topic__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-soft); color: var(--c-primary); font-weight: 700; font-size: 18px; }
.hp-topic__ico .am-ico { width: 24px; height: 24px; stroke-width: 1.7; }
.hp-topic__ico img { width: 26px; height: 26px; object-fit: contain; }
.hp-topic__head:hover .hp-topic__ico { background: var(--c-primary); color: var(--c-on-primary); }
.hp-topic__t { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.3; }
.hp-topic__t small { font-weight: 400; font-size: 13px; color: var(--c-muted); }
.hp-topic__head:hover .hp-topic__t { color: var(--c-primary); }
.hp-topic__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hp-topic__list a { display: block; padding: 4px 0 4px 14px; position: relative; color: var(--c-text-2); font-size: 14px; line-height: 1.4; text-decoration: none; }
.hp-topic__list a::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--c-line-strong); }
.hp-topic__list a:hover { color: var(--c-primary); }
.hp-topic__more { font-size: 14px; }
.hp-muted { margin: 0; color: var(--c-muted); font-size: 14px; }
.hp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: 22px 24px; }
.hp-cta h2 { margin: 0 0 4px; font-size: 19px; }
.hp-cta p { margin: 0; color: var(--c-text-2); }
.hp-cta__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-aside { display: flex; flex-direction: column; gap: 18px; }
.hp-aside__search { display: flex; flex-direction: column; gap: 8px; }
.hp-nav { display: flex; flex-direction: column; gap: 2px; }
.hp-nav a { padding: 8px 10px; border-radius: 10px; color: var(--c-text-2); text-decoration: none; font-size: 14px; }
.hp-nav a:hover { background: var(--c-surface-2); color: var(--c-ink); }
.hp-nav a[aria-current="page"] { background: var(--c-soft); color: var(--c-primary); font-weight: 600; }
.hp-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hp-acc { display: flex; flex-direction: column; gap: 10px; }
.hp-acc__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; overflow: hidden; }
.hp-acc__item[open] { border-color: var(--c-soft-line); }
.hp-acc__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--c-ink); }
.hp-acc__item summary::-webkit-details-marker { display: none; }
.hp-acc__item summary:hover { color: var(--c-primary); }
.hp-acc__item summary .am-ico { flex: none; transition: transform .2s; }
.hp-acc__item[open] summary .am-ico { transform: rotate(180deg); }
.hp-acc__body { padding: 0 18px 16px; color: var(--c-text-2); font-size: 14px; line-height: 1.6; }
.hp-acc__body p { margin: 0 0 10px; }
.hp-article { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: clamp(18px, 3vw, 32px); }
.hp-article__head h1 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }
.hp-article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: var(--c-muted); font-size: 13px; }
.hp-article__img { max-width: 100%; height: auto; border-radius: 12px; }
.hp-prose { line-height: 1.7; overflow-wrap: anywhere; }
.hp-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.hp-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.hp-prose td, .hp-prose th { border: 1px solid var(--c-line); padding: 6px 10px; }
.hp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-rel { border-top: 1px solid var(--c-line); padding-top: 16px; }
.hp-rel h2 { margin: 0 0 10px; font-size: 17px; }
.hp-rel ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.hp .pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 600px) { .hp-search { flex-wrap: wrap; padding: 6px 6px 6px 40px; } .hp-search .am-btn { width: 100%; } .hp-cta__acts .am-btn { flex: 1; } }
/* Help center — article body (knowledge base) */
.hp-prose { font-size: 16px; color: var(--c-text); }
.hp-prose > *:first-child { margin-top: 0; }
.hp-prose h2 { margin: 28px 0 10px; font-size: 20px; line-height: 1.3; color: var(--c-ink); }
.hp-prose h3 { margin: 22px 0 8px; font-size: 17px; color: var(--c-ink); }
.hp-prose p { margin: 0 0 12px; }
.hp-prose ul, .hp-prose ol { margin: 0 0 14px; padding-left: 22px; }
.hp-prose li { margin: 0 0 6px; }
.hp-prose li > ul { margin: 6px 0 0; }
.hp-prose ol { counter-reset: hp; list-style: none; padding-left: 0; }
.hp-prose ol > li { counter-increment: hp; position: relative; padding-left: 38px; min-height: 28px; }
.hp-prose ol > li::before { content: counter(hp); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c-soft); color: var(--c-primary); font-weight: 700; font-size: 13px; }
.hp-prose code { font-size: 14px; padding: 1px 6px; border-radius: 6px; background: var(--c-surface-2); overflow-wrap: anywhere; }
.hp-prose a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.hp-fig { margin: 18px 0 22px; }
.hp-fig a { display: block; text-decoration: none; }
.hp-fig img { display: block; max-width: 100%; height: auto; border: 1px solid var(--c-line); border-radius: 12px; box-shadow: 0 6px 20px rgba(19, 41, 61, .07); background: var(--c-surface); }
.hp-fig figcaption { margin-top: 8px; font-size: 13px; color: var(--c-muted); text-align: center; }
.hp-note { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--c-primary); border-radius: 0 12px 12px 0; background: var(--c-soft); color: var(--c-text); font-size: 15px; }
.hp .am-layout > .hp-aside { flex: 1 1 240px; max-width: 300px; position: sticky; top: 16px; }
.hp .am-layout > .hp-main { flex: 999 1 560px; }
@media (max-width: 860px) { .hp .am-layout > .hp-aside { max-width: none; position: static; order: 2; } }
.hp-fig img { width: auto !important; max-width: 100% !important; height: auto !important; }
/* UA: Банер: «Нове» серед інтеграцій + підпис CRM з посиланням на тарифи | EN: The banner: "New" among the integrations plus the CRM caption with a link to the pricing */
.am-hero__new { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; }
.am-hero__newb { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--c-hero-cta); color: var(--c-on-hero-cta); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.am-hero__newi { color: var(--c-on-hero) !important; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.am-hero__newi:hover { text-decoration-color: currentColor; }
.am-hero__sub { flex-basis: 100%; font-size: 12px; opacity: .85; }
.am-hero__sub a { color: inherit !important; text-decoration: underline; text-underline-offset: 2px; }
/* UA: значок «Сертифікована компанія» (верифікація адміністрацією, member/verify.php) | EN: the "Certified company" badge (the verification by the administration, member/verify.php) */
.am-co__cert{display:inline-flex;align-items:center;gap:5px;margin-left:6px;padding:2px 9px 2px 3px;border-radius:999px;background:#DDF5E8;color:#11663c;font:600 12px/1.4 var(--f-body,inherit);vertical-align:middle;white-space:nowrap}
.am-co__cert b{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#1a9b5b;color:#fff;font-size:10px}
/* ===== Футер (template/b2b-b2c/footer.htm) ===== */
.am-footer { position: relative; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--c-primary) 26%, var(--c-footer)) 0%, var(--c-footer) 42%, color-mix(in srgb, var(--c-footer) 78%, #000) 100%); background-color: var(--c-footer); color: var(--c-on-footer); }
.am-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--c-primary), transparent); opacity: .9; }
.am-footer::after { content: ""; position: absolute; right: -200px; bottom: -260px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-primary) 18%, transparent), transparent); pointer-events: none; }
.am-footer__in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 40px; padding-block: 64px 28px; }
.am-footer__cols { display: grid; grid-template-columns: minmax(250px, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.am-footer__brand { display: flex; flex-direction: column; gap: 18px; font-size: 14px; line-height: 1.6; }
.am-footer__logoimg { display: block; height: 44px; width: auto; align-self: flex-start; }
.am-footer__prefs { display: flex; flex-direction: column; gap: 10px; margin-top: -6px; }
.am-footer__selects { display: flex; flex-wrap: wrap; gap: 6px; }
.am-footer .am-footer__select { min-height: 32px; padding: 0 26px 0 10px; border: 1px solid var(--c-footer-line); border-radius: 8px; background: transparent; color: var(--c-footer-title); font-size: 13px; cursor: pointer; transition: border-color .2s; }
.am-footer .am-footer__select:hover, .am-footer .am-footer__select:focus-visible { border-color: var(--c-primary); }
.am-footer__select option { color: #111; }
.am-footer__themes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.am-footer__themes .am-themes__btn { width: 22px; height: 22px; }
.am-footer__themes .am-themes__label { opacity: .85; font-size: 14px; }
.am-footer__socs:empty { display: none; }
.am-footer__socs .am-socs { margin: 0; gap: 4px; }
.am-footer__socs .am-soc { width: 36px; height: 36px; border: 0; background: none; color: #fff !important; }
.am-footer__socs .am-soc i { font-size: 21px; }
.am-footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; font-size: 14px; }
.am-footer__title { margin-bottom: 6px; color: var(--c-footer-ph); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.am-footer a { color: var(--c-on-footer); text-decoration: none; transition: color .2s; }
.am-footer a:hover { color: var(--c-footer-title); text-decoration: none; }
.am-footer__nav a { position: relative; }
.am-footer__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--c-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.am-footer__nav a:hover::after, .am-footer__nav a:focus-visible::after { transform: scaleX(1); }
.am-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 24px; border-top: 1px solid var(--c-footer-line); font-size: 13px; }
.am-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--c-footer-ph); }
.am-footer__legal a { color: var(--c-footer-ph); }
.am-footer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.am-footer__pay b { margin-right: 6px; color: var(--c-footer-ph); font-size: 12px; font-weight: 600; }
.am-footer__ph { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 6px; background: none; opacity: .7; transition: opacity .2s; }
.am-footer__ph:hover { opacity: 1; }
.am-footer__ph img { height: 20px !important; width: auto !important; max-width: 84px; filter: brightness(0) invert(1); }
@media (max-width: 1100px) {
  .am-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .am-footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px 32px; }
  .am-footer__logoimg { grid-column: 1; grid-row: 1; }
  .am-footer__prefs { grid-column: 1; grid-row: 2; margin-top: 0; }
  .am-footer__socs { grid-column: 2; grid-row: 1; }
  .am-footer__contacts { grid-column: 2; grid-row: 2; margin-top: 0; }
}
}
@media (max-width: 760px) {
  .am-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .am-footer__in { gap: 32px; padding-block: 44px 96px; }
  .am-footer__cols { gap: 32px 20px; }
  .am-footer__brand { display: flex; }
  .am-footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
}
.am-footer__contacts { display: flex; flex-direction: column; gap: 8px; margin-top: -4px; font-size: 14px; }
.am-fcon { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--c-on-footer); line-height: 1.45; }
.am-fcon .am-ico { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--c-footer-ph); }
a.am-fcon:hover { color: var(--c-footer-title); }
a.am-fcon:hover .am-ico { color: var(--c-primary); }
/* UA: кнопка «вгору» (theme-script.js показує після прокрутки); над кнопкою AI-чату | EN: the "to the top" button (theme-script.js shows it after scrolling); above the AI chat button */
.scroll_top { position: fixed; right: 26px; bottom: calc(var(--amai-bottom, 20px) + 70px); z-index: 9990; display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: color-mix(in srgb, var(--c-footer, #13293D) 82%, transparent); color: #fff; font-size: 0; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .2s, transform .2s; }
.scroll_top::before { content: none !important; display: none !important; }
.scroll_top svg { display: block; width: 20px; height: 20px; margin: 11px auto 0; transition: transform .2s; }
.scroll_top:hover { background: var(--c-primary); transform: translateY(-2px); }
.scroll_top:hover svg { transform: translateY(-2px); }
.scroll_top:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }
@media (max-width: 767px) { .scroll_top { right: 22px; bottom: 152px; width: 40px; height: 40px; } .scroll_top svg { margin-top: 9px; } }
/* UA: KB: блоки коду й таблиці в статтях (studio-templates) | EN: KB: the code blocks and the tables in the articles (studio-templates) */
.hp-prose pre { margin: 0 0 14px; padding: 12px 14px; max-width: 100%; overflow-x: auto; border-radius: 10px; background: var(--c-surface-2); border: 1px solid var(--c-line); font-size: 13px; line-height: 1.55; white-space: pre; }
.hp-prose pre code { padding: 0; background: none; font-size: inherit; overflow-wrap: normal; }
.hp-prose table { margin: 0 0 14px; }
.hp-prose th { text-align: left; background: var(--c-surface-2); }
.hp-prose td:first-child { width: 38%; }
.hp-prose td code { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 600px) { .hp-prose td:first-child { width: 44%; } .hp-prose td code { font-size: 12px; } }

/* UA: ===== Головна: права панель героя «Що бажаєте зробити?» (2026-11-04, за макетом власника) — великі картки дій зі стрілкою,
 * EN: ===== The home page: the hero's right panel "What would you like to do?" (2026-11-04, after the owner's mock-up) — large action cards with an arrow,
   декоративні дуги, рядок «Не знайшли потрібну дію? → Переглянути всі можливості». Лише .am-panel--do; кольори — змінні теми (світла/темна). */
.am-panel--do { position: relative; overflow: hidden; isolation: isolate; gap: 22px; padding: clamp(22px, 2.4vw, 30px); box-shadow: 0 18px 50px rgba(15, 60, 55, .07); }
.am-panel--do .am-panel__title { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.15; }
.am-panel--do .am-panel__sub { margin-top: 10px; font-size: 17px; }
.am-panel__arc { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; border: 42px solid color-mix(in srgb, var(--c-primary) 9%, transparent); }
.am-panel__arc--t { width: 260px; height: 260px; right: -120px; top: -150px; }
.am-panel__arc--b { width: 320px; height: 320px; right: -170px; bottom: -200px; border-width: 54px; }
.am-panel__arc--b::after { content: ''; position: absolute; inset: 40px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c-primary) 12%, transparent); }
.am-panel--do .am-quick { flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.am-panel--do .am-quick__item { position: relative; gap: 14px; min-height: 104px; padding: 16px 12px 16px 14px; border-radius: 18px; background: var(--c-surface);
  box-shadow: 0 6px 18px rgba(15, 60, 55, .05); transition: border-color .25s, box-shadow .3s, transform .3s; animation: am-do-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.am-panel--do .am-quick__item:nth-child(2) { animation-delay: .06s } .am-panel--do .am-quick__item:nth-child(3) { animation-delay: .12s }
.am-panel--do .am-quick__item:nth-child(4) { animation-delay: .18s } .am-panel--do .am-quick__item:nth-child(5) { animation-delay: .24s }
.am-panel--do .am-quick__item:nth-child(6) { animation-delay: .3s }
.am-panel--do .am-quick__item:nth-child(7) { animation-delay: .36s } .am-panel--do .am-quick__item:nth-child(8) { animation-delay: .42s }
@keyframes am-do-in { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.am-panel--do .am-quick__item:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 60, 55, .12); }
.am-panel--do .am-quick__ico { width: 60px; height: 60px; border-radius: 18px; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.am-panel--do .am-quick__ico .am-ico { width: 30px; height: 30px; }
.am-panel--do .am-quick__item:hover .am-quick__ico { transform: rotate(-6deg) scale(1.06); }
.am-panel--do .am-quick__item > span:nth-child(2) { flex: 1; min-width: 0; }
.am-panel--do .am-quick__name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.am-panel--do .am-quick__hint { margin-top: 4px; font-size: 15px; }
.am-quick__go { flex: none; color: var(--c-ink); opacity: .7; transition: transform .3s, opacity .3s, color .3s; }
.am-panel--do .am-quick__item:hover .am-quick__go { transform: translateX(4px); opacity: 1; color: var(--c-primary); }
.am-panel__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 22px; border-top: 2px solid color-mix(in srgb, var(--c-primary) 14%, var(--c-line)); }
.am-panel__more > span { display: inline-flex; align-items: center; gap: 12px; color: var(--c-muted); font-size: 16px; }
.am-panel__more > span svg { flex: none; color: var(--c-ink); opacity: .75; }
.am-panel__more a { display: inline-flex; align-items: center; gap: 8px; color: var(--c-primary); font-weight: 700; font-size: 16px; }
.am-panel__more a svg { transition: transform .3s; }
.am-panel__more a:hover svg { transform: translateX(5px); }
@media (max-width: 520px) { .am-panel--do .am-quick { grid-template-columns: minmax(0, 1fr); } .am-panel--do .am-quick__item { min-height: 0; } .am-panel--do .am-quick__ico { width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .am-panel--do .am-quick__item { animation: none; } }

/* UA: ---------- Карусель «Категорії · Мегамаркет» (2026-11-04): високі картки з фото товару, листок-підкладка, м'ятна кнопка →, крапки ---------- | EN: ---------- The "Categories · Megastore" carousel (2026-11-04): tall cards with a product photo, a leaf backing, a mint -> button, the dots ---------- */
.am-catcar { gap: 22px; }
.am-catcar__tools { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.am-catcar__all { display: inline-flex; align-items: center; gap: 8px; color: var(--c-primary); font-weight: 700; font-size: 16px; white-space: nowrap; }
.am-catcar__all svg { transition: transform .3s; }
.am-catcar__all:hover svg { transform: translateX(5px); }
.am-catcar__nav { display: flex; gap: 14px; }
.am-catcar__btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--c-surface); color: var(--c-ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c-primary) 14%, rgba(15, 30, 40, .08)), 0 1px 2px rgba(15, 30, 40, .06); transition: transform .2s, color .2s, box-shadow .2s; }
.am-catcar__btn:hover { color: var(--c-primary); transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--c-primary) 22%, rgba(15, 30, 40, .1)); }
.am-catcar__btn:focus-visible { outline: 3px solid var(--c-focus, var(--c-primary)); outline-offset: 2px; }

.am-catcar { --cc-pad: 12px; }
.am-catcar .am-cats { gap: 14px; padding: 14px var(--cc-pad) 34px; margin: -14px calc(-1 * var(--cc-pad)) -30px; scroll-padding-inline: var(--cc-pad); }
.am-catcar .am-cat { flex: 0 0 calc((100% - 7 * 14px) / 8); min-width: 132px; width: auto; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 12px 10px 14px; border-radius: 18px; text-align: center;
  border: 1px solid color-mix(in srgb, var(--c-primary) 8%, var(--c-line)); border-radius: 18px; background: var(--c-surface); color: var(--c-ink);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--c-primary) 8%, rgba(15, 30, 40, .06)), 0 1px 2px rgba(15, 30, 40, .05); row-gap: 14px; transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, border-color .3s; }
.am-catcar .am-cat:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c-primary) 30%, var(--c-line)); box-shadow: 0 18px 38px color-mix(in srgb, var(--c-primary) 16%, rgba(15, 30, 40, .1)); color: var(--c-ink); }
.am-catcar .am-cat:focus-visible { outline: 3px solid var(--c-focus, var(--c-primary)); outline-offset: 3px; }
.am-cat__pic { position: relative; display: grid; place-items: center; width: calc(100% + 8px); margin-inline: -4px; aspect-ratio: 1 / .8; flex: none; }
.am-cat__img { position: absolute; inset: 0; margin: auto; z-index: 1; display: block; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
.am-cat:hover .am-cat__img { transform: scale(1.06) translateY(-3px); }
.am-cat__img--ico { width: 92%; height: 92%; max-width: 128px; max-height: 128px; object-fit: contain; color: var(--c-primary); }
.am-cat__name { display: flex; align-items: center; justify-content: center; min-height: 2.5em;
  font: 700 clamp(12px, .95vw, 14px)/1.25 var(--f-display); letter-spacing: -.01em; color: color-mix(in srgb, var(--c-primary) 30%, var(--c-ink)); text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.am-cat__go { margin-top: auto; width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c-primary) 14%, var(--c-surface)); color: color-mix(in srgb, var(--c-primary) 70%, var(--c-ink)); transition: background .25s, color .25s, transform .25s; }
.am-cat:hover .am-cat__go { background: var(--c-primary); color: var(--c-on-primary, #fff); }
.am-cat:hover .am-cat__go svg { animation: am-catgo .7s ease; }
.am-cat__go svg { width: 16px; height: 16px; }
@keyframes am-catgo { 40% { transform: translateX(5px); } 70% { transform: translateX(-2px); } }

.am-catcar__dots { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 14px; }
.am-catcar__dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 99px; cursor: pointer; background: color-mix(in srgb, var(--c-primary) 22%, var(--c-surface)); transition: width .35s cubic-bezier(.2, .7, .3, 1), background .3s; }
.am-catcar__dot.is-on { width: 38px; background: var(--c-primary); }
.am-catcar__dot:hover { background: color-mix(in srgb, var(--c-primary) 55%, var(--c-surface)); }
.am-catcar__dot.is-on:hover { background: var(--c-primary); }
.am-catcar__dot:focus-visible { outline: 3px solid var(--c-focus, var(--c-primary)); outline-offset: 2px; }

/* UA: темна тема: фото на білому тлі не «множимо» на темну картку, а кладемо на світлу підкладку | EN: the dark theme: a photo on a white background is not "multiplied" onto the dark card but placed on a light backing */
:root[data-am-theme="dark"] .am-catcar .am-cat { border-color: var(--c-line); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }

@media (max-width: 1100px) { .am-catcar .am-cat { flex-basis: calc((100% - 5 * 14px) / 6); } }
@media (max-width: 760px) {

  .am-catcar .am-cat { flex-basis: calc((100% - 2 * 14px) / 2.7); min-width: 116px; padding: 10px 8px 12px; border-radius: 16px; }
  .am-catcar__btn { width: 42px; height: 42px; }
  .am-catcar__nav { gap: 10px; }
  .am-catcar__all { font-size: 14px; }
  .am-cat__go { width: 32px; height: 32px; }
}
@media (max-width: 520px) { .am-catcar__nav { display: none; } .am-catcar .am-section__head { align-items: flex-end; } }
@media (prefers-reduced-motion: reduce) { .am-catcar .am-cat, .am-cat__img, .am-catcar__dot { transition: none; } .am-cat:hover .am-cat__go svg { animation: none; } }
/* UA: UPS в оформленні замовлення | EN: UPS at the checkout */
.np-box.ups-box { border-left-color: #351C15; }
.ups-box .ups-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ups-box .ups-calc-btn { margin: 10px 0 6px; }
.ups-hint { font-size: 13px; margin: 2px 0 6px; }
.ups-hint--ok { color: #15803d; }
.ups-hint--warn { color: #b45309; }
.ups-svc { display: flex; flex-direction: column; gap: 6px; }
.ups-svc__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ups-days { color: #6b7280; font-size: 13px; }
.ups-note { color: #6b7280; font-size: 13px; margin-top: 6px; }
/* UA: DHL Express в оформленні замовлення | EN: DHL Express at the checkout */
.np-box.dhl-box { border-left-color: #D40511; }
.dhl-box .dhl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.dhl-box .dhl-calc-btn { margin: 10px 0 6px; }
.dhl-hint { font-size: 13px; margin: 2px 0 6px; }
.dhl-hint--ok { color: #15803d; }
.dhl-hint--warn { color: #b45309; }
.dhl-svc { display: flex; flex-direction: column; gap: 6px; }
.dhl-svc__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dhl-days { color: #6b7280; font-size: 13px; }
.dhl-note { color: #6b7280; font-size: 13px; margin-top: 6px; }
.dhl-sp { margin-top: 8px; }
.dhl-sp__list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.dhl-sp__row { display: flex; align-items: flex-start; gap: 6px; }
.dhl-sp__addr { color: #6b7280; font-size: 13px; }
/* UA: FedEx в оформленні замовлення | EN: FedEx at the checkout */
.np-box.fdx-box { border-left-color: #4D148C; }
.fdx-box .fdx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.fdx-box .fdx-calc-btn { margin: 10px 0 6px; }
.fdx-hint { font-size: 13px; margin: 2px 0 6px; }
.fdx-hint--ok { color: #15803d; }
.fdx-hint--warn { color: #b45309; }
.fdx-svc { display: flex; flex-direction: column; gap: 6px; }
.fdx-svc__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fdx-days { color: #6b7280; font-size: 13px; }
.fdx-note { color: #6b7280; font-size: 13px; margin-top: 6px; }
.fdx-pt { margin-top: 8px; }
.fdx-pt__list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.fdx-pt__row { display: flex; align-items: flex-start; gap: 6px; }
.fdx-pt__addr { color: #6b7280; font-size: 13px; }
/* UA: InPost: відправлення в карточці замовлення | EN: InPost: the shipment on the order's card */
.np-box[data-carrier="ip"] { border-left-color: #FFCC00; }
.ipx-ord { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.ipx-ord .ipx-ord-res { color: #6b7280; font-size: 13px; }
/* UA: DPD в оформленні замовлення | EN: DPD at the checkout */
.np-box.dpd-box { border-left-color: #DC0032; }
.dpd-box .dpd-modes { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 8px; }
.dpd-box .dpd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dpd-box .dpd-cc { text-transform: uppercase; }
.dpd-box .dpd-calc-btn { margin: 10px 0 6px; }
.dpd-hint { font-size: 13px; margin: 2px 0 6px; color: #6b7280; }
.dpd-note { color: #6b7280; font-size: 13px; margin-top: 4px; }
.dpd-sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dpd-ptfield { position: relative; margin-top: 8px; }
.dpd-ptlist { max-height: 260px; overflow: auto; }
.dpd-pt__row { display: flex; flex-direction: column; gap: 2px; }
.dpd-pt__addr { color: #6b7280; font-size: 13px; }

