/* VERA Savunma Medikal — site styles
   Brand Guidelines 1.1: graphite / white / porcelain carry the system,
   one red plane per composition, Inter + IBM Plex Mono, strict grid. */

:root {
  --graphite: #1D1D1F;
  --graphite-2: #26262A;
  --graphite-3: #303035;
  --red: #C8102E;
  --red-dark: #A50D26;
  --steel: #888B8D;
  --steel-600: #5F6163;
  --porcelain: #F4F3F0;
  --line: #E2E0DB;
  --white: #FFFFFF;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1360px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fold: 19deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--graphite);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--graphite); color: var(--white); }

.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--graphite); color: #fff; padding: 10px 16px; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 48px; }
.mono { font-family: var(--mono); }
.small { font-size: 14px; }
.muted { color: var(--steel-600); }
.i { flex: none; }

/* --------------------------------------------------------------- type */
.eyebrow, .mono-label {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel-600); margin: 0;
}
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow.light, .dark .eyebrow { color: var(--steel); }
.display { font-size: clamp(34px, 4.6vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.display-sm { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; margin-bottom: 36px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--steel-600); max-width: 62ch; }
.lead-sm { font-size: 18px; color: var(--steel-600); }
.h-small { margin: 40px 0 12px; }
.prose { font-size: 18px; line-height: 1.7; max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 3px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--graphite); }
.btn-light:hover { background: var(--porcelain); }
.btn-ghost { border-color: var(--graphite); color: var(--graphite); }
.btn-ghost:hover { background: var(--graphite); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.link-arrow.light { color: #fff; }

/* --------------------------------------------------------------- brand graphics */
/* Dimension line: hairline with end ticks and a mono label (Brand §08.2) */
.dim { position: relative; height: 1px; background: var(--steel); margin: 0; }
.dim::before, .dim::after { content: ''; position: absolute; top: -7px; width: 1px; height: 15px; background: var(--steel); }
.dim::before { left: 0; } .dim::after { right: 0; }
.dim span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 0 14px; background: var(--white); font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; color: var(--steel-600); white-space: nowrap;
}
.dim-light { background: rgba(255,255,255,.22); }
.dim-light::before, .dim-light::after { background: rgba(255,255,255,.35); }
.dim-light span { background: var(--graphite); color: var(--steel); }

/* The red plane: a parallelogram at the fold angle, cropped by the edge (Brand §08.1) */
.plane { position: absolute; background: var(--red); pointer-events: none; transform: skewX(calc(var(--fold) * -1)); transform-origin: bottom left; }
.plane-head { right: 6%; top: 0; bottom: 0; width: 64px; }
.plane-medical { right: 4%; bottom: 0; height: 34%; width: 56px; }

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line); transition: background .35s, border-color .35s, transform .35s var(--ease);
}
body { padding-top: var(--header-h); }
body.has-hero { padding-top: 0; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { position: relative; flex: none; width: 112px; }
.brand img { width: 112px; height: auto; transition: opacity .3s; }
.brand .logo-light { position: absolute; inset: 0; opacity: 0; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px;
  font-size: 15px; font-weight: 500; color: var(--graphite); transition: color .2s;
}
.main-nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 3px; transition: border-color .2s;
}
.lang-switch:hover { border-color: var(--graphite); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  position: absolute; left: 11px; width: 22px; height: 1.6px; background: currentColor; content: ''; transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle .bars { top: 21px; }
.menu-toggle .bars::before { left: 0; top: -7px; }
.menu-toggle .bars::after { left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Transparent header over the hero video */
.site-header.is-over { background: transparent; border-color: transparent; backdrop-filter: none; }
.site-header.is-over .logo-dark { opacity: 0; }
.site-header.is-over .logo-light { opacity: 1; }
.site-header.is-over .main-nav a, .site-header.is-over .menu-toggle { color: #fff; }
.site-header.is-over .lang-switch { color: #fff; border-color: rgba(255,255,255,.35); }
.site-header.is-hidden { transform: translateY(-100%); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--white);
  overflow-y: auto; padding: 24px 0 40px;
}
.mobile-menu ul { list-style: none; margin: 0 0 32px; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a { display: block; padding: 16px 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--white); border-color: var(--line); }
.menu-open .site-header .logo-dark { opacity: 1; }
.menu-open .site-header .logo-light { opacity: 0; }
.menu-open .site-header .menu-toggle, .menu-open .site-header .lang-switch { color: var(--graphite); border-color: var(--line); }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1100px;
  background: var(--graphite); color: #fff; overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(29,29,31,.88) 0%, rgba(29,29,31,.55) 38%, rgba(29,29,31,0) 70%),
    linear-gradient(0deg, rgba(29,29,31,.75) 0%, rgba(29,29,31,0) 40%),
    linear-gradient(180deg, rgba(29,29,31,.55) 0%, rgba(29,29,31,0) 22%);
}
.hero-slide { position: absolute; inset: 0; z-index: 1; visibility: hidden; }
.hero-slide.is-active { visibility: visible; z-index: 3; }
.hero-media { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active .hero-media { opacity: 1; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active .hero-media img { animation: kenburns 12s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-slide .hero-media + .hero-content { z-index: 3; }
.hero-content {
  position: absolute; left: 0; right: 0; bottom: clamp(120px, 18vh, 190px); z-index: 3;
}
.hero-content > * { max-width: 760px; opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > :nth-child(2) { transition-delay: .08s; }
.hero-slide.is-active .hero-content > :nth-child(3) { transition-delay: .16s; }
.hero-slide.is-active .hero-content > :nth-child(4) { transition-delay: .24s; }
.hero-title { font-size: clamp(42px, 7vw, 104px); font-weight: 600; letter-spacing: -0.045em; line-height: .98; margin-bottom: 24px; }
.hero-text { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: rgba(255,255,255,.78); max-width: 620px; margin-bottom: 32px; }
.hero-ui {
  position: absolute; left: 0; right: 0; bottom: 40px; z-index: 4;
  display: flex; align-items: center; gap: 28px;
}
.hero-count { font-size: 13px; letter-spacing: .12em; color: rgba(255,255,255,.7); min-width: 64px; }
.hero-count span { color: #fff; }
.hero-dots { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.hero-dot { flex: 1; height: 24px; border: 0; background: none; padding: 0; position: relative; }
.hero-dot span { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero-dot span::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-done span::after { transform: scaleX(1); }
.hero-dot.is-active span::after { animation: progress var(--dur, 7s) linear forwards; }
.hero.is-paused .hero-dot.is-active span::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 8px; margin-left: auto; }
.hero-arrows button {
  width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3);
  background: transparent; color: #fff; border-radius: 3px; transition: border-color .2s, background .2s;
}
.hero-arrows button:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-scroll {
  position: absolute; right: var(--gutter); top: 50%; z-index: 4; writing-mode: vertical-rl;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 12px;
}
.hero-scroll span { width: 1px; height: 64px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero-scroll span::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { to { top: 100%; } }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section.porcelain { background: var(--porcelain); }
.section.dark { background: var(--graphite); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > div { max-width: 820px; }
.section-lead { max-width: 420px; color: var(--steel-600); margin: 0; }

.section.intro { padding-bottom: clamp(40px, 5vw, 72px); }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-text { font-size: 18px; color: #3a3a3e; padding-top: 44px; }
.intro-text p { margin-bottom: 1.3em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--graphite); }
.stat { padding: 28px 24px 0 0; position: relative; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-value { font-size: clamp(36px, 4.4vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 14px; letter-spacing: .06em; color: var(--steel-600); font-weight: 400; }
.stat-label { margin-top: 14px; }

/* Process (capabilities) */
.process { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 0; padding-top: 40px; }
.process-line { position: absolute; left: 0; right: 0; top: 0; }
.process-step {
  position: relative; display: flex; flex-direction: column; padding: 28px 24px 32px;
  border-left: 1px solid var(--line); transition: background .3s;
}
.process-step:last-child { border-right: 1px solid var(--line); }
.process-step:hover { background: var(--porcelain); }
.step-no { font-size: 12px; letter-spacing: .14em; color: var(--steel-600); }
.step-media { aspect-ratio: 3 / 2; margin: 20px 0 24px; overflow: hidden; background: var(--porcelain); }
.step-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.process-step:hover .step-media img { transform: scale(1.04); }
.process-step h3 { font-size: 22px; margin-bottom: 10px; }
.process-step p { font-size: 15px; color: var(--steel-600); margin-bottom: 20px; }
.step-more { margin-top: auto; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }

/* Machines */
.machines-section .display { color: #fff; }
.machine-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 48px) / 3)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: thin; scrollbar-color: var(--graphite-3) transparent; }
.machine-rail > * { scroll-snap-align: start; }
.machine-card { background: var(--graphite-2); border: 1px solid var(--graphite-3); display: flex; flex-direction: column; }
.machine-media { aspect-ratio: 3 / 2; background: var(--porcelain); overflow: hidden; }
.machine-media img { width: 100%; height: 100%; object-fit: cover; }
.machine-body { padding: 24px; }
.machine-top { display: flex; justify-content: space-between; gap: 12px; min-height: 18px; }
.machine-top .mono-label { color: var(--steel); }
.machine-card h3 { font-size: 22px; margin: 10px 0 6px; }
.qty { font-size: 13px; color: #fff; background: var(--graphite-3); padding: 2px 8px; }
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.machine-grid .machine-card, .porcelain .machine-card { background: var(--white); border-color: var(--line); color: var(--graphite); }
.machine-grid .machine-top .mono-label { color: var(--steel-600); }
.machine-grid .qty { color: var(--graphite); background: var(--porcelain); }

/* Spec table (mono values, Brand: "measured, not claimed") */
.specs { margin: 16px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--steel-600); }
.specs dd { margin: 0; font-family: var(--mono); font-size: 13.5px; }
.dark .specs, .machine-rail .specs { border-color: var(--graphite-3); }
.dark .specs div, .machine-rail .specs div { border-color: var(--graphite-3); }
.dark .specs dt { color: var(--steel); }

/* Works */
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.work-card { margin: 0; }
.work-card a { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--porcelain); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-card a:hover img { transform: scale(1.05); }
.work-card figcaption { padding-top: 16px; display: grid; gap: 4px; }
.work-card strong { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.work-desc { margin-top: 8px; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--graphite); }
.sector { padding: 28px 28px 8px 0; }
.sector + .sector { padding-left: 28px; border-left: 1px solid var(--line); }
.sector h3 { font-size: 22px; margin: 14px 0 10px; }
.sector p { color: var(--steel-600); font-size: 15px; }

/* Medical */
.medical-section { background: var(--porcelain); overflow: hidden; }
.medical-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.medical-media { aspect-ratio: 3 / 2; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.medical-media img { width: 100%; height: 100%; object-fit: cover; }
.medical-text .display { margin-bottom: 24px; }
.medical-text p { color: #3a3a3e; font-size: 18px; margin-bottom: 32px; }

/* Certificates */
.cert-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--graphite); }
.cert-chip { display: grid; gap: 10px; padding: 28px 28px 28px 0; transition: background .3s; }
.cert-chip + .cert-chip { padding-left: 28px; border-left: 1px solid var(--line); }
.cert-chip:hover .cert-code { color: var(--steel-600); }
.cert-code { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; transition: color .2s; }
.cert-title { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-600); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card { border: 1px solid var(--line); display: flex; flex-direction: column; }
.cert-media { aspect-ratio: 3 / 4; background: var(--porcelain); display: grid; place-items: center; overflow: hidden; }
.cert-media a, .cert-media img { width: 100%; height: 100%; object-fit: contain; }
.cert-seal {
  width: 62%; aspect-ratio: 1; border: 1px solid var(--steel); border-radius: 50%; display: grid; place-items: center;
  position: relative; outline: 1px dashed var(--line); outline-offset: 14px;
}
.cert-seal span { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; text-align: center; padding: 0 12px; }
.cert-body { padding: 24px; display: grid; gap: 8px; }
.cert-body h3 { font-size: 24px; }
.cert-body p { color: var(--steel-600); margin: 0 0 8px; }
.mini { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.mini div { display: flex; gap: 8px; }
.mini dt { color: var(--steel-600); }
.mini dd { margin: 0; font-family: var(--mono); font-size: 13px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: minmax(200px, 22vw); gap: 16px; }
.gallery-grid .gallery-item:first-child { grid-row: span 2; }
.gallery-grid:not(.large) .gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-grid.large { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(220px, 24vw); }
.gallery-grid.large .gallery-item:first-child { grid-column: span 2; }
.gallery-item { position: relative; overflow: hidden; background: var(--porcelain); display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .mono-label {
  position: absolute; left: 0; bottom: 0; background: var(--graphite); color: #fff; padding: 8px 12px;
  font-size: 11px; transform: translateY(100%); transition: transform .35s var(--ease);
}
.gallery-item:hover .mono-label, .gallery-item:focus-visible .mono-label { transform: none; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.news-card { display: grid; gap: 12px; align-content: start; }
.news-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--porcelain); margin-bottom: 8px; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover img { transform: scale(1.04); }
.news-card h3 { font-size: 22px; }
.news-card p { color: var(--steel-600); font-size: 15px; margin: 0; }
.article-media { margin-bottom: 40px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--porcelain); }
.article-media img { width: 100%; height: 100%; object-fit: cover; }

/* CTA band */
.cta-band { background: var(--graphite); color: #fff; padding: clamp(64px, 8vw, 112px) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.cta-band h2 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.035em; margin-bottom: 16px; }
.cta-band .lead { color: rgba(255,255,255,.7); margin: 0; }
.cta-actions { display: grid; gap: 18px; justify-items: end; flex: none; }
.cta-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.8); }

/* --------------------------------------------------------------- inner pages */
.page-head {
  position: relative; background: var(--graphite); color: #fff; overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
}
.page-head::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-head .container { position: relative; }
.page-head h1 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.045em; line-height: 1; max-width: 16ch; margin-bottom: 24px; }
.page-head .lead { color: rgba(255,255,255,.7); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: .08em; color: var(--steel); margin-bottom: 40px; text-transform: uppercase; }
.crumbs a:hover { color: #fff; }
.error-head { min-height: 60vh; display: flex; align-items: center; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--porcelain); position: sticky; top: calc(var(--header-h) + 24px); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--graphite); }
.value { padding: 28px 32px 0 0; font-size: 18px; }
.value + .value { padding-left: 32px; border-left: 1px solid var(--line); }

.cap-list { display: grid; gap: clamp(56px, 7vw, 96px); }
.cap-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.cap-row:nth-child(even) .cap-media { order: 2; }
.cap-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--porcelain); display: block; }
.cap-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cap-media:hover img { transform: scale(1.03); }
.cap-body h2 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.035em; margin: 12px 0 16px; }
.cap-body .specs { margin-bottom: 28px; }

.detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.detail-media { position: sticky; top: calc(var(--header-h) + 24px); background: var(--porcelain); aspect-ratio: 3 / 2; overflow: hidden; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-body .btn { margin-top: 40px; }
.other-caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--graphite); }
.other-cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.other-cap + .other-cap { padding-left: 20px; border-left: 1px solid var(--line); }
.other-cap:hover .i { transform: translateX(4px); }
.other-cap .i { transition: transform .25s var(--ease); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 9px 16px; font-size: 14px; border-radius: 3px; transition: all .2s; }
.chip:hover { border-color: var(--graphite); }
.chip.is-active { background: var(--graphite); color: #fff; border-color: var(--graphite); }
[data-filter-item][hidden] { display: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info dl { margin: 0; border-top: 1px solid var(--graphite); }
.contact-info dl > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info dt { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.contact-info dd { margin: 0; font-size: 18px; }
.contact-info a:hover { text-decoration: underline; }
.form { display: grid; gap: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span:first-child { font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--graphite); background: #fff;
  border: 1px solid #CFCCC6; border-radius: 3px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(29,29,31,.08); }
.has-error input, .has-error textarea { border-color: var(--red); }
.has-error > span:first-child, .check.has-error span { color: var(--red); }
.file-field input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-ui { display: flex; align-items: center; gap: 10px; border: 1px dashed #BDBAB3; padding: 18px 16px; cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--steel-600); transition: border-color .2s, background .2s; border-radius: 3px; }
.file-field:hover .file-ui, .file-field input:focus-visible + .file-ui { border-color: var(--graphite); background: var(--porcelain); }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg legend { margin-bottom: 10px; float: left; width: 100%; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; border: 1px solid #CFCCC6; padding: 10px 16px; border-radius: 3px; font-size: 14px; transition: all .2s; }
.seg input:checked + span { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--steel-600); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--graphite); flex: none; }
.check a { text-decoration: underline; }
.form .btn { justify-self: start; }
.notice { padding: 18px 20px; border-left: 3px solid; margin-bottom: 24px; font-size: 16px; }
.notice.ok { border-color: var(--graphite); background: var(--porcelain); }
.notice.err { border-color: var(--red); background: #FBF1F2; }
.map-wrap { height: 420px; background: var(--porcelain); filter: grayscale(1) contrast(1.05); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--graphite); color: rgba(255,255,255,.75); padding: 80px 0 32px; font-size: 15px; }
.cta-band + .site-footer, main:has(> .cta-band:last-child) + .site-footer { border-top: 1px solid var(--graphite-3); }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.footer-brand img { width: 150px; height: auto; }
.footer-claim { font-size: clamp(20px, 2vw, 26px); color: #fff; letter-spacing: -0.02em; margin: 0; font-weight: 500; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 56px 0; }
.footer-grid h3 { color: var(--steel); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-grid address { line-height: 1.8; }
.footer-grid .muted { color: var(--steel); }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--graphite-3); border-radius: 3px; transition: border-color .2s, color .2s; }
.social a:hover { border-color: #fff; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--graphite-3); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--steel); }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------- consent + lightbox */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px;
  background: var(--graphite); color: #fff; padding: 20px; display: grid; gap: 14px; font-size: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.consent p { margin: 0; color: rgba(255,255,255,.8); }
.consent a { text-decoration: underline; }
.consent div { display: flex; gap: 8px; justify-content: flex-end; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20,20,22,.94); display: grid; place-items: center; padding: 56px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: var(--porcelain); }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.lightbox figcaption { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: rgba(255,255,255,.75); text-align: center; }
.lightbox button { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 3px; }
.lightbox button:hover { border-color: #fff; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .main-nav a { padding: 10px 8px; font-size: 14px; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 0; }
  .process-step:nth-child(4) { border-right: 0; }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: block; }
  .brand, .brand img { width: 96px; }
  .machine-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors, .stats { grid-template-columns: repeat(2, 1fr); }
  .sector:nth-child(3), .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .sector:nth-child(n+3), .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-scroll { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .intro-grid, .medical-grid, .about-grid, .detail-grid, .contact-grid, .cap-row { grid-template-columns: 1fr; }
  .cap-row:nth-child(even) .cap-media { order: 0; }
  .intro-text { padding-top: 0; }
  .about-media, .detail-media { position: static; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .process { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(4) { border-right: 1px solid var(--line); }
  .process-step:nth-child(even) { border-right: 1px solid var(--line); }
  .works-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { justify-items: start; }
  .gallery-grid, .gallery-grid.large { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .gallery-grid .gallery-item:first-child, .gallery-grid.large .gallery-item:first-child, .gallery-grid:not(.large) .gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
  .gallery-item .mono-label { transform: none; }
  .plane-head { width: 40px; right: 4%; }
  .hero-shade { background: linear-gradient(0deg, rgba(29,29,31,.92) 0%, rgba(29,29,31,.6) 50%, rgba(29,29,31,.35) 100%); }
}
@media (max-width: 600px) {
  .hide-sm { display: none !important; }
  .process, .works-grid, .news-grid, .machine-grid, .cert-grid, .sectors, .footer-grid, .grid2 { grid-template-columns: 1fr; }
  .process-step { border-right: 1px solid var(--line); }
  .sector, .sector + .sector { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 0; padding-top: 24px; }
  .sectors { border-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .cert-strip { grid-template-columns: 1fr; }
  .cert-chip + .cert-chip { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .other-cap + .other-cap { padding-left: 0; border-left: 0; }
  .machine-rail { grid-auto-columns: 84%; }
  .hero-content { bottom: 116px; }
  .hero-arrows { display: none; }
  .hero-dots { max-width: none; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  .lightbox { padding: 64px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .map-wrap { height: 320px; }
}
