/* ============================================================
   МЕТАЛЛКОНСТРАКШН — design system
   Blueprint / engineering-drawing aesthetic for a metal
   fabrication company (antresoли + лестницы).
   ============================================================ */

:root{
  --blue-deep: #0b0c0d;   /* базовый фон сайта — почти чёрный (ребрендинг) */
  --blue-panel: #191b1e;    /* панели/секции — нейтральный тёмно-серый */
  --blue-panel-2: #212428;  /* карточки, поля, рамки фото */
  --grid-line: rgba(158,162,168,0.13);
  --grid-line-strong: rgba(158,162,168,0.30);
  --paper: #EDEFF1;
  --paper-soft: #93A6B5;
  --orange: #E23B2E;      /* brand red (цвет надписи «КОНСТРАКТ») — бывший оранжевый акцент */
  --orange-dim: #B0180E;
  --steel-cyan: #6FA8C2;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--blue-deep);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,.disp{
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--paper);
  margin:0;
}

.mono{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-soft);
}

a{ color: inherit; }
img,svg{ display:block; max-width:100%; }

.wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Blueprint grid background */
.blueprint-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  background-color: var(--blue-deep);
}
/* эмблема как еле заметный водяной знак на всю страницу (на каждой странице) */
.blueprint-bg::before{
  content:"";
  position:absolute; inset:0;
  background-image: url(images/logo-emblem.png);
  background-repeat: no-repeat;
  background-position: center 46%;
  background-size: auto 62vmin;
  opacity: 0.11;
  pointer-events: none;
}
.blueprint-bg::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 20% 0%, rgba(226,59,46,0.10), transparent 45%),
              radial-gradient(circle at 100% 30%, rgba(158,162,168,0.05), transparent 40%);
}

/* ---------- HEADER ---------- */
header{
  position: sticky;
  top:0;
  z-index: 50;
  background: color-mix(in srgb, var(--blue-deep) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grid-line-strong);
}
.nav-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
}
.logo-mark{ width: 34px; height:34px; flex-shrink:0; }
.logo-emblem{ height: 42px; width: auto; flex-shrink:0; display:block; }
.logo-text{
  font-family:'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--paper);
  line-height: 1.05;
}
.logo-text .m{ color: var(--paper); }
.logo-text .k{ color: var(--orange); }   /* red «КОНСТРАКТ» */
.logo-text span{
  display:block;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper-soft);
}
nav ul{
  list-style:none;
  display:flex;
  gap: 30px;
  margin:0; padding:0;
}
nav a{
  text-decoration:none;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--paper-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color .2s ease;
}
nav a:hover, nav a.active{ color: var(--paper); }
nav a.active::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:100%; height:1px;
  background: var(--orange);
}
.nav-cta{
  display:inline-block;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  background: var(--orange);
  color: var(--blue-deep);
  text-decoration: none;
  border: 1px solid var(--orange);
  transition: background .2s ease, color .2s ease, transform .2s ease;
  font-weight: 600;
}
.nav-cta:hover{ background: transparent; color: var(--orange); transform: translateY(-2px); }

/* Hamburger toggle — hidden on desktop, shown on mobile (see media query) */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 42px;
  padding: 9px 10px;
  background: transparent;
  border: 1px solid var(--grid-line-strong);
  cursor: pointer;
}
.nav-toggle span{
  display: block; width: 100%; height: 2px;
  background: var(--paper);
  transition: transform .25s ease, opacity .2s ease;
}
header.nav-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
header.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
header.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn-primary{
  display:inline-block;
  background: var(--orange);
  color: var(--blue-deep);
  text-decoration:none;
  padding: 15px 30px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  text-transform:uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  border: 1px solid var(--orange);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(226,59,46,0.25); background: #F5473A; }
.btn-ghost{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid var(--grid-line-strong);
  padding-bottom: 4px;
  transition: border-color .2s ease, color .2s ease, gap .2s ease;
}
.btn-ghost:hover{ border-color: var(--orange); color: var(--orange); gap:12px; }

/* ---------- Portfolio CTA — приметная кнопка на Яндекс.Диск ---------- */
.portfolio-cta-wrap{ text-align:center; margin-top: 48px; }
.portfolio-cta{
  display:inline-flex; align-items:center; gap: 16px;
  padding: 17px 30px;
  background: linear-gradient(120deg, #F0472F 0%, var(--orange) 46%, #A5140B 100%);
  color:#fff; text-decoration:none;
  border: 1px solid rgba(255,255,255,0.16);
  position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(226,59,46,0.34);
  animation: pc-pulse 2.6s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.portfolio-cta:hover{ transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 46px rgba(226,59,46,0.6); }
.portfolio-cta:active{ transform: translateY(-1px) scale(1); }
.pc-icon{ display:inline-flex; color:#fff; flex-shrink:0; }
.pc-text{
  display:flex; flex-direction:column; align-items:flex-start; line-height:1.05;
  font-family:'Rajdhani', sans-serif; font-weight:700; text-transform:uppercase; letter-spacing:0.03em;
  font-size: 1.2rem;
}
.pc-text small{
  font-family:'IBM Plex Mono', monospace; font-weight:400; text-transform:uppercase;
  font-size: 0.6rem; letter-spacing:0.08em; color: rgba(255,255,255,0.82); margin-top:5px;
}
.pc-arrow{ font-size: 1.4rem; line-height:1; transition: transform .25s ease; }
.portfolio-cta:hover .pc-arrow{ transform: translateX(6px); }
.portfolio-cta::after{
  content:""; position:absolute; top:0; bottom:0; left:-45%; width:35%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.42), transparent);
  transform: skewX(-18deg); pointer-events:none;
  animation: pc-shine 3.4s ease-in-out infinite;
}
@keyframes pc-pulse{
  0%,100%{ box-shadow: 0 8px 24px rgba(226,59,46,0.28); }
  50%{     box-shadow: 0 12px 44px rgba(226,59,46,0.64); }
}
@keyframes pc-shine{
  0%{ left:-45%; }
  60%,100%{ left:140%; }
}
@media (max-width: 560px){
  .portfolio-cta{ width:100%; justify-content:center; padding: 15px 18px; gap:12px; }
  .pc-text{ font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce){
  .portfolio-cta{ animation:none; }
  .portfolio-cta::after{ display:none; }
}

/* ---------- SECTIONS ---------- */
section{ padding: 100px 0; position: relative; }
.panel{ background: var(--blue-panel); border-top: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); }

.sec-head{
  display:flex;
  justify-content: space-between;
  align-items:flex-end;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--grid-line-strong);
}
.sec-head h2{ font-size: clamp(1.9rem, 3vw, 2.7rem); }
.sec-head .mono{ max-width: 280px; text-align:right; }

.eyebrow{
  display:flex; align-items:center; gap:12px; margin-bottom: 20px;
}
.eyebrow .tick{ width: 22px; height: 1px; background: var(--orange); }

/* dimension-line divider, like engineering drawings */
.dim-divider{
  display:flex; align-items:center; gap: 10px;
  color: var(--paper-soft);
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  margin: 6px 0 0;
}
.dim-divider .dl{ flex:1; height:1px; background: var(--grid-line-strong); position:relative; }
.dim-divider .dl::before, .dim-divider .dl::after{
  content:""; position:absolute; top:-3px; width:1px; height:7px; background: var(--grid-line-strong);
}
.dim-divider .dl::before{ left:0; }
.dim-divider .dl::after{ right:0; }

/* ---------- reveal on scroll (directional fly-in) ---------- */
.reveal{
  opacity:0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(0.16,1,0.3,1), transform .8s cubic-bezier(0.16,1,0.3,1);
  will-change: transform, opacity;
}
.reveal.in{ opacity:1; transform: none; }

.reveal.dir-left{ transform: translateX(-70px); }
.reveal.dir-right{ transform: translateX(70px); }
.reveal.dir-top{ transform: translateY(-50px); }
.reveal.dir-scale{ transform: scale(0.8); }
.reveal.dir-rotate-left{ transform: translateX(-50px) rotate(-4deg); }
.reveal.dir-rotate-right{ transform: translateX(50px) rotate(4deg); }
.reveal.dir-pop{ transform: translateY(20px) scale(0.92); }

/* Land the fly-in: the directional rules above share .reveal.in's specificity
   but come later in source, so without this they'd override the reset and the
   element would settle at its offset (e.g. dir-left stuck at -70px, dir-scale
   at 80%). This makes every direction resolve to its final position. */
.reveal.dir-left.in, .reveal.dir-right.in, .reveal.dir-top.in,
.reveal.dir-scale.in, .reveal.dir-rotate-left.in, .reveal.dir-rotate-right.in,
.reveal.dir-pop.in{ transform: none; }

.reveal-delay-1.in{ transition-delay: .08s; }
.reveal-delay-2.in{ transition-delay: .16s; }
.reveal-delay-3.in{ transition-delay: .24s; }
.reveal-delay-4.in{ transition-delay: .32s; }

/* ---------- Ambient fog / haze (decorative, injected by script.js) ---------- */
/* Sits between .blueprint-bg (z:-1) and content. Two transforms are kept on
   separate elements so they compose: .fog-track carries the scroll-parallax
   (inline transform from script.js), .fog-layer carries the slow CSS drift.
   Cold palette (steel-cyan / paper-soft), no blur — soft edges come from the
   radial-gradient falloff, so it stays cheap (transform/opacity only). */
.fog{
  position: fixed;
  inset: 0;
  z-index: -1;              /* after .blueprint-bg in DOM → paints above it, below content */
  pointer-events: none;
  overflow: hidden;
}
.fog-track{
  position: absolute;
  inset: 0;
  will-change: transform;   /* scroll-parallax target */
}
.fog-layer{
  position: absolute;
  inset: -25%;              /* oversized so parallax/drift never reveals an edge */
  will-change: transform;   /* continuous drift target */
  pointer-events: none;
}
.fog-1{
  background:
    radial-gradient(closest-side at 28% 38%, rgba(111,168,194,0.07), transparent 70%),
    radial-gradient(closest-side at 76% 66%, rgba(111,168,194,0.05), transparent 72%);
  animation: mk-fog-a 96s ease-in-out infinite;
}
.fog-2{
  background:
    radial-gradient(closest-side at 62% 28%, rgba(147,166,181,0.06), transparent 70%),
    radial-gradient(closest-side at 18% 82%, rgba(147,166,181,0.05), transparent 72%);
  animation: mk-fog-b 128s ease-in-out infinite;
}
.fog-3{
  background:
    radial-gradient(closest-side at 50% 55%, rgba(111,168,194,0.05), transparent 68%);
  animation: mk-fog-c 74s ease-in-out infinite;
}
@keyframes mk-fog-a{
  0%,100%{ transform: translate3d(-4%, 0, 0) scale(1.05); }
  50%{     transform: translate3d(4%, -3%, 0) scale(1.1); }
}
@keyframes mk-fog-b{
  0%,100%{ transform: translate3d(3%, 2%, 0) scale(1.08); }
  50%{     transform: translate3d(-3%, -2%, 0) scale(1.02); }
}
@keyframes mk-fog-c{
  0%,100%{ transform: translate3d(0, 3%, 0); }
  50%{     transform: translate3d(-2%, -3%, 0); }
}

/* ---------- Weld-flash effect (home page only, spawned by script.js) ---------- */
/* Brief arc-welding sparks at the corners/seams of framed blocks as they
   reveal on scroll. Tiny spans, transform/opacity only. Layer sits above
   content but below the sticky header; never intercepts clicks. */
.weld-layer{
  position: fixed;
  inset: 0;
  z-index: 40;              /* above cards (0), below header (50) */
  pointer-events: none;
  overflow: visible;
}
.weld{ position: absolute; width: 0; height: 0; pointer-events: none; }
.weld-core{
  position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #FFD9D4 45%, var(--orange) 100%);
  box-shadow: 0 0 10px 3px rgba(255,255,255,0.9), 0 0 18px 6px rgba(226,59,46,0.7);
  opacity: 0;
  animation: mk-weld-core 420ms ease-out forwards;
}
.weld-halo{
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226,59,46,0.55) 0%, rgba(226,59,46,0.18) 40%, transparent 70%);
  opacity: 0;
  animation: mk-weld-halo 460ms ease-out forwards;
}
.weld-spark{
  position: absolute; left: 0; top: 0; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: #FFC2BC;
  box-shadow: 0 0 4px 1px rgba(226,59,46,0.8);
  opacity: 0;
  animation: mk-weld-spark var(--sd, 420ms) ease-out forwards;
}
@keyframes mk-weld-core{
  0%{ opacity: 0; transform: scale(0.2); }
  25%{ opacity: 1; transform: scale(1.35); }
  60%{ opacity: 1; transform: scale(0.9); }
  100%{ opacity: 0; transform: scale(0.5); }
}
@keyframes mk-weld-halo{
  0%{ opacity: 0; transform: scale(0.3); }
  30%{ opacity: 0.9; transform: scale(1); }
  100%{ opacity: 0; transform: scale(1.7); }
}
@keyframes mk-weld-spark{
  0%{ opacity: 0; transform: translate(0,0) scale(1); }
  15%{ opacity: 1; }
  100%{ opacity: 0; transform: translate(var(--dx,0), var(--dy,0)) scale(0.3); }
}

/* subtle continuous float for hero diagram / accents */
@keyframes mk-float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}
.float{ animation: mk-float 5s ease-in-out infinite; }

/* logo mark gentle draw-in on load */
@keyframes mk-dash{
  from{ stroke-dashoffset: 120; }
  to{ stroke-dashoffset: 0; }
}
.logo-mark polyline{
  stroke-dasharray: 120;
  animation: mk-dash 1.1s cubic-bezier(0.16,1,0.3,1) both;
}

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal.dir-left, .reveal.dir-right, .reveal.dir-top, .reveal.dir-scale, .reveal.dir-rotate-left, .reveal.dir-rotate-right, .reveal.dir-pop{
    opacity:1; transform:none; transition:none;
  }
  .float, .logo-mark polyline{ animation:none; }
  .fog-layer{ animation:none; }        /* fog stays as a static faint haze, no drift */
  .weld-layer{ display:none; }         /* weld flashes are also gated in JS */
  html{ scroll-behavior:auto; }
}

/* ---------- Photo placeholder (until real photos are supplied) ---------- */
.photo-slot{
  border: 1px dashed var(--grid-line-strong);
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(147,166,181,0.05) 12px 24px);
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding: 24px;
  min-height: 220px;
  position: relative;
}
.photo-slot span{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paper-soft);
}
.photo-slot::before{
  content: attr(data-tag);
  position:absolute; top:10px; left:10px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--orange);
  letter-spacing: 0.06em;
}

/* ---------- Real photo frame ---------- */
.photo-frame{
  border: 1px solid var(--grid-line-strong);
  overflow: hidden;
  position: relative;
  background: var(--blue-panel-2);
}
.photo-frame img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.photo-frame:hover img{ transform: scale(1.05); }
.photo-frame::before{
  content: attr(data-tag);
  position: absolute; top:10px; left:10px; z-index:2;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(22,40,58,0.65);
  padding: 3px 8px;
}

/* ---------- Blueprint drawing frame (real engineering drawings) ---------- */
.dwg-frame{
  background: var(--paper, #EDEFF1);
  padding: 16px;
  border: 1px solid var(--grid-line-strong);
}
.dwg-frame img{
  width: 100%; height:auto; display:block;
}
.dwg-caption{
  margin-top: 12px;
  display:flex; justify-content: space-between; gap: 12px;
}

/* ---------- FOOTER ---------- */
footer{
  border-top: 1px solid var(--grid-line-strong);
  padding: 40px 0;
}
.foot-row{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.foot-col h4{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-soft);
  margin: 0 0 12px;
  font-weight: 500;
}
.foot-col a, .foot-col p{
  display:block;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--paper);
  margin-bottom: 6px;
}
.foot-col a:hover{ color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .nav-toggle{ display: flex; margin-left: auto; }
  nav ul{
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: color-mix(in srgb, var(--blue-deep) 96%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--grid-line-strong);
    box-shadow: 0 22px 44px rgba(0,0,0,0.4);
    padding: 4px 0;
  }
  header.nav-open nav ul{ display: flex; }
  nav ul li{ width: 100%; }
  nav a{ display: block; padding: 15px 24px; font-size: 0.92rem; letter-spacing: 0.04em; border-bottom: 1px solid var(--grid-line); }
  nav ul li:last-child a{ border-bottom: none; }
  nav a.active{ color: var(--orange); }
  nav a.active::after{ display: none; }
  .sec-head{ flex-direction:column; align-items:flex-start; gap:10px; }
  .sec-head .mono{ text-align:left; }
}
@media (max-width: 560px){
  .wrap{ padding:0 20px; }
  section{ padding: 68px 0; }
  h1,h2,h3{ overflow-wrap: break-word; }
  /* header fits logo + hamburger + CTA on a narrow screen */
  .nav-row{ padding: 12px 0; gap: 10px; }
  .logo-mark{ width: 28px; height: 28px; }
  .logo-emblem{ height: 34px; }
  .logo-text{ font-size: 1rem; }
  .logo-text span{ display: none; }   /* прячем длинный слоган в шапке на мобильном */
  .nav-cta{ padding: 9px 14px; font-size: 0.7rem; }
  /* hero: keep the big headline inside the viewport */
  section.hero{ padding: 56px 0 16px; }
  .hero .hero-grid{ grid-template-columns: minmax(0, 1fr); }
  .hero h1.title{ font-size: clamp(1.5rem, 6.6vw, 2.6rem); line-height: 1.08; overflow-wrap: anywhere; }
  .hero .hero-ctas{ flex-direction: column; align-items: stretch; gap: 14px; }
  .hero .hero-ctas .btn-primary{ text-align: center; }
  .hero .hero-ctas .btn-ghost{ justify-content: center; }
  /* softer entrance shifts so nothing is clipped on a narrow screen
     (:not(.in) so the reveal reset still wins once the element is shown) */
  .reveal.dir-left:not(.in){ transform: translateX(-24px); }
  .reveal.dir-right:not(.in){ transform: translateX(24px); }
}

/* ===== Портфолио: карточки объектов =====
   Используются и на главной («Наши работы»), и внизу страницы объекта
   («Другие объекты»), поэтому живут в общем файле. */
.works-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-card{
  display: flex;
  flex-direction: column;
  background: var(--blue-panel-2);
  border: 1px solid var(--grid-line);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.work-card:hover{
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
}
.work-card:focus-visible{ outline: 2px solid var(--orange); outline-offset: 3px; }
.work-card .photo-frame{
  border: none;
  border-bottom: 1px solid var(--grid-line);
  height: 210px;
  flex: none;
}
.work-card .wc-body{
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.work-card .wc-type{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}
.work-card h3{ font-size: 1.12rem; margin: 0; line-height: 1.2; }
.work-card .wc-more{
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.85rem;
  color: var(--paper-soft);
  transition: color .2s ease;
}
.work-card:hover .wc-more{ color: var(--orange); }

@media (max-width: 900px){
  .works-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .works-grid{ grid-template-columns: 1fr; }
  .work-card .photo-frame{ height: 200px; }
}

/* ===== Освежение облика (22.08.2026) =====
   Заголовки переехали с узкого технического Rajdhani на Rubik: у него
   скруглённые концы штрихов и обычный регистр вместо капса — текст стал
   заметно живее и читается легче. Rajdhani остался в логотипе: это
   фирменный знак, его трогать не стали. Мелкие метки по-прежнему на
   IBM Plex Mono — чертёжная нота никуда не делась. */
h1, h2, h3, .disp{
  font-family: 'Rubik', 'Inter', sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.015em;
}
h1, .title{ line-height: 1.04; }
h2{ letter-spacing: -0.02em; }

/* Скругления. Радиус крупный у карточек и картинок, сдержанный
   у кнопок — иначе пропадает «инженерная» строгость. */
.work-card,
.service-card,
.type-card,
.cta-band,
.price-table,
.price-foot{
  border-radius: 16px;
}
.photo-frame,
.dwg-frame,
.obj-gallery .photo-frame{
  border-radius: 14px;
}
.work-card{ overflow: hidden; }
.work-card .photo-frame{ border-radius: 0; }

.btn-primary,
.btn-ghost,
.nav-cta,
.submit-btn,
.obj-back{
  border-radius: 10px;
}
.stats{ border-radius: 14px; overflow: hidden; }
.price-foot{ border-radius: 0 0 16px 16px; }
.price-table{ border-radius: 16px 16px 0 0; overflow: hidden; }
