/* RIVI HOME header: logo, menu, catalog button, language switch, phone menu. One file for every page type and language (12.11.2026).
   Older header rules were taken out of v18.css, editorial.css, header-direction.css, chrome.css, editorial-approved.css, kz-scenes.css,
   home-bundle.css and lang-switch.css, so this file is the only place to change the header. «Купить» mega-menu content stays in chrome.css.
   Classes set by scripts: is-compact (page scrolled, v18.js / home-shell.js), ed-header-hidden (scrolling down, header-direction.js),
   kz-solid (dark banner passed, kz-scenes.js), hd-fit-1..4 (row too narrow, lang-switch.js), is-open / is-js (language list). */

/* 1. Tokens. The dark-banner state and narrow screens only change these. */
.editorial-4,
.editorial-4 .ed-header .ed-submenu,
.editorial-4 .rv-lang__list,
.editorial-4 .ed-mobile-menu{
  --hd-ink:#0d2430;--hd-ink-2:#3d5664;--hd-muted:#5f737d;--hd-sea:#174f67;--hd-gold-ink:#86663a;--hd-gold-soft:#e2c08c;
  --hd-line:rgba(13,36,48,.09);--hd-line-2:rgba(13,36,48,.16);--hd-hover:rgba(13,36,48,.055);--hd-press:rgba(13,36,48,.09);--hd-focus:#174f67;
  --hd-glass:rgba(255,255,255,.7);--hd-glass-pop:rgba(255,255,255,.94);--hd-ctrl-bg:rgba(255,255,255,.55);--hd-ctrl-bg-hover:#fff;
  --hd-cta-bg:#0d2430;--hd-cta-bg-hover:#174f67;--hd-cta-fg:#fff;--hd-cta-arrow:#e2c08c;--hd-logo-filter:none;
}
.editorial-4{
  --hd-font:Switzer,Manrope,"Segoe UI",Arial,sans-serif;--hd-track:.005em;
  --hd-blur:saturate(170%) blur(18px);--hd-ease:cubic-bezier(.2,.8,.2,1);
  --hd-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 12px 32px -16px rgba(13,36,48,.3),0 2px 6px -3px rgba(13,36,48,.08);
  --hd-shadow-pop:0 28px 64px -28px rgba(13,36,48,.45),0 4px 14px -6px rgba(13,36,48,.1);
  --hd-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E");
  --hd-max:1320px;--hd-gutter:24px;--hd-admin:0px;
  --hd-top:12px;--hd-drop:0px;--hd-h:76px;--hd-r:22px;--hd-pad-s:24px;--hd-pad-e:16px;--hd-gap:24px;
  --hd-ctrl:44px;--hd-logo:188px;--hd-item-x:13px;--hd-item-fs:14.5px;
}
html[lang|=ar] .editorial-4,html[lang|=fa] .editorial-4{--hd-font:Switzer,Manrope,"Segoe UI",Tahoma,"Geeza Pro","Noto Sans Arabic",sans-serif;--hd-track:0;--hd-item-fs:15px}
body.admin-bar .editorial-4{--hd-admin:32px}
@media(max-width:1240px){.editorial-4{--hd-gutter:20px;--hd-top:10px;--hd-drop:0px;--hd-h:68px;--hd-r:20px;--hd-pad-s:22px;--hd-pad-e:12px;--hd-gap:16px;--hd-logo:170px}}
@media(max-width:782px){body.admin-bar .editorial-4{--hd-admin:46px}}
@media(max-width:600px){.editorial-4{--hd-gutter:10px;--hd-top:8px;--hd-drop:0px;--hd-h:64px;--hd-r:18px;--hd-pad-s:16px;--hd-pad-e:10px;--hd-gap:10px;--hd-logo:142px}}
@media(max-width:359px){.editorial-4{--hd-logo:118px;--hd-pad-s:12px;--hd-pad-e:8px;--hd-gap:6px}}

/* 2. The bar: floats over the page, glass on a layer behind it (so the drop-down panels can blur the page too). */
.editorial-4 .ed-header{
  position:fixed;z-index:90;top:calc(var(--hd-top) + var(--hd-admin));
  left:max(var(--hd-gutter),calc((100vw - var(--hd-max))/2));right:max(var(--hd-gutter),calc((100vw - var(--hd-max))/2));
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;column-gap:var(--hd-gap);
  box-sizing:border-box;width:auto;height:var(--hd-h);min-height:0;margin:0;padding:0 var(--hd-pad-e) 0 var(--hd-pad-s);
  border:0;border-radius:var(--hd-r);background:none;box-shadow:none;color:var(--hd-ink);font-family:var(--hd-font);
  isolation:isolate;visibility:visible;transform:translate3d(0,var(--hd-y,0px),0);
  transition:transform .5s var(--hd-ease),visibility 0s;
}
[dir=rtl] .editorial-4 .ed-header{padding:0 var(--hd-pad-s) 0 var(--hd-pad-e)}
.editorial-4 .ed-header::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
  background:var(--hd-glass);-webkit-backdrop-filter:var(--hd-blur);backdrop-filter:var(--hd-blur);
  border:1px solid var(--hd-line);box-shadow:var(--hd-shadow);
  transition:background-color .4s ease,border-color .4s ease,box-shadow .4s ease;
}
/* Small air above the bar (Kaan 12.11: 8–14 px on a computer, less on a phone). --hd-drop can lower it at the top of the page; now 0. */
.editorial-4 .ed-header:not(.is-compact){--hd-y:var(--hd-drop)}
.editorial-4 .ed-header.ed-header-hidden{--hd-y:calc(-100% - var(--hd-top) - var(--hd-admin) - 12px);visibility:hidden;pointer-events:none;transition:transform .32s var(--hd-ease),visibility 0s linear .32s}
/* Home banner (light sky): lighter glass until the page scrolls. */
.home .editorial-4 .ed-header:not(.is-compact){--hd-glass:rgba(255,255,255,.5);--hd-line:rgba(255,255,255,.65)}
/* Dark banner (citizenship and other kz pages) until it is passed: dark glass, white text and logo. */
body:has(.kz-nv) .editorial-4 .ed-header:not(.kz-solid){
  --hd-ink:#fff;--hd-hover:rgba(255,255,255,.12);--hd-press:rgba(255,255,255,.18);--hd-line:rgba(255,255,255,.16);--hd-line-2:rgba(255,255,255,.32);--hd-focus:#fff;
  --hd-glass:rgba(8,27,36,.28);--hd-ctrl-bg:rgba(255,255,255,.08);--hd-ctrl-bg-hover:rgba(255,255,255,.16);
  --hd-cta-bg:#fff;--hd-cta-bg-hover:#e8f3f7;--hd-cta-fg:#0d2430;--hd-cta-arrow:#86663a;--hd-logo-filter:brightness(0) invert(1);
  --hd-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 16px 36px -20px rgba(0,0,0,.45);
}
/* No blur support, or the visitor asked for less transparency: solid colours. */
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .editorial-4,.editorial-4 .ed-header .ed-submenu,.editorial-4 .rv-lang__list,.editorial-4 .ed-mobile-menu{--hd-glass:rgba(255,255,255,.97);--hd-glass-pop:#fff}
  .home .editorial-4 .ed-header:not(.is-compact){--hd-glass:rgba(255,255,255,.92)}
  body:has(.kz-nv) .editorial-4 .ed-header:not(.kz-solid){--hd-glass:rgba(13,36,48,.88)}
}
@media(prefers-reduced-transparency:reduce){
  .editorial-4,.editorial-4 .ed-header .ed-submenu,.editorial-4 .rv-lang__list,.editorial-4 .ed-mobile-menu{--hd-glass:#fff;--hd-glass-pop:#fff}
  .home .editorial-4 .ed-header:not(.is-compact){--hd-glass:#fff}
  body:has(.kz-nv) .editorial-4 .ed-header:not(.kz-solid){--hd-glass:#0d2430}
}

/* 3. Logo */
.editorial-4 .ed-header .brand{grid-column:1;justify-self:start;display:flex;align-items:center;box-sizing:border-box;width:var(--hd-logo);min-width:0;min-height:44px;margin:0;padding:0;border-radius:10px;color:inherit;transform:none}
.editorial-4 .ed-header .rivi-logo-crop{position:static;display:block;flex:none;width:100%;height:auto;overflow:visible;transform:none}
.editorial-4 .ed-header .rivi-logo-crop img{position:static;display:block;width:100%;max-width:100%;height:auto;filter:var(--hd-logo-filter);transition:filter .4s ease}
.editorial-4 .ed-header .brand:focus-visible{outline:2px solid var(--hd-focus);outline-offset:6px}

/* 4. Menu: grouped in the middle, equal steps between the words. */
.editorial-4 .ed-header .ed-nav{grid-column:2;justify-self:center;position:static;display:flex;align-items:center;gap:2px;min-width:0;margin:0;padding:0}
.editorial-4 .ed-header .ed-nav-item{position:relative;display:flex;align-items:center;margin:0;padding:0;border-radius:999px;background:none}
.editorial-4 .ed-header .ed-nav-item:has(>.is-mega){position:static}
.editorial-4 .ed-header .ed-nav-item>a,
.editorial-4 .ed-header .ed-nav-parent{
  display:inline-flex;align-items:center;gap:7px;box-sizing:border-box;height:40px;min-height:0;min-width:0;margin:0;padding:0 var(--hd-item-x);
  border:0;border-radius:999px;background:transparent;color:var(--hd-ink);
  font:500 var(--hd-item-fs)/1 var(--hd-font);letter-spacing:var(--hd-track);text-transform:none;text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:background-color .2s ease,color .2s ease;
}
.editorial-4 .ed-header .ed-nav-item>a::after{content:none}
.editorial-4 .ed-header .ed-nav-parent>span:first-child{display:inline;font:inherit;letter-spacing:inherit;transform:none}
.editorial-4 .ed-header .ed-nav-parent>span:last-child,
.editorial-4 .ed-mobile-menu .ed-nav-parent>span:last-child{display:block;flex:none;width:6px;height:6px;margin-top:-3px;border:0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;font-size:0;opacity:.55;transform:rotate(45deg);transition:transform .25s var(--hd-ease),margin .25s var(--hd-ease),opacity .2s}
.editorial-4 .ed-header .ed-nav-parent[aria-expanded=true]>span:last-child,
.editorial-4 .ed-mobile-menu .ed-nav-parent[aria-expanded=true]>span:last-child{margin-top:3px;opacity:.9;transform:rotate(225deg)}
.editorial-4 .ed-header .ed-nav-item>a:hover,
.editorial-4 .ed-header .ed-nav-parent:hover,
.editorial-4 .ed-header .ed-nav-item>a[aria-current=page]{background:var(--hd-hover)}
.editorial-4 .ed-header .ed-nav-parent[aria-expanded=true]{background:var(--hd-press)}
.editorial-4 .ed-header .ed-nav-item>a:focus-visible,
.editorial-4 .ed-header .ed-nav-parent:focus-visible{outline:2px solid var(--hd-focus);outline-offset:2px}

/* 5. Drop-down panels (glass). «Купить» (RU) opens the full-width mega menu; its content is styled in chrome.css. */
.editorial-4 .ed-header .ed-submenu{
  position:absolute;z-index:2;top:calc(100% + (var(--hd-h) - 40px)/2 + 10px);inset-inline-start:-6px;
  box-sizing:border-box;width:320px;max-width:calc(100vw - 48px);margin:0;padding:8px;
  border:1px solid var(--hd-line);border-radius:20px;background:var(--hd-glass-pop);
  -webkit-backdrop-filter:var(--hd-blur);backdrop-filter:var(--hd-blur);box-shadow:var(--hd-shadow-pop);
  color:var(--hd-ink);text-align:start;
}
.editorial-4 .ed-header .ed-submenu::before{content:"";position:absolute;inset-inline:0;bottom:100%;height:calc((var(--hd-h) - 40px)/2 + 14px)}
.editorial-4 .ed-header .ed-submenu:is(.en-nav-wide,.tr-nav-wide):not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:4px;width:min(600px,calc(100vw - 48px))}
.editorial-4 .ed-header .ed-submenu.is-mega{inset-inline:0;top:calc(100% + 10px);width:auto;max-width:none;padding:0;border-radius:26px;overflow:hidden}
.editorial-4 .ed-header .ed-submenu.is-mega::before{height:12px}
.editorial-4 .ed-header .ed-submenu .ed-mega-link{position:relative}
[dir=rtl] .editorial-4 .ed-header .ed-submenu .ed-mega-link{padding:7px 10px 7px 36px}
[dir=rtl] .editorial-4 .ed-header .ed-submenu .ed-mega-link:after{right:auto;left:14px;rotate:180deg}
[dir=rtl] .editorial-4 .ed-header .ed-submenu .ed-mega-link:is(:hover,:focus-visible):after{translate:-6px 0}
[dir=rtl] .editorial-4 .ed-header .ed-submenu .ed-mega-link:is(:hover,:focus-visible) :is(b,small){translate:-6px 0}

/* 6. Right side: catalog button, language, menu button. One height, one shape. */
.editorial-4 .ed-header .header-actions{grid-column:3;justify-self:end;display:flex;align-items:center;gap:8px;min-width:0;margin:0}
.editorial-4 .ed-header .ed-header-catalog{
  display:inline-flex;align-items:center;gap:10px;box-sizing:border-box;height:var(--hd-ctrl);min-height:0;margin:0;padding:0 16px 0 20px;
  border:0;border-radius:999px;background:var(--hd-cta-bg);color:var(--hd-cta-fg);
  font:500 14px/1 var(--hd-font);letter-spacing:var(--hd-track);white-space:nowrap;text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 6px 16px -8px rgba(13,36,48,.55);
  transition:background-color .25s ease,color .25s ease,box-shadow .25s ease,transform .25s var(--hd-ease);
}
[dir=rtl] .editorial-4 .ed-header .ed-header-catalog{padding:0 20px 0 16px}
.editorial-4 .ed-header .ed-header-catalog::after,
.editorial-4 .ed-mobile-menu .ed-mobile-catalog::after{content:"";display:block;flex:none;width:16px;height:16px;background:var(--hd-cta-arrow);-webkit-mask:var(--hd-arrow) center/16px no-repeat;mask:var(--hd-arrow) center/16px no-repeat;transform:none;transition:translate .3s var(--hd-ease)}
[dir=rtl] .editorial-4 :is(.ed-header .ed-header-catalog,.ed-mobile-menu .ed-mobile-catalog)::after{scale:-1 1}
.editorial-4 .ed-header .ed-header-catalog:hover{background:var(--hd-cta-bg-hover);transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 10px 22px -10px rgba(13,36,48,.6)}
.editorial-4 :is(.ed-header .ed-header-catalog,.ed-mobile-menu .ed-mobile-catalog):is(:hover,:focus-visible)::after{translate:3px 0}
[dir=rtl] .editorial-4 :is(.ed-header .ed-header-catalog,.ed-mobile-menu .ed-mobile-catalog):is(:hover,:focus-visible)::after{translate:-3px 0}
.editorial-4 .ed-header .ed-header-catalog:active{transform:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}
.editorial-4 .ed-header .ed-header-catalog:focus-visible{outline:2px solid var(--hd-focus);outline-offset:3px}

.editorial-4 .ed-header .ed-menu-button{
  display:none;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:var(--hd-ctrl);height:var(--hd-ctrl);min-width:0;margin:0;padding:0;
  border:1px solid var(--hd-line-2);border-radius:999px;background:var(--hd-ctrl-bg);color:var(--hd-ink);cursor:pointer;
  transition:background-color .2s ease,border-color .2s ease;
}
.editorial-4 .ed-header .ed-menu-button svg{width:20px;height:20px}
.editorial-4 .ed-header .ed-menu-button path{transition:d .25s var(--hd-ease)}
.editorial-4 .ed-header .ed-menu-button[aria-expanded=true] path{d:path('M6 6 18 18M12 12h0M6 18 18 6')}
.editorial-4 .ed-header .ed-menu-button:hover,.editorial-4 .ed-header .ed-menu-button[aria-expanded=true]{background:var(--hd-ctrl-bg-hover);border-color:var(--hd-line-2)}
.editorial-4 .ed-header .ed-menu-button:focus-visible{outline:2px solid var(--hd-focus);outline-offset:3px}
.editorial-4 .ed-header .ed-menu-button{transition:background-color .3s ease,border-color .3s ease,color .3s ease}
/* Burger -> cross (Kaan 12.11): three bars (assets/js/mobile-menu.js) turn into a cross with a clockwise spin on opening,
   and spin back counter-clockwise, faster, on closing. Open state is dark like the catalog button. Old svg stays as fallback. */
.editorial-4 .ed-header .ed-menu-button .mb-ic{position:relative;display:block;width:20px;height:14px;transform:rotate(0);transition:transform .3s cubic-bezier(.4,0,.2,1)}
.editorial-4 .ed-header .ed-menu-button .mb-ic i{position:absolute;left:0;right:0;display:block;height:1.6px;border-radius:2px;background:currentColor;transform-origin:50% 50%;transition:top .3s cubic-bezier(.4,0,.2,1),transform .3s cubic-bezier(.4,0,.2,1),opacity .2s ease}
.editorial-4 .ed-header .ed-menu-button .mb-ic i:nth-child(1){top:0}
.editorial-4 .ed-header .ed-menu-button .mb-ic i:nth-child(2){top:6.2px}
.editorial-4 .ed-header .ed-menu-button .mb-ic i:nth-child(3){top:12.4px}
.editorial-4 .ed-header .ed-menu-button[aria-expanded=true]{background:var(--hd-cta-bg);border-color:var(--hd-cta-bg);color:var(--hd-cta-fg)}
.editorial-4 .ed-header .ed-menu-button[aria-expanded=true] .mb-ic{transform:rotate(180deg);transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.editorial-4 .ed-header .ed-menu-button[aria-expanded=true] .mb-ic i{transition:top .35s cubic-bezier(.2,.8,.2,1),transform .45s cubic-bezier(.2,.8,.2,1) .08s,opacity .2s ease}
.editorial-4 .ed-header .ed-menu-button[aria-expanded=true] .mb-ic i:nth-child(1){top:6.2px;transform:rotate(45deg)}
.editorial-4 .ed-header .ed-menu-button[aria-expanded=true] .mb-ic i:nth-child(2){opacity:0;transform:scaleX(0)}
.editorial-4 .ed-header .ed-menu-button[aria-expanded=true] .mb-ic i:nth-child(3){top:6.2px;transform:rotate(-45deg)}
@media(hover:hover){.editorial-4 .ed-header .ed-menu-button[aria-expanded=true]:hover{background:var(--hd-cta-bg-hover);border-color:var(--hd-cta-bg-hover)}}
@media(prefers-reduced-motion:reduce){.editorial-4 .ed-header .ed-menu-button .mb-ic,.editorial-4 .ed-header .ed-menu-button .mb-ic i,.editorial-4 .ed-header .ed-menu-button[aria-expanded=true] .mb-ic,.editorial-4 .ed-header .ed-menu-button[aria-expanded=true] .mb-ic i{transition:none}.editorial-4 .ed-header .ed-menu-button[aria-expanded=true] .mb-ic{transform:none}}

/* Language switch */
.editorial-4 .rv-lang{position:relative;flex:none;font-family:var(--hd-font)}
.rv-lang__sprite{position:absolute;width:0;height:0;overflow:hidden}
.editorial-4 .rv-lang__btn{
  display:inline-flex;align-items:center;gap:7px;box-sizing:border-box;height:var(--hd-ctrl);margin:0;padding:0 12px 0 11px;
  border:1px solid var(--hd-line-2);border-radius:999px;background:var(--hd-ctrl-bg);color:var(--hd-ink);
  font:600 13px/1 var(--hd-font);letter-spacing:.06em;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:background-color .2s ease,border-color .2s ease;
}
.editorial-4 .rv-lang__btn:hover,.editorial-4 .rv-lang.is-open .rv-lang__btn{background:var(--hd-ctrl-bg-hover)}
.editorial-4 .rv-lang__btn:focus-visible,.editorial-4 .rv-lang__item:focus-visible{outline:2px solid var(--hd-focus);outline-offset:2px}
.editorial-4 .rv-lang__flag{display:block;flex:none;width:20px;height:20px;border-radius:50%}
.editorial-4 .rv-lang__chev{flex:none;width:12px;height:12px;opacity:.6;transition:transform .3s var(--hd-ease),opacity .2s}
.editorial-4 .rv-lang.is-open .rv-lang__chev{opacity:1;transform:rotate(180deg)}
.editorial-4 .rv-lang__list{
  position:absolute;z-index:3;top:calc(100% + (var(--hd-h) - var(--hd-ctrl))/2 + 10px);inset-inline-end:-6px;
  box-sizing:border-box;min-width:208px;margin:0;padding:6px;list-style:none;
  border:1px solid var(--hd-line);border-radius:18px;background:var(--hd-glass-pop);
  -webkit-backdrop-filter:var(--hd-blur);backdrop-filter:var(--hd-blur);box-shadow:var(--hd-shadow-pop);
  opacity:0;visibility:hidden;transform:translateY(-6px);transform-origin:top right;
  transition:opacity .2s ease,transform .3s var(--hd-ease),visibility 0s linear .3s;
}
.editorial-4 .rv-lang.is-open .rv-lang__list,
.editorial-4 .rv-lang:not(.is-js):hover .rv-lang__list,
.editorial-4 .rv-lang:not(.is-js):focus-within .rv-lang__list{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.editorial-4 .rv-lang__list li{margin:0;padding:0;list-style:none}
.editorial-4 :is(.rv-lang__item,.rv-lang__soon){display:flex;align-items:center;gap:12px;height:46px;padding:0 14px 0 12px;border-radius:12px;color:var(--hd-ink);font:500 15px/1 var(--hd-font);text-decoration:none;transition:background-color .2s ease}
.editorial-4 .rv-lang__item:hover{background:var(--hd-hover)}
.editorial-4 .rv-lang__item.is-current{background:var(--hd-press)}
.editorial-4 .rv-lang__name{flex:1;min-width:0;text-align:start}
.editorial-4 .rv-lang__name[dir=rtl]{font-family:"Segoe UI",Tahoma,"Geeza Pro",sans-serif;font-size:16px}
.editorial-4 .rv-lang__abbr{font-size:12px;font-weight:600;letter-spacing:.1em;color:var(--hd-muted)}
.editorial-4 .rv-lang__check{flex:none;color:var(--hd-gold-ink)}
.editorial-4 .rv-lang__soon{color:var(--hd-muted);cursor:default}
.editorial-4 .rv-lang__soon .rv-lang__flag{opacity:.55}
.editorial-4 .rv-lang__soon .rv-lang__abbr{font-weight:500;letter-spacing:.02em}

/* 7. Narrower screens. Below 1241 px (editorial.js uses the same edge) the menu moves into the menu button. */
@media(max-width:1240px){
  .editorial-4 .ed-header{grid-template-columns:1fr auto}
  .editorial-4 .ed-header .ed-nav{display:none}
  .editorial-4 .ed-header .header-actions{grid-column:2}
  .editorial-4 .ed-header .ed-menu-button{display:inline-flex}
}
@media(max-width:600px){
  .editorial-4 .ed-header .ed-header-catalog{display:none}
  .editorial-4 .ed-header .header-actions{gap:6px}
  .editorial-4 .rv-lang__btn{gap:6px;padding:0 10px 0 9px}
  .editorial-4 .rv-lang__list{min-width:196px}
}
/* lang-switch.js adds a step when logo, menu and buttons still do not fit in one row (long English, Ukrainian, Arabic words). */
@media(min-width:1241px){
  .editorial-4 .ed-header.hd-fit-1{--hd-item-x:10px}
  .editorial-4 .ed-header.hd-fit-1 .rv-lang__code{display:none}
  .editorial-4 .ed-header.hd-fit-1 .rv-lang__btn{padding:0 10px}
  .editorial-4 .ed-header.hd-fit-2{--hd-item-x:8px;--hd-item-fs:14px;--hd-logo:160px;--hd-gap:16px}
  .editorial-4 .ed-header.hd-fit-3{--hd-item-x:6px;--hd-item-fs:13.5px;--hd-gap:12px}
  .editorial-4 .ed-header.hd-fit-3 .ed-header-catalog{padding:0 14px 0 16px;gap:8px}
  .editorial-4 .ed-header.hd-fit-4{grid-template-columns:1fr auto}
  .editorial-4 .ed-header.hd-fit-4 .ed-nav{display:none}
  .editorial-4 .ed-header.hd-fit-4 .header-actions{grid-column:2}
  .editorial-4 .ed-header.hd-fit-4 .ed-menu-button{display:inline-flex}
  .editorial-4 .ed-header:not(.hd-fit-4)+.ed-mobile-menu{display:none}
}
@media(max-width:1240px){
  .editorial-4 .ed-header.hd-fit-1 :is(.rv-lang__code,.rv-lang__chev){display:none}
  .editorial-4 .ed-header.hd-fit-1 .rv-lang__btn{width:var(--hd-ctrl);padding:0;justify-content:center}
  .editorial-4 .ed-header.hd-fit-2 .ed-header-catalog{display:none}
  .editorial-4 .ed-header:is(.hd-fit-3,.hd-fit-4){--hd-logo:112px}
}

/* 8. Phone and tablet menu (Kaan 12.11.2026): glass panel under the bar. Sections and links are rows — icon, title, short description,
   arrow — with hairlines; a section opens its links on tap (icons and descriptions: assets/js/mobile-menu.js). Below: WhatsApp and Telegram as the main pulsing buttons, call and e-mail as quieter tiles. */
.editorial-4 .ed-mobile-menu{
  position:fixed;z-index:95;top:calc(var(--hd-top) + var(--hd-admin) + var(--hd-h) + 8px);
  left:max(var(--hd-gutter),calc((100vw - var(--hd-max))/2));right:max(var(--hd-gutter),calc((100vw - var(--hd-max))/2));
  display:block;box-sizing:border-box;width:auto;max-width:none;
  max-height:calc(100dvh - var(--hd-top) - var(--hd-admin) - var(--hd-h) - 18px);overflow-y:auto;overscroll-behavior:contain;
  margin:0;padding:16px 16px max(18px,env(safe-area-inset-bottom));
  border:1px solid var(--hd-line);border-radius:var(--hd-r);background:var(--hd-glass-pop);
  -webkit-backdrop-filter:var(--hd-blur);backdrop-filter:var(--hd-blur);box-shadow:var(--hd-shadow-pop);
  color:var(--hd-ink);font-family:var(--hd-font);text-align:start;
  transition:opacity .3s ease,transform .35s var(--hd-ease);
}
.editorial-4 .ed-mobile-menu[hidden]{display:none}
@starting-style{.editorial-4 .ed-mobile-menu:not([hidden]){opacity:0;transform:translateY(-8px)}}
.editorial-4 .ed-header:not(.is-compact)+.ed-mobile-menu{margin-top:var(--hd-drop)}
@media(min-width:601px){.editorial-4 .ed-mobile-menu{left:auto;width:min(460px,calc(100vw - 2*var(--hd-gutter)))}[dir=rtl] .editorial-4 .ed-mobile-menu{right:auto;left:max(var(--hd-gutter),calc((100vw - var(--hd-max))/2))}}
@keyframes hdRowIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.editorial-4 .ed-mobile-menu:not([hidden])>*{animation:hdRowIn .42s var(--hd-ease) backwards}
.editorial-4 .ed-mobile-menu>:nth-child(2){animation-delay:.04s}.editorial-4 .ed-mobile-menu>:nth-child(3){animation-delay:.08s}
.editorial-4 .ed-mobile-menu>:nth-child(4){animation-delay:.12s}.editorial-4 .ed-mobile-menu>:nth-child(n+5){animation-delay:.16s}

/* Catalog: small calm outline pill (Kaan 12.11: not big, not loud). */
.editorial-4 .ed-mobile-menu .ed-mobile-catalog{
  display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;width:auto;height:36px;min-height:0;margin:0 0 10px;padding:0 12px 0 14px;
  border:1px solid var(--hd-line-2);border-radius:999px;background:transparent;color:var(--hd-ink);font:500 13.5px/1 var(--hd-font);letter-spacing:var(--hd-track);text-decoration:none;
  box-shadow:none;transform:none;
}
[dir=rtl] .editorial-4 .ed-mobile-menu .ed-mobile-catalog{padding:0 14px 0 12px}
.editorial-4 .ed-mobile-menu .ed-mobile-catalog::after{width:14px;height:14px;background:var(--hd-gold-ink);-webkit-mask-size:14px;mask-size:14px}
.editorial-4 .ed-mobile-menu .ed-mobile-catalog:hover{background:var(--hd-hover);border-color:var(--hd-ink);transform:none;box-shadow:none}
.editorial-4 .ed-mobile-menu .ed-mobile-catalog:focus-visible{outline:2px solid var(--hd-focus);outline-offset:3px}

/* Sections: rows like the links (icon, title, description, chevron); a tap opens the section's links below it. */
.editorial-4 .ed-mobile-menu .ed-nav-item{position:static;display:block;margin:0;padding:0;border:0;border-radius:0;background:none}
.editorial-4 .ed-mobile-menu .ed-nav-item[hidden]{display:none}
.editorial-4 .ed-mobile-menu .ed-nav-item+.ed-nav-item{box-shadow:inset 0 1px 0 var(--hd-line)}
.editorial-4 .ed-mobile-menu :is(.ed-nav-item>a,button.ed-nav-parent){
  display:grid;grid-template-columns:42px 1fr 16px;align-items:center;column-gap:14px;box-sizing:border-box;width:100%;min-height:68px;margin:0;padding:12px 6px;
  border:0;border-radius:0;background:none;color:var(--hd-ink);font:500 16px/1.25 var(--hd-font);letter-spacing:var(--hd-track);
  text-align:start;text-transform:none;text-decoration:none;white-space:normal;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .2s ease;
}
.editorial-4 .ed-mobile-menu :is(.ed-nav-item>a,button.ed-nav-parent):active{background:linear-gradient(90deg,var(--hd-hover),transparent)}
.editorial-4 .ed-mobile-menu :is(.ed-nav-item>a,button.ed-nav-parent):focus-visible{outline:2px solid var(--hd-focus);outline-offset:-2px;border-radius:12px}
.editorial-4 .ed-mobile-menu button.ed-nav-parent .mm-chev{display:block;justify-self:end;width:7px;height:7px;margin:0 4px 3px;border:0;border-right:1.6px solid var(--hd-gold-ink);border-bottom:1.6px solid var(--hd-gold-ink);transform:rotate(45deg);transition:transform .3s var(--hd-ease),margin .3s var(--hd-ease)}
.editorial-4 .ed-mobile-menu button.ed-nav-parent[aria-expanded=true] .mm-chev{margin:3px 4px 0;transform:rotate(225deg)}
.editorial-4 .ed-mobile-menu button.ed-nav-parent[aria-expanded=true] .mm-ic{background:var(--hd-ink);color:var(--hd-gold-soft);box-shadow:none}
.editorial-4 .ed-mobile-menu .ed-submenu{
  position:static;display:block;box-sizing:border-box;width:auto;min-width:0;height:auto;margin:0 0 12px;padding:4px 10px 6px;overflow:hidden;
  border:1px solid var(--hd-line);border-radius:18px;background:rgba(13,36,48,.025);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;
  interpolate-size:allow-keywords;transition:height .32s var(--hd-ease),opacity .25s ease;
}
.editorial-4 .ed-mobile-menu .ed-submenu[hidden]{display:none}
@starting-style{.editorial-4 .ed-mobile-menu .ed-submenu:not([hidden]){height:0;opacity:0}}
.editorial-4 .ed-mobile-menu .ed-submenu-col{display:block}
/* Items without a page yet (plain text in the menu data) are not shown on the phone. */
.editorial-4 .ed-mobile-menu :is(.ed-submenu,.ed-submenu-col)>span{display:none}
.editorial-4 .ed-mobile-menu .ed-submenu .ed-submenu-label{display:flex;align-items:center;gap:8px;margin:14px 4px 2px;padding:0;color:var(--hd-muted);font:500 12.5px/1.3 var(--hd-font);letter-spacing:.01em;text-transform:none;animation:none}
.editorial-4 .ed-mobile-menu .ed-submenu .ed-submenu-label::before{content:"";width:14px;height:1px;background:var(--hd-gold-soft)}
.editorial-4 .ed-mobile-menu .ed-submenu .ed-submenu-label::after{content:none}
.editorial-4 .ed-mobile-menu .ed-submenu .ed-submenu-label[hidden]{display:none}
.editorial-4 .ed-mobile-menu .ed-submenu-col:first-child>.ed-submenu-label:first-child{margin-top:8px}

/* Links inside a section: smaller rows with a hairline between neighbours. */
.editorial-4 .ed-mobile-menu .ed-submenu a{
  display:grid;grid-template-columns:36px 1fr 14px;align-items:center;column-gap:12px;box-sizing:border-box;width:100%;min-height:60px;margin:0;padding:10px 4px;
  border:0;border-radius:0;background:none;color:var(--hd-ink);font:500 15px/1.25 var(--hd-font);letter-spacing:var(--hd-track);text-align:start;text-decoration:none;white-space:normal;
  -webkit-tap-highlight-color:transparent;transition:background-color .2s ease;
}
.editorial-4 .ed-mobile-menu .ed-submenu a:active{background:var(--hd-hover)}
.editorial-4 .ed-mobile-menu .ed-submenu a:focus-visible{outline:2px solid var(--hd-focus);outline-offset:-2px;border-radius:10px}
.editorial-4 .ed-mobile-menu .ed-submenu a.mm-row+a.mm-row{box-shadow:inset 0 1px 0 var(--hd-line)}
.editorial-4 .ed-mobile-menu .ed-submenu .mm-ic{width:36px;height:36px;border-radius:11px;background:#fff}
.editorial-4 .ed-mobile-menu .ed-submenu .mm-ic svg{width:18px;height:18px}
.editorial-4 .ed-mobile-menu .mm-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#f4f8fa,#e9f0f3);color:var(--hd-sea);box-shadow:inset 0 0 0 1px rgba(13,36,48,.06);transition:background-color .25s ease,color .25s ease}
.editorial-4 .ed-mobile-menu .mm-ic svg{width:20px;height:20px;display:block}
.editorial-4 .ed-mobile-menu .mm-tx{display:block;min-width:0}
.editorial-4 .ed-mobile-menu .mm-tx b{display:block;font-weight:600;color:var(--hd-ink)}
.editorial-4 .ed-mobile-menu .mm-tx small{display:block;margin-top:3px;font:400 13px/1.3 var(--hd-font);color:var(--hd-muted)}
.editorial-4 .ed-mobile-menu :is(.ed-submenu a,.ed-nav-item>a)::after{
  content:"";position:static;display:block;width:16px;height:16px;margin:0;background:var(--hd-gold-ink);opacity:.75;
  -webkit-mask:var(--hd-arrow) center/16px no-repeat;mask:var(--hd-arrow) center/16px no-repeat;transform:none;transition:translate .25s var(--hd-ease),opacity .2s;
}
.editorial-4 .ed-mobile-menu .ed-submenu a::after{width:14px;height:14px;-webkit-mask-size:14px;mask-size:14px}
[dir=rtl] .editorial-4 .ed-mobile-menu :is(.ed-submenu a,.ed-nav-item>a)::after{scale:-1 1}
.editorial-4 .ed-mobile-menu :is(.ed-submenu a,.ed-nav-item>a):is(:hover,:active)::after{opacity:1;translate:3px 0}
[dir=rtl] .editorial-4 .ed-mobile-menu :is(.ed-submenu a,.ed-nav-item>a):is(:hover,:active)::after{translate:-3px 0}

/* Contacts. */
.editorial-4 .ed-mobile-menu .mm-contact{margin:22px 0 0;padding:18px 0 0;border-top:1px solid var(--hd-line)}
.editorial-4 .ed-mobile-menu .mm-msg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.editorial-4 .ed-mobile-menu .mm-btn{
  --c:#25d366;--c2:#1ebe5a;--ring:37,211,102;
  position:relative;display:flex;align-items:center;justify-content:center;gap:10px;height:56px;border-radius:16px;
  background:linear-gradient(160deg,var(--c),var(--c2));color:#fff;font:600 15.5px/1 var(--hd-font);letter-spacing:.01em;text-decoration:none;
  box-shadow:0 12px 24px -12px rgba(var(--ring),.75),inset 0 1px 0 rgba(255,255,255,.25);-webkit-tap-highlight-color:transparent;
  transition:transform .25s var(--hd-ease),box-shadow .25s ease;isolation:isolate;
}
.editorial-4 .ed-mobile-menu .mm-btn--telegram{--c:#2aabee;--c2:#229ed9;--ring:34,158,217}
.editorial-4 .ed-mobile-menu .mm-btn::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;box-shadow:0 0 0 0 rgba(var(--ring),.55);animation:mmPulse 2.4s cubic-bezier(.2,.7,.3,1) infinite}
.editorial-4 .ed-mobile-menu .mm-btn--telegram::before{animation-delay:1.2s}
@keyframes mmPulse{0%{box-shadow:0 0 0 0 rgba(var(--ring),.45)}70%{box-shadow:0 0 0 10px rgba(var(--ring),0)}100%{box-shadow:0 0 0 0 rgba(var(--ring),0)}}
.editorial-4 .ed-mobile-menu .mm-btn__ic{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.2)}
.editorial-4 .ed-mobile-menu .mm-btn__ic svg{width:19px;height:19px;display:block}
.editorial-4 .ed-mobile-menu .mm-btn:active{transform:scale(.97)}
.editorial-4 .ed-mobile-menu .mm-btn:focus-visible{outline:2px solid var(--hd-focus);outline-offset:3px}
.editorial-4 .ed-mobile-menu .mm-alt{display:grid;grid-template-columns:1fr;gap:8px;margin-top:10px}
.editorial-4 .ed-mobile-menu .mm-alt__a{
  display:flex;align-items:center;gap:10px;min-width:0;min-height:58px;padding:10px 12px;border:1px solid var(--hd-line-2);border-radius:16px;
  background:#fff;color:var(--hd-ink);text-decoration:none;-webkit-tap-highlight-color:transparent;transition:border-color .2s ease,background-color .2s ease,transform .25s var(--hd-ease);
}
.editorial-4 .ed-mobile-menu .mm-alt__a:hover{border-color:var(--hd-ink)}
.editorial-4 .ed-mobile-menu .mm-alt__a:active{transform:scale(.98)}
.editorial-4 .ed-mobile-menu .mm-alt__a:focus-visible{outline:2px solid var(--hd-focus);outline-offset:2px}
.editorial-4 .ed-mobile-menu .mm-alt__ic{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--hd-ink);color:var(--hd-gold-soft)}
.editorial-4 .ed-mobile-menu .mm-alt__ic svg{width:17px;height:17px;display:block}
.editorial-4 .ed-mobile-menu .mm-alt__tx{display:block;min-width:0}
.editorial-4 .ed-mobile-menu .mm-alt__tx b{display:block;font:600 14.5px/1.2 var(--hd-font);color:var(--hd-ink)}
.editorial-4 .ed-mobile-menu .mm-alt__tx small{display:block;margin-top:3px;overflow:hidden;font:400 12.5px/1.2 var(--hd-font);color:var(--hd-muted);text-overflow:ellipsis;white-space:nowrap}
.editorial-4 .ed-mobile-menu .mm-alt__a::after{content:"";flex:none;width:16px;height:16px;margin-inline-start:auto;background:var(--hd-gold-ink);opacity:.75;-webkit-mask:var(--hd-arrow) center/16px no-repeat;mask:var(--hd-arrow) center/16px no-repeat}
[dir=rtl] .editorial-4 .ed-mobile-menu .mm-alt__a::after{scale:-1 1}
@media(max-width:359px){.editorial-4 .ed-mobile-menu{padding-inline:12px}.editorial-4 .ed-mobile-menu :is(.ed-nav-item>a,button.ed-nav-parent){grid-template-columns:36px 1fr 14px;column-gap:12px}.editorial-4 .ed-mobile-menu .mm-ic{width:36px;height:36px}.editorial-4 .ed-mobile-menu .mm-msg{gap:8px}}
@media(prefers-reduced-motion:reduce){.editorial-4 .ed-mobile-menu .mm-btn::before{animation:none}.editorial-4 .ed-mobile-menu:not([hidden])>*{animation:none}}

/* Language chips (not shown in the phone menu since 12.11; kept for other uses). */
.editorial-4 .rv-lang-chip{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px 0 8px;border:1px solid var(--hd-line-2);border-radius:999px;background:var(--hd-ctrl-bg);color:var(--hd-ink);font:600 12.5px/1 var(--hd-font);letter-spacing:.06em;text-decoration:none;transition:background-color .2s ease}
[dir=rtl] .editorial-4 .rv-lang-chip{padding:0 8px 0 12px}
.editorial-4 .rv-lang-chip .rv-lang__flag{width:18px;height:18px}
.editorial-4 .rv-lang-chip:hover{background:var(--hd-ctrl-bg-hover)}
.editorial-4 .rv-lang-chip.is-current{border-color:var(--hd-ink);background:var(--hd-ink);color:#fff}
.editorial-4 .rv-lang-chip:focus-visible{outline:2px solid var(--hd-focus);outline-offset:2px}
@media(max-width:359px){.editorial-4 .ed-mobile-menu{padding-inline:10px}.editorial-4 .ed-mobile-menu>:is(.ed-mc,.ed-text-link){font-size:13.5px;padding-inline:12px}}

/* Without JavaScript: the menu is a simple list under a button (header.php, noscript). */
.editorial-4 .ed-nojs-nav{position:fixed;z-index:91;top:calc(var(--hd-top) + var(--hd-drop) + var(--hd-h)/2 - 22px);inset-inline-end:calc(max(var(--hd-gutter),(100vw - var(--hd-max))/2) + var(--hd-pad-e));font-family:var(--hd-font)}
.editorial-4 .ed-nojs-nav>summary{display:flex;align-items:center;height:44px;padding:0 18px;border:1px solid var(--hd-line-2);border-radius:999px;background:#fff;color:var(--hd-ink);font-weight:500;list-style:none;cursor:pointer}
.editorial-4 .ed-nojs-nav>nav{position:absolute;inset-inline-end:0;top:54px;display:grid;width:min(320px,calc(100vw - 24px));max-height:70vh;overflow:auto;padding:12px;border:1px solid var(--hd-line);border-radius:18px;background:#fff;box-shadow:var(--hd-shadow-pop)}
.editorial-4 .ed-nojs-nav a{display:block;padding:10px 8px;color:var(--hd-ink);text-decoration:none}
.editorial-4 .ed-nojs-nav .ed-submenu-toggle{display:none}
.editorial-4 .ed-nojs-nav .ed-submenu[hidden]{display:block!important;position:static;padding-inline-start:12px}

@media(prefers-reduced-motion:reduce){
  .editorial-4 .ed-header,.editorial-4 .ed-header::before,.editorial-4 .ed-header *,.editorial-4 .ed-header *::after,
  .editorial-4 .ed-mobile-menu *,.editorial-4 .ed-mobile-menu *::after{transition:none!important}
  .editorial-4 .ed-header .ed-header-catalog:hover{transform:none}
  .editorial-4 .ed-mobile-menu,.editorial-4 .ed-mobile-menu .ed-submenu{transition:none!important}
  .editorial-4 .ed-mobile-menu:not([hidden])>*{animation:none}
  .editorial-4 .ed-mobile-menu>:is(.ed-mc,.ed-text-link):is(:hover,:active),.editorial-4 .ed-mobile-menu>:is(.ed-mc,.ed-text-link):hover::after{transform:none}
}
