/* Stylesheet of the list mockup, carried over unchanged.
   Regenerate with: python3 port.py */

  :root {
    --gold: #C79A57; --gold-light: #D7B06E; --ink: #1B1B1B; --graphite-2: #252525; --navy: #0B1F33;
    --on-dark: #E9E4DA; --on-dark-muted: #A7A096; --on-dark-soft: #C9C2B6;
    --line-gold: rgba(199,154,87,.35); --line-dark: rgba(255,255,255,.08); --edge: rgba(255,255,255,.14);
    --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --max: 1240px; --cut: 18px; --ease: cubic-bezier(.2,.8,.2,1);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { margin: 0; font-family: var(--font); background: var(--ink); color: var(--on-dark); line-height: 1.65; -webkit-font-smoothing: antialiased; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  .container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
  a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  .search input:focus-visible { outline: none; }
  ::selection { background: var(--gold); color: var(--ink); }
  h1, h2, h3 { text-wrap: balance; }
  p { text-wrap: pretty; }
  .skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--gold); color: var(--ink); font: 700 13px var(--font); letter-spacing: .06em; transition: top .2s; }
  .skip:focus { top: 16px; }
  .topbar { background: #141414; border-bottom: 1px solid var(--line-dark); font-size: 12.5px; color: var(--on-dark-muted); }
  .topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 44px; }
  .tb-left, .tb-right { display: flex; align-items: center; gap: 22px; }
  .tb-left > * { display: inline-flex; align-items: center; gap: 8px; }
  .tb-left a:hover, .tb-soc a:hover { color: var(--gold-light); }
  .topbar svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tb-soc { display: flex; gap: 2px; }
  .tb-soc a { display: grid; place-items: center; width: 32px; height: 32px; }
  @media (max-width: 767px) { .tb-hours, .tb-mail { display: none !important; } }
  @media (max-width: 600px) { .tb-soc { display: none; } }
  .nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--edge); color: var(--on-dark); cursor: pointer; place-items: center; }
  @keyframes up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

  .panel { --c: var(--cut); position: relative; padding: 1px; background: var(--edge); transition: background .3s, transform .35s var(--ease);
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
  .panel > .in { height: 100%; background: #2B2A29;
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
  .kicker { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
  .kicker::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
  .btn { display: inline-flex; align-items: center; gap: 12px; font: 600 13px var(--font); letter-spacing: .14em; text-transform: uppercase; padding: 15px 26px; transition: background .2s, color .2s, border-color .2s; cursor: pointer; }
  .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .25s var(--ease); }
  .btn:hover svg { transform: translateX(4px); }
  .btn-gold { background: var(--gold); color: var(--ink); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
  .btn-gold:hover { background: var(--gold-light); }
  .btn-line { border: 1px solid rgba(255,255,255,.35); color: var(--white, #fff); }
  .btn-line:hover { border-color: var(--gold); color: var(--gold-light); }

  /* Header (solid on inner pages) */
  .header { position: sticky; top: 0; z-index: 50; background: rgba(27,27,27,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
  .header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
  .logo img { height: 40px; width: auto; }
  .nav { display: flex; gap: 30px; flex-wrap: wrap; }
  .nav a { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); position: relative; padding: 6px 0; transition: color .2s; }
  .nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .25s; }
  .nav a:hover { color: #fff; }
  .nav a:hover::after, .nav a.active::after { width: 100%; }
  .nav a.active { color: var(--gold-light); }
  .header-actions { display: flex; align-items: center; gap: 18px; }
  .lang { display: flex; align-items: center; gap: 4px; }
  .lang button { font: 600 12px var(--font); letter-spacing: .12em; background: none; border: 0; color: var(--on-dark-muted); padding: 6px; min-height: 36px; cursor: pointer; }
  .lang button[aria-pressed="true"] { color: var(--gold); }
  .lang span { color: var(--line-dark); }
  .header .btn { padding: 11px 18px; font-size: 11.5px; }

  /* Page head */
  .page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line-dark); background: var(--ink); position: relative; overflow: hidden; }
  .page-head .topo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
  .crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; font-weight: 500; color: var(--on-dark-muted); margin-bottom: 28px; position: relative; }
  .crumbs a:hover { color: var(--gold-light); }
  .crumbs span[aria-current] { color: var(--on-dark); }
  .page-head h1 { position: relative; font-size: clamp(34px, 4.4vw, 60px); font-weight: 800; text-transform: uppercase; line-height: 1.05; color: #fff; animation: up .9s var(--ease) both; }
  .page-head h1 .soft { color: var(--on-dark-muted); }
  .page-head p { position: relative; margin-top: 18px; max-width: 620px; color: var(--on-dark-muted); font-size: 16.5px; animation: up .9s var(--ease) .15s both; }

  /* Toolbar */
  .toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
  .news-filter { display: flex; flex-wrap: wrap; gap: 8px; }
  .news-filter button { min-height: 44px; padding: 0 20px; background: none; border: 1px solid var(--edge); color: var(--on-dark-muted); font: 600 12px var(--font); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
  .news-filter button:hover { color: #fff; border-color: rgba(255,255,255,.35); }
  .news-filter button.on { color: var(--ink); background: var(--gold); border-color: var(--gold); }
  .news-filter b { font-weight: 600; opacity: .7; margin-left: 6px; }
  .search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--edge); min-width: 300px; transition: border-color .2s; }
  .search:focus-within { border-color: var(--gold); }
  .search svg { width: 16px; height: 16px; stroke: var(--on-dark-muted); fill: none; stroke-width: 2; flex: none; }
  .search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: 500 14px var(--font); min-height: 42px; }
  .search input::placeholder { color: var(--on-dark-muted); }

  /* Featured */
  .featured { display: grid; grid-template-columns: 1.35fr 1fr; animation: up .8s var(--ease) both; }
  .featured.panel > .in { display: grid; grid-template-columns: 1.35fr 1fr; }
  .featured .img { min-height: 420px; overflow: hidden; }
  .featured .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
  .featured:hover { background: var(--gold); }
  .featured:hover .img img { transform: scale(1.04); }
  .featured .body { padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
  .featured h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.2; color: #fff; }
  .featured p { color: var(--on-dark-muted); font-size: 15.5px; }

  .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
  .cat { padding: 4px 10px; border: 1px solid var(--edge); color: var(--on-dark-soft); }
  .cat.article { border-color: var(--line-gold); color: var(--gold-light); }
  .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
  .more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .25s var(--ease); }
  .panel:hover .more svg { transform: translateX(4px); }

  /* Grid */
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
  .ncard { animation: up .6s var(--ease) both; }
  .ncard .in { display: flex; flex-direction: column; }
  .ncard .img { aspect-ratio: 16 / 10; overflow: hidden; background: #2a2520; }
  .ncard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
  .ncard:hover { background: var(--gold); transform: translateY(-6px); }
  .ncard:hover .img img { transform: scale(1.06); }
  .ncard .body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
  .ncard h3 { font-size: 18px; font-weight: 700; line-height: 1.35; color: #fff; }
  .ncard p { font-size: 14px; color: var(--on-dark-muted); }
  .empty { margin-top: 18px; padding: 56px 32px; border: 1px dashed var(--edge); text-align: center; color: var(--on-dark-muted); }
  .empty strong { display: block; color: #fff; font-size: 18px; margin-bottom: 6px; }
  .empty button { margin-top: 18px; }

  /* Pagination */
  .pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 56px 0 100px; }
  .pager button { min-width: 44px; height: 44px; background: none; border: 1px solid var(--edge); color: var(--on-dark); font: 600 14px var(--font); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
  .pager button:hover { border-color: var(--gold); color: var(--gold-light); }
  .pager button.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
  .pager button:disabled { opacity: .35; cursor: default; }
  .pager svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; vertical-align: middle; }

  /* Subscribe band */
  .subscribe { background: var(--navy); padding: 56px 0; }
  .subscribe .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
  .subscribe h3 { font-size: 22px; font-weight: 800; text-transform: uppercase; color: #fff; }
  .subscribe p { color: var(--on-dark-muted); font-size: 15px; margin-top: 6px; }

  /* Footer */
  .footer { background: #141414; border-top: 1px solid var(--line-dark); padding: 64px 0 28px; }
  .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
  .footer img { height: 58px; width: auto; }
  .footer p { margin-top: 18px; font-size: 14px; color: var(--on-dark-muted); max-width: 340px; }
  .footer h4 { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 16px; }
  .footer ul { list-style: none; display: grid; gap: 10px; font-size: 14px; }
  .footer li a:hover { color: var(--gold-light); }
  .soc { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; }
  .soc a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 600; transition: color .2s; }
  .soc a:hover { color: var(--gold-light); }
  .soc svg { width: 16px; height: 16px; stroke: var(--on-dark-soft); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--on-dark-muted); }

  @media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, 1fr); } .nav { gap: 20px; } }
  @media (max-width: 960px) {
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(27,27,27,.98); padding: 8px 32px 24px; border-bottom: 1px solid var(--line-dark); }
    .nav.open { display: flex; }
    .nav a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
    .nav a::after { display: none; }
    .nav-toggle { display: grid; }
    .header .btn { display: none; }
    .featured.panel > .in { grid-template-columns: 1fr; } .featured .img { min-height: 260px; }
    .featured .body { padding: 28px; } .search { min-width: 0; flex: 1 1 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 600px) { .container { padding: 0 20px; } .grid, .footer-grid { grid-template-columns: 1fr; } }
  @media (prefers-reduced-motion: reduce) { .ncard, .featured, .page-head h1, .page-head p { animation: none; } }


/* ---- added by port.py ---------------------------------------------------
   Per-language blocks for article text, so the body is in the HTML source in
   all three languages rather than assembled by script. */
[data-lang-block]{display:none}
html[lang="ru"] [data-lang-block="ru"],
html[lang="uz"] [data-lang-block="uz"],
html[lang="en"] [data-lang-block="en"]{display:revert}

/* The contact form's failure line, matching the success line above it. It is
   the fallback for a browser without <dialog>; normally the dialog below says
   what happened instead, because a line under the button goes unread. */
.err{color:#E98B7A;font-size:14px;font-weight:600}

/* position and margin are set explicitly rather than left to the browser's
   default dialog rules, which the mockup's own reset overrides. */
.fmodal{position:fixed;inset:0;margin:auto;border:0;padding:0;background:transparent;
  color:var(--on-dark);width:min(92vw,420px);max-height:90vh}
.fmodal::backdrop{background:rgba(8,8,8,.72)}
.fmodal-in{background:#201F1D;border:1px solid rgba(199,154,87,.35);padding:34px 30px 30px;text-align:center;
  clip-path:polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px)}
.fmodal-ic{width:52px;height:52px;fill:none;stroke:var(--gold);stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;margin-bottom:16px}
.fmodal h3{font-size:20px;font-weight:800;letter-spacing:.01em;margin:0 0 10px;color:var(--white)}
.fmodal p{font-size:15px;line-height:1.55;margin:0 0 22px;color:var(--on-dark-soft)}
.fmodal .btn{width:100%;justify-content:center}
/* One icon, two states: the tick for a sent request, the bar and dot for a
   failure, which also turns the whole mark red. */
.fmodal:not(.is-err) .ic-err,.fmodal.is-err .ic-ok{display:none}
.fmodal.is-err .fmodal-ic{stroke:#E98B7A}
@media (prefers-reduced-motion:no-preference){
  .fmodal[open]{animation:fmodal-in .22s ease-out}
  @keyframes fmodal-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
}

/* The spam trap: off-screen rather than display:none, because some automated
   submitters skip anything that is not rendered. No reader ever reaches it —
   the wrapper is aria-hidden and the input is out of the tab order. */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* A card with display:grid would otherwise ignore the hidden attribute. */
[hidden]{display:none!important}

/* Inline links in the top bar, breadcrumbs and footer are about 17px tall,
   below the 24px minimum for a touch target. Padding fixes the hit area
   without moving anything visibly. */
.tb-left a,.crumbs a,.footer a,.footer-bottom a{display:inline-block;padding-block:4px}
