/* tugjinojabano.com — one stylesheet for every page.
   Look: today's blue frame and white panels, with light glass + glow (docs/research/01).
   Motion is opt-in under prefers-reduced-motion: no-preference. */

@font-face{font-family:'PT Sans';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/pt-sans-400-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'PT Sans';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/pt-sans-400-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:'PT Sans';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/pt-sans-700-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'PT Sans';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/pt-sans-700-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}

:root{
  --frame:#336699; --frame-deep:#244f7d; --ink:#1b2a3a; --ink-soft:#3c4f66; --ink-head:#1d4f86;
  --pop-bg:#102a4d; --pop-sub:#bcd6f5; --line:#dfe6ef; --tile-line:#c3c8cf; --tile-line-hover:#9aa0a8;
  --glass:rgb(255 255 255/.85); --hdr-glass:rgb(36 79 125/.80); --hdr-solid:rgb(36 79 125/.96);
  --edge-hi:inset 0 1px 0 rgb(255 255 255/.9);
  --glow:rgb(127 212 255/.45); --sun:#fdf907;
  --focus:#1d4f86; --focus-on-frame:#ffd23f;
  --r-panel:12px; --r-tile:6px; --r-pop:8px; --blur:12px;
  --ease-out:cubic-bezier(.2,.9,.3,1); --t-hover:160ms; --t-reveal:480ms; --step:60ms;
  --bar-h:56px;
  --font:'PT Sans','Segoe UI',Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:calc(var(--bar-h) + 8px);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-height:100vh;font:15px/1.4 var(--font);color:var(--ink);
  background:radial-gradient(1100px 520px at 18% -8%,#3f77ad,transparent 62%),
             radial-gradient(800px 480px at 105% 6%,#2a5a8a,transparent 60%),var(--frame);
  overflow-x:clip}
img{max-width:100%;height:auto}
a{color:var(--ink-head)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:8px;top:-60px;z-index:200;padding:10px 14px;border-radius:8px;background:#fff;color:var(--ink-head);font-weight:700;text-decoration:none}
.skip:focus{top:8px;outline-color:var(--focus-on-frame)}

/* ---------- Page frame ---------- */
.wrap{max-width:1260px;margin:12px auto 0;background:#fff;border-radius:var(--r-panel) var(--r-panel) 0 0;
  box-shadow:var(--edge-hi),0 0 0 1px rgb(16 42 77/.18),0 10px 40px rgb(8 30 60/.35),0 0 30px rgb(127 212 255/.18)}
.panel{background:linear-gradient(180deg,#fff,rgb(255 255 255/.94));border:1px solid var(--line);border-radius:var(--r-panel);
  box-shadow:var(--edge-hi),0 1px 2px rgb(16 42 77/.06)}
.h{margin:0 0 6px;font:700 12.5px/1.2 var(--font);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-head)}
.h a{color:inherit;text-decoration:none}

/* ---------- Header: tagline, big logo, menu bar. Sticky; the logo flies into the bar (assets/js/logo.js) ---------- */
.site-head{--logo-h:min(110px,calc((100vw - 40px)*110/515));
  --head-h:calc(30px + var(--logo-h) + var(--bar-h));
  position:sticky;top:calc(var(--bar-h) - var(--head-h));height:var(--head-h);z-index:50;
  border-radius:var(--r-panel) var(--r-panel) 0 0;background:#fff}
.tagline{margin:0;padding:8px 120px 0 14px;height:30px;font-size:14px;font-weight:700;color:var(--ink-head);letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.logo-mover{position:absolute;left:14px;top:30px;width:calc(var(--logo-h)*515/110);height:var(--logo-h);transform-origin:0 0;will-change:transform;z-index:2}
.site-bar{position:absolute;left:0;right:0;bottom:0;height:var(--bar-h);display:flex;align-items:center;gap:8px;padding:0 14px;
  border-bottom:1px solid var(--line);background:#fff;transition:background-color .2s linear}
.bar-slot{flex:none;height:40px;width:calc(40px*515/110)}
.is-compact .site-bar{background:var(--hdr-solid);border-bottom-color:transparent;box-shadow:0 6px 16px rgb(0 0 0/.2)}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){
  @media (hover:hover) and (pointer:fine) and (min-width:1024px){
    .is-compact .site-bar{background:var(--hdr-glass);-webkit-backdrop-filter:blur(var(--blur)) saturate(140%);backdrop-filter:blur(var(--blur)) saturate(140%)}}}
@media (prefers-reduced-transparency:reduce){.is-compact .site-bar{background:var(--hdr-solid);-webkit-backdrop-filter:none;backdrop-filter:none}}
.is-compact:has(.tj-logo:focus-visible) .bar-slot{outline:3px solid var(--focus-on-frame);outline-offset:2px;border-radius:6px}

/* Logo: a vector copy of today's title.png (app/logo.svg). Parts are animated by GSAP only; the static markup is the finished logo. */
.tj-logo{position:relative;display:block;width:100%;height:100%;container-type:inline-size;overflow:hidden;text-decoration:none;border-radius:8px}
.tj-logo svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
html.js-intro .tj-logo .intro-hide{visibility:hidden}

/* Menu: five tabs (Content · Services · Business · Media · Macedonia), disclosure buttons + mega panels */
.nav{display:flex;align-items:center;gap:4px;margin:0 0 0 auto;padding:0;list-style:none}
.nav>li{position:static} /* panels hang from the bar (positioned), not from their tab, so none runs off screen */
.nav-btn{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border:1px solid #b8c6d8;border-radius:8px;
  background:linear-gradient(#f7f9fc,#e3eaf3);color:#2b3f57;font:700 14px/1 var(--font);cursor:pointer;
  box-shadow:var(--edge-hi);transition:background-color var(--t-hover),color var(--t-hover),border-color var(--t-hover)}
.nav-btn::after{content:"";width:7px;height:7px;margin-top:-3px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);opacity:.6}
.nav-btn:hover,.nav-btn[aria-expanded="true"]{background:var(--ink-head);color:#fff;border-color:var(--ink-head)}
.is-compact .nav-btn{border-color:rgb(255 255 255/.35);background:rgb(255 255 255/.12);color:#fff;box-shadow:none}
.is-compact .nav-btn:hover,.is-compact .nav-btn[aria-expanded="true"]{background:#fff;color:var(--ink-head)}
.is-compact :focus-visible{outline-color:var(--focus-on-frame)}
.menu-toggle{display:none;align-items:center;gap:8px;min-height:38px;margin-left:auto;padding:0 12px;border:1px solid #b8c6d8;border-radius:8px;
  background:linear-gradient(#f7f9fc,#e3eaf3);color:#2b3f57;font:700 14px/1 var(--font);cursor:pointer}
.menu-toggle::before{content:"";width:16px;height:2px;background:currentColor;box-shadow:0 -5px 0 currentColor,0 5px 0 currentColor}
.is-compact .menu-toggle{border-color:rgb(255 255 255/.4);background:rgb(255 255 255/.12);color:#fff}
.lang{position:absolute;top:4px;right:14px;z-index:3;display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:7px;
  font-weight:700;font-size:13px;line-height:1;color:var(--ink-head);text-decoration:none;border:1px dashed #b8c6d8;background:#fff} /* top right, above the menu bar, at every width (B2) */
.lang:hover{background:#eaf1f9}
/* The columns live in .mega-cols (no height limit), so a long panel scrolls down instead of growing hidden side
   columns; site.js caps the height to what is left below the bar. */
.mega{position:absolute;right:14px;top:calc(100% + 6px);z-index:60;display:none;
  width:calc(var(--cols,3) * 215px);max-width:calc(100% - 28px);max-height:var(--below-bar,calc(100vh - var(--bar-h) - 24px));
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px;
  background:#fff;border:1px solid #b8c6d8;border-radius:var(--r-panel);box-shadow:0 14px 34px rgb(16 42 77/.28),0 0 22px rgb(127 212 255/.18)}
.mega:focus{outline:none}
.mega-cols{column-count:var(--cols,3);column-gap:18px}
.nav>li.open>.mega{display:block}
html:not(.site-js) .nav>li:hover>.mega,html:not(.site-js) .nav>li:focus-within>.mega{display:block} /* no site.js: CSS only */
.mega-group{min-width:0;break-inside:avoid;margin-bottom:8px}
.mega-sub{display:block;padding:5px 8px 2px;font-weight:700;font-size:13px;color:var(--ink-soft)}
.mega h3{margin:6px 0 2px;font:700 12px/1.2 var(--font);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-head)}
.mega ul{margin:0 0 6px;padding:0;list-style:none}
.mega a{display:block;padding:5px 8px;border-radius:6px;color:var(--ink);text-decoration:none;font-size:14px}
.mega a:hover{background:#eaf1f9;color:var(--ink-head)}
.mega .sub{margin-left:8px;border-left:2px solid var(--line);padding-left:6px}

/* ---------- Banner row (B2): TJ-Hosting left, Milosov Lukaroski right; neither spans the full width ---------- */
.banners{display:flex;justify-content:space-between;gap:14px;margin:12px 14px 0}
.banner{position:relative;display:block;flex:0 1 570px;max-width:calc(50% - 7px);aspect-ratio:2.36;border-radius:8px;overflow:hidden;
  box-shadow:0 6px 18px rgb(8 30 60/.22),0 0 0 1px rgb(16 42 77/.18);transition:transform var(--t-hover) var(--ease-out),box-shadow var(--t-hover)}
.banner img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease-out)}
.banner:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.banner::after{content:"";position:absolute;top:0;bottom:0;left:0;width:30%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgb(255 255 255/.18),transparent);transform:translateX(-140%) skewX(-20deg);opacity:0}
@media (hover:hover){.banner:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgb(8 30 60/.3),0 0 0 1px rgb(16 42 77/.22),0 0 18px var(--glow)}}

/* ---------- Three columns, today's layout ---------- */
.grid{display:grid;grid-template-columns:210px minmax(0,1fr) 290px;gap:14px;align-items:start;padding:14px;
  grid-template-areas:
    "search gm     time"
    "left   social social"
    "left   media  media"
    "left   main   right"}
.a-search{grid-area:search}.a-gm{grid-area:gm}.a-time{grid-area:time}.a-left{grid-area:left}
.a-social{grid-area:social}.a-media{grid-area:media}.a-main{grid-area:main}.a-right{grid-area:right}
.a-left,.a-right,.a-gm{display:flex;flex-direction:column;gap:12px;min-width:0}
/* B3: Google + mail and TIME.mk fill the same row, so the social row starts right under them. TIME.mk sets the row
   height; the Google + mail block stretches to it (Google row on top, rule, mail row at the bottom). */
@media (min-width:900px){
  .a-time{align-self:stretch}
  .a-gm{align-self:stretch;justify-content:space-between}
  .time .tiles,.time .tiles>li,.time .tile{flex:1 1 auto}
  .time .tile.tile{min-height:28px}
}
/* Google + mail buttons (B2): the old site's image buttons. Each WebP is the legacy button (its own thin frame and small
   label) rebuilt sharp at 2x; the tile has no border of its own (Barney, 25 Oct), ~10 % smaller than before, a grey rule
   between the rows. */
.a-gm{gap:8px}
.a-gm .tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 6px}
.a-gm .tiles>li{display:flex;flex-direction:column;align-items:center;justify-content:center}
.a-gm .tiles .tile{--trim:0px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:90%;min-height:24px;
  border-radius:3px}
.a-gm .tiles .tile img{width:100%;height:auto;margin:0;clip-path:none;border-radius:2px}
.a-gm [data-section="google"] .tile img{aspect-ratio:400/75;margin-top:20px}
.a-gm [data-section="mail"] .tile img{aspect-ratio:400/60}
.a-gm .gm-rule{align-self:center;flex:none;width:95%;border-top:1px solid #c3c8cf}
@media (max-width:759px){.a-gm .tiles .tile{width:100%}.a-gm [data-section="mail"]{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Search */
.search{padding:10px;display:flex;flex-direction:column;gap:10px}
.search form{display:flex;flex-direction:column;gap:4px}
.search .row{display:flex;gap:4px}
.search input{flex:1 1 auto;min-width:0;height:38px;padding:0 9px;border:1px solid #aebdd0;border-radius:8px;font:inherit;font-size:16px;background:#fff}
.search button{height:38px;padding:0 11px;border:1px solid var(--ink-head);border-radius:8px;background:var(--ink-head);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.search button.alt{background:#fff;color:var(--ink-head)}
.search label{font-weight:700;font-size:13px;color:var(--ink-soft)}

/* ---------- Tiles: one style (B2: no resting border; B4: gray ring + soft shadow on hover, 6 px corners, never
   red); motion on hover/focus; shared name + domain popover ---------- */
.tiles{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.tiles>li{display:flex;flex-direction:column;align-items:center;gap:3px}
.tile{position:relative;display:flow-root;flex:none;border-radius:var(--r-tile);background:#fff;
  text-decoration:none;color:var(--ink);transition:transform var(--t-hover) var(--ease-out)}
.tile img{display:block;border-radius:var(--r-tile);margin-block:calc(var(--trim,1px)*-1);clip-path:inset(var(--trim,1px) 0)} /* -2 px of vertical padding: 1 px off the top and bottom of the (padded) image */
.tile::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;
  box-shadow:0 0 0 1px var(--tile-line-hover),0 6px 16px rgb(16 42 77/.18),0 2px 4px rgb(16 42 77/.10);transition:opacity var(--t-hover) linear}
.tile .shine{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none}
.tile .shine::before{content:"";position:absolute;top:-10%;bottom:-10%;left:0;width:45%;background:linear-gradient(100deg,transparent,rgb(255 255 255/.85),transparent);transform:translateX(-160%) skewX(-18deg)}
@media (hover:hover){.tile:hover{transform:translateY(-3px) scale(1.07);z-index:3}.tile:hover::after{opacity:1}}
.tile:focus-visible{transform:translateY(-3px) scale(1.07);z-index:3;outline:2px solid var(--focus);outline-offset:3px} /* WCAG 2.4.7: visible, not red */
.tile:focus-visible::after{opacity:1}
.tile:active{transform:scale(.97)}
@media (prefers-reduced-motion:no-preference){
  @media (hover:hover){.tile:hover .shine::before{animation:shine .6s ease-out}}
  .tile:focus-visible .shine::before{animation:shine .6s ease-out}
}
@keyframes shine{to{transform:translateX(290%) skewX(-18deg)}} /* transform only: animating left would count as layout shift */
.cap{display:none;max-width:100%;font:700 11.5px/1.2 var(--font);color:var(--ink-soft);text-align:center}
.cap.always{display:block}
@media (hover:none){
  .cap{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}

/* Tile classes (CSS size; the WebP is twice this) */
.t-icon .tile img{width:48px;height:48px}
.t-icon>li{width:50px}
.t-icon{gap:8px 7px}
.t-media{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:8px}
.t-media .tile img{width:100%;height:auto;aspect-ratio:168/60}
.t-social{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.t-social .tile{border-radius:var(--r-tile)}
.t-social .tile img{width:100%;height:auto;aspect-ratio:392/128}
.t-gov{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 8px}
.t-gov .tile img{width:96px;height:60px;--trim:.5px}
.t-tool{flex-direction:column;align-items:center;gap:10px}
.t-tool .tile img{width:120px;height:36px}
.t-page{flex-direction:column;align-items:center;gap:10px}
.t-page .tile img{width:192px;height:60px;--trim:.5px}
.t-square{display:grid;grid-template-columns:repeat(4,minmax(0,64px));justify-content:center;gap:8px}
.t-square>li{width:100%}
.t-square .tile{width:100%}.t-square .tile img{width:100%;height:auto;aspect-ratio:1}
.t-unit .tile img{width:270px;height:44px;--trim:.5px}
.t-unit>li,.t-unit .tile{width:100%}.t-unit .tile img{width:100%;height:auto;aspect-ratio:540/88}

/* TIME.mk: text tiles */
.time{padding:6px;display:flex;flex-direction:column;gap:4px}
.time .tile{display:flex;align-items:center;min-height:34px;padding:0 12px;background:#f4f7fb;font-weight:700;font-size:14.5px}
.time .tiles{display:flex;flex-direction:column;gap:4px}
.time .tiles>li{align-items:stretch}
.time .tile span{color:var(--ink-head);font-weight:700}
.noimg{display:flex;align-items:center;justify-content:center;min-height:34px;padding:0 8px;font-weight:700;font-size:13px}

.box{padding:10px 12px}
.main{display:grid;grid-template-columns:236px minmax(0,1fr);gap:16px;align-items:start}
.gov{padding:12px;display:flex;flex-direction:column;gap:10px}
.gov-title{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;color:var(--ink);text-decoration:none}
.gov-title svg{flex:none;width:22px;height:11px}
.gov .t-gov{border-top:1px solid var(--line);padding-top:10px}
.gov .t-gov:first-of-type{border-top:0;padding-top:0}
.groups{display:flex;flex-direction:column;gap:12px;min-width:0}
.groups .h{border-bottom:1px solid var(--line);padding-bottom:4px}

/* Right column widgets */
.markets{padding:10px;display:flex;flex-direction:column;gap:6px}
.widget-slot{position:relative;min-height:360px;border-radius:8px;background:linear-gradient(90deg,#eef3f8 0%,#f7fafd 50%,#eef3f8 100%);background-size:200% 100%}
.widget-slot.is-loaded{background:none}
.widget-slot .fallback{position:absolute;inset:auto 0 0 0;padding:8px;font-size:13px;text-align:center}
.tv-slot{height:360px;min-height:0}
.site-js .tv-slot:not(.is-failed) .fallback{display:none}
.tv-slot.is-failed .tradingview-widget-container{display:none}
.tv-slot .tradingview-widget-copyright{font-size:12px;text-align:center;padding-top:4px}
.small{font-size:12px;color:#5b6b7f}

/* Bottom: currency converter (our own, widgets/currency.html: EUR, CAD, MKD, USD; B7) */
.currency{margin:0 14px 14px;padding:12px 14px}
.currency .widget-slot{min-height:130px}
.currency-frame{display:block;width:100%;height:130px;border:0;border-radius:8px} /* the widget sets its own height once drawn */

/* Footer */
.foot{max-width:1260px;margin:0 auto 24px;padding:14px;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;
  background:var(--ink-head);color:#fff;font-size:13.5px;border-radius:0 0 var(--r-panel) var(--r-panel)}
.foot a{color:#fff}
.foot a.brand{color:var(--sun);font-weight:700}

/* ---------- Inner pages (app/page.php): one readable column inside the same frame ---------- */
.inner main{padding:14px}
.page{max-width:920px;margin:0 auto;padding:22px clamp(16px,4vw,40px) 32px;font-size:16.5px;line-height:1.6}
.page-wide{max-width:none}
.page h1{margin:0 0 14px;font-size:clamp(25px,3vw,32px);line-height:1.2;color:var(--ink-head)}
.page h2{margin:30px 0 8px;font-size:clamp(20px,2.4vw,23px);line-height:1.25;color:var(--ink-head)}
.page h3{margin:22px 0 6px;font-size:18px;line-height:1.3;color:var(--ink-head)}
.page p{margin:0 0 12px}
.page ul,.page ol{margin:0 0 14px;padding-left:1.4em}
.page li{margin:3px 0}
.page a{color:var(--ink-head);text-decoration-thickness:1px;text-underline-offset:2px}
.page img{max-width:100%;height:auto;border-radius:6px}
.page figure{margin:16px 0}
.page figcaption{margin-top:4px;font-size:13.5px;color:var(--ink-soft)}
.page table{width:100%;margin:0 0 16px;border-collapse:collapse;font-size:15px}
.page th,.page td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.page blockquote{margin:12px 0;padding:8px 14px;border-left:3px solid var(--tile-line);color:var(--ink-soft)}
.page hr{margin:24px 0;border:0;border-top:1px solid var(--line)}
.page .byline{margin-top:-4px;font-size:14px;color:var(--ink-soft)}
.page .lead{font-size:18px;color:var(--ink-soft)}
.page .toc{columns:2 220px;margin:0 0 18px;padding:12px 16px 12px 2em;border:1px solid var(--line);border-radius:6px;background:#f7f9fc}
.page .toc li{margin:0 0 4px;break-inside:avoid}
.page .card>:first-child{margin-top:0}
.page .cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin:0 0 16px;padding:0;list-style:none}
.page .card{padding:12px 14px;border:1px solid var(--tile-line);border-radius:6px;background:#fff}
.page .recipe{margin-top:26px;padding-top:6px;border-top:1px solid var(--line)}
.page .recipe h2{margin-top:10px}
.page .float-right{float:right;max-width:min(320px,45%);margin:4px 0 12px 18px}
.page .float-left{float:left;max-width:min(320px,45%);margin:4px 18px 12px 0}
.page .clear{clear:both}
.page .tool{padding:14px;border:1px solid var(--tile-line);border-radius:6px;background:#f7f9fc}
.page textarea,.page input[type=text]{width:100%;padding:8px 10px;border:1px solid #aebdd0;border-radius:6px;font:inherit;font-size:16px}
.page button{min-height:40px;padding:0 14px;border:1px solid var(--ink-head);border-radius:6px;background:var(--ink-head);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.page-note{padding:8px 12px;border-radius:6px;background:#eef3f8;font-size:14px;color:var(--ink-soft)}
@media (max-width:759px){.inner main{padding:10px}.page{font-size:16px}.page .float-right,.page .float-left{float:none;max-width:100%;margin:12px 0}}

/* Shared popover (assets/js/site.js) */
.tj-tip{position:fixed;inset:auto;top:0;left:0;width:max-content;height:auto;margin:0;z-index:1000;border:0;padding:6px 10px;border-radius:var(--r-pop);
  background:var(--pop-bg);color:#fff;font:700 13px/1.3 var(--font);white-space:nowrap;
  max-width:calc(100vw - 16px);overflow:hidden;text-overflow:ellipsis;box-shadow:0 6px 18px rgb(16 42 77/.35),0 0 14px var(--glow)}
.tj-tip span{font-weight:400;color:var(--pop-sub)} .tj-tip span:not(:empty)::before{content:" · ";color:#fff}
@media (prefers-reduced-motion:no-preference){.tj-tip{animation:tip-in .18s var(--ease-out)}}
@keyframes tip-in{from{opacity:0;transform:translateY(4px) scale(.96)}}
@media (forced-colors:active){.tj-tip{border:1px solid CanvasText}}

/* ---------- One orchestrated reveal (CSS only, so content never stays hidden if JS fails) ---------- */
@media (prefers-reduced-motion:no-preference){
  .rv{animation:rv-in var(--t-reveal) var(--ease-out) both;animation-delay:calc(var(--i,0)*var(--step))}
  .rv-lcp{animation:rv-rise var(--t-reveal) var(--ease-out) both}
  .banner::after{animation:banner-sweep 1.6s ease-in-out 1.2s 1 both}
  .banner+.banner::after{animation-delay:1.5s}
  @media (hover:hover){.banner:hover img{transform:scale(1.04)}}
}
@keyframes rv-in{from{opacity:0;transform:translateY(12px)}}
@keyframes rv-rise{from{transform:translateY(10px)}}
@keyframes banner-sweep{0%{transform:translateX(-140%) skewX(-20deg);opacity:1}100%{transform:translateX(400%) skewX(-20deg);opacity:1}}

/* ---------- Small laptop: still three columns; the government block stacks above the grids ---------- */
@media (min-width:900px) and (max-width:1099px){
  .grid{grid-template-columns:190px minmax(0,1fr) 250px}
  .main{grid-template-columns:minmax(0,1fr)}
  .gov .t-gov{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}
  .t-media{grid-template-columns:repeat(auto-fill,minmax(76px,1fr))}
  .t-page .tile img{width:172px;height:auto}
}
/* ---------- Tablet: two columns, right column under ---------- */
@media (max-width:899px){
  .grid{grid-template-columns:200px minmax(0,1fr);
    grid-template-areas:"search gm" "left time" "left social" "left media" "left main" "right right"}
  .a-right{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:12px}
  .t-media{grid-template-columns:repeat(auto-fill,minmax(76px,1fr))}
  .main{grid-template-columns:minmax(0,1fr)}
  .gov .t-gov{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}
}
/* ---------- Below 880 px the bar can't hold five tabs: "Мени" opens the same five tabs as a stacked panel under the bar.
   The language link is not in the bar any more (top right of the header at every width). ---------- */
@media (max-width:879px){
  .menu-toggle{display:inline-flex}
  .nav{display:none;position:absolute;left:8px;right:8px;top:calc(100% + 4px);z-index:60;flex-direction:column;align-items:stretch;gap:4px;
    max-height:var(--below-bar,calc(100vh - var(--bar-h) - 24px));overflow:auto;overscroll-behavior:contain;padding:8px;background:#fff;
    border:1px solid #b8c6d8;border-radius:var(--r-panel);box-shadow:0 14px 34px rgb(16 42 77/.3)}
  .nav-open .nav,html:not(.site-js) .site-bar:focus-within .nav{display:flex} /* no site.js: tapping "Мени" focuses it and shows the list */
  .nav>li{width:100%}
  .nav-btn,.is-compact .nav-btn{width:100%;justify-content:space-between;background:linear-gradient(#f7f9fc,#e3eaf3);color:#2b3f57;border-color:#b8c6d8}
  .nav-btn[aria-expanded="true"],.is-compact .nav-btn[aria-expanded="true"]{background:var(--ink-head);color:#fff}
  .mega{position:static;width:auto;max-width:none;max-height:none;overflow:visible;border:0;box-shadow:none;padding:6px 4px}
  .mega-cols{column-count:1}
}
/* ---------- Phone: R13 order — header, banner, search, social, centre, rest of left, right, currency, footer ---------- */
@media (max-width:759px){
  :root{--bar-h:52px}
  .wrap{margin-top:0;border-radius:0}
  .foot{border-radius:0;margin-bottom:0}
  .grid{grid-template-columns:minmax(0,1fr);gap:12px;padding:12px;
    grid-template-areas:"search" "social" "gm" "time" "media" "main" "left" "right"}
  .banners{flex-direction:column;gap:10px;margin:10px 12px 0} /* stacked, TJ-Hosting first */
  .banner{flex:none;width:100%;max-width:none}
  .t-social{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
  .t-social>li:nth-child(-n+3){grid-column:span 2}
  .t-social>li:nth-child(n+4){grid-column:span 3}
  .t-media{grid-template-columns:repeat(auto-fill,minmax(72px,1fr))}
  .t-tool,.t-page{flex-direction:row;flex-wrap:wrap;justify-content:center}
  .tagline{font-size:12.5px;padding-right:104px}
  .bar-slot{width:calc(34px*515/110);height:34px}
  .currency{margin:0 12px 12px}
  .currency .widget-slot{min-height:300px}.currency-frame{height:300px} /* the form stacks */
}
@media (max-width:480px){
  .t-icon>li{width:52px}
  .t-icon .tile img{width:44px;height:44px}
}
/* Narrow phones: a smaller logo slot and tighter bar, so "Мени" fits */
@media (max-width:400px){
  .site-bar{gap:6px;padding:0 8px}
  .bar-slot{width:calc(24px*515/110);height:24px}
  .menu-toggle{padding:0 8px}
}

/* ---------- Reduced motion: everything static, state changes instant ---------- */
@media (prefers-reduced-motion:reduce){
  .tile,.tile::after,.nav-btn,.banner,.banner img,.site-bar{transition:none}
  .banner:hover{transform:none}
  .tile:hover,.tile:focus-visible{transform:none}
}

/* tugjinojabano-02 B4: quick conversions and currency listboxes */
.conv{padding:10px}
.conv .h{border-bottom:1px solid var(--line);padding-bottom:4px}
.conv-table{width:100%;border-collapse:collapse;font-size:13.5px}
.conv-table th,.conv-table td{height:34px;padding:0 6px;text-align:left;border-bottom:1px solid var(--line);font-weight:400}
.conv-table th{font-weight:700;white-space:nowrap}
.conv-table tr:last-child th,.conv-table tr:last-child td{border-bottom:0}
.conv-live[hidden]{display:none}
.conv-live .small{margin:0 0 4px}
.conv-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px;min-height:34px;margin-bottom:0}
.conv-row label{display:flex;align-items:center;gap:4px;min-width:0}
.conv-row input{width:100%;min-width:0;height:32px;padding:0 6px;border:1px solid #aebdd0;border-radius:6px;background:#fff;color:inherit;font:inherit;font-size:14px;box-sizing:border-box}
.conv-row input:focus-visible{outline:2px solid #1d4f86;outline-offset:1px}
.conv-row input[aria-invalid="true"]{border-color:#b3261e}
.conv-u{flex:none;min-width:2.1em;font-size:13px;color:#3c4f66}
