/* ============================================================
   Антим Клима — home page (Direction C: high-contrast navy)
   Ported from Claude Design handoff. Mobile-first, scoped to .ak.
   Legacy base for every coded page: layout + structure. The v2 skin
   (tokens, colours, type, chrome) is v2.css, loaded right after this.
   Fonts (Sofia Sans) are enqueued in functions.php as a separate
   stylesheet so they load in parallel with this file.
   ============================================================ */

/* --ak-font (the UI face) is defined on :root in the child style.css,
   which is enqueued on every page and always loads before this file. */

.ak, .ak * { box-sizing: border-box; }
.ak {
  /* brand tokens */
  --cyan: #15a6e0;
  --cyan-deep: #0e84c4;
  --blue: #0b5fbf;
  --blue-2: #16a0c9;
  --navy: #07294f;
  --navy-2: #0a3666;
  --red: #e5231b;
  --red-deep: #c4160f;
  --ink: #141a22;
  --ink-2: #3a4654;
  --muted: #6b7785;
  --line: #e7ebf1;
  --surface: #f3f6fa;
  --surface-2: #eaf0f7;
  --white: #ffffff;
  --green: #16a34a;
  --gold: #f5a623;

  /* direction C theme */
  --brand: #15a6e0;
  --brand-2: #16a0c9;
  --accent: #ff3b30;
  --radius: 20px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-head: 'Roboto Slab', Georgia, 'Times New Roman', serif;

  font-family: var(--ak-font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ak h1,.ak h2,.ak h3,.ak h4 { font-family: var(--font-head); margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
.ak p { margin: 0; }
.ak button { font-family: inherit; cursor: pointer; border: none; }
.ak img { display: block; max-width: 100%; }
.ak a { color: inherit; text-decoration: none; }

/* ---------- generic atoms ---------- */
.ak .pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-weight: 700; }
.ak .chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13.5px; white-space: nowrap;
  border: 1px solid transparent;
}

.ak .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 20px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: var(--accent); color: #fff; line-height: 1;
}
/* beat partdo .btn:not(.link):hover grey bg; sits before the colour variants so they still win */
.ak .btn:hover { background-color: var(--accent); }
.ak .btn.block { display: flex; width: 100%; }
.ak .btn.lg { padding: 17px 22px; font-size: 16px; }
.ak .btn.blue { background: var(--brand); }
.ak .btn.dark { background: var(--ink); }
.ak .btn.outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.ak .btn.white { background: #fff; color: var(--brand); }

.ak .badge-disc {
  background: var(--accent); color: #fff; font-family: var(--ak-font); font-weight: 800;
  font-size: 13px; padding: 5px 9px; border-radius: 9px; line-height: 1; letter-spacing: -.01em;
}

/* Warranty / WiFi labels (carried over from the old design via Advanced Woo Labels) */
.ak .pcard .plabels { display: flex; flex-direction: column; gap: 5px; margin-left: auto; align-items: flex-end; }
.ak .pcard .plabel { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 1; white-space: nowrap; box-shadow: 0 2px 6px rgba(13,40,80,.12); }
.ak .pcard .plabel svg { flex-shrink: 0; }
.ak .pcard .plabel.warranty { background: #fff; color: #0d8a5f; }
.ak .pcard .plabel.wifi { background: #1f8fff; color: #fff; }
/* Narrow mobile cards (2-up phone grid, home rail): the pills can't share a row
   with the discount badge, so stack every badge down the left edge and show the
   short form (ak_plabel(): "3г. Гаранция" → "3г.", "WiFi управление" → "WiFi").
   Mobile only — desktop cards keep their badges unchanged. */
@media (max-width: 1023px) {
  .ak .pcard .media { container-type: inline-size; }
  @container (max-width: 199px) {
    .ak .pcard .topbadges { flex-direction: column; align-items: flex-start; gap: 5px; }
    .ak .pcard .plabels { margin-left: 0; align-items: flex-start; }
    .ak .pcard .plabel .plabel-more { display: none; }
    /* a free-text label with no short form wraps inside its pill instead of clipping */
    .ak .pcard .plabels { max-width: 100%; }
    .ak .pcard .plabel { white-space: normal; max-width: 100%; line-height: 1.15; }
  }
}

.ak .sect-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 18px; }
.ak .sect-h h2 { font-size: 21px; font-weight: 700; color: var(--ink); }
.ak .sect-h .more { font-size: 13.5px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 3px; }
.ak .eyebrow { font-family: var(--ak-font); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }

/* ---------- AC unit illustration (CSS geometry) ---------- */
.ak .ac-unit { position: relative; width: 100%; aspect-ratio: 16/7; }
.ak .ac-unit .body {
  position: absolute; inset: 14% 4% 30% 4%; background: linear-gradient(#ffffff, #eef2f7);
  border-radius: 14px 14px 10px 10px; box-shadow: 0 8px 18px rgba(13,40,80,.14), inset 0 -7px 12px rgba(150,170,195,.25);
}
.ak .ac-unit .vent { position: absolute; left: 8%; right: 8%; bottom: 33%; height: 7%; background: rgba(120,140,165,.32); border-radius: 4px; }
.ak .ac-unit .led { position: absolute; right: 12%; top: 30%; width: 12px; height: 4px; border-radius: 3px; background: var(--cyan); }
.ak .ac-unit.dark .body { background: linear-gradient(#222a33, #161d25); box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.ak .ac-unit.dark .vent { background: rgba(255,255,255,.14); }
.ak .ac-unit .breeze { position: absolute; left: 14%; right: 14%; bottom: 14%; height: 18%;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(21,166,224,.5) 7px 9px); border-radius: 4px; opacity: .55; }

/* photo placeholder */
.ak .ph {
  background:
    repeating-linear-gradient(135deg, rgba(120,140,165,.10) 0 9px, transparent 9px 18px),
    var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: ui-monospace,monospace; font-size: 11px; letter-spacing: .02em;
  border-radius: var(--radius-sm);
}

/* ---------- product card ---------- */
.ak .pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: relative; display: flex; flex-direction: column; height: 100%; }
.ak .pcard .media { display: block; background: var(--surface); border-radius: var(--radius-sm); padding: 0 0 10px; margin-bottom: 11px; position: relative; overflow: hidden; }
.ak .pcard .pimg { display: flex; align-items: flex-start; justify-content: center; margin-top: 0; }
.ak .pcard .pimg img { width: 100%; height: auto; display: block; object-fit: contain; mix-blend-mode: multiply; }
.ak .pcard .acwrap { margin-top: 18px; }
.ak .pcard .topbadges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; }
.ak .pcard .heart { width: 32px; height: 32px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 7px rgba(13,40,80,.12); color: var(--muted); }
.ak .pcard .brand-k:empty::before { content: "\00a0"; } /* keep the row so names line up across cards */
.ak .pcard .brand-k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ak .pcard .name { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ink); margin-top: 3px; min-height: 35px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ak .pcard .stockpill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; margin-top: 8px; line-height: 1; align-self: flex-start; }
.ak .pcard .stockpill.instock { background: #e7f6ee; color: #16a34a; }
.ak .pcard .stockpill.order { background: #fdecec; color: #e5231b; }
.ak .pcard .pricerow { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; margin-bottom: 11px; flex-wrap: wrap; }
.ak .pcard .price { font-family: var(--ak-font); font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.02em; }
.ak .pcard .old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
/* EU energy-class arrow (ak_energy_badge(); product page variant in product.css) */
.ak .ak-energy { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; vertical-align: middle; }
.ak .ak-energy-arrow {
  --h: 18px; display: inline-flex; align-items: center; height: var(--h); padding: 0 calc(var(--h) / 2 + 3px) 0 6px;
  background: var(--ak-en); color: #fff; font-family: var(--ak-font); font-weight: 900; font-size: 11.5px; letter-spacing: 0; white-space: nowrap;
  border-radius: 2px 0 0 2px; clip-path: polygon(0 0, calc(100% - var(--h) / 2) 0, 100% 50%, calc(100% - var(--h) / 2) 100%, 0 100%);
  text-shadow: 0 0 2px rgba(0,0,0,.35);
}
.ak .ak-energy--s0 { --ak-en: #00a651; }
.ak .ak-energy--s1 { --ak-en: #50b848; }
.ak .ak-energy--s2 { --ak-en: #bed630; }
.ak .ak-energy--s3 { --ak-en: #fff200; }
.ak .ak-energy--s4 { --ak-en: #fdb913; }
.ak .ak-energy--s5 { --ak-en: #f37021; }
.ak .ak-energy--s6 { --ak-en: #ed1c24; }
.ak :is(.ak-energy--s2, .ak-energy--s3, .ak-energy--s4) .ak-energy-arrow { color: #1a1a1a; text-shadow: none; }
.ak a.ak-energy:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.ak .pcard .pricerow .ak-energy { align-self: center; }
.ak .pcard .add { margin-top: auto; width: 100%; padding: 11px; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 800; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ak .pcard .add.cart { background: var(--accent); }
/* 320px phones: tighter stock pill so "В наличност" / "Очакван внос" stay on one line */
@media (max-width: 359px) {
  .ak .pcard .stockpill { gap: 5px; padding: 5px 8px; font-size: 11px; }
}

/* scroll-x rail */
.ak .rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.ak .rail::-webkit-scrollbar { display: none; }
.ak .rail { scrollbar-width: none; }
/* snap to the padded edge — without it mandatory snapping scrolls the first card flush against the screen edge on load */
.ak .rail { scroll-padding-inline: 18px; }
.ak .rail > * { scroll-snap-align: start; flex: 0 0 auto; }
/* height:100% has no definite parent height in a flex row → let align-items:stretch equalise the cards */
.ak .rail > .pcard { height: auto; }

/* rail chevrons (ak_rail_arrows() + home.js): a .rail inside .ak-rail-wrap gets,
   on each side that has more to scroll to, an edge fade and a round chevron that
   scrolls ~3/4 of the rail. Items snap 56px in, clear of the left chevron.
   Without JS the rail just swipes, with no fade and no chevrons.
   56px (fade, snap padding, category.js) = chevron 8 + 40 + a little air. */
.ak .ak-rail-wrap { position: relative; }
.ak .ak-rail-wrap > .rail { scroll-padding-inline: 56px; }
.ak .ak-rail-wrap.can-next > .rail { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.ak .ak-rail-wrap.can-prev > .rail { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
.ak .ak-rail-wrap.can-prev.can-next > .rail { -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.ak .ak-rail-nav {
  position: absolute; top: 2px; bottom: 4px; margin: auto 0; z-index: 1;
  width: 40px; height: 40px; padding: 0; border-radius: 999px;
  display: none; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--cold-ink);
  box-shadow: 0 2px 10px rgba(11, 42, 74, .16); cursor: pointer;
}
.ak .ak-rail-nav:hover { background: #fff; border-color: var(--cold); color: var(--cold-ink); } /* beat partdo button:hover */
.ak .ak-rail-nav svg { stroke: currentColor; }
.ak .ak-rail-nav--prev { left: 8px; }
.ak .ak-rail-nav--next { right: 8px; }
.ak .ak-rail-wrap.can-prev > .ak-rail-nav--prev,
.ak .ak-rail-wrap.can-next > .ak-rail-nav--next { display: flex; }

/* ---------- bottom tab bar (mobile) ---------- */
/* Fixed to the viewport: the bar sits in its own .ak-mobile wrapper at the
   end of the page, so sticky never engaged. Body padding + Chaty offset for
   it live in the GLOBAL MOBILE CHROME block at the end of this file. */
.ak .tabbar { display: flex; justify-content: space-around; align-items: center; padding: 9px 8px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; }
/* tablets / landscape phones: the bar spans the screen like the page does; the
   four tabs stay grouped in the middle instead of drifting to the edges */
@media (min-width: 600px) {
  .ak .tabbar { padding-left: max(8px, calc((100% - 640px) / 2)); padding-right: max(8px, calc((100% - 640px) / 2)); }
}
/* iOS browsers (Chrome/Safari = WebKit): when the browser's bottom toolbar
   slides away on scroll, WebKit moves fixed bottom:0 elements late, so the
   bar floats for a moment with page content showing in the gap below it.
   A bar-coloured skirt hanging below the bar fills that gap; it sits off
   screen whenever the bar is where it belongs. */
.ak .tabbar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 160px; background: inherit; }
.ak .tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); flex: 1; padding: 4px 0; margin: -4px 0; } /* padding/margin: 46px tap height, same bar height */
.ak .tabbar .tab.on { color: var(--brand); }
.ak .tabbar .tab .ti { width: 24px; height: 24px; }

/* ---------- mobile header ---------- */
.ak .appbar { display: flex; align-items: center; gap: 12px; padding: 6px 16px 12px; }
.ak .appbar .logo { height: 34px; border-radius: 8px; }
.ak .appbar .search { flex: 1; display: flex; align-items: center; gap: 9px; background: var(--surface); border-radius: 999px; padding: 11px 15px; color: var(--muted); font-size: 13.5px; }
.ak .appbar .ico-btn { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; position: relative; }
.ak .appbar .ico-btn .count { position: absolute; top: -2px; right: -2px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ---------- phone screen shell (fluid) ----------
   Full width on tablets too (600–1023px), like the navy product / account /
   service pages — no 520px phone column on beige. Only rendered < 1024px. */
.ak .scr {
  width: 100%;
  background: var(--white);
  position: relative;
  overflow: hidden;
  font-size: 15px;
}

/* hero slider crossfade */
@keyframes akHSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ak .ak-slide { opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.ak .ak-slide.is-active { opacity: 1; pointer-events: auto; animation: akHSlide .55s ease both; }

/* services "Още услуги" collapsible panel */
.ak .svc-more-panel[hidden] { display: none; }

/* ============================================================
   DESKTOP
   ============================================================ */
.ak .scr-d { width: 100%; background: #fff; position: relative; overflow: hidden; font-size: 15px; }
.ak .dwrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* utility top bar */
.ak .d-top { font-size: 13px; font-weight: 600; }
.ak .d-top .dwrap { height: 42px; display: flex; align-items: center; justify-content: space-between; }
.ak .d-top a { opacity: .9; display: inline-flex; align-items: center; gap: 6px; }

/* main header */
.ak .d-head { display: flex; align-items: center; gap: 28px; padding: 20px 0; position: relative; z-index: 70; }
.ak .d-head .logo { height: 54px; border-radius: 10px; }
.ak .d-search { flex: 1; max-width: 620px; display: flex; align-items: center; background: var(--surface); border-radius: 999px; padding: 4px 4px 4px 20px; }
.ak .d-search .catsel { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--ink-2); padding-right: 16px; margin-right: 14px; border-right: 1px solid var(--line); white-space: nowrap; }
.ak .d-search input,
.ak .d-search input:focus,
.ak .d-search input:hover,
.ak .d-search input:active {
  flex: 1; min-width: 0;
  border: none !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important;
  background: transparent !important; color: var(--ink) !important;
  font: inherit !important; font-size: 15.5px !important;
  height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
}
.ak .d-search input::placeholder { color: var(--muted) !important; }
.ak .d-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ak .d-search .go { width: 46px; height: 46px; border-radius: 999px; background: var(--brand); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
/* Magnifier drawn as a CSS background; flex:0 0 22px stops the round flex button from shrinking it. */
.ak .d-search .go::after {
  content: ""; flex: 0 0 22px; width: 22px; height: 22px; min-width: 22px;
  background: url("../img/search.svg") no-repeat center / 22px 22px;
}
/* category picker — custom dropdown styled like the Услуги menu (native
   select can't be themed into a white card, so it's a button + panel). */
.ak .d-search .ak-catpick { position: relative; flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; margin-right: 14px; }
.ak .d-search .ak-catpick::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 20px; background: rgba(255,255,255,.25); }
.ak .d-search .ak-catpick-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 200px; padding: 0 16px 0 0; border: none; background: transparent; color: rgba(255,255,255,.85); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ak .d-search .ak-catpick-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak .d-search .ak-catpick-btn .cpchev { flex: 0 0 auto; transition: transform .2s; }
.ak .d-search .ak-catpick-btn[aria-expanded="true"] .cpchev { transform: rotate(180deg); }
.ak .ak-catpick-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 80; background: #fff; border-radius: 14px; box-shadow: 0 18px 44px rgba(4,24,48,.28); padding: 8px; min-width: 250px; max-height: 70vh; overflow-y: auto; }
.ak .ak-catpick-panel[hidden] { display: none; }
.ak .ak-catpick-opt { display: block; width: 100%; text-align: left; position: relative; padding: 10px 16px 10px 36px; border: none; background: transparent; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; cursor: pointer; transition: background .12s, color .12s; }
.ak .ak-catpick-opt:hover { background: var(--surface); color: var(--cyan-deep); }
.ak .ak-catpick-opt.is-active { color: var(--cyan-deep); font-weight: 700; }
.ak .ak-catpick-opt.is-active::before { content: "✓"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-weight: 800; }
/* magnifier → spinner while the results page loads */
.ak .d-search .go.loading::after {
  background-image: none;
  width: 20px; height: 20px; min-width: 20px; flex: 0 0 20px;
  border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff;
  border-radius: 50%; animation: akSpin .6s linear infinite;
}
@keyframes akSpin { to { transform: rotate(360deg); } }

/* live search results dropdown — dark navy to match the design */
.ak .ak-search { position: relative; }
.ak .ak-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 50;
  background: #0a2f59; border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(4,24,48,.45);
  padding: 6px; color: #fff; max-height: 70vh; overflow-y: auto;
}
.ak .ak-search-results[hidden] { display: none; }
.ak .ak-sr-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; color: #fff; }
.ak .ak-sr-row:hover { background: rgba(255,255,255,.08); }
.ak .ak-sr-row .thumb { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px; background: #fff; object-fit: contain; }
.ak .ak-sr-row .nm { flex: 1; font-family: var(--ak-font); font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; }
.ak .ak-sr-row .pr { text-align: right; flex: 0 0 auto; white-space: nowrap; }
.ak .ak-sr-row .pr .e { display: block; font-family: var(--ak-font) !important; font-weight: 800 !important; font-size: 15px; color: #fff; letter-spacing: -.01em; }
.ak .ak-sr-empty { padding: 16px; text-align: center; color: rgba(255,255,255,.6); font-size: 13.5px; }
.ak .d-head .acts { display: flex; align-items: center; gap: 22px; }
.ak .d-act { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ak .d-act .ic { width: 42px; height: 42px; border-radius: 999px; background: var(--surface); display: flex; align-items: center; justify-content: center; position: relative; flex: 0 0 auto; }
.ak .d-act .ic .count { position: absolute; top: -3px; right: -3px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; min-width: 19px; height: 19px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.ak .d-act .lbl small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.ak .d-act .lbl b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; }

/* nav */
.ak .d-nav .dwrap { display: flex; align-items: center; gap: 3px; height: 56px; }
.ak .d-catbtn { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 14px; padding: 12px 16px; border-radius: 12px; white-space: nowrap; margin-right: 6px; }
.ak .d-navlink { font-weight: 700; font-size: 14px; padding: 10px 11px; border-radius: 9px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.ak .d-nav-phone { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; white-space: nowrap; }

/* ── mega nav (Image #2 layout, antimklima palette) ────────────────────── */
/* keep the whole nav strip pinned to the top on scroll */
.ak .d-nav { position: sticky; top: 0; z-index: 60; }
/* Начало (scroll-to-top) button */
.ak .d-catbtn { text-transform: uppercase; letter-spacing: .04em; }
/* 0% лихва pill */
.ak .d-finance { display: inline-flex; align-items: center; gap: 7px; margin: 0 14px 0 6px; padding: 12px 18px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
/* top links → uppercase, like the target blue bar */
.ak .d-navlink { text-transform: uppercase; letter-spacing: .04em; font-size: 13px; transition: background .14s; }
.ak .d-navlink:hover { background: rgba(255,255,255,.08); }

/* Услуги hover dropdown */
.ak .d-navitem { position: relative; display: inline-flex; align-items: center; }
.ak .d-navitem .subchev { transition: transform .2s; }
.ak .d-navitem:hover .subchev,
.ak .d-navitem:focus-within .subchev { transform: rotate(180deg); }
.ak .d-subnav { position: absolute; top: 100%; left: 0; z-index: 70; padding-top: 8px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .14s, transform .14s, visibility .14s; }
.ak .d-navitem:hover .d-subnav,
.ak .d-navitem:focus-within .d-subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.ak .d-subnav-card { background: #fff; border-radius: 14px; box-shadow: 0 18px 44px rgba(4,24,48,.28); padding: 8px; min-width: 320px; }
.ak .d-subnav-row { display: block; padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; text-transform: none; letter-spacing: 0; transition: background .12s, color .12s; }
.ak .d-subnav-row:hover { background: var(--surface); color: var(--cyan-deep); }

/* white mega vertical menu (replaces the dark sidebar, always visible next to hero) */
/* cyan category panel — matches the Начало button and hangs flush from the nav (merged look). -30 cancels the hero grid's inline margin-top:30px so the panel butts against the nav bottom. */
.ak .d-mega { background: var(--cyan); border-radius: 0 0 16px 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(4,24,48,.28); align-self: start; margin-top: -30px; }
.ak .d-mega-row { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-bottom: 1px solid rgba(6,34,63,.14); transition: background .14s; }
.ak .d-mega-row:last-child { border-bottom: none; }
.ak .d-mega-row:hover { background: var(--cyan-deep); }
.ak .d-mega-row .nm { flex: 1; font-weight: 800; font-size: 13.5px; text-transform: uppercase; letter-spacing: .02em; color: #06223f; }
.ak .d-mega-row .arr { transition: transform .15s; }
.ak .d-mega-row:hover .arr { transform: translateX(3px); }

/* ── ПРОДУКТИ menu (mobile) ────────────────────────────────────────────── */
.ak .m-prodbar { display: flex; gap: 10px; align-items: stretch; padding: 12px 16px 0; }
.ak .m-prodbtn { flex: 1; display: flex; align-items: center; gap: 9px; border: none; border-radius: 12px; font-family: var(--ak-font); font-weight: 800; font-size: 14px; padding: 12px 14px; cursor: pointer; }
.ak .m-prodbtn .mchev { margin-left: auto; transition: transform .2s; }
.ak .m-prodbtn[aria-expanded="true"] .mchev { transform: rotate(180deg); }
.ak .m-finance { display: inline-flex; align-items: center; gap: 7px; border-radius: 12px; padding: 12px 14px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.ak .m-prodmenu { margin: 10px 16px 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; overflow: hidden; }
.ak .m-prodmenu[hidden] { display: none; }
.ak .m-prodrow { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ak .m-prodrow:last-child { border-bottom: none; }
.ak .m-prodrow .nm { flex: 1; font-weight: 700; font-size: 14px; color: #fff; }

/* section heading desktop */
.ak .d-secth { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.ak .d-secth h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.ak .d-secth .more { font-size: 14px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 5px; }

.ak .d-grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ak .d-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ak .d-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* footer */
.ak .d-foot { color: rgba(255,255,255,.72); font-size: 13.5px; }
.ak .d-foot h4 { font-family: var(--ak-font); font-size: 14px; font-weight: 800; color: #fff; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
.ak .d-foot a { display: block; padding: 6px 0; opacity: .8; }
.ak .d-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 48px 0 36px; }

/* services highlight (ghost numbers) + Още услуги */
.ak .svc-more-btn { display: inline-flex; align-items: center; gap: 11px; padding: 14px 28px; border-radius: 999px; font-family: var(--ak-font); font-weight: 800; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ak .svc-more-btn svg { transition: transform .22s ease; }
.ak .svc-more-btn.open svg { transform: rotate(180deg); }
.ak .svc-more-panel { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 14px); width: 760px; max-width: calc(100vw - 48px); border-radius: 22px; padding: 16px; z-index: 30; box-shadow: 0 24px 60px rgba(4,24,48,.28); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.ak .svc-row { display: flex; align-items: center; gap: 15px; padding: 15px 16px; border-radius: 15px; cursor: pointer; transition: background .14s; }
.ak .svc-row .arr { margin-left: auto; transition: transform .15s; }
.ak .svc-row:hover .arr { transform: translateX(3px); }
.ak .svc-row-light:hover { background: var(--surface); }
.ak .svc-row-dark:hover { background: rgba(255,255,255,.08); }

/* ============================================================
   RESPONSIVE SWITCH between mobile and desktop compositions
   ============================================================ */
.ak-desktop { display: none; }
.ak-mobile  { display: block; }

@media (min-width: 1024px) {
  .ak-desktop { display: block; }
  .ak-mobile  { display: none; }
}

/* keep desktop grids from breaking on narrower desktops */
@media (min-width: 1024px) and (max-width: 1180px) {
  .ak .d-grid5, .ak .d-grid4, .ak .d-grid3 { gap: 14px; }
  .ak .d-secth h2 { font-size: 26px; }
  /* 1024px (iPad Pro portrait / narrow windows): the nav row ran ~120px past the
     edge (phone link clipped) and the hidden Услуги dropdown widened the page
     to 1175px → sideways panning. Phone stays in the top bar; dropdown opens
     leftwards from its item. */
  .ak .d-nav-phone { display: none; }
  .ak .d-navitem .d-subnav { left: auto; right: 0; }
}

/* ============================================================
   POWER FINDER — room m² → recommended BTU (desktop)
   Ported from the design foundation (ak.css). Scoped to .ak.
   ============================================================ */
.ak .pfinder { display: grid; grid-template-columns: 1fr 300px; gap: 0; border-radius: 24px; overflow: hidden; }
.ak .pfinder.dark { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.ak .pfinder-l { padding: 34px 36px; }
.ak .pfinder.dark .pfinder-l .pfinder-h { color: #fff; }
.ak .pfinder-l .pfinder-h { font-family: var(--ak-font); font-weight: 800; font-size: 26px; margin: 10px 0 8px; letter-spacing: -.02em; }
.ak .pfinder.dark .pfinder-l p { color: rgba(255,255,255,.66); }
.ak .pfinder-l p { font-size: 14.5px; color: var(--muted); max-width: 400px; line-height: 1.5; }
.ak .pfinder-area { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; }
.ak .pfinder.dark .pfinder-area span { color: rgba(255,255,255,.7); }
.ak .pfinder-area span { font-size: 14px; font-weight: 600; }
.ak .pfinder.dark .pfinder-area b { color: #5cc8ff; }
.ak .pfinder-area b { font-family: var(--ak-font); font-weight: 900; font-size: 24px; color: var(--brand); }
.ak .pfinder-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; margin-top: 12px; background: rgba(255,255,255,.18); outline: none; }
.ak .pfinder:not(.dark) .pfinder-range { background: var(--surface-2); }
.ak .pfinder-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #5cc8ff; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer; }
.ak .pfinder:not(.dark) .pfinder-range::-webkit-slider-thumb { background: var(--brand); }
.ak .pfinder-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #5cc8ff; border: 3px solid #fff; cursor: pointer; }
.ak .pfinder-ticks { display: flex; justify-content: space-between; margin-top: 9px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.45); }
.ak .pfinder:not(.dark) .pfinder-ticks { color: var(--muted); }
.ak .pfinder-r { background: linear-gradient(160deg, var(--accent), #ff6a4d); padding: 32px 30px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.ak .pfinder-rec-lbl { font-family: var(--ak-font); font-weight: 800; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.ak .pfinder-btu { font-family: var(--ak-font); font-weight: 900; font-size: 52px; color: #fff; line-height: 1; margin-top: 8px; letter-spacing: -.03em; }
.ak .pfinder-btu small { font-size: 18px; font-weight: 800; margin-left: 6px; }
.ak .pfinder-tier { font-size: 13.5px; color: rgba(255,255,255,.9); margin-top: 8px; font-weight: 600; }

/* stack the two panes on narrower desktops so the BTU pane never gets crushed */
@media (min-width: 1024px) and (max-width: 1100px) {
  .ak .pfinder { grid-template-columns: 1fr; }
  .ak .pfinder-r { padding: 26px 30px; }
}

/* ============================================================
   REDESIGNED NAV — mega menu (NiceMag-style). Ported from the design
   handoff (ak.css). Replaces the old .d-nav bar + .d-mega/.ak-hero grid.
   ============================================================ */
.ak .mnav { position: relative; z-index: 40; }
.ak .mnav-row { display: flex; align-items: stretch; gap: 6px; height: 62px; }

/* categories trigger */
.ak .mnav-cats { display: inline-flex; align-items: center; gap: 11px; align-self: center; padding: 13px 22px; border-radius: 14px; background: var(--cyan); color: #06223f; font-family: var(--font-head); font-weight: 700; font-size: 15px; cursor: pointer; transition: filter .15s, box-shadow .2s; box-shadow: 0 6px 18px rgba(21,166,224,.28); white-space: nowrap; }
.ak .mnav-cats:hover, .ak .mnav-cats.on { filter: brightness(1.05); box-shadow: 0 8px 24px rgba(21,166,224,.42); }
.ak .mnav-cats-bars { display: inline-flex; }

/* primary links */
.ak .mnav-links { display: flex; align-items: stretch; gap: 2px; margin-left: 12px; }
.ak .mnav-linkwrap { position: relative; display: flex; align-items: center; }
.ak .mnav-link { display: inline-flex; align-self: center; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 11px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: rgba(255,255,255,.88); cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.ak .mnav-link:hover, .ak .mnav-link.on, .ak .mnav-linkwrap:hover .mnav-link { background: rgba(255,255,255,.1); color: #fff; }
.ak .mnav-link.hot { background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(255,59,48,.34); }
.ak .mnav-link.hot:hover { filter: brightness(1.06); background: var(--accent); }

/* phone CTA at right */
.ak .mnav-phone { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 11px; cursor: pointer; padding: 7px 10px; border-radius: 12px; transition: background .15s; }
.ak .mnav-phone:hover { background: rgba(255,255,255,.08); }
.ak .mnav-phone-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--cyan); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ak .mnav-phone-txt { display: flex; flex-direction: column; line-height: 1.25; }
.ak .mnav-phone-txt small { font-size: 11.5px; color: rgba(255,255,255,.6); font-weight: 600; }
.ak .mnav-phone-txt b { font-family: var(--ak-font); font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.01em; }

/* services flyout — always in the DOM, shown on hover (no JS) */
.ak .mnav-svc { position: absolute; top: calc(100% + 8px); left: 0; width: 320px; background: #fff; border-radius: 16px; box-shadow: 0 24px 50px rgba(4,20,42,.32); padding: 8px; z-index: 50; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.ak .mnav-linkwrap:hover .mnav-svc { opacity: 1; visibility: visible; transform: translateY(0); }
.ak .mnav-svc-row { display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 11px; cursor: pointer; transition: background .13s; }
.ak .mnav-svc-row:hover { background: var(--surface); }
.ak .mnav-svc-ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(14,132,196,.1); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ak .mnav-svc-txt { display: flex; flex-direction: column; flex: 1; }
.ak .mnav .mnav-svc-txt b { font-size: 14px; font-weight: 700; color: var(--ink); }
.ak .mnav .mnav-svc-txt small { font-size: 12px; font-weight: 700; color: var(--cyan-deep); margin-top: 1px; }
.ak .mnav .mnav-svc-all { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 4px; padding: 12px; border-radius: 11px; background: var(--surface); font-weight: 800; font-size: 13.5px; color: var(--cyan-deep); cursor: pointer; }

/* ===== mega panel ===== */
.ak .mnav-megawrap { position: static; margin-top: 14px; z-index: 1; }
.ak .mnav-mega { display: grid; grid-template-columns: 324px 1fr 300px; background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(4,20,42,.4); overflow: hidden; }
/* the rail is always visible; one panel + one promo show at a time, stacked in
   the same grid cells and toggled by .on (JS sets it on rail hover) */
.ak .mnav-rail { grid-column: 1; grid-row: 1; }
.ak .mnav-panel { grid-column: 2; grid-row: 1; }
.ak .mnav-promo { grid-column: 3; grid-row: 1; }
.ak .mnav-panel:not(.on), .ak .mnav-promo:not(.on) { display: none; }

/* left rail */
.ak .mnav-rail { background: var(--surface); padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.ak .mnav-railrow { display: flex; align-items: center; gap: 15px; padding: 12px 14px; border-radius: 14px; cursor: pointer; background: transparent; text-align: left; border: none; transition: background .13s; }
.ak .mnav-railrow:hover { background: rgba(255,255,255,.7); }
.ak .mnav-railrow.on { background: #fff; box-shadow: 0 4px 14px rgba(4,20,42,.08); }
.ak .mnav-railic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--c, var(--cyan)); transition: color .15s, transform .15s; }
.ak .mnav-railrow:hover .mnav-railic { transform: scale(1.06); }
.ak .mnav-railic svg { width: 42px; height: 42px; }
.ak .mnav .mnav-raillbl { flex: 1; font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.ak .mnav-railchev { color: var(--muted); transition: color .15s; }
.ak .mnav-railrow.on .mnav-railchev { color: var(--c, var(--cyan)); }

/* subcategory panel */
.ak .mnav-panel { padding: 26px 30px; display: flex; flex-direction: column; }
.ak .mnav-panelhead { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ak .mnav-panelhead h3 { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.ak .mnav-panelhead span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.ak .mnav-seeall { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.ak .mnav-cols { columns: 2; column-gap: 30px; padding: 20px 0; flex: 1; }
.ak .mnav-cols .mnav-sublink { break-inside: avoid; }
.ak .mnav-empty { grid-column: 1 / -1; font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 8px 0; }
.ak .mnav-grouped { padding: 18px 0; flex: 1; }
.ak .mnav-linkrow { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ak .mnav .mnav-linkrow .mnav-grp-link { flex: 1; min-width: 0; justify-content: flex-start; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ak .mnav .mnav-linkrow .mnav-grp-link:hover { gap: 9px; border-color: currentColor; background: #fff; }
.ak .mnav .mnav-linkrow .mnav-grp-link .mnav-dot { margin-right: -2px; }
.ak .mnav .mnav-linkrow .mnav-grp-link svg { margin-left: auto; }
.ak .mnav-groups { columns: 2; column-gap: 36px; }
.ak .mnav-grp { break-inside: avoid; -webkit-column-break-inside: avoid; margin-bottom: 18px; }
.ak .mnav .mnav-grp-h { font-family: var(--ak-font); font-weight: 700; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 7px; }
.ak .mnav .mnav-grp-link { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer; padding: 4px 0; transition: gap .12s; }
.ak .mnav .mnav-grp-link:hover { gap: 13px; }
.ak .mnav .mnav-sublink.sm { font-size: 13.5px; padding: 5px 0; }
.ak .mnav .mnav-sublink { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 14.5px; line-height: 1.35; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: color .12s, padding .12s; }
.ak .mnav .mnav-sublink:hover { color: var(--ink); padding-left: 4px; }
.ak .mnav-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; opacity: .55; }
.ak .mnav .mnav-sublink .mnav-dot { margin-top: .42em; }
.ak .mnav-brands { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.ak .mnav-brandlbl { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--muted); }
/* "Популярни марки": the sidebar "Марка" tile (below), one row */
.ak .mnav-btiles { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ak .mnav .mnav-btiles .ak-btile { --ak-logo: .8; height: 52px; padding: 0 8px; }
.ak .mnav .mnav-btiles .ak-btile-t { font-size: 14px; }

/* ============================================================
   Марки — brand logo tile, shared by the mega menu row and the
   category brand filter (strip, phone rail, sidebar/drawer card;
   category.css sizes those). The logo width comes from
   ak_brand_logo_img() as --w (equal visual area per logo); each
   context scales it with --ak-logo. Brands without a logo show the
   name. Selected = navy ring + check, the tile stays white so light
   logos (Daikin, Midea) keep their contrast.
   ============================================================ */
.ak .ak-btile {
  --ak-logo: 1;
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  color: var(--night); text-align: center;
  transition: border-color .15s, box-shadow .15s;
}
.ak .ak-btile img { width: calc(var(--w) * var(--ak-logo)); max-width: 100%; height: auto; }
.ak .ak-btile-t { font-family: var(--ak-font-d); font-weight: 800; font-size: 16px; line-height: 1.05; overflow-wrap: anywhere; }
.ak .ak-btile-n { position: absolute; top: 5px; right: 7px; font-size: 11.5px; font-weight: 700; line-height: 1; color: var(--muted); }
.ak .ak-btile:hover { border-color: var(--cold); color: var(--night); }
.ak .ak-btile.is-on { border-color: var(--cold-ink); box-shadow: inset 0 0 0 1px var(--cold-ink); }
.ak .ak-btile.is-on .ak-btile-n { color: var(--cold-ink); }
.ak .ak-btile-ck { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--cold-ink); color: #fff; display: flex; align-items: center; justify-content: center; }

/* promo card */
.ak .mnav-promo { display: flex; flex-direction: column; margin: 18px 18px 18px 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: box-shadow .18s, transform .18s; }
.ak .mnav-promo:hover { box-shadow: 0 16px 36px rgba(4,20,42,.16); transform: translateY(-2px); }
.ak .mnav-promo-img { height: 184px; border-radius: 0; }
.ak .mnav-promo-body { padding: 18px 20px 20px; }
.ak .mnav-promo-eyebrow { font-family: var(--ak-font); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ak .mnav .mnav-promo-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin-top: 8px; }
.ak .mnav-promo-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-weight: 800; font-size: 13.5px; color: #06223f; }

/* ============================================================
   GLOBAL MOBILE CHROME — every coded page (home.css loads on all of them)
   ============================================================ */
body.ak-home-body, body.ak-cat-body, body.ak-shop-body,
body.ak-product-body, body.ak-page-body, body.ak-services-body { --ak-tabbar-h: 68px; }

/* Partdo's own bottom bar (printed in wp_footer, outside .ak) duplicates the coded tabbar. */
body.ak-home-body .mobile-bottom-menu, body.ak-cat-body .mobile-bottom-menu,
body.ak-shop-body .mobile-bottom-menu, body.ak-product-body .mobile-bottom-menu,
body.ak-page-body .mobile-bottom-menu, body.ak-services-body .mobile-bottom-menu { display: none !important; }

@media (max-width: 1023px) {
  /* room for the fixed .tabbar so the last content isn't hidden under it */
  body.ak-home-body, body.ak-cat-body, body.ak-shop-body,
  body.ak-product-body, body.ak-page-body, body.ak-services-body {
    padding-bottom: calc(var(--ak-tabbar-h) + var(--ak-sticky-h, 0px) + env(safe-area-inset-bottom)); /* + product sticky bar */
  }

  /* Chaty (plugin markup outside .ak): icon only, parked above the tabbar */
  .chaty .on-hover-text { display: none !important; }
  .chaty .chaty-widget {
    bottom: calc(var(--ak-tabbar-h, 0px) + 12px + env(safe-area-inset-bottom)) !important;
    right: 14px !important;
  }
  /* Checkout: no tabbar (focused flow; keeps the Speedy/Econt pickers and
     credit popups, which use low z-indexes, from sliding under it). */
  body.woocommerce-checkout .ak .tabbar, body.ak-dsk-body .ak .tabbar { display: none; }
  body.woocommerce-checkout, body.ak-dsk-body { --ak-tabbar-h: 0px; }
  /* shop/category .scr (inline style) and navy pages are min-height:100vh —
     subtract the bar so short pages don't always scroll by its height */
  .ak .scr, .ak.ak-inner-page { min-height: calc(100vh - var(--ak-tabbar-h, 0px)) !important; }

  /* …and out of the way on checkout / the DSK application pages, on product
     listings + product pages (it covered the right card's Купи / the sticky
     bar), and while the filter drawer / Продукти menu is open */
  body.woocommerce-checkout .chaty, body.ak-dsk-body .chaty,
  body.ak-cat-body .chaty, body.ak-shop-body .chaty, body.ak-product-body .chaty,
  body:has(.ak-drawer:not([hidden])) .chaty,
  body:has(.m-prodbtn[aria-expanded="true"]) .chaty { display: none !important; }

  /* iOS Safari zooms into any focused field under 16px. Covers the WC
     account/track-order forms inside .ak plus Partdo's search drawer and
     the compare popup search, which render outside .ak. */
  .ak input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="hidden"]),
  .ak select, .ak textarea,
  .klb-ajax-search .search-input, .woosc-search-input input { font-size: 16px !important; }
}

/* Mobile legal line (template-parts/mobile-tabbar.php): in flow right before
   the fixed tabbar, so the body padding keeps it clear of the bar. Phones have
   no footer and Complianz hides its manage-consent tab ≤768px → this is where
   consent is changed (GDPR: withdrawing must stay as easy as giving it). */
.ak .ak-mlegal { padding: 18px 12px 10px; text-align: center; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.55); }
.ak .ak-mlegal-note { margin: 0 0 2px; }
.ak .ak-mlegal-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 4px; }
.ak .ak-mlegal-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; margin: 0;
  background: none; border: 0; border-radius: 8px; color: rgba(255,255,255,.72); font: inherit; font-size: 13px;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; cursor: pointer;
}
.ak .ak-mlegal-link:hover { color: #fff; background: none; } /* beat partdo button:not(.link):hover bg */
.ak .ak-mlegal-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

/* Landscape phones (~390px tall): the stacked icon-over-label tabbar (68px) +
   the product sticky bar (64px) + the home indicator took ~40% of the screen.
   Icon beside label → 45px bar (product.css trims the sticky bar to match). */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 500px) {
  body:is(.ak-home-body, .ak-cat-body, .ak-shop-body, .ak-product-body, .ak-page-body, .ak-services-body):not(.woocommerce-checkout):not(.ak-dsk-body) { --ak-tabbar-h: 45px; }
  .ak .tabbar { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .ak .tabbar .tab { flex-direction: row; justify-content: center; gap: 8px; font-size: 12.5px; padding: 8px 0; margin: -8px 0; }
}

/* ---- credit calculator popups (plugin markup outside our control) ---- */
/* Chaty sits above the TBI / ПБ Лични Финанси overlays — hide it while one is open
   (the plugins toggle an inline display on the container) */
body:has(#jet-product-popup-container[style*="block"], #tbi_popup_container[style*="flex"], #tbi_popup_container[style*="block"]) .chaty { display: none !important; }

/* ПБ Лични Финанси (jetcredit): phones (by user agent) get its .jetm layout, which
   fits; everything else gets a fixed 1100px panel that pushes the values and the
   buttons off-screen on tablets / narrow windows. Let it shrink, then stack. */
#jet-product-popup-container.modalpayment_jet .jet_PopUp_Detailed_v1 { width: auto !important; max-width: 1100px; }
#jet-product-popup-container .jet_row_footer a { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  #jet-product-popup-container.modalpayment_jet .jet_row { flex-wrap: wrap !important; padding-top: 8px !important; }
  #jet-product-popup-container.modalpayment_jet .jet_column_left,
  #jet-product-popup-container.modalpayment_jet .jet_column_right { flex: 1 1 100% !important; height: auto !important; }
  #jet-product-popup-container.modalpayment_jet .jet_column_left { padding-bottom: 6px !important; font-size: 16px !important; }
  /* both layouts: the 2–3 buttons (product page adds "Добави в количката") wrap
     instead of running off the left edge */
  #jet-product-popup-container .jet_row_bottom { flex-wrap: wrap; gap: 8px; }
  #jet-product-popup-container .jet_btn { flex: 1 1 auto; margin-left: 0 !important; }
}

/* ============================================================
   MOBILE SEARCH — header pill (plain GET form = no-JS fallback) and the
   full-screen overlay home.js builds on top of it (.ak-msearch, on <body>)
   ============================================================ */
.ak .appbar .m-search { position: relative; min-width: 0; margin: 0; }
.ak .appbar .m-search svg { flex: 0 0 auto; }
.ak .appbar .m-search input[type="search"] {
  flex: 1; min-width: 0; width: 100%; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; outline: 0; color: #fff; font: inherit; font-size: 16px; line-height: 1.2;
  -webkit-appearance: none; appearance: none;
}
.ak .appbar .m-search input::placeholder { color: rgba(255,255,255,.7); font-size: 13.5px; opacity: 1; }
.ak .appbar .m-search input::-webkit-search-cancel-button { display: none; }
.ak .appbar .m-search-open { position: absolute; inset: 0; width: 100%; padding: 0; background: transparent; border-radius: inherit; }
.ak .appbar .m-search-open[hidden] { display: none; }
.ak .appbar .m-search-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.ak-msearch {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100000;
  display: flex; flex-direction: column; height: 100vh; height: 100dvh;
  background: linear-gradient(180deg,#06223f,#0a2d57 40%,#07294f); color: #fff;
  overscroll-behavior: contain;
}
.ak-msearch[hidden] { display: none; }
.ak-msearch .msr-head { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ak-msearch .msr-ib { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border-radius: 999px; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; }
.ak-msearch .msr-ib[hidden] { display: none; }
.ak-msearch .msr-ib:focus-visible, .ak-msearch .ak-sr-row:focus-visible, .ak-msearch .msr-all:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.ak-msearch .msr-form { flex: 1; min-width: 0; height: 46px; margin: 0; padding: 0 1px 0 16px; display: flex; align-items: center; background: rgba(255,255,255,.12); border-radius: 999px; }
.ak-msearch .msr-form:focus-within { box-shadow: 0 0 0 2px var(--cyan); }
.ak-msearch .msr-form input[type="search"] {
  flex: 1; min-width: 0; width: 100%; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; outline: 0; color: #fff; font: inherit; font-size: 16px !important;
  -webkit-appearance: none; appearance: none;
}
.ak-msearch .msr-form input::placeholder { color: rgba(255,255,255,.6); opacity: 1; }
.ak-msearch .msr-form input::-webkit-search-cancel-button { display: none; }
.ak-msearch .msr-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 8px calc(20px + env(safe-area-inset-bottom)); }
.ak-msearch .msr-status { padding: 18px 16px; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; }
.ak-msearch .msr-status:empty { display: none; }
.ak-msearch .msr-spin { display: inline-block; width: 16px; height: 16px; margin-right: 9px; vertical-align: -3px; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--cyan); border-radius: 50%; animation: akSpin .7s linear infinite; }
/* price under the name so the model number in long names isn't squeezed out on phones */
.ak-msearch .ak-sr-row { min-height: 56px; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; row-gap: 3px; align-items: center; }
.ak-msearch .ak-sr-row .thumb { grid-row: 1 / span 2; }
.ak-msearch .ak-sr-row .pr { text-align: left; }
.ak-msearch .ak-sr-row .nm { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ak-msearch .msr-all { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 10px 4px 0; border-radius: 12px; background: var(--cyan); color: #06223f; font-weight: 800; font-size: 14.5px; }
@media (min-width: 600px) { .ak-msearch .msr-list, .ak-msearch .msr-status { max-width: 640px; margin-left: auto; margin-right: auto; } }

/* while open: page frozen, tabbar + Chaty out of the way */
html.ak-msearch-open, body.ak-msearch-open { overflow: hidden !important; }
body.ak-msearch-open .ak .tabbar, body.ak-msearch-open .chaty { display: none !important; }
@media (min-width: 1024px) { .ak-msearch { display: none !important; } }
