/*!
 * pages.css - inner-page layer for the "prioritet-v5" design.
 *
 * Loaded on every page EXCEPT the home page, after css/redesign.css, and built
 * entirely on the redesign tokens (--gold, --ink, --line, --cream, --espresso,
 * --ease). The home page has its own section vocabulary in redesign.css; this
 * file adds the pieces only inner pages need - a page hero with breadcrumbs,
 * generic card grids, spec tables, prose and the closing CTA band.
 *
 * Typography: Manrope throughout (display headings were Instrument Serif, an
 * italic Latin-only face that silently fell back to the browser's default
 * system serif on every Russian string - the "dated, curved font" the client
 * flagged).
 */

/* ================= PAGE SHELL ================= */
/* Sits under the fixed nav. The hero carries the top offset so a page with no
   hero still clears the header. */
body.pr-page main { padding-top: 0 }
.pshell { position: relative }

/* ================= PAGE HERO ================= */
.phero { position: relative; background: var(--cream); padding: 148px 0 56px; overflow: hidden }
/* A staggered entrance for the hero, on load rather than on scroll - the hero
   is already in view, so an IntersectionObserver would fire instantly anyway
   and the delays are what make it read as a sequence. */
.phero .crumbs,
.phero h1,
.phero-local,
.phero-lead,
.phero-cta,
.phero-facts,
.phero-panel { animation: ph-in .85s var(--ease) backwards }
.phero .crumbs { animation-delay: .05s }
.phero h1 { animation-delay: .14s }
.phero-local { animation-delay: .19s }
.phero-lead { animation-delay: .24s }
.phero-lead + .phero-lead { animation-delay: .3s }

/* The branch line under an inner page's H1. Set in the mono face at the size
   of the eyebrows, so it reads as a data line rather than as the start of the
   copy - the lead paragraph is what follows and it should keep that role. */
.phero-local {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.6;
  letter-spacing: .02em; color: var(--bronze-ink); margin: 14px 0 4px;
}
.phero-cta { animation-delay: .36s }
.phero-facts { animation-delay: .46s }
.phero-panel { animation-delay: .3s }
@keyframes ph-in { from { opacity: 0; transform: translateY(18px) } }
/* the hairline that separates the hero from the page, drawn left to right */
.phero::before {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; animation: ph-rule 1.4s var(--ease) .5s forwards
}
@keyframes ph-rule { to { transform: none } }
.phero::after {
  content: ""; position: absolute; right: -180px; top: -200px; width: 620px; height: 620px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--gold-rgb), .16), transparent 62%)
}
.phero .wrap { position: relative; z-index: 1 }
.phero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center }
.phero-grid.solo { grid-template-columns: 1fr }
/* A grid track defaults to min-width:auto, so one unbreakable child can push the
   track - and with it the whole page - wider than the viewport. On the metal
   pages a single nowrap price string ("Цена формируется по актуальным биржевым
   котировкам золота") blew the hero out to 561px at a 390px viewport and
   clipped the heading, the lead, the buttons and the fact pills. body's
   overflow-x:clip hid it from the scrollbar, so it only showed as cut-off text. */
.phero-grid > *,
.pgrid > *,
.cat-layout > *,
.psec-head.with-side > * { min-width: 0 }
.phero h1 {
  font-family: 'Manrope', sans-serif; font-weight: 400;
  font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -.012em; margin-top: 18px
}
.phero h1 .it { color: var(--gold) }
.phero-lead { color: var(--ink-soft); font-size: 17px; line-height: 1.65; max-width: 560px; margin-top: 20px }
.phero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px }

/* breadcrumbs */
.crumbs {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bronze-ink)
}
.crumbs a { transition: color .2s }
.crumbs a:hover { color: var(--gold) }
.crumbs i { font-style: normal; opacity: .5 }
.crumbs span[aria-current] { color: var(--ink-soft) }

/* three facts under the hero copy */
.phero-facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px }
.pfact {
  border: 1px solid var(--line); background: var(--paper); border-radius: 100px;
  padding: 11px 20px; font-size: 13px; color: var(--ink-soft)
}
.pfact b { font-family: 'JetBrains Mono', monospace; font-weight: 500; color: var(--gold-ink) }

/* optional hero art panel */
.phero-art { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 5/4; background: var(--cream-2) }
.phero-art img { width: 100%; height: 100%; object-fit: cover }
.phero-art figcaption {
  position: absolute; left: 16px; bottom: 14px; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #fff;
  background: rgba(var(--espresso-rgb), .5); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 100px
}
/* ================= ANIMATED HERO ART =================
   Replaces the one stock photograph every brand page used to repeat. Three
   variants share a dial; only the centrepiece changes. */
.ha {
  position: relative; aspect-ratio: 1/1; width: 100%; max-width: 460px; margin-inline: auto;
  display: grid; place-items: center
}
.ha-glow {
  position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--gold-rgb), .20), rgba(var(--gold-rgb), .05) 55%, transparent 70%);
  animation: ha-breathe 7s var(--ease) infinite
}
@keyframes ha-breathe { 0%, 100% { transform: scale(.94); opacity: .75 } 50% { transform: scale(1.04); opacity: 1 } }

.ha-dial { position: relative; width: 100%; height: 100%; overflow: visible }
.ha-face { fill: var(--paper); stroke: var(--line); stroke-width: 1; opacity: .72 }
.ha-ticks line { stroke: var(--gold) }
.ha-ticks { transform-origin: 200px 200px; animation: ha-spin 120s linear infinite }
@keyframes ha-spin { to { transform: rotate(360deg) } }

.ha-arc, .ha-hair { fill: none; transform-origin: 200px 200px }
.ha-hair { stroke: var(--line); stroke-width: 1 }
.ha-arc { stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round }
/* 2πr for r=150 and r=122 */
.ha-arc-1 { stroke-dasharray: 190 753; stroke-dashoffset: 943; animation: ha-draw1 2.4s var(--ease) .25s forwards, ha-spin 34s linear 2.6s infinite }
.ha-arc-2 { stroke-dasharray: 120 647; stroke-dashoffset: 767; opacity: .55; animation: ha-draw2 2.4s var(--ease) .45s forwards, ha-spin 26s linear reverse 2.8s infinite }
@keyframes ha-draw1 { to { stroke-dashoffset: 753 } }
@keyframes ha-draw2 { to { stroke-dashoffset: 647 } }

/* watch: a sweeping seconds hand */
.ha-hand { transform-origin: 200px 200px; animation: ha-spin 12s linear infinite }
.ha-hand line { stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round }
.ha-pivot { fill: var(--gold) }

/* gem: a faceted stone with a light sweep across it */
.ha-gem { transform-origin: 200px 200px; animation: ha-float 6s var(--ease) infinite }
@keyframes ha-float { 0%, 100% { transform: translateY(-4px) } 50% { transform: translateY(6px) } }
.ha-gem-crown { fill: rgba(var(--gold-rgb), .18); stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round }
.ha-gem-pav { fill: rgba(var(--gold-rgb), .10); stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round }
.ha-gem-facet, .ha-gem-facet2 { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .5 }
.ha-gem-facet { animation: ha-glint 4.5s var(--ease) infinite }
.ha-gem-facet2 { animation: ha-glint 4.5s var(--ease) 2.2s infinite }
@keyframes ha-glint { 0%, 70%, 100% { opacity: .25 } 82% { opacity: 1 } }

/* metal: a stack of bars that settles in */
.ha-bars rect { fill: rgba(var(--gold-rgb), .16); stroke: var(--gold); stroke-width: 1.3 }
.ha-bars rect:nth-child(1) { animation: ha-rise .9s var(--ease) .5s backwards }
.ha-bars rect:nth-child(2) { animation: ha-rise .9s var(--ease) .68s backwards }
.ha-bars rect:nth-child(3) { animation: ha-rise .9s var(--ease) .86s backwards }
@keyframes ha-rise { from { opacity: 0; transform: translateY(16px) } }

/* coins: three struck discs, the front one turning edge-on and back again */
/* Opaque paper fill, not a tint: the discs overlap, and a translucent fill turned
   the group into one blob of intersecting rings. */
.ha-coin > circle:first-child { fill: var(--paper); stroke: var(--gold); stroke-width: 1.6 }
.ha-coin .ha-coin-in { fill: rgba(var(--gold-rgb), .1); stroke: var(--gold); opacity: .55; stroke-width: 1 }
.ha-coin-ray { stroke: var(--gold); stroke-width: 1.2; opacity: .5 }
/* scaleX rather than rotateY: the SVG has no 3D context, and squeezing the disc
   horizontally reads the same as a coin turning on the spot. */
.ha-coin-1 { transform-origin: 197px 206px; animation: ha-flip 9s var(--ease) infinite }
.ha-coin-2 { transform-origin: 144px 166px; animation: ha-float 7s var(--ease) .6s infinite }
.ha-coin-3 { transform-origin: 258px 190px; animation: ha-float 8s var(--ease) 1.4s infinite }
@keyframes ha-flip {
  0%, 54% { transform: scaleX(1) }
  70% { transform: scaleX(.08) }
  86%, 100% { transform: scaleX(1) }
}

/* three marks orbiting at different radii and speeds */
.ha-orbit { transform-origin: 200px 200px }
.ha-orbit circle { fill: var(--gold) }
.ha-orbit-1 { animation: ha-spin 18s linear infinite }
.ha-orbit-2 { animation: ha-spin 27s linear reverse infinite; opacity: .6 }
.ha-orbit-3 { animation: ha-spin 40s linear infinite; opacity: .45 }

/* The label sits low and opaque so the gem/bars stay legible above it and the
   sweeping hand passes behind it like a date window. */
.ha-center {
  position: absolute; bottom: 19%; font-family: 'Manrope', sans-serif;
  font-size: clamp(17px, 2.1vw, 24px); line-height: 1; color: var(--ink); text-align: center;
  max-width: 72%; background: var(--paper); border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis
}
.ha figcaption {
  position: absolute; bottom: 3%; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-ink); text-align: center
}

@media (prefers-reduced-motion: reduce) {
  .ha-glow, .ha-ticks, .ha-arc-1, .ha-arc-2, .ha-hand, .ha-gem,
  .ha-gem-facet, .ha-gem-facet2, .ha-bars rect, .ha-orbit,
  .ha-coin-1, .ha-coin-2, .ha-coin-3 { animation: none !important }
  .ha-arc-1 { stroke-dashoffset: 753 }
  .ha-arc-2 { stroke-dashoffset: 647 }
}

/* a plain list panel when there is no photograph to show */
.phero-panel { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); padding: 30px 30px 26px }
.phero-panel h2 { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 26px; margin-bottom: 16px }
.phero-panel .row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px
}
.phero-panel .row:last-child { border-bottom: 0 }
.phero-panel .row .v { font-family: 'JetBrains Mono', monospace; color: var(--gold-ink); white-space: nowrap; font-weight: 500 }

@media(max-width:960px) {
  .phero { padding: 118px 0 44px }
  .phero-grid { grid-template-columns: 1fr; gap: 32px }
  .phero-art { aspect-ratio: 16/10 }
}
@media(max-width:620px) {
  /* value under label instead of beside it - some values are whole sentences */
  .phero-panel { padding: 24px 22px 20px }
  .phero-panel .row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0 }
  .phero-panel .row .v { white-space: normal }
  .phero-lead { font-size: 16px }
  .phero-cta { gap: 10px }
  .phero-cta > * { flex: 1 1 100%; text-align: center }
}

/* ================= SECTION HEADS ON INNER PAGES ================= */
/* Same rhythm as the home page, one notch tighter. */
:where(body.pr-page) section { padding: 88px 0; position: relative }
@media(max-width:860px) { :where(body.pr-page) section { padding: 60px 0 } }
/* The numbered kicker reuses .kicker from redesign.css - already styled there,
   and already in the selector list js/site-redesign.js observes, so its rule
   draws itself in without any new code. */
.psec-head .kicker { margin-bottom: 18px }
.psec-head .kicker .eyebrow { white-space: nowrap }

.psec-head { margin-bottom: 42px; max-width: 780px }
.psec-head h2 { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.06 }
.psec-head h2 .it { color: var(--gold) }
.psec-head p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin-top: 14px }
/* Grid rather than flex: the head now holds three children (kicker, h2, side
   paragraph) and space-between spread them across the row, leaving the heading
   stranded in the middle. The kicker and the heading belong in one column. */
.psec-head.with-side {
  display: grid; grid-template-columns: 1fr minmax(0, 340px); column-gap: 34px;
  align-items: end; max-width: none
}
.psec-head.with-side .kicker { grid-column: 1; grid-row: 1 }
.psec-head.with-side h2 { grid-column: 1; grid-row: 2 }
.psec-head.with-side p { grid-column: 2; grid-row: 2; max-width: 340px; margin-top: 0 }
@media(max-width:860px) {
  .psec-head.with-side { grid-template-columns: 1fr; row-gap: 14px }
  .psec-head.with-side .kicker,
  .psec-head.with-side h2,
  .psec-head.with-side p { grid-column: 1; grid-row: auto }
}

/* ================= STATS BAND ================= */
.pstats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--cream-2)
}
.pstat { padding: 32px 28px; border-right: 1px solid var(--line); transition: background .35s }
.pstat:last-child { border-right: 0 }
.pstat:hover { background: var(--paper) }
.pstat-n {
  font-family: 'Manrope', sans-serif; font-size: clamp(34px, 3.6vw, 52px); line-height: 1;
  color: var(--gold); white-space: nowrap
}
.pstat-n .u { font-size: .4em; color: var(--bronze-ink); vertical-align: super; margin-left: 3px }
.pstat-l { color: var(--ink-soft); font-size: 13px; line-height: 1.5; margin-top: 12px; max-width: 210px }
.pstats-note { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); max-width: 620px }
@media(max-width:900px) {
  .pstats { grid-template-columns: 1fr 1fr }
  .pstat { padding: 24px 20px; border-bottom: 1px solid var(--line) }
  .pstat:nth-child(2n) { border-right: 0 }
  .pstat:nth-last-child(-n+2) { border-bottom: 0 }
}

/* ================= CARD GRIDS ================= */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.pgrid.g2 { grid-template-columns: repeat(2, 1fr) }
.pgrid.g4 { grid-template-columns: repeat(4, 1fr) }
.pgrid.g5 { grid-template-columns: repeat(5, 1fr) }
@media(max-width:1000px) { .pgrid, .pgrid.g4, .pgrid.g5 { grid-template-columns: repeat(2, 1fr) } }
@media(max-width:620px) { .pgrid, .pgrid.g2, .pgrid.g4, .pgrid.g5 { grid-template-columns: 1fr } }

/* link card - the workhorse: brands, categories, services */
.lcard {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px;
  background: var(--cream-2); padding: 28px 26px 24px; transition: border-color .3s, transform .3s, box-shadow .3s
}
.lcard:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 24px 48px rgba(var(--ink-rgb), .09) }
.lcard .lk {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bronze-ink); margin-bottom: 16px
}
.lcard h3 { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 24px; line-height: 1.12 }
.lcard p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; margin-top: 10px; flex: 1 }
.lcard .go {
  margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--gold-ink);
  display: inline-flex; align-items: center; gap: 8px
}
.lcard .go i { font-style: normal; transition: transform .3s var(--ease) }
.lcard:hover .go i { transform: translateX(6px) }

/* compact variant for long brand lists */
.lcard.tight { padding: 22px 20px 20px }
.lcard.tight h3 { font-size: 20px }
.lcard.tight .lk { margin-bottom: 12px }

/* info card - no link, just a fact */
.icard { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); padding: 28px 26px }
.icard .n {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gold-ink);
  letter-spacing: .1em; margin-bottom: 22px
}
.icard h3 { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 21px; margin-bottom: 9px }
.icard p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6 }

/* ================= LISTS ================= */
.plist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px }
@media(max-width:700px) { .plist { grid-template-columns: 1fr } }
.plist li {
  list-style: none; border: 1px solid var(--line); background: var(--paper); border-radius: 12px;
  padding: 14px 18px 14px 42px; font-size: 14px; line-height: 1.5; color: var(--ink); position: relative
}
.plist li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 6px; margin-top: -4px;
  border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg)
}

/* pill tag row - reuses .stag from redesign.css for the item itself */
.ptags { display: flex; flex-wrap: wrap; gap: 10px }

/* ================= SPEC TABLE ================= */
.specs { border: 1px solid var(--line); border-radius: 18px; background: var(--cream-2); overflow: hidden }
.specs .r { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px 26px; border-bottom: 1px solid var(--line) }
.specs .r:last-child { border-bottom: 0 }
.specs .k {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bronze-ink); padding-top: 3px
}
.specs .v { font-size: 15px; line-height: 1.55 }
@media(max-width:640px) { .specs .r { grid-template-columns: 1fr; gap: 6px; padding: 14px 18px } }

/* ================= BANDS ================= */
.band-soft { background: var(--cream) }
.band-paper { background: var(--paper) }

/* closing CTA on every inner page */
.cta-band { background: var(--espresso); color: var(--cream); position: relative; overflow: hidden }
.cta-band::before {
  content: ""; position: absolute; right: -70px; top: -110px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb), .25), transparent 66%); pointer-events: none
}
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; position: relative }
.cta-in h2 { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.08 }
/* The closing CTA is a dark band, so the accent inverts - the light-surface
   accent measures 2.18:1 here. See --accent-on-dark in css/palette.css. */
.cta-in h2 .it { color: var(--accent-on-dark) }
.cta-in p { color: rgba(var(--cream-rgb), .62); font-size: 14.5px; line-height: 1.6; margin-top: 12px; max-width: 460px }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap }
.cta-band .btn-line { border-color: rgba(var(--cream-rgb), .35); color: var(--cream) }
.cta-band .btn-line:hover { background: var(--cream); border-color: var(--cream); color: var(--espresso) }

/* ================= RELATED LINKS ================= */
.rel { display: flex; flex-wrap: wrap; gap: 10px }
.rel a {
  border: 1px solid var(--line); background: var(--paper); border-radius: 100px; padding: 11px 20px;
  font-size: 13.5px; color: var(--ink-soft); transition: .25s
}
.rel a:hover { border-color: var(--gold); color: var(--gold) }

/* ================= PROSE (privacy policy, article body) ================= */
.prose { max-width: 780px; font-size: 16px; line-height: 1.75; color: var(--ink-soft) }
.prose h2 {
  font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 30px; line-height: 1.15;
  color: var(--ink); margin: 44px 0 14px
}
.prose h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin: 30px 0 10px }
.prose p { margin-bottom: 16px }
.prose ul, .prose ol { margin: 0 0 18px 22px }
.prose li { margin-bottom: 8px }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px }
.prose strong { color: var(--ink); font-weight: 600 }
.prose > :first-child { margin-top: 0 }

/* ================= NEWS CARDS =================
   .ncard comes from redesign.css (the home page grid). The archive adds a
   cover image and a lead paragraph, and uses h2/h3 where the home page uses
   h4, so those headings need the same treatment. */
.ncard h2, .ncard h3 { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 20px; line-height: 1.15 }
.ncard-lead { color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; margin-top: 10px; flex: 1 }
.ncard h2 + .more, .ncard h3 + .more { margin-top: auto }
.ncard-img {
  margin: -26px -26px 20px; border-radius: 17px 17px 0 0; overflow: hidden;
  aspect-ratio: 16/10; background: var(--cream)
}
.ncard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease) }
.ncard:hover .ncard-img img { transform: scale(1.05) }

/* ================= ARTICLE ================= */
.art-head { max-width: 820px }
.art-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bronze-ink); margin-bottom: 18px
}
.art-cover { border-radius: 20px; overflow: hidden; margin: 40px 0; background: var(--cream-2) }
.art-cover img { width: 100%; height: auto; display: block }

/* ================= PAGINATION ================= */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap }
.pager a, .pager span {
  min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--paper);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink-soft); transition: .25s
}
.pager a:hover { border-color: var(--gold); color: var(--gold) }
.pager .current { background: var(--espresso); border-color: var(--espresso); color: var(--cream) }

/* ================= EMPTY STATE ================= */
.empty { border: 1px dashed var(--line); border-radius: 18px; padding: 52px 30px; text-align: center; background: var(--cream-2) }
.empty h2 { font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 26px; margin-bottom: 10px }
.empty p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; max-width: 460px; margin: 0 auto 22px }

/* ================= TOUCH TARGETS =================
   Everything a finger has to hit gets at least 40px of height on a phone. */
@media(max-width:900px) {
  .rel a { padding: 13px 20px }
  .pfact { padding: 13px 20px }
  .crumbs { gap: 7px; font-size: 10px }
  /* secondary nav, but still a link a thumb has to hit */
  .crumbs a { display: inline-block; padding: 10px 0 }
  .lcard { padding: 24px 22px 22px }
  .lcard .lk { font-size: 11.5px }
  .pstat-n { font-size: clamp(30px, 9vw, 40px) }
  .cta-in h2 { font-size: clamp(24px, 7vw, 32px) }
  .cta-btns { width: 100%; }
  .cta-btns > * { flex: 1 1 100%; text-align: center }
  .ha { max-width: 320px }
  .prose { font-size: 15.5px }
  .prose h2 { font-size: 25px; margin-top: 34px }
  .specs .r { padding: 14px 18px }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion:reduce) {
  .lcard:hover, .rel a:hover { transform: none }
  .lcard .go i, .lcard:hover .go i { transition: none; transform: none }
  /* the hero entrance and its hairline: land in place, do not travel */
  .phero .crumbs, .phero h1, .phero-lead, .phero-cta, .phero-facts, .phero-panel,
  .phero::before { animation: none !important }
  .phero::before { transform: none }
  .ncard:hover .ncard-img img { transform: none }
}

/* ================= RATE TABLES (/rates/) ================= */
.rtable { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper) }
.rtable-head, .rtable-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; align-items: baseline;
  padding: 15px 24px
}
.rtable--two .rtable-head, .rtable--two .rtable-row { grid-template-columns: 1.4fr 1fr }
.rtable-head {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bronze-ink); background: var(--cream-2);
  border-bottom: 1px solid var(--line)
}
.rtable-row + .rtable-row { border-top: 1px dashed var(--line) }
.rt-metal { display: flex; align-items: baseline; gap: 10px; font-size: 15px }
.rt-metal i {
  font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--gold-ink); flex-shrink: 0
}
/* Tabular figures so the columns line up down the page; the mono face read as a
   terminal readout here, same note as the home price rows. */
.rt-cbr, .rt-our {
  font-family: 'Manrope', sans-serif; font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1; font-weight: 600; font-size: 15px
}
.rt-our { color: var(--gold-ink) }
.rt-dash { font-weight: 400; font-size: 13px; color: var(--ink-soft) }
.rgroup { margin-top: 30px }
.rgroup h3 {
  font-family: 'Manrope', sans-serif; font-weight: 400; font-size: 24px;
  margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px
}
.rgroup-sym { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gold-ink) }

@media (max-width: 860px) {
  .rtable-head, .rtable-row { grid-template-columns: 1fr auto; gap: 10px; padding: 13px 16px }
  /* The third column wraps under the metal name instead of squeezing all three
     into 390px, so the two prices stay side by side with their own labels. */
  .rtable-head span:nth-child(3) { display: none }
  .rtable-row .rt-our { grid-column: 2; font-size: 13px }
  .rtable-row .rt-our::before { content: "мы: "; font-weight: 400; color: var(--ink-soft) }
  .rt-metal, .rt-cbr { font-size: 14px }
}
