/* AKTO header (October spec, items 1 and 2): the styles of the fragment that analysis/header_build.py builds; v2 tokens (src/v2/akto-v2.css).
   Logical properties throughout, so the Arabic page (dir="rtl") is the mirror image; only the chevrons and the arrow of "all" have rtl rules.
   The theme's Tailwind base is in a cascade layer, so these unlayered rules win over it; they also set what that base would reset, so the
   header looks the same with the theme's stylesheet (the site) and without it (the stand).
   BREAKPOINT 1160px: the desktop layout (the row of the 8 sections and their panels) starts at the one min-width media query below.
   Measured on the stand in Edge with the real fonts (25.10.2026): the row with its padding needs ua 1129.6px, pl 1095.2, en 961.9,
   ar 908.1; ua + 17px of a classic scrollbar (the media query counts it, the layout does not) = 1146.6, + 13px of slack. Below it is the
   phone layout (the rules outside the media query): two rows, and nav.akh-nav is the drawer of the menu button. This media query is the
   only place of the breakpoint: the script reads the layout from the CSS (the menu button is shown only below it), never a number. */

.akh{display:contents}                       /* no box of its own: the sticky header sticks along the whole page, not inside this div */
.akh-bar{position:sticky;top:0;z-index:50;background:#fff;color:var(--v2-ink);border-bottom:1px solid var(--v2-line);
  font-family:var(--v2-sans);font-size:14px;font-weight:500;line-height:1.35;text-align:start}
/* The header is raised above the theme's fixed layers of the same z-index only while something of it lies over the page: the
   suggestion list, a section's panel (its third-level cards reach the bottom of the window) or the drawer. The theme's cookie banner
   (z-50, later in the page) would cover their ends otherwise; its dialogs share z-50 too, so the closed header stays at 50. A browser
   without :has() keeps the list and the panels at 50. The panels raise it only on the desktop (in the media query below): a section
   left open in the drawer stays shown inside the closed drawer, and the open drawer raises the header by itself. */
.akh-bar:has(#akh-sugg:not([hidden])){z-index:51}
html.akh-drawer-open .akh-bar{z-index:51}
/* resets under :where(), so that they weigh one element and every class rule below overrides them */
:where(.akh-bar) *,:where(.akh-bar) ::before,:where(.akh-bar) ::after{box-sizing:border-box}
:where(.akh-bar) a{color:inherit;text-decoration:none}
:where(.akh-bar) ul,:where(.akh-bar) li{margin:0;padding:0;list-style:none}
:where(.akh-bar) button{margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;cursor:pointer}
:where(.akh-bar) img{display:block;max-width:none}
:where(.akh-bar) :focus-visible{outline:2px solid var(--v2-teal);outline-offset:-2px;border-radius:6px}

/* the top row: the logo; the search field, wide, in the middle of the room between the logo and the icons (its list: below);
   the icons of the current header and, after a hairline, the language switcher. On the phone (this grid; the desktop makes it a flex
   line) two rows: the menu button, the logo, the socials, the phone and the language (56px), the search field over the whole width
   (52px); the mail and the map are at the bottom of the drawer instead (with the socials once more) */
.akh-row{display:grid;grid-template:"burger logo . tools" 56px "search search search search" 52px / auto auto minmax(0,1fr) auto;
  align-items:center;column-gap:8px;max-width:1376px;margin-inline:auto;padding-inline:16px}
.akh-burger{grid-area:burger;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-inline-start:-10px;
  border-radius:8px;color:var(--v2-ink)}
.akh-burger svg{width:24px;height:24px}
.akh-burger[aria-expanded=false] svg+svg,.akh-burger[aria-expanded=true] svg:first-child{display:none}   /* the lines; the cross */
.akh-logo{grid-area:logo;flex:none}
.akh-logo img{width:auto;height:44px}
.akh-sr,.akh-ic-t{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);
  white-space:nowrap;border:0}
.akh-search{grid-area:search;position:relative;flex:0 1 590px;min-width:0;margin:0}
.akh-search::before{content:"";position:absolute;top:50%;inset-inline-start:14px;width:17px;height:17px;margin-top:-8.5px;background:var(--v2-mute);
  pointer-events:none;-webkit-mask:var(--akh-loupe) center/contain no-repeat;mask:var(--akh-loupe) center/contain no-repeat;
  --akh-loupe:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.34-4.34'/%3E%3C/svg%3E")}
.akh-search input{display:block;width:100%;height:42px;margin:0;padding-block:0;padding-inline:42px 14px;border:1px solid var(--v2-line);
  border-radius:10px;background:var(--v2-grey);color:var(--v2-ink);font:inherit;font-size:14px;-webkit-appearance:none;appearance:none}
.akh-search input::placeholder{color:var(--v2-mute);opacity:1}
.akh-search input:focus{border-color:var(--v2-teal);background:#fff;outline:0}
/* the suggestions (akto-header.js): under the field and as wide as it, over the menu row, its panels and the page (the list is above
   every layer of the header: the drawer z 2, the language list z 3); cut to the window's height, then it scrolls inside. Two blocks
   (sections, pages), a result is its title and, under it, the path of its 1-2 nearest ancestors */
#akh-sugg{position:absolute;top:calc(100% + 6px);inset-inline:0;z-index:4;max-height:calc(100vh - 124px);max-height:calc(100dvh - 124px);
  overflow-y:auto;overscroll-behavior:contain;padding:6px;background:#fff;border:1px solid var(--v2-line);border-radius:12px;
  box-shadow:0 16px 36px -12px rgba(11,79,98,.35);overflow-wrap:break-word}
.akh-g+.akh-g{margin-block-start:4px;padding-block-start:4px;border-top:1px solid var(--v2-line)}
.akh-g-h{margin:0;padding:8px 10px 4px;color:var(--v2-mute);font-family:var(--v2-mono);font-size:11px;font-weight:600;letter-spacing:.06em;
  line-height:1.3;text-transform:uppercase}
.akh-r{display:block;padding:7px 10px;border-radius:8px}
.akh-r:hover,.akh-r[aria-selected=true]{background:var(--v2-ice);color:var(--v2-deep)}
.akh-r-t{display:block;font-weight:600}
.akh-r-p{display:block;margin-block-start:1px;color:var(--v2-mute);font-size:12px;font-weight:500}
.akh-r-p:empty{display:none}
/* 'nothing found': the live region beside the list, in the list's place and look; empty, it has no box (and stays in the page, so
   that a screen reader hears the text when it comes) */
.akh-none{position:absolute;top:calc(100% + 6px);inset-inline:0;z-index:4;margin:0;padding:16px 18px;color:var(--v2-mute);background:#fff;
  border:1px solid var(--v2-line);border-radius:12px;box-shadow:0 16px 36px -12px rgba(11,79,98,.35)}
.akh-none:empty{padding:0;border:0;box-shadow:none}
.akh-tools{grid-area:tools;display:flex;flex:none;align-items:center;gap:4px}
.akh-ic{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;color:var(--v2-ink2)}
.akh-tools>.akh-ic:not(.akh-tel,.akh-soc){display:none}      /* one :not(): the weight of the desktop's rule, which comes later */
/* the socials in the phone's first row (the user 10.11.2026: Instagram at least, Facebook and LinkedIn if they fit). With all three
   the row needs 357px (16+16 padding, the menu button 44-10, 3 gaps of 8, the logo 44.7, 3 socials and the phone 4x36 + 4 gaps of 4,
   the language 10+12+40), so below 360px only Instagram (with it the row needs 277px). A max-width query: the min-width one below
   is the one breakpoint of the desktop. */
@media (max-width:359.98px){.akh-tools>.akh-soc:not(.akh-soc-ig){display:none}}
.akh-ic:hover{background:var(--v2-grey);color:var(--v2-deep)}
.akh-lang{position:relative;margin-inline-start:10px;padding-inline-start:12px}
.akh-lang::before{content:"";position:absolute;inset-block:3px;inset-inline-start:0;width:1px;background:var(--v2-line)}
.akh-lang-b{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:40px;padding:3px 4px;border-radius:8px;color:var(--v2-ink2);
  font-family:var(--v2-mono);font-size:11px;font-weight:700;letter-spacing:.04em;line-height:1}
.akh-lang-b svg{width:19px;height:19px}
.akh-lang-b:hover,.akh-lang-b[aria-expanded=true]{color:var(--v2-deep)}
.akh-lang-l{position:absolute;top:calc(100% + 10px);inset-inline-end:0;z-index:3;min-width:180px;padding:6px;background:#fff;
  border:1px solid var(--v2-line);border-radius:12px;box-shadow:0 16px 36px -12px rgba(11,79,98,.35)}
.akh-lang-l a{display:block;padding:8px 12px;border-radius:8px;white-space:nowrap}
.akh-lang-l a:hover{background:var(--v2-ice);color:var(--v2-deep)}

/* the map window (a modal dialog: Esc and the close button close it, so does a click on the dimmed page around it) */
.akh-map-d{width:min(880px,calc(100vw - 32px));max-width:none;height:min(600px,calc(100vh - 32px));max-height:none;margin:auto;padding:0;
  border:0;border-radius:14px;background:#fff;color:var(--v2-ink);box-shadow:0 30px 80px -20px rgba(11,79,98,.5);overflow:hidden}
.akh-map-d::backdrop{background:rgba(29,29,27,.55)}
.akh-map-in{display:flex;flex-direction:column;height:100%}
.akh-map-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:10px;padding-inline:20px 10px;
  border-bottom:1px solid var(--v2-line)}
.akh-map-h{margin:0;color:var(--v2-deep);font-size:17px;font-weight:700}
.akh-map-x{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px}
.akh-map-x:hover{background:var(--v2-grey)}
.akh-map-f{display:block;flex:1 1 auto;width:100%;border:0}

.akh-nav{display:none}

/* THE PHONE'S DRAWER: nav#akh-nav from the start of the line (Arabic: from the right) under the header rows, over the dimmed page,
   which does not scroll under it. html.akh-drawer-open is set only by the menu button, which only the phone layout shows (the script
   closes the drawer when the window grows past the breakpoint), so the rules under it never meet the desktop ones. The drawer and the
   dimmed page hang from the sticky header (their containing block): they start at its bottom and take the rest of the window's height.
   The room of a classic scrollbar stays while the page is locked (a desktop window below the breakpoint), so the page under the
   dimmed layer keeps its width; only then - set on every page it would change the width the page has (ruling R27); overlay
   scrollbars (the phones) take no room either way. That room shows the background colour of the canvas (the page's; an image is
   not painted there), so meanwhile it is the colour of .akh-backdrop over white, rgba(29,29,27,.55) on #fff = #838382; everything
   else of the window is the header, the drawer or the backdrop then. In Arabic the drawer comes from the right, next to that room
   (the scrollbar stays on the right): white like the drawer there (ruling R30). */
html.akh-drawer-open{overflow:hidden;scrollbar-gutter:stable;background-color:#838382}
html[dir=rtl].akh-drawer-open{background-color:#fff}
.akh-backdrop{position:absolute;top:calc(100% + 1px);inset-inline:0;z-index:1;height:calc(100vh - 100% - 1px);height:calc(100dvh - 100% - 1px);
  background:rgba(29,29,27,.55)}
.akh-drawer-open .akh-nav{display:flex;flex-direction:column;position:absolute;top:calc(100% + 1px);inset-inline-start:0;z-index:2;
  width:min(400px,calc(100% - 48px));height:calc(100vh - 100% - 1px);height:calc(100dvh - 100% - 1px);overflow-y:auto;overscroll-behavior:contain;
  background:#fff;box-shadow:0 0 40px -12px rgba(11,79,98,.45);overflow-wrap:break-word}
/* the accordion: a row is a link and the arrow of its next level - the section (its .akh-pop), the branch (the column's own button
   opens its .akh-l2: .akh-open), the item (its .akh-l3); the levels step in from the start of the line */
.akh-drawer-open .akh-menu{flex:1 0 auto;padding-block-end:8px}
.akh-drawer-open :is(.akh-item,.akh-col,.akh-l2i){display:grid;grid-template-columns:minmax(0,1fr) 48px}
.akh-drawer-open .akh-item{border-bottom:1px solid var(--v2-line)}
.akh-drawer-open :is(.akh-pop,.akh-l2,.akh-l3){grid-column:1/-1}
.akh-drawer-open .akh-pop{padding-block-end:8px;background:var(--v2-grey)}
.akh-drawer-open .akh-top{display:flex;align-items:center;min-height:52px;padding-inline:20px 4px;font-size:16px;font-weight:600}
.akh-drawer-open :is(.akh-feat-i,.akh-col-h,.akh-list a){display:block;padding-block:12px;padding-inline:32px 4px;font-size:15px}
.akh-drawer-open :is(.akh-feat-i,.akh-col-h){color:var(--v2-deep);font-weight:700}
.akh-drawer-open .akh-feat{border-bottom:1px solid var(--v2-line)}
.akh-drawer-open .akh-col:not(.akh-open)>.akh-l2{display:none}
.akh-drawer-open .akh-l2i>a{padding-block:10px;padding-inline:44px 4px}
.akh-drawer-open .akh-l3{padding-block-end:6px}
.akh-drawer-open .akh-l3 a{display:block;padding-block:8px;padding-inline:56px 16px;color:var(--v2-ink2);font-size:13.5px}
.akh-drawer-open .akh-all{display:none}                     /* the row's own link is the section's page */
.akh-drawer-open :is(.akh-nav [aria-current=page],.akh-item.akh-cur>.akh-top){color:var(--v2-deep);font-weight:700}
.akh-drawer-open :is(.akh-tg,.akh-col>button,.akh-tg3){display:flex;align-items:center;justify-content:center;min-height:44px;color:var(--v2-mute)}
.akh-drawer-open :is(.akh-tg,.akh-col>button,.akh-tg3)::before{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.akh-drawer-open :is(.akh-tg,.akh-col>button,.akh-tg3)[aria-expanded=true]{color:var(--v2-deep)}
.akh-drawer-open :is(.akh-tg,.akh-col>button,.akh-tg3)[aria-expanded=true]::before{transform:translateY(2px) rotate(-135deg)}
/* the bottom of the drawer: the socials, the mail and the map, always in sight */
.akh-drawer-foot{position:sticky;bottom:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:8px 12px;border-top:1px solid var(--v2-line);
  background:#fff}
.akh-drawer-foot .akh-ic{width:44px;height:44px}

@media (min-width:1160px){
.akh-bar:has(.akh-pop:not([hidden])){z-index:51}       /* a section's panel lies over the page (see the top of the file) */
.akh-row{display:flex;gap:24px;height:56px;padding-inline:32px}
.akh-search{margin:0 auto}
.akh-burger,.akh-drawer-foot,.akh-col>button{display:none}
.akh-tools>.akh-ic:not(.akh-tel){display:flex}
.akh-nav{display:block}

/* the row of sections: a link and its chevron button; the open one is underlined in yellow */
.akh-menu{display:flex;height:44px;max-width:1376px;margin-inline:auto;padding-inline:20px}
.akh-item{display:flex;flex:none;align-items:stretch}
.akh-top{display:flex;align-items:center;padding-inline:12px 2px;white-space:nowrap}
.akh-tg{display:flex;align-items:center;justify-content:center;width:20px;margin-inline-end:6px;color:var(--v2-mute)}
.akh-tg::before{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.akh-item.akh-on{box-shadow:inset 0 -3px 0 var(--v2-y)}
.akh-item.akh-on>.akh-tg::before{transform:translateY(2px) rotate(-135deg)}
.akh-item:hover>.akh-top,.akh-item.akh-on>.akh-top{color:var(--v2-deep)}
/* the section of the current page (the script marks it .akh-cur, and the page's own link aria-current) */
.akh-item.akh-cur>.akh-top{color:var(--v2-deep)}
.akh-item.akh-cur:not(.akh-on){box-shadow:inset 0 -2px 0 var(--v2-teal)}
.akh-pop a[aria-current=page]{color:var(--v2-deep);font-weight:700}

/* a panel: the whole width under the header, its content in the 1376px container; a simple list: under its item */
.akh-pop{position:absolute;top:100%;z-index:1;background:#fff;box-shadow:0 18px 40px -18px rgba(11,79,98,.35)}
.akh-item[data-kind=panel]>.akh-pop{inset-inline:0;padding-block:24px 20px;padding-inline:max(32px,calc((100% - 1376px)/2 + 32px));
  border-top:1px solid var(--v2-line);border-bottom:1px solid var(--v2-line)}
.akh-item[data-kind=list]{position:relative}
.akh-item[data-kind=list]>.akh-pop{inset-inline-start:0;width:max-content;min-width:220px;max-width:340px;padding:8px;
  border:1px solid var(--v2-line);border-radius:0 0 12px 12px}
.akh-item[data-kind=list]:nth-last-child(-n+2)>.akh-pop{inset-inline-start:auto;inset-inline-end:0}
.akh-list a{display:block;padding:8px 12px;border-radius:8px}
.akh-list a:hover{background:var(--v2-ice);color:var(--v2-deep)}

/* four columns with hairlines (Services: three, under its featured cards - the .akh-feat+.akh-cols rule below); the column head is the
   branch; the second level open under it */
.akh-feat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-block-end:20px}
.akh-feat-i{display:block;padding:12px 16px;border-radius:10px;background:var(--v2-ice);color:var(--v2-deep);font-weight:700}
.akh-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));row-gap:20px}
.akh-col{padding-inline:20px;border-inline-start:1px solid var(--v2-grey2)}
.akh-col:nth-child(4n+1){padding-inline-start:0;border-inline-start:0}
/* Services: its six groups in three columns under the three featured cards, two rows */
.akh-feat+.akh-cols{grid-template-columns:repeat(3,minmax(0,1fr))}
.akh-feat+.akh-cols>.akh-col:nth-child(4n+1){padding-inline-start:20px;border-inline-start:1px solid var(--v2-grey2)}
.akh-feat+.akh-cols>.akh-col:nth-child(3n+1){padding-inline-start:0;border-inline-start:0}
.akh-col-h{display:block;margin-block-end:10px;color:var(--v2-deep);font-size:15px;font-weight:700;line-height:1.3}
.akh-col-h:hover{text-decoration:underline;text-decoration-color:var(--v2-y);text-decoration-thickness:2px;text-underline-offset:3px}
.akh-l2i{position:relative;display:flex;align-items:flex-start;margin-inline:-10px;border-radius:8px}
.akh-l2i>a{flex:1 1 auto;min-width:0;padding-block:7px;padding-inline:10px 4px}
.akh-tg3{display:flex;flex:none;align-self:stretch;align-items:center;justify-content:center;width:26px;color:var(--v2-mute)}
.akh-tg3::before{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);opacity:.55}
[dir=rtl] .akh-tg3::before{transform:rotate(135deg)}
.akh-l2i:hover,.akh-l2i.akh-on{background:var(--v2-ice)}
.akh-l2i:hover>a,.akh-l2i.akh-on>a{color:var(--v2-deep)}
.akh-l2i:hover>.akh-tg3,.akh-l2i.akh-on>.akh-tg3{color:var(--v2-teal)}
.akh-l2i:hover>.akh-tg3::before,.akh-l2i.akh-on>.akh-tg3::before{opacity:1}

/* the third level: a 300px card beside its item, over the next column, towards the end of the line; .akh-flip (the script, when the card
   would leave the window) puts it on the other side; the script also cuts it to the window's height (then it scrolls inside) */
.akh-l3{position:absolute;top:-8px;inset-inline-start:calc(100% + 8px);z-index:2;width:300px;padding:10px;overflow-y:auto;background:#fff;
  border:1px solid var(--v2-line);border-radius:12px;box-shadow:0 16px 36px -12px rgba(11,79,98,.35)}
.akh-l3.akh-flip{inset-inline-start:auto;inset-inline-end:calc(100% + 8px)}
.akh-l3::before{content:attr(data-t) / "";display:block;padding:4px 10px 8px;color:var(--v2-mute);font-family:var(--v2-mono);font-size:11px;
  font-weight:600;letter-spacing:.06em;line-height:1.3;text-transform:uppercase}
.akh-l3 a{display:block;padding:6px 10px;border-radius:6px;color:var(--v2-ink);font-size:13.5px}
.akh-l3 a:hover{background:var(--v2-grey);color:var(--v2-deep)}

.akh-all{display:inline-flex;align-items:center;gap:8px;margin-block-start:18px;padding-block-end:2px;border-bottom:2px solid var(--v2-y);
  color:var(--v2-deep);font-weight:700}
.akh-all::after{content:"\2192" / ""}
[dir=rtl] .akh-all::after{content:"\2190" / ""}
}
