/* ATEMRA Hero v2 — art-direction polish pass.
   Consumes tokens.css (Atemra v3 — Tungsten & Copper). */

/* ── Hero shell ─────────────────────────────────────────── */
.atemra-hero {
  position: relative;
  width: 100%;
  --atemra-exhibit-max-height: 520px;
  min-height: 92vh;
  min-height: 92svh;
  background: #0e0f11;
  color: var(--atemra-text);
  font-family: var(--font-family-body);
  overflow: hidden;
  isolation: isolate;
}

/* Grid — 48px, neutral hairline, top→bottom linear fade. Mirrors LLM/code.html. */
.atemra-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--atemra-hairline-20) 1px, transparent 1px),
    linear-gradient(to bottom, var(--atemra-hairline-20) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, black 42%, rgba(0,0,0,0.55) 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 42%, rgba(0,0,0,0.55) 72%, transparent 100%);
  pointer-events: none;
}

/* Vignette — diagonal copper bloom, TR + BL radial pools. */
.atemra-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(200, 116, 44, 0.05), transparent 40%),
    radial-gradient(circle at bottom left, rgba(200, 116, 44, 0.05), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.atemra-hero__inner {
  position: relative;
  z-index: 5;
  max-width: var(--hero-max-width);
  margin: 0 auto;
  padding: 48px 2rem 72px;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.6vw, 2.5rem);
  min-height: 100%;
}

/* ── Atmospheric layers (z 0..3) ─────────────────────────────
   Composition mirrors LLM/code.html reference:
   1. Hairline grid with linear top→bottom mask (drafting-paper fade)
   2. Diagonal copper bloom — two radial pools at TR + BL corners
   3. Soft warm vignette — edges only, no center darkening
   4. Film-grain — fractalNoise SVG, no blend-mode (preserves copper hue)
*/
.atemra-grid-bg {
  display: none;
}

/* Diagonal copper bloom — TR + BL radial pools.
   Matches reference: rgba(200,116,44,0.05) → transparent 40%, two corners. */
.atemra-vignette {
  display: none;
}

/* Subtle warm edge falloff — corners cooled by ~12% to anchor the bloom. */
.atemra-rimlight {
  display: none;
}

/* Mottled texture — large low-freq blotches, aged-paper feel.
   512×512 tile, baseFrequency 0.012 → patches ~40–80px.
   numOctaves 3 stacks slow + fast variation for organic look.
   soft-light blend keeps copper hue but adds tonal break-up. */
.atemra-mottle {
  display: none;
}

/* Fine film-grain — inline SVG, 256×256 tile.
   High-freq grain, sits on top of mottle for paper-fibre texture. */
.atemra-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ── Meta lockup ─────────────────────────────────────────── */
.atemra-meta {
  display: flex; align-items: center; gap: 0.875rem;
  border-bottom: 1px solid var(--atemra-hairline);
  padding-bottom: 1rem;
  font-family: var(--font-family-body);
  font-size: var(--font-size-eyebrow);
  letter-spacing: var(--letter-spacing-meta);
  text-transform: uppercase;
  color: var(--atemra-text-faint);
}
.atemra-meta__brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--atemra-copper); text-decoration: none;
}
.atemra-meta__brand:focus-visible { outline: 2px solid var(--atemra-copper-hover); outline-offset: 2px; }
.atemra-meta__wordmark {
  color: var(--atemra-text); font-weight: 600;
  letter-spacing: 0.22em; font-size: 0.75rem;
}
.atemra-meta__sep  { color: var(--atemra-hairline-strong); }
.atemra-meta__slug { color: var(--atemra-text-muted); }
.atemra-meta__est  { margin-left: auto; }

/* ── Split ───────────────────────────────────────────────── */
.atemra-hero__split {
  display: grid; gap: var(--hero-grid-gap);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .atemra-hero__split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}
.atemra-hero__left  {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.125rem, 2.2vw, 1.75rem);
  min-width: 0;
  isolation: isolate;
}
.atemra-hero__left::before {
  content: '';
  position: absolute;
  inset: -1rem -1.5rem -1.25rem -1.5rem;
  z-index: -1;
  background: linear-gradient(90deg, var(--atemra-ground-62), var(--atemra-ground-20) 68%, transparent);
  pointer-events: none;
}
.atemra-hero__right { min-width: 0; display: flex; align-items: flex-start; }
@media (min-width: 960px) {
  .atemra-hero__right {
    justify-content: flex-end;
  }
}

/* ── Copy ────────────────────────────────────────────────── */
.atemra-copy { display: flex; flex-direction: column; gap: 1.125rem; position: relative; }

.atemra-eyebrow {
  margin: 0;
  font-size: var(--font-size-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-meta);
  color: var(--atemra-copper-hover);
  font-weight: 500;
  display: flex; align-items: center; gap: 0.75rem;
}
.atemra-eyebrow__mark {
  width: 28px; height: 1px; background: var(--atemra-copper); flex: 0 0 auto;
}

/* Two-tier H1: sentence-case serif display lead + body tail with italic-copper LCP anchor.
   WHY sentence-case (not caps): Cyrillic uppercase in serif loses letter differentiation
   (Ц/Ш/Щ/Й read heavier), and caps serif skews "announcement" rather than "premium". */
.atemra-h1 {
  margin: 0;
  font-family: var(--font-family-display);
  font-optical-sizing: auto;
  color: var(--atemra-text);
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.atemra-h1__lead {
  display: block;
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw + 0.5rem, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 26ch;
  text-wrap: balance;
}
.atemra-h1__tail {
  display: block;
  font-family: var(--font-family-body);
  font-weight: 400;
  font-size: clamp(1.0625rem, 0.95vw + 0.85rem, 1.375rem);
  line-height: 1.45;
  letter-spacing: 0;
  color: rgba(197, 200, 188, 0.82);
  max-width: 46rem;
}
.atemra-h1__accent {
  font-style: italic;
  font-weight: 500;
  color: var(--atemra-copper);
}

.atemra-sub {
  position: relative;
  padding-left: 1rem;
  border-left: 1px solid var(--atemra-copper);
  max-width: 36ch;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.atemra-sub__lead {
  margin: 0;
  font-size: var(--font-size-hero-sub);
  line-height: 1.4;
  color: var(--atemra-text);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.atemra-sub__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--atemra-text-muted);
}

/* ── CTAs — brushed-metal primary ────────────────────────── */
.atemra-ctas {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.875rem 1.25rem;
  margin-top: 0.25rem;
}
.atemra-btn {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-copper),
              color var(--transition-copper),
              transform 120ms ease-out,
              border-color var(--transition-copper);
}
.atemra-btn:focus-visible { outline: 2px solid var(--atemra-copper-hover); outline-offset: 2px; }

.atemra-btn--primary {
  color: #160c05;
  padding: 0.75rem 1.375rem;
  border: 1px solid #a75a21;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 42%),
    linear-gradient(180deg, #c97833 0%, #bd6d2b 54%, #9e531c 100%);
}
.atemra-btn--primary:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), transparent 46%),
    linear-gradient(180deg, #d0843b 0%, #c3722d 54%, #a95a20 100%);
}
.atemra-btn--primary:active { transform: translateY(1px); }
.atemra-btn--primary svg { transition: transform 180ms ease-out; }
.atemra-btn--primary:hover svg { transform: translateX(2px); }

/* Ghost CTA — copper-deep underline (on-brand subtle) + native text-decoration
   for correct baseline + thickness control. Hover brightens to copper-hover. */
.atemra-btn--ghost {
  background: transparent;
  color: var(--atemra-text);
  padding: 0.75rem 0.125rem;
  border: 0;
  text-decoration: underline;
  text-decoration-color: var(--atemra-copper-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.atemra-btn--ghost:hover {
  color: var(--atemra-copper-hover);
  text-decoration-color: var(--atemra-copper-hover);
}
.atemra-btn--ghost svg { transition: transform 180ms ease-out; }
.atemra-btn--ghost:hover svg { transform: translateX(2px); }

/* Quiet trust-promise — anxiety killer near CTA.
   Small caps-ish, faint color, lock icon. Reader scanning for "what about my data"
   finds this strip and the lock visually before clicking primary CTA. */
.atemra-trust-promise {
  margin: 0.5rem 0 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: none;
  font-family: var(--font-family-body);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--atemra-text-muted);
}
.atemra-trust-promise__icon {
  flex: 0 0 auto;
  margin-top: 0.2em;
  color: var(--atemra-copper-deep);
  opacity: 0.85;
}

/* Response time line */
.atemra-response {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--atemra-text-muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
  display: flex; align-items: baseline; gap: 0.5rem;
  max-width: none;
}
.atemra-response__dash {
  color: rgba(200, 116, 44, 0.72);
  font-weight: 600;
  flex: 0 0 auto;
}

/* ── KPI strip — 3 inline facts ─────────────────────────────
   WHY redesign: previous version had 5 visual layers (icon, "01" meta, value,
   label, desc) → competed with H1 for attention and felt heavy. Reduced to
   value + label only. No top/bottom borders (was reading as a footer band).
   Hairline only between items. */
.atemra-kpis {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: transparent;
}
.atemra-kpi {
  position: relative;
  padding: 0.5rem 1.25rem 0.5rem 0;
  display: flex; flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.atemra-kpi + .atemra-kpi {
  padding-left: 1.25rem;
  border-left: 1px solid var(--atemra-hairline-50);
}
.atemra-kpi__value {
  font-family: var(--font-family-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.125rem, 0.6vw + 0.95rem, 1.375rem);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--atemra-copper-hover);
}
.atemra-kpi__label {
  font-family: var(--font-family-body);
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--atemra-text-muted);
}

/* ── Exhibit ─────────────────────────────────────────────── */
.atemra-exhibit {
  position: relative;
  margin: 0;
  display: flex; flex-direction: column;
  height: auto;
  width: min(100%, calc(var(--atemra-exhibit-max-height) * 3 / 4));
}
.atemra-exhibit__bloom {
  position: absolute;
  top: -10%; left: -10%; right: -10%; bottom: 10%;
  background: radial-gradient(ellipse 60% 55% at 50% 55%,
    rgba(200, 116, 44, 0.18) 0%,
    rgba(200, 116, 44, 0.06) 40%,
    transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.atemra-exhibit__frame {
  position: relative;
  z-index: 1;
  border: 1px solid var(--atemra-hairline);
  background: var(--atemra-surface);
  overflow: visible;
  flex: 0 0 auto;
  aspect-ratio: 3/4;
  width: 100%;
  max-height: var(--atemra-exhibit-max-height);
  min-height: auto;
}
.atemra-corner {
  position: absolute; width: var(--corner-size); height: var(--corner-size);
  pointer-events: none; z-index: 2;
}
.atemra-corner--tl { top: var(--corner-inset); left: var(--corner-inset);
  border-top: var(--corner-stroke) solid var(--atemra-copper);
  border-left: var(--corner-stroke) solid var(--atemra-copper); }
.atemra-corner--tr { top: var(--corner-inset); right: var(--corner-inset);
  border-top: var(--corner-stroke) solid var(--atemra-copper);
  border-right: var(--corner-stroke) solid var(--atemra-copper); }
.atemra-corner--bl { bottom: var(--corner-inset); left: var(--corner-inset);
  border-bottom: var(--corner-stroke) solid var(--atemra-copper);
  border-left: var(--corner-stroke) solid var(--atemra-copper); }
.atemra-corner--br { bottom: var(--corner-inset); right: var(--corner-inset);
  border-bottom: var(--corner-stroke) solid var(--atemra-copper);
  border-right: var(--corner-stroke) solid var(--atemra-copper); }
.atemra-exhibit__stack { position: absolute; inset: 0 0 48px; display: grid; grid-template-areas: "slot"; place-items: center; }
.atemra-exhibit__slide {
  grid-area: slot;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(1.5rem, 3vh, 1.9rem) 1.65rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.atemra-exhibit__slide.is-active { opacity: 1; transform: translateY(0); }
.atemra-exhibit__slide img {
  display: block;
  max-width: 94%;
  max-height: 96%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* ── Exhibit caption ────────────────────────────────────────
   WHY redesign: previous drawer (rgba(29,32,36,0.92) bg + 2-row layout)
   read as "card-in-card" and gave equal visual weight to spec + title.
   Now single inline row: spec (faint label) · title (bone) · alloy (meta).
   No drawer bg — frame surface shows through. Arrow inline, no chip. */
/* Caption — no top divider. Previous `border-top` ran parallel to the bottom
   corner markers, creating a double-line at the frame bottom edge. Now the
   caption sits inside the frame, anchored only by padding + corner markers. */
.atemra-exhibit__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  display: flex; align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: var(--font-family-body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--atemra-text-muted);
}
.atemra-exhibit__link {
  display: flex; align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-decoration: none; color: inherit;
  transition: color var(--transition-copper);
  min-width: 0;
}
.atemra-exhibit__spec  {
  color: var(--atemra-text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6875rem;
  flex: 0 0 auto;
}
.atemra-exhibit__part  {
  color: var(--atemra-text);
  font-weight: 500;
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.atemra-exhibit__alloy {
  color: var(--atemra-text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
  flex: 0 0 auto;
}
.atemra-exhibit__sep {
  color: var(--atemra-hairline-strong);
  flex: 0 0 auto;
}
.atemra-exhibit__no {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--atemra-copper);
  transition: transform var(--transition-copper);
  flex: 0 0 auto;
}
.atemra-exhibit__no svg {
  width: 16px;
  height: 16px;
}
.atemra-exhibit__link:hover .atemra-exhibit__part { color: var(--atemra-copper-hover); }
.atemra-exhibit__link:hover .atemra-exhibit__no   { color: var(--atemra-copper-hover); transform: translateX(2px); }
.atemra-exhibit__link:focus-visible { outline: 2px solid var(--atemra-copper-hover); outline-offset: 2px; }

/* Pip nav — short hairline strokes, no numbers */
.atemra-exhibit__nav { display: flex; gap: 0.5rem; align-items: center; }
.atemra-exhibit__pip {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--atemra-hairline-strong);
  width: 20px; height: 14px;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--transition-copper), width 180ms ease-out;
}
.atemra-exhibit__pip:hover     { border-bottom-color: var(--atemra-text-muted); }
.atemra-exhibit__pip.is-active { border-bottom-color: var(--atemra-copper); width: 32px; }
.atemra-exhibit__pip:focus-visible { outline: 2px solid var(--atemra-copper-hover); outline-offset: 2px; }

/* ── Trust bar — desktop marquee, mobile snap-scroll ─────── */
.atemra-trust {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--atemra-hairline);
  font-family: var(--font-family-body);
  font-size: var(--font-size-eyebrow);
  letter-spacing: var(--letter-spacing-meta);
  text-transform: uppercase;
  color: var(--atemra-text-faint);
  overflow: hidden;
}
.atemra-trust__label { color: var(--atemra-text-muted); font-weight: 600; flex: 0 0 auto; }
.atemra-trust__sep   { color: var(--atemra-hairline-strong); flex: 0 0 auto; }

.atemra-marquee {
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.atemra-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: atemra-marquee 30s linear infinite;
}
.atemra-marquee__group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  flex: 0 0 auto;
}
.atemra-marquee__item { color: var(--atemra-text-muted); white-space: nowrap; flex: 0 0 auto; }
@keyframes atemra-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.atemra-marquee:hover .atemra-marquee__track { animation-play-state: paused; }
.atemra-marquee.is-paused .atemra-marquee__track { animation-play-state: paused; }

.atemra-marquee__toggle {
  appearance: none;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--atemra-text-muted);
  border: 1px solid var(--atemra-hairline);
  cursor: pointer;
  transition: color var(--transition-copper), border-color var(--transition-copper);
}
.atemra-marquee__toggle:hover,
.atemra-marquee__toggle[aria-pressed="true"] {
  color: var(--atemra-copper-hover);
  border-color: var(--atemra-hairline-strong);
}
.atemra-marquee__toggle:focus-visible {
  outline: 2px solid var(--atemra-copper-hover);
  outline-offset: 2px;
}
.atemra-marquee__pause {
  width: 10px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.atemra-marquee__toggle[aria-pressed="true"] .atemra-marquee__pause {
  width: 0;
  height: 0;
  border-left: 9px solid currentColor;
  border-right: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ── TopNav ──────────────────────────────────────────────
   Sticky industrial header. Sits above .atemra-hero. */
.atemra-topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--atemra-ground);
  border-bottom: 1px solid var(--atemra-hairline);
}
.atemra-topnav__inner {
  max-width: var(--hero-max-width);
  margin: 0 auto;
  padding: 1rem var(--hero-padding-inline);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.atemra-topnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--atemra-text);
  text-decoration: none;
  flex: 0 0 auto;
}
.atemra-topnav__brand:focus-visible {
  outline: 2px solid var(--atemra-copper-hover);
  outline-offset: 2px;
}
.atemra-topnav__brand svg {
  width: 28px;
  height: 28px;
  color: var(--atemra-copper);
}
.atemra-topnav__wordmark {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.22em;
  color: var(--atemra-text);
  text-transform: uppercase;
}
.atemra-topnav__menu {
  display: none;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  margin-left: 1.5rem;
}
@media (min-width: 880px) {
  .atemra-topnav__menu { display: flex; }
}
.atemra-topnav__link {
  font-family: var(--font-family-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atemra-text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-copper), border-color var(--transition-copper);
}
.atemra-topnav__link:hover {
  color: var(--atemra-text);
  border-bottom-color: var(--atemra-copper);
}
.atemra-topnav__link:focus-visible {
  outline: 2px solid var(--atemra-copper-hover);
  outline-offset: 2px;
}
.atemra-lang {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--font-family-body);
}
.atemra-lang__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 38px;
  padding: 0 0.7rem;
  border: 1px solid var(--atemra-hairline);
  color: var(--atemra-text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  list-style: none;
  transition: border-color var(--transition-copper), color var(--transition-copper);
}
.atemra-lang__summary::-webkit-details-marker {
  display: none;
}
.atemra-lang__summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  opacity: 0.75;
}
.atemra-lang[open] .atemra-lang__summary,
.atemra-lang__summary:hover {
  border-color: var(--atemra-copper);
  color: var(--atemra-copper-hover);
}
.atemra-lang__summary:focus-visible {
  outline: 2px solid var(--atemra-copper-hover);
  outline-offset: 2px;
}
.atemra-lang__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  width: 11.5rem;
  padding: 0.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  border: 1px solid var(--atemra-hairline-strong);
  background: color-mix(in srgb, var(--atemra-ground) 94%, black);
}
.atemra-lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  color: var(--atemra-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: color var(--transition-copper), border-color var(--transition-copper), background var(--transition-copper);
}
.atemra-lang__item:hover,
.atemra-lang__item:focus-visible {
  color: var(--atemra-copper-hover);
  border-color: var(--atemra-copper-deep);
  outline: none;
}
.atemra-lang__item.is-active {
  color: var(--atemra-text);
  background: var(--atemra-copper-deep);
  border-color: var(--atemra-copper-deep);
}
.atemra-topnav__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
@media (max-width: 520px) {
  .atemra-lang__menu {
    right: -4.5rem;
  }
}
.atemra-topnav__cta {
  display: none;
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--atemra-text);
  background: transparent;
  border: 1px solid var(--atemra-hairline-strong);
  padding: 0.625rem 1.125rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition-copper),
              color var(--transition-copper),
              background var(--transition-copper);
}
@media (min-width: 640px) {
  .atemra-topnav__cta { display: inline-flex; }
}
.atemra-topnav__cta:hover {
  border-color: var(--atemra-copper);
  color: var(--atemra-copper-hover);
}
.atemra-topnav__cta:focus-visible {
  outline: 2px solid var(--atemra-copper-hover);
  outline-offset: 2px;
}
.atemra-topnav__iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  color: var(--atemra-text-muted);
  border: 1px solid var(--atemra-hairline);
  cursor: pointer;
  transition: color var(--transition-copper), border-color var(--transition-copper);
}
.atemra-topnav__iconbtn:hover {
  color: var(--atemra-copper-hover);
  border-color: var(--atemra-hairline-strong);
}
.atemra-topnav__iconbtn:focus-visible {
  outline: 2px solid var(--atemra-copper-hover);
  outline-offset: 2px;
}

/* ── Page shell (file-level, mockup only) ────────────────
   Removes default body margin so .atemra-hero spans full viewport. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;  /* sticky topnav clearance for anchor jumps */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--atemra-ground);
  color: var(--atemra-text);
  font-family: var(--font-family-body);
}

/* Skip-link — visually hidden until focused (Tab from page start) */
.atemra-skip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.5rem 0.875rem;
  background: var(--atemra-copper);
  color: #160c05;
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 150ms ease-out;
}
.atemra-skip:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--atemra-copper-hover);
  outline-offset: 2px;
}

/* ── Small viewport defaults ─────────────────────────────── */
.atemra-hero {
  font-size: 14px;
}
.atemra-hero .atemra-hero__inner {
  --hero-padding-block: 1.25rem;
  --hero-padding-inline: 1.25rem;
  gap: 1.125rem;
}
.atemra-hero .atemra-exhibit__frame { min-height: 240px; }
.atemra-hero .atemra-sub__lead { font-size: 1.0625rem; }
.atemra-hero .atemra-ctas { gap: 0.75rem; }
.atemra-hero .atemra-btn--primary { flex: 1 1 auto; justify-content: center; }
.atemra-hero .atemra-btn--ghost   { flex: 1 1 auto; justify-content: center; padding-left: 0; padding-right: 0; }
.atemra-hero .atemra-kpis {
  grid-template-columns: 1fr;
}
.atemra-hero .atemra-kpi + .atemra-kpi {
  border-left: 0;
  border-top: 1px solid var(--atemra-hairline-50);
  padding-left: 0;
  padding-top: 0.75rem;
}
.atemra-hero .atemra-exhibit__nav { justify-content: center; }

@media (min-width: 721px) {
  .atemra-hero {
    font-size: 16px;
  }
  .atemra-hero .atemra-hero__inner {
    --hero-padding-block: 3rem;
    --hero-padding-inline: 2rem;
    gap: clamp(1.5rem, 2.6vw, 2.5rem);
  }
  .atemra-hero .atemra-exhibit__frame { min-height: auto; }
  .atemra-hero .atemra-sub__lead { font-size: var(--font-size-hero-sub); }
  .atemra-hero .atemra-ctas { gap: 0.875rem 1.25rem; }
  .atemra-hero .atemra-btn--primary { flex: 0 0 auto; }
  .atemra-hero .atemra-btn--ghost   { flex: 0 0 auto; justify-content: flex-start; padding-left: 0.125rem; padding-right: 0.125rem; }
  .atemra-hero .atemra-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .atemra-hero .atemra-kpi + .atemra-kpi {
    border-top: 0;
    border-left: 1px solid var(--atemra-hairline-50);
    padding-left: 1.25rem;
    padding-top: 0.5rem;
  }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .atemra-exhibit__slide   { transition: opacity 0ms !important; transform: none !important; }
  .atemra-btn              { transition: none !important; }
  .atemra-marquee__track   { animation: none !important; }
  .atemra-exhibit__pip     { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   REFERENCE PARITY PATCH — align with LLM/code.html
   Fixes identified in hero-v3 vs reference comparison:
   1. Exhibit frame had transparent bg → blade interior matched
      warm hero bg, no contrast. Reference uses cool surface.
   2. Corner markers were clipped by frame's overflow:hidden.
   3. Exhibit bloom (radial copper 0.18 alpha) overpowered the
      page-level vignette; reference has no per-exhibit bloom.
   4. Corner geometry tightened to 16px / -8px / 1px per reference.
   5. Slide padding raised to give blade breathing room.
   6. Body text raised to bone-white #f4f1eb.
═══════════════════════════════════════════════════════════ */

/* 1b. Inner top→bottom highlight inside frame — surface-raised → transparent
       at 20% opacity. Reference uses this for subtle vertical lighting. */
.atemra-exhibit__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #1d2024, transparent);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

/* 3. Kill per-exhibit copper bloom — reference relies only on
      .atemra-hero::after page vignette for warmth */
.atemra-exhibit__bloom {
  display: none;
}

/* 4. Corner markers — match reference 16px / -8px / 1px */
.atemra-corner {
  width: 16px;
  height: 16px;
}
.atemra-corner--tl { top: -8px; left:  -8px; }
.atemra-corner--tr { top: -8px; right: -8px; }
.atemra-corner--bl { bottom: -8px; left:  -8px; }
.atemra-corner--br { bottom: -8px; right: -8px; }

.atemra-exhibit__stack {
  overflow: hidden;
}

@media (min-width: 960px) {
  .atemra-hero {
    --atemra-exhibit-max-height: clamp(440px, 64vh, 500px);
  }

  .atemra-hero__inner {
    gap: clamp(1.25rem, 2vw, 2rem);
    padding-bottom: clamp(3rem, 7vh, 4rem);
  }

  .atemra-ctas {
    margin-top: 0;
  }

  .atemra-trust-promise,
  .atemra-response {
    max-width: 44rem;
  }
}

/* 6. Body text — bone-white per reference palette */
.atemra-hero {
  --atemra-text: #f4f1eb;
  color: #f4f1eb;
}

/* 7. H1 width — reference uses text-balance only, no ch cap.
      14ch was forcing aggressive wrap; lift to allow natural balance. */
.atemra-h1 {
  max-width: none;
}

/* 8. Sub copy width — reference uses max-w-2xl (42rem). */
.atemra-sub {
  max-width: 42rem;
}

@media (min-width: 960px) {
  .atemra-h1__lead {
    max-width: none;
  }
}

/* 10. Meta lockup row not present in reference — collapses dead band. */
.atemra-meta {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES SECTION
   Vertical-stacked blueprint modules. Each module = numbered card
   with audience badge, serif title, pain-hit line, action-bullet list.
   Reuses hero corner-marker language; asymmetric top-left only to
   signal "section is a continuation of hero blueprint, not a new card".
═══════════════════════════════════════════════════════════ */
.atemra-services {
  position: relative;
  background:
    linear-gradient(180deg, rgba(18, 20, 23, 0.84) 0%, rgba(14, 15, 17, 1) 100%);
  color: var(--atemra-text);
  border-top: 1px solid var(--atemra-hairline);
  padding: clamp(3rem, 7vh, 5.5rem) 0;
  font-family: var(--font-family-body);
  overflow: hidden;
  isolation: isolate;
}
.atemra-services::before,
.atemra-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to right, var(--atemra-hairline-20) 1px, transparent 1px),
    linear-gradient(to bottom, var(--atemra-hairline-20) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.38;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, rgba(0, 0, 0, 0.75) 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, rgba(0, 0, 0, 0.75) 72%, transparent 100%);
  pointer-events: none;
}
.atemra-services::after {
  content: "";
  position: absolute;
  inset: auto -12% -22% -12%;
  height: 38%;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(200, 116, 44, 0.07), transparent 68%);
  pointer-events: none;
}
.atemra-services__inner {
  position: relative;
  z-index: 1;
  max-width: var(--hero-max-width);
  margin: 0 auto;
  padding: 0 var(--hero-padding-inline);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

/* Section head */
.atemra-services__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 52rem;
}
.atemra-services__title {
  margin: 0;
  font-family: var(--font-family-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.75rem, 2.8vw + 0.5rem, 2.625rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--atemra-text);
  text-wrap: balance;
}
.atemra-services__sub {
  margin: 0;
  font-size: clamp(0.9375rem, 0.4vw + 0.85rem, 1.0625rem);
  line-height: 1.5;
  color: var(--atemra-text-muted);
  max-width: 46rem;
}

/* Module list */
.atemra-services__list {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.8vw, 1.5rem);
}

/* Module card */
.atemra-service {
  position: relative;
  padding: clamp(1.35rem, 2.4vw, 2rem);
  border: 1px solid var(--atemra-hairline);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 42%),
    var(--atemra-surface);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  overflow: hidden;
}
.atemra-service::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--atemra-copper), transparent 42%);
  opacity: 0.7;
}
@media (min-width: 960px) {
  .atemra-services:not(.atemra-formats) .atemra-service {
    grid-template-columns: minmax(15rem, 0.82fr) minmax(0, 1.18fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    align-content: start;
  }
  .atemra-services:not(.atemra-formats) .atemra-service__items {
    margin-top: 0;
    align-self: start;
  }
}
/* Single TL corner marker — asymmetric blueprint signature.
   WHY only TL: full 4-corners would compete with exhibit frame; single TL
   marks "this is part of the same engineering language" without copying. */
.atemra-service .atemra-corner--tl {
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--atemra-copper);
  border-left: 1px solid var(--atemra-copper);
}

.atemra-service__head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}
.atemra-service__intro {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
}
@media (min-width: 960px) {
  .atemra-services:not(.atemra-formats) .atemra-service__intro {
    align-self: start;
  }
}
.atemra-service__num {
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: clamp(1.375rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--atemra-copper) 72%, var(--atemra-text));
  text-transform: uppercase;
}
.atemra-service__audience {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: var(--atemra-copper-deep);
  color: var(--atemra-copper-hover);
  font-family: var(--font-family-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.atemra-service__name {
  margin: 0;
  font-family: var(--font-family-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.375rem, 1.4vw + 0.85rem, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--atemra-text);
}
.atemra-service__hit {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--atemra-text-muted);
  font-style: italic;
  max-width: 52ch;
}

/* Service items list */
.atemra-service__items {
  list-style: none;
  margin: 0.375rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .atemra-service__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 0.75rem;
  }
}
@media (min-width: 960px) {
  .atemra-services:not(.atemra-formats) .atemra-service__items {
    grid-template-columns: 1fr;
  }
}

.atemra-service__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.625rem;
  align-items: start;
  padding-top: 0.675rem;
  border-top: 1px solid var(--atemra-hairline);
}
.atemra-service__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--atemra-copper);
  margin-top: 0.1em;
  flex: 0 0 auto;
}
.atemra-service__arrow svg { display: block; }
.atemra-service__action {
  display: block;
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--atemra-text);
  letter-spacing: -0.005em;
}
.atemra-service__detail {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-family-body);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--atemra-text-muted) 84%, var(--atemra-ground));
}

.atemra-formats {
  background:
    radial-gradient(circle at 12% 0%, rgba(200, 116, 44, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(20, 22, 25, 1) 0%, rgba(17, 18, 21, 1) 100%);
}
.atemra-formats::after {
  inset: 0;
  height: auto;
  background:
    linear-gradient(90deg, transparent 0%, rgba(200, 116, 44, 0.035) 50%, transparent 100%);
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — Contacts + nav + guarantees + legal bottom
═══════════════════════════════════════════════════════════ */
.atemra-footer {
  position: relative;
  background:
    radial-gradient(circle at 84% 0%, rgba(200, 116, 44, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(18, 20, 23, 1) 0%, rgba(10, 11, 13, 1) 100%);
  border-top: 1px solid var(--atemra-hairline);
  padding: clamp(3rem, 6vh, 5rem) 0 clamp(1.5rem, 3vh, 2rem);
  color: var(--atemra-text-muted);
  font-family: var(--font-family-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow: hidden;
  isolation: isolate;
}
.atemra-footer::before {
  opacity: 0.3;
}
.atemra-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--hero-max-width);
  margin: 0 auto;
  padding: 0 var(--hero-padding-inline);
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

.atemra-footer__head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: none;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--atemra-hairline-strong);
  background:
    linear-gradient(135deg, rgba(200, 116, 44, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.atemra-footer__head::before,
.atemra-footer__head::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.atemra-footer__head::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--atemra-copper);
  border-left: 1px solid var(--atemra-copper);
}
.atemra-footer__head::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--atemra-copper);
  border-bottom: 1px solid var(--atemra-copper);
}
.atemra-footer__title {
  margin: 0;
  font-family: var(--font-family-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw + 0.4rem, 3.875rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--atemra-text);
  text-wrap: balance;
}
.atemra-footer__sub {
  margin: 0;
  font-size: clamp(0.9375rem, 0.45vw + 0.85rem, 1.125rem);
  color: var(--atemra-text-muted);
  max-width: 44rem;
}

.atemra-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 2.5vw, 2rem);
  padding: clamp(1.25rem, 2vw, 1.75rem) 0 0;
}
@media (min-width: 720px) {
  .atemra-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .atemra-footer__grid { grid-template-columns: 1.2fr 0.8fr 1fr; }
}

.atemra-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--atemra-hairline);
}
.atemra-footer__col-title {
  margin: 0;
  font-family: var(--font-family-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--atemra-text-faint);
}

.atemra-footer__contacts,
.atemra-footer__nav,
.atemra-footer__guarantees {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.atemra-footer__contact {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.atemra-footer__contacts .atemra-footer__link {
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.1875rem);
  text-decoration-color: transparent;
}
.atemra-footer__contacts .atemra-footer__link:hover {
  text-decoration-color: var(--atemra-copper-hover);
}
.atemra-footer__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--atemra-copper);
}
.atemra-footer__guarantees li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: var(--atemra-text-muted);
  line-height: 1.45;
}
.atemra-footer__guarantees li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--atemra-copper);
}

.atemra-footer__link {
  color: var(--atemra-text);
  text-decoration: underline;
  text-decoration-color: var(--atemra-copper-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--transition-copper),
              text-decoration-color var(--transition-copper);
}
.atemra-footer__link:hover {
  color: var(--atemra-copper-hover);
  text-decoration-color: var(--atemra-copper-hover);
}
.atemra-footer__link:focus-visible {
  outline: 2px solid var(--atemra-copper-hover);
  outline-offset: 2px;
}

.atemra-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: clamp(1.25rem, 2vh, 1.75rem);
  border-top: 1px solid var(--atemra-hairline);
}
.atemra-footer__meta {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atemra-text-faint);
}
.atemra-footer__meta--right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.atemra-footer__meta--right span {
  color: var(--atemra-hairline-strong);
}

/* ═══════════════════════════════════════════════════════════
   STUB DIALOG — для "Кейсы / Блог / Политика" заглушек
═══════════════════════════════════════════════════════════ */
.atemra-dialog {
  border: 1px solid var(--atemra-hairline-strong);
  background: var(--atemra-surface);
  color: var(--atemra-text);
  padding: 0;
  max-width: 32rem;
  width: calc(100% - 2rem);
}
.atemra-dialog::backdrop {
  background: rgba(14, 15, 17, 0.75);
  backdrop-filter: blur(6px);
}
.atemra-dialog__inner {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.atemra-dialog__inner::before,
.atemra-dialog__inner::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.atemra-dialog__inner::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--atemra-copper);
  border-left: 1px solid var(--atemra-copper);
}
.atemra-dialog__inner::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--atemra-copper);
  border-right: 1px solid var(--atemra-copper);
}
.atemra-dialog__title {
  margin: 0;
  font-family: var(--font-family-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--atemra-text);
}
.atemra-dialog__body {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--atemra-text-muted);
  line-height: 1.5;
}
.atemra-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1.25rem;
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════
   FORMATS SECTION — same module-card pattern as services,
   but 2×2 grid on desktop (4 cards, 3 bullets each) and a moat
   callout under sub: explicit anti-pattern declaration for trust.
═══════════════════════════════════════════════════════════ */

/* Moat declaration — "что не делаю". Hairline pill, copper-deep icon. */
.atemra-formats__moat {
  margin: 0.5rem 0 0;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--atemra-copper-deep);
  background: var(--atemra-copper-ghost);
  font-family: var(--font-family-body);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--atemra-text);
  max-width: 52rem;
}
.atemra-formats__moat strong {
  font-weight: 600;
  color: var(--atemra-text);
}
.atemra-formats__moat-icon {
  flex: 0 0 auto;
  margin-top: 0.15em;
  color: var(--atemra-copper-hover);
}

/* 2×2 grid on desktop. Vertical stack on mobile. */
.atemra-formats .atemra-services__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 880px) {
  .atemra-formats .atemra-services__list {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* Format-card items stay 1-col inside narrower card (vs services 2-col). */
.atemra-formats .atemra-service__items {
  grid-template-columns: 1fr;
  column-gap: 0;
  row-gap: 0.875rem;
}

/* English-RU title separator — same as exhibit caption pattern. */
.atemra-service__name-sep {
  color: var(--atemra-hairline-strong);
  font-weight: 400;
  margin: 0 0.4em;
}
