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

  :root {
    --gold: #C79A57; --gold-light: #D7B06E; --ink: #1B1B1B; --graphite-2: #252525; --navy: #0B1F33; --beige: #F3EFE7;
    --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; }
  ::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; } }
  @keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }

  .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; border: 0; }
  .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: #fff; background: none; }
  .btn-line:hover { border-color: var(--gold); color: var(--gold-light); }

  /* Header */
  .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; }
  .progress { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--gold); }

  /* Article head */
  .a-head { padding: 56px 0 40px; }
  .crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; font-weight: 500; color: var(--on-dark-muted); margin-bottom: 32px; }
  .crumbs a:hover { color: var(--gold-light); }
  .crumbs span[aria-current] { color: var(--on-dark); }
  .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 22px; }
  .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); }
  .a-head h1 { max-width: 980px; font-size: clamp(32px, 4vw, 54px); font-weight: 800; text-transform: uppercase; line-height: 1.08; color: #fff; animation: up .9s var(--ease) both; }
  .a-head .lead { max-width: 760px; margin-top: 22px; font-size: 18px; color: var(--on-dark-soft); animation: up .9s var(--ease) .15s both; }

  .cover { --c: 28px; padding: 0; background: none; animation: up 1s var(--ease) .25s both; }
  .cover > .in { aspect-ratio: 21 / 9; overflow: hidden; }
  .cover img { width: 100%; height: 100%; object-fit: cover; animation: kb 2.4s var(--ease) both; }
  .cover-cap { margin-top: 12px; font-size: 12px; color: var(--on-dark-muted); }

  /* Body */
  .a-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; padding: 64px 0 96px; align-items: start; }
  .prose { max-width: 740px; font-size: 17px; line-height: 1.8; color: var(--on-dark); }
  .prose > * + * { margin-top: 22px; }
  .prose h2 { font-size: 24px; font-weight: 800; text-transform: uppercase; line-height: 1.25; color: #fff; margin-top: 48px; }
  .prose p { color: var(--on-dark-soft); }
  .prose strong { color: #fff; font-weight: 700; }
  .prose ul { list-style: none; display: grid; gap: 12px; }
  .prose li { position: relative; padding-left: 28px; color: var(--on-dark-soft); }
  .prose li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
  .prose blockquote { border-left: 2px solid var(--gold); padding: 6px 0 6px 26px; font-size: 21px; font-weight: 600; line-height: 1.5; color: #fff; }
  .prose figure { margin-top: 36px; }
  .prose figure .panel { --c: 18px; padding: 0; background: none; }
  .prose figure .in { aspect-ratio: 16 / 9; overflow: hidden; }
  .prose figure img { width: 100%; height: 100%; object-fit: cover; }
  .prose figcaption { margin-top: 10px; font-size: 12.5px; color: var(--on-dark-muted); }
  .note { font-size: 13px; color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); padding-top: 18px; margin-top: 40px; }

  .aside { position: sticky; top: 96px; display: grid; gap: 18px; }
  .aside .in { padding: 26px; }
  .aside h4 { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
  .share { display: grid; gap: 8px; }
  .share a, .share button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border: 1px solid var(--edge); background: none; color: var(--on-dark); font: 600 13px var(--font); cursor: pointer; text-align: left; transition: border-color .2s, color .2s; }
  .share a:hover, .share button:hover { border-color: var(--gold); color: var(--gold-light); }
  .share svg { width: 16px; height: 16px; stroke: var(--on-dark-soft); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .share .ok { color: var(--gold-light); border-color: var(--gold); }
  .rel a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-dark); font-weight: 600; font-size: 14px; transition: color .2s; }
  .rel a:hover { color: var(--gold-light); }
  .cta-box > .in { background: var(--navy); }
  .cta-box p { font-size: 15px; color: var(--on-dark-soft); margin-bottom: 18px; }
  .cta-box strong { display: block; font-size: 18px; font-weight: 800; text-transform: uppercase; color: #fff; margin-bottom: 8px; }

  /* Related */
  .related { background: var(--graphite-2); padding: 96px 0; }
  .related-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; }
  .related-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; text-transform: uppercase; color: #fff; }
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ncard .in { display: flex; flex-direction: column; }
  .ncard .img { aspect-ratio: 16 / 10; overflow: hidden; }
  .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 .meta { margin-bottom: 0; }
  .ncard h3 { font-size: 18px; font-weight: 700; line-height: 1.35; color: #fff; }
  .more { margin-top: auto; 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; }

  /* 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; }
  .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) { .a-layout { grid-template-columns: 1fr; gap: 40px; } .aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 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; } .grid { grid-template-columns: 1fr 1fr; } .footer-grid { grid-template-columns: 1fr 1fr; } .cover > .in { aspect-ratio: 16 / 10; } }
  @media (max-width: 600px) { .container { padding: 0 20px; } .grid, .footer-grid { grid-template-columns: 1fr; } .prose { font-size: 16px; } }
  @media (prefers-reduced-motion: reduce) { .a-head h1, .a-head .lead, .cover, .cover img { 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}
