/* Шапка 2026: закреплённый бар ПК + мобильная шапка с фулскрин-меню (2026-11-01) */

/* ── Шрифт Inter (variable, самохост; latin + cyrillic с укр. і/ї/є/ґ) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/template/css/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/template/css/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Перебиваем Arial темы; иконочные шрифты живут на ::before и не задеты */
body, h1, h2, h3, h4, h5, h6, p, a, li, td, th, label, blockquote,
input, select, textarea, button, .entry-title h2, .rkb-title {
  font-family: 'Inter', Arial, sans-serif !important;
}
h1, h2, h3, .entry-title h2, .rkb-title { font-weight: 800 !important; letter-spacing: -0.015em; }


/* ── ПК: компактный бар при прокрутке ── */
#rkh-bar { position:fixed; top:0; left:0; right:0; z-index:980;
  display:flex; align-items:center; gap:22px; padding:8px 24px;
  background:rgba(36,36,36,.94); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(240,147,43,.45);
  transform:translateY(-110%); transition:transform .25s ease; }
#rkh-bar.rkh-on { transform:translateY(0); }
#rkh-bar .rkh-logo { flex-shrink:0; }
#rkh-bar .rkh-logo img { height:44px; width:auto; max-width:none; display:block; }
#rkh-bar nav { display:flex; flex-wrap:nowrap; min-width:0; overflow:hidden; }
#rkh-bar nav a { color:#ccc; padding:8px 11px; font-size:13px; white-space:nowrap; }
#rkh-bar nav a:hover { color:#fff; }
#rkh-bar nav a.rkh-cur { color:#f0932b; font-weight:600; box-shadow:inset 0 -2px 0 #f0932b; }
#rkh-bar .rkh-right { margin-left:auto; display:flex; align-items:center; gap:16px; }
#rkh-bar .rkh-phones { display:flex; flex-direction:column; line-height:1.35; }
#rkh-bar .rkh-phones a { color:#fff; font-size:12.5px; font-weight:600; white-space:nowrap; }
#rkh-bar .rkh-phones a:hover { color:#f0932b; }
#rkh-bar .rkh-langs { font-size:13px; font-weight:700; color:rgba(255,255,255,.55); white-space:nowrap; }
#rkh-bar .rkh-langs a { color:rgba(255,255,255,.55); }
#rkh-bar .rkh-langs a:hover { color:#fff; }
#rkh-bar .rkh-langs .lang-active, #rkh-bar .rkh-langs span.lang-active { color:#f0932b; }
#rkh-bar .rkh-call { background:#f0932b; color:#1e1e1e; font-size:12px; font-weight:700;
  padding:9px 16px; border-radius:30px; white-space:nowrap; }
#rkh-bar .rkh-call:hover { background:#d87f1b; color:#1e1e1e; }
#rkh-bar .rkh-right { flex-shrink:0; }
@media (max-width:1240px) {
  #rkh-bar { gap:14px; }
  #rkh-bar nav a { padding:8px 7px; font-size:12.5px; }
  #rkh-bar .rkh-phones { display:none; }
}
@media (max-width:991.98px) { #rkh-bar { display:none; } }

/* якорная посадка: заголовок не прилипает к краю и не ныряет под мобильную шапку */
#calc, #rk-calc { scroll-margin-top: 80px; }

/* ── Hero главной 2026 ── */
.rkh2-hero { position:relative; overflow:hidden; clear:both; width:100%;
  background-color:#232323; background-size:cover; background-position:center 35%; }
.rkh2-hero::before { content:''; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(24,24,24,.96) 0%, rgba(24,24,24,.88) 42%, rgba(24,24,24,.5) 100%); }
.rkh2-in { position:relative; max-width:1140px; margin:0 auto; padding:58px 20px 50px;
  display:flex; align-items:center; gap:48px; }
.rkh2-txt { flex:1 1 auto; min-width:0; }
.rkh2-badge { display:inline-block; border:1px solid rgba(240,147,43,.55); color:#f0932b;
  font-size:12.5px; font-weight:600; letter-spacing:.4px; padding:6px 14px; border-radius:30px; margin-bottom:18px; }
.rkh2-hero h1 { color:#fff; font-size:42px; line-height:1.12; font-weight:800 !important;
  letter-spacing:-0.02em; margin:0 0 14px; text-transform:none; }
.rkh2-hero h1 em { color:#f0932b; font-style:normal; }
.rkh2-sub { color:#c9c9c9; font-size:17px; line-height:1.55; margin:0 0 24px; max-width:520px; }
.rkh2-sub strong { color:#fff; }
.rkh2-btns { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:28px; }
.rkh2-btn-main { background:#f0932b; color:#1e1e1e !important; font-size:15px; font-weight:700;
  padding:14px 26px; border-radius:8px; }
.rkh2-btn-main:hover { background:#d87f1b; }
.rkh2-btn-ghost { border:1.5px solid #666; color:#eee !important; font-size:15px; font-weight:600;
  padding:13px 24px; border-radius:8px; }
.rkh2-btn-ghost:hover { border-color:#f0932b; color:#f0932b !important; }
.rkh2-facts { display:flex; gap:32px; flex-wrap:wrap; }
.rkh2-fact b { display:block; color:#f0932b; font-size:22px; font-weight:800; letter-spacing:-0.01em; }
.rkh2-fact span { color:#9f9f9f; font-size:12.5px; }
.rkh2-eq { flex:0 0 340px; }
.rkh2-card { background:#fff; border-radius:14px; padding:24px 20px 16px; text-align:center;
  box-shadow:0 18px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(240,147,43,.35); }
.rkh2-card img { width:100%; height:auto; display:block; margin:0; }
.rkh2-cap { color:#3b3b3b; font-size:13px; font-weight:600; margin-top:10px; line-height:1.4; }
.rkh2-cap small { display:block; color:#8a8a8a; font-weight:400; font-size:11.5px; margin-top:3px; }
@media (max-width:900px) {
  .rkh2-in { flex-direction:column; padding:36px 16px 34px; gap:28px; }
  .rkh2-hero h1 { font-size:29px; }
  .rkh2-eq { flex:0 0 auto; width:100%; max-width:380px; }
  .rkh2-facts { gap:20px; }
}

/* ── UA-меню шире русского: ужимаем пункты, чтобы не падало второй строкой ── */
@media (min-width:1200px) {
  html[lang="uk"] #primary-menu .container > ul > li > a,
  html[lang="uk"] #primary-menu > ul > li > a { padding-left:10px; padding-right:10px; }
}

/* ── ПК: липкий сайдбар «Работы» (едет со скроллом, не ныряет под бар) ── */
@media (min-width:992px) {
  #content .container:has(> .sidebar) { display:flex; align-items:flex-start; }
  #content .container:has(> .sidebar) > .postcontent { flex:1 1 auto; min-width:0; float:none; }
  #content .container:has(> .sidebar) > .sidebar { flex:0 0 auto; float:none;
    position:sticky; position:-webkit-sticky; top:80px; }
}

/* ── Мобилка: фиксированная шапка ── */
#rkh-mbar { display:none; position:fixed; top:0; left:0; right:0; height:56px; z-index:980;
  align-items:center; justify-content:space-between; padding:0 12px;
  background:rgba(32,32,32,.96); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(240,147,43,.5); }
#rkh-mbar .rkh-mlogo img { height:42px; width:auto; display:block; }
#rkh-mbar .rkh-mright { display:flex; align-items:center; gap:12px; }
#rkh-mbar .rkh-mcall { width:38px; height:38px; border-radius:50%; background:#f0932b;
  display:flex; align-items:center; justify-content:center; }
#rkh-mbar .rkh-mcall svg { width:18px; height:18px; fill:#1e1e1e; }
#rkh-burger { width:38px; height:38px; border-radius:9px; border:1px solid #5a5a5a; background:#2e2e2e;
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px;
  cursor:pointer; padding:0; }
#rkh-burger span { display:block; width:18px; height:2px; background:#f0932b; border-radius:2px;
  transition:transform .25s, opacity .2s; }
body.rkh-open #rkh-burger span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
body.rkh-open #rkh-burger span:nth-child(2) { opacity:0; }
body.rkh-open #rkh-burger span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ── Мобилка: фулскрин-меню ── */
#rkh-menu { position:fixed; left:0; right:0; top:56px; bottom:0; z-index:979;
  background:rgba(24,24,24,.97); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  display:none; flex-direction:column; padding:20px 22px; overflow-y:auto; }
body.rkh-open #rkh-menu { display:flex; }
body.rkh-open { overflow:hidden; }
#rkh-menu a.rkh-item { color:#eee; font-size:19px; font-weight:600; padding:13px 2px;
  border-bottom:1px solid #333; }
#rkh-menu a.rkh-item.rkh-cur { color:#f0932b; }
#rkh-menu .rkh-mlangs { display:flex; gap:10px; margin:20px 0 4px; }
#rkh-menu .rkh-mlangs a, #rkh-menu .rkh-mlangs span { border:1px solid #555; color:#bbb;
  font-size:13px; font-weight:700; padding:7px 16px; border-radius:20px; }
#rkh-menu .rkh-mlangs .lang-sep { border:none; padding:7px 2px; color:#555; font-weight:400; }
#rkh-menu .rkh-mlangs .lang-active { background:#f0932b; border-color:#f0932b; color:#1e1e1e; }
#rkh-menu .rkh-mfoot { margin-top:auto; padding-top:18px; padding-bottom:76px; }
#rkh-menu .rkh-mfoot .rkh-mcta { display:block; background:#f0932b; color:#1e1e1e; text-align:center;
  font-weight:700; font-size:15px; padding:14px; border-radius:8px; margin-bottom:14px; }
#rkh-menu .rkh-mfoot p { color:#9a9a9a; font-size:13px; margin:3px 0; text-align:center; line-height:1.5; }
#rkh-menu .rkh-mfoot p a { color:#ddd; font-weight:600; }

@media (max-width:991.98px) {
  #header { display:none !important; }
  body { padding-top:56px !important; }
  #rkh-mbar { display:flex; }
}
