/* ==========================================================================
   HeatTech MMC — heat.az
   Design system: deep industrial graphite (60) / steel surfaces (30) /
   thermal orange + tech cyan accents (10). Inter, geometric sans.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* 60% — dominant industrial ground */
  --bg: #121517;
  --surface: #1a1d20;
  /* 30% — cards, neutral and light zones */
  --surface-2: #262c33;
  --surface-3: #2f363e;
  --steel: #f5f7fa;
  --glass: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  /* 10% — heat and automation accents */
  --accent: #ff5722;
  --accent-deep: #e65100;
  --cyan: #00acc1;
  --cyan-deep: #0288d1;

  --ink: #f5f7fa;
  --ink-2: rgba(245, 247, 250, 0.72);
  --ink-3: rgba(245, 247, 250, 0.5);
  --ink-4: rgba(245, 247, 250, 0.34);

  --r-card: 12px;
  --r-lg: 20px;
  --r-sm: 8px;
  --pill: 1000px;

  --shell: 1200px;
  --gutter: 40px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.28);
  --shadow-float: 0 14px 44px rgba(0, 0, 0, 0.5);
  --glow-accent: 0 0 0 1px rgba(255, 87, 34, 0.45), 0 18px 44px rgba(255, 87, 34, 0.16);
  --glow-cyan: 0 0 0 1px rgba(0, 172, 193, 0.45), 0 18px 44px rgba(0, 172, 193, 0.16);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
sub { font-size: 0.72em; line-height: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--pill);
  font-weight: 600;
}

.skip:focus { left: 16px; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.12;
}

.h1 {
  font-size: clamp(30px, 3.9vw, 50px);
  line-height: 1.08;
}

.h2 { font-size: clamp(28px, 3.4vw, 44px); }
.h3 { font-size: clamp(21px, 2.1vw, 27px); }
.h4 { font-size: clamp(18px, 1.7vw, 21px); }

.h1 em,
.h2 em,
.h3 em {
  font-style: normal;
  color: var(--accent);
}

.em--cyan { color: var(--cyan) !important; }

.lead {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--cyan { color: var(--cyan); }

.tiny {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---------- layout ---------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pad {
  padding-top: clamp(64px, 7vw, 108px);
  padding-bottom: clamp(64px, 7vw, 108px);
}

.pad-sm {
  padding-top: clamp(36px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

.sec-head { max-width: 74ch; margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head--wide { max-width: 90ch; }
.sec-head .h2 { margin-top: 14px; }
.sec-head .lead { margin-top: 18px; }

/* light steel band — partners + certificates + brands (the 30% neutral zone) */
.band {
  background: var(--steel);
  --ink: #16191c;
  --ink-2: #4a5259;
  --ink-3: #6b747c;
  --ink-4: #9aa2aa;
  --line: #e2e6eb;
  --line-2: #cfd5dc;
  --surface-2: #ffffff;
  --glass: #ffffff;
  color: var(--ink);
}

/* three sections share the band — don't stack their full vertical padding */
.band > section + section { padding-top: 0; }
.band > section:not(:last-child) { padding-bottom: clamp(40px, 4vw, 64px); }

/* ==========================================================================
   reveal animations
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s var(--ease) var(--d, 0s),
    transform 0.85s var(--ease) var(--d, 0s);
}

[data-reveal].in { opacity: 1; transform: none; }

[data-reveal="media"] { transform: translateY(28px) scale(0.985); }
[data-reveal="media"].in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal],
  [data-reveal="media"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .marquee__track,
  .orbit__path,
  .orbit__dot,
  .orbit__core::after,
  .blob,
  .grain,
  .dot::after,
  .panel:not([hidden]),
  .readout.is-active .readout__bar i { animation: none !important; }
}

/* ==========================================================================
   buttons / pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  border: 1px solid transparent;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 87, 34, 0.28);
}

.btn--accent:hover {
  background: var(--accent-deep);
  box-shadow: 0 16px 36px rgba(255, 87, 34, 0.38);
}

.btn--cyan {
  background: rgba(0, 172, 193, 0.1);
  border-color: rgba(0, 172, 193, 0.55);
  color: var(--ink);
}

.btn--cyan:hover {
  background: rgba(0, 172, 193, 0.18);
  border-color: var(--cyan);
  box-shadow: 0 14px 32px rgba(0, 172, 193, 0.18);
}

.btn--outline {
  border-color: var(--line-2);
  color: var(--ink);
}

.btn--outline:hover { border-color: var(--ink-3); background: var(--glass); }

.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }

/* badge pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 13px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% { opacity: 0.6; transform: scale(0.6); }
  70%, 100% { opacity: 0; transform: scale(1.3); }
}

/* ==========================================================================
   nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav__pill {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px 9px 18px;
  max-width: calc(100vw - 24px);
  background: rgba(18, 21, 23, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.nav.is-stuck .nav__pill {
  background: rgba(18, 21, 23, 0.94);
  box-shadow: var(--shadow-float);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 9px;
  flex: none;
}

/* the real logo (drop + wordmark + strapline in one raster) — the accessible
   name lives on its alt, so no separate text node */
.nav__logo {
  height: 46px;
  width: auto;
  flex: none;
}

.nav__logo--foot { height: 56px; }

.nav__links { display: flex; align-items: center; gap: 2px; }

.nav__links a {
  padding: 9px 13px;
  border-radius: var(--pill);
  font-size: 15.4px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.nav__sep {
  width: 1px;
  height: 24px;
  background: var(--line-2);
  margin: 0 7px;
  flex: none;
}

/* the pill's call button rides 10% up from the global .btn scale */
.nav__pill .btn {
  gap: 11px;
  padding: 14px 24px;
  font-size: 16.5px;
}

/* language switch — az is the markup itself, ru/en come from i18n.js */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
}

.lang button {
  padding: 6px 9px;
  border-radius: var(--pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--ink-3);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.lang button:hover { color: var(--ink); }
.lang button.is-on { color: var(--ink); background: rgba(255, 255, 255, 0.09); }

.nav__burger,
.nav__menu { display: none; }

/* ==========================================================================
   gallery (qalereya.html)
   A page with no hero has to clear the fixed nav pill itself.
   ========================================================================== */
.pad--nav { padding-top: clamp(128px, 12vw, 180px); }

/* albums — each tile is a leaning pile of that album's first three photos */
.albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(20px, 2.2vw, 32px);
}

.album {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.album__stack {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  /* the fanned-out sheets need room to lean outside the tile */
  margin: 0 6% 18px;
}

.album__stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* leaves 1..3, painted back to front by source order */
.album__stack img:nth-child(1) { transform: rotate(-7deg) translateY(-2%); }
.album__stack img:nth-child(2) { transform: rotate(4deg); }
.album__stack img:nth-child(3) { transform: none; }

.album:hover .album__stack img:nth-child(1),
.album:focus-visible .album__stack img:nth-child(1) { transform: rotate(-11deg) translate(-6%, -4%); }

.album:hover .album__stack img:nth-child(2),
.album:focus-visible .album__stack img:nth-child(2) { transform: rotate(7deg) translate(6%, -2%); }

.album:hover .album__stack img:nth-child(3),
.album:focus-visible .album__stack img:nth-child(3) {
  transform: translateY(-3%);
  box-shadow: var(--shadow-float);
}

.album:focus { outline: none; }
.album:focus-visible .album__stack img:nth-child(3) { border-color: var(--accent); }

.album__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.album__n {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
  .album__stack img { transition: none; }
}

/* photo viewer (qalereya.html) */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.5vw, 20px);
  padding: clamp(56px, 6vw, 72px) clamp(12px, 2vw, 28px) clamp(16px, 2vw, 24px);
}

.viewer[hidden] { display: none; }

.viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.viewer__stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 12px;
  margin: 0;
  height: 100%;
}

.viewer__stage img {
  align-self: center;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
  object-fit: contain;
}

.viewer__cap { text-align: center; max-width: 70ch; }
.viewer__cap .label { display: block; }
.viewer__cap .tiny { color: var(--ink-3); }

.viewer__x,
.viewer__nav {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(38, 44, 51, 0.85);
  border: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}

.viewer__x {
  position: absolute;
  top: clamp(12px, 2vw, 20px);
  right: clamp(12px, 2vw, 20px);
  width: 40px;
  height: 40px;
}

.viewer__nav { width: 48px; height: 48px; }

.viewer__x:hover,
.viewer__nav:hover { background: var(--accent); }

/* filmstrip — the only sane way to reach photo 11 of 13 */
.viewer__strip {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.viewer__strip button {
  flex: 0 0 auto;
  width: 74px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}

.viewer__strip button img { width: 100%; height: 100%; object-fit: cover; }
.viewer__strip button:hover { opacity: 0.85; }

.viewer__strip button.is-on {
  opacity: 1;
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .viewer { grid-template-columns: auto minmax(0, 1fr) auto; }
  .viewer__nav { width: 40px; height: 40px; }
  .viewer__strip button { width: 58px; height: 44px; }
}

/* ==========================================================================
   photo stacks
   A .shots block is a pile of photos of one equipment category, all stacked on
   top of each other; only the one carrying .is-on is opaque. JS (initShots)
   moves that class along on a shared timer, so the whole page crossfades in
   step. With no JS — or with reduced motion — the first photo simply stays up.
   ========================================================================== */
.shots__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.shots__img.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .shots__img { transition: none; }
}

/* ==========================================================================
   hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, #1d2226 0%, var(--bg) 58%);
}

.hero__steam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.blob--warm {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -12%;
  right: 4%;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.34), transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.blob--cool {
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  bottom: -16%;
  left: -6%;
  background: radial-gradient(circle, rgba(0, 172, 193, 0.26), transparent 68%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

/* fine particulate layer — slow upward drift, reads as steam dust */
.grain {
  position: absolute;
  inset: -20% 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 46px 46px;
  opacity: 0.35;
  mask-image: radial-gradient(90% 70% at 60% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 70% at 60% 30%, #000 10%, transparent 75%);
  animation: rise 34s linear infinite;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 8%, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8%, -10%, 0) scale(1.1); }
}

@keyframes rise {
  from { background-position: 0 0; }
  to { background-position: 0 -460px; }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); /* 60 / 40 */
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(116px, 12vw, 168px);
  padding-bottom: clamp(56px, 6vw, 88px);
}

.hero__copy > * + * { margin-top: 22px; }
.hero__copy .badge + .h1 { margin-top: 24px; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.hero__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
}

/* the stack holds the frame's shape — the photos inside it are absolute */
.hero__media .shots {
  position: relative;
  aspect-ratio: 4 / 5;
}

.hero__media img {
  width: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.95) brightness(0.92);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* no caption sits on the photo any more, so the foot veil only has to seat
       the frame against the section, not carry text */
    linear-gradient(to top, rgba(18, 21, 23, 0.55) 2%, rgba(18, 21, 23, 0) 34%),
    linear-gradient(to right, rgba(255, 87, 34, 0.1), transparent 60%);
}

/* ==========================================================================
   2. stats — glassmorphism panel
   ========================================================================== */
.stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  position: relative;
  padding: 24px 22px 26px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.stat:hover { border-color: rgba(255, 87, 34, 0.4); transform: translateY(-4px); }

.stat__ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.12);
  color: var(--accent);
}

.stat__ico svg { width: 20px; height: 20px; }

.stat__num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1;
  color: var(--accent);
}

.stat__num--sym { font-size: clamp(36px, 3.4vw, 46px); }
.stat__suffix { font-size: 0.5em; font-weight: 600; letter-spacing: -0.5px; }

.stat__name {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.stat__txt {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ==========================================================================
   3. services — 3-col grid, 7 cards
   ========================================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

.svc {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.svc:hover,
.svc:focus-within {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--glow-accent);
}

.svc--tech:hover,
.svc--tech:focus-within { box-shadow: var(--glow-cyan); }

/* the photo band runs full-bleed across the card top, so it cancels the card
   padding */
.svc__band {
  position: relative;
  height: 168px;
  margin: -28px -26px 22px;
  overflow: hidden;
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--surface-3);
}

.svc__band .shots__img { filter: contrast(1.05) saturate(0.88) brightness(0.82); }

.svc__band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--surface-2) 1%, rgba(18, 21, 23, 0) 58%);
}

/* the 7th card would sit alone on the last row, so it runs the full row width
   instead — photo band on the left, copy on the right */
.svc--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  column-gap: 30px;
  align-content: start;
}

.svc--wide > :not(.svc__band) { grid-column: 2; }

.svc--wide .svc__band {
  grid-column: 1;
  /* the rows are implicit, so 1 / -1 would collapse to a single row */
  grid-row: 1 / span 5;
  height: auto;
  min-height: 240px;
  margin: -28px 0 -22px -26px;
  border-radius: var(--r-card) 0 0 var(--r-card);
}

.svc--wide .svc__band::after {
  background: linear-gradient(to right, rgba(18, 21, 23, 0) 55%, var(--surface-2) 99%);
}

.svc__name {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.svc__txt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.svc__txt strong { color: var(--ink); font-weight: 600; }

.svc__lead {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.svc__list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.svc__list li { position: relative; padding-left: 16px; }

.svc__list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.svc--tech .svc__list li::before { background: var(--cyan); }
.svc__list strong { color: var(--ink); font-weight: 600; }

/* the wide card has room for two columns of bullets */
.svc--wide .svc__list { grid-template-columns: 1fr 1fr; column-gap: 30px; }

/* inline expand — same 0fr/1fr technique as the FAQ accordion */
.svc__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.svc.is-open .svc__more { grid-template-rows: 1fr; }
.svc__more > div { overflow: hidden; }
.svc__more .svc__txt { padding-top: 14px; }

.svc__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.svc--tech .svc__toggle { color: var(--cyan); }
.svc__toggle svg { transition: transform 0.4s var(--ease); }
.svc.is-open .svc__toggle svg { transform: rotate(180deg); }

/* ==========================================================================
   4. flue gas analysis
   ========================================================================== */
.analyz {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #101a20 0%, #0e171d 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.analyz__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(0, 172, 193, 0.18), transparent 66%);
  filter: blur(50px);
  pointer-events: none;
}

.analyz .shell { position: relative; z-index: 1; }

.analyz__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  margin-bottom: clamp(36px, 4vw, 52px);
}

.analyz__subhead { margin-bottom: 22px; }

.analyz__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* digital analyzer readout card */
.readout {
  position: relative;
  display: block;
  padding: 18px 18px 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.readout:hover { transform: translateY(-3px); border-color: rgba(0, 172, 193, 0.45); }

.readout.is-active {
  background: rgba(0, 172, 193, 0.1);
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 172, 193, 0.4), 0 16px 40px rgba(0, 172, 193, 0.14);
}

.readout__sym {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.readout__val {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--ink);
}

.readout__val i { font-style: normal; font-size: 0.55em; color: var(--ink-3); margin-left: 2px; }

.readout__lbl {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.readout__bar {
  display: block;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.readout__bar i {
  display: block;
  width: var(--w, 40%);
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
}

.readout.is-active .readout__bar i { animation: pulse-bar 2.6s var(--ease) infinite; }

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}


.analyz__panels {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 2.6vw, 34px);
  /* analyser photo under a dark veil — the panel copy has to stay readable */
  background:
    linear-gradient(rgba(18, 21, 23, 0.42), rgba(18, 21, 23, 0.5)),
    url("../img/analiz-panel.jpg") center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  min-height: 100%;
}

.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: panel-in 0.45s var(--ease) both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.panel .h4 { color: var(--cyan); margin-bottom: 14px; }

.benefits { margin-top: clamp(40px, 4.5vw, 64px); }
.benefits__title { margin-bottom: 24px; }

.benefits__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.benefits__list li {
  padding: 24px 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  border-top: 2px solid var(--accent);
}

.benefits__k {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.benefits__list h4 { margin-bottom: 8px; }
.benefits__list .body { font-size: 15px; }

/* ==========================================================================
   5. service models
   ========================================================================== */
.models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 28px);
  align-items: stretch;
}

.model {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.6vw, 34px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.model--featured {
  background: linear-gradient(180deg, rgba(255, 87, 34, 0.08), rgba(255, 87, 34, 0.02));
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(255, 87, 34, 0.12);
}

.model__badge {
  position: absolute;
  top: -13px;
  left: clamp(26px, 2.6vw, 34px);
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.model__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.model__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.model--featured .model__ico {
  background: rgba(255, 87, 34, 0.14);
  border-color: rgba(255, 87, 34, 0.35);
  color: var(--accent);
}

.model__ico svg { width: 22px; height: 22px; }

.model__rows { display: grid; }

.model__rows > div {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.model__rows > div:last-child { border-bottom: 1px solid var(--line); }

.model__rows dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

.model__rows dd {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.model__rows { margin-bottom: 26px; }
.model .btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   6. sectors
   ========================================================================== */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

.sector {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: 26px 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 87, 34, 0.1), rgba(18, 21, 23, 0) 45%),
    linear-gradient(180deg, var(--surface-3) 0%, var(--surface) 100%);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.sector:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--glow-accent);
}

/* the .shots stack fills the card; the ::after gradient keeps the copy readable */
.sector > .shots { position: absolute; inset: 0; z-index: 0; }

.sector .shots__img { filter: contrast(1.03) saturate(0.9) brightness(0.8); }

.sector::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* the copy can run nearly the full height of the tallest card, so the veil
     has to hold over the whole photo, not just fade out at the top */
  background: linear-gradient(to top, rgba(18, 21, 23, 0.92) 14%, rgba(18, 21, 23, 0.5) 72%, rgba(18, 21, 23, 0.25));
}

/* icon sits in flow at the top so long copy can never run under it */
.sector__ico {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  opacity: 0.55;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.sector__ico svg { width: 56px; height: 56px; stroke-width: 1.1; }
.sector:hover .sector__ico { opacity: 0.9; transform: translateY(-3px); }

.sector__body { position: relative; z-index: 2; margin-top: auto; }

.sector__name {
  font-size: 18px;
  line-height: 1.28;
  margin-bottom: 10px;
}

.sector__txt {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ==========================================================================
   7. client orbit + partners marquee (light band)
   ========================================================================== */

/* A small solar system: the HeatTech mark is the sun, each client a planet on a
   drawn orbit. JS (initClientOrbit) builds one .orbit__path per orbit and writes
   --d/--spin on it and --x/--y/--s on the planets it carries; with JS off the
   list degrades to a plain wrapped roll of names. */
.orbit {
  position: relative;
  width: min(660px, 92vw);
  aspect-ratio: 1;
  margin: clamp(8px, 3vw, 32px) auto 0;
}

/* the sun's light, thrown across the whole system */
.orbit.is-placed::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.14), rgba(255, 87, 34, 0.05) 34%, transparent 68%);
  pointer-events: none;
}

.orbit__ring {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* one orbit: a drawn circle that turns, carrying its own planets, so the outer
   ones can run slower than the inner ones */
/* centred by offset, not by transform: the `rotate` of the spin is applied
   before `transform`, so a translate(-50%) here would itself be rotated and the
   whole orbit would swing off centre */
.orbit.is-placed .orbit__path {
  position: absolute;
  left: calc(50% - var(--d) / 2);
  top: calc(50% - var(--d) / 2);
  width: var(--d);
  aspect-ratio: 1;
  border: 1px solid rgba(22, 25, 28, 0.1);
  border-radius: 50%;
  /* the ring's box is a square that covers everything inside it — leave the
     pointer to the planets, or an outer orbit swallows the hover of every
     planet it spans */
  pointer-events: none;
  animation: orbit-spin var(--spin, 150s) linear infinite;
}

.orbit.is-placed .orbit__item {
  position: absolute;
  left: calc(50% + var(--x));
  top: calc(50% + var(--y));
  width: var(--s);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  /* JS moves these <li> out of the <ul> and onto their orbit, and the reset only
     kills markers on ul/ol — without this each planet trails a bullet */
  list-style: none;
  pointer-events: auto;
  transition: transform 0.3s var(--ease-out);
}

/* logo bubbles sit on a white plate so the marks keep the ground they were drawn
   for; plain dots are the filler of the pattern, ink that fades outward */
.orbit.is-placed .orbit__dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  opacity: var(--o, 0.85);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.orbit.is-placed .orbit__item:has(img) .orbit__dot {
  background: #fff;
  opacity: 1;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* absolute + margin auto, not width/height %, because a percentage height on a
   centred grid item never resolves — tall marks (n1-corek) burst the circle */
.orbit.is-placed .orbit__dot img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
  opacity: 0.94;
  transition: opacity 0.25s var(--ease-out);
}

/* a solid square mark fills its bubble corner to corner, so it reads heavier
   than the wordmarks beside it — draw it 10% smaller to even them out */
.orbit.is-placed .orbit__dot img[src$="ilk-insaat.png"] {
  max-width: 65%;
  max-height: 65%;
}

/* the sun the system turns around — outside the orbits, so it never spins */
.orbit.is-placed .orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 18.2%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fff 58%, #fff4ea 100%);
  box-shadow:
    0 0 0 1px rgba(255, 87, 34, 0.14),
    0 0 46px rgba(255, 87, 34, 0.3),
    0 10px 40px rgba(0, 0, 0, 0.14);
  z-index: 3;
}

/* the corona: a soft ring that breathes just outside the sun */
.orbit.is-placed .orbit__core::after {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  border: 1px solid rgba(255, 87, 34, 0.24);
  animation: orbit-corona 4.5s var(--ease-out) infinite;
}

.orbit.is-placed .orbit__core img {
  width: 70%;
  height: auto;
}

/* each orbit turns at its own rate; every planet turns back at that same rate so
   marks and labels stay upright. Hover scaling lives on the item, or it would
   fight the spin. */
.orbit.is-placed .orbit__dot { animation: orbit-spin var(--spin, 150s) linear infinite reverse; }

.orbit.is-placed:hover .orbit__path,
.orbit.is-placed:hover .orbit__dot { animation-play-state: paused; }

/* each orbit is its own stacking context (it runs a `rotate` animation), so the
   item's own z-index only lifts it above its ring-mates — lift the whole ring
   too, or a label reads under the planets of the orbits outside it */
.orbit.is-placed .orbit__path:has(.orbit__item:hover) { z-index: 20; }

/* lift the hovered item out of source order, or its label reads under the
   neighbouring bubbles */
.orbit.is-placed .orbit__item:hover {
  transform: translate(-50%, -50%) scale(1.12);
  z-index: 10;
}
.orbit.is-placed .orbit__item:hover .orbit__dot { opacity: 1; }
.orbit.is-placed .orbit__item:hover img { opacity: 1; }

@keyframes orbit-spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes orbit-corona {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.06); opacity: 0.25; }
}

/* the name rides under its dot, revealed on hover/focus */
.orbit.is-placed .orbit__label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 160px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out);
  z-index: 2;
}

.orbit.is-placed .orbit__item:hover .orbit__label { opacity: 1; }

/* on a phone the box is half as wide: a bubble big enough to read a mark no
   longer fits the rings, so drop them for a plain grid */
@media (max-width: 640px) {
  .orbit.is-placed { width: 100%; aspect-ratio: auto; }
  .orbit.is-placed::before,
  .orbit.is-placed .orbit__core { display: none; }

  .orbit.is-placed .orbit__ring {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 10px;
    animation: none;
  }

  .orbit.is-placed .orbit__item {
    position: relative; /* the dot is inset:0 on it — static would let it fill .orbit */
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    aspect-ratio: 1;
    transform: none;
  }

  .orbit.is-placed .orbit__item:hover { transform: none; }
  .orbit.is-placed .orbit__dot { animation: none; }

  /* no hover on a phone — a client without a logo reads as its plain name */
  .orbit.is-placed .orbit__item:not(:has(img)) .orbit__dot {
    background: none;
    box-shadow: none;
  }

  .orbit.is-placed .orbit__item:not(:has(img)) .orbit__label {
    position: static;
    transform: none;
    padding: 0;
    background: none;
    color: var(--ink-3);
    font-size: 10px;
    opacity: 1;
  }
}

/* before placement (and with JS off) the ring is a plain readable roll of names */
.orbit:not(.is-placed) { width: 100%; aspect-ratio: auto; }
.orbit:not(.is-placed) .orbit__ring { position: static; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
.orbit:not(.is-placed) img { display: none; }
.orbit:not(.is-placed) .orbit__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.marquee {
  overflow: hidden;
  /* the card shadow reaches 28px below the tile (4px offset + 24px blur) — leave
     more room than that, or `overflow: hidden` shears it off */
  padding: 30px 0;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: slide 42s linear infinite;
  /* held until the logos have loaded — see initMarquee */
  animation-play-state: paused;
}

/* the gap rides on the items, not the flex container: a container gap sits
   between items only, so the seam between the row and its copy would be one
   gap short of a whole step and the loop would jog sideways every turn */
.marquee__track > * { margin-right: clamp(14px, 1.4vw, 22px); }

.marquee__track.is-ready { animation-play-state: running; }

/* pause under the pointer, but only where a pointer can leave again — on touch
   the :hover set by a tap sticks until the next tap and the row reads as frozen */
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

/* Each brand rides in its own white card. The card supplies the white ground the
   logos were drawn for — several of these PNGs have a plate baked in, so on the
   bare band they would read as grey boxes. Height is fixed for rhythm; width
   grows so wide wordmarks stay legible instead of shrinking into a square. */
.logo-tile {
  flex: none;
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 96px;
  height: 96px;
  padding: 0 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s var(--ease-out), transform 0.4s var(--ease);
}

.logo-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.logo-tile img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 172px;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.25s var(--ease-out);
}

.logo-tile:hover img { opacity: 1; }

/* entries with no logo file — set as a wordmark so they carry the same weight
   as the marks beside them */
.logo-tile__name {
  max-width: 150px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.25s var(--ease-out);
}

.logo-tile:hover .logo-tile__name { color: var(--ink); }

/* second carousel runs the other way so the pair does not scroll in lockstep */
.marquee--rev .marquee__track { animation-direction: reverse; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   8. certificates (light band)
   ========================================================================== */
.guarantees {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
  margin-bottom: clamp(28px, 3vw, 40px);
}

.guarantee {
  padding: 26px 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.guarantee__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 87, 34, 0.1);
  color: var(--accent-deep);
}

.guarantee__ico svg { width: 22px; height: 22px; }
.guarantee h3 { margin-bottom: 8px; }
.guarantee .body { font-size: 15px; }

.certs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}

.cert {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-align: left;
  width: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.cert--ready { cursor: pointer; }

.cert--ready:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.cert__frame {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0 8px, transparent 8px 16px);
  color: var(--ink-4);
  overflow: hidden;
}

/* placeholders stay compact; a real scan gets the full A4-ish portrait frame */
.cert:not(.cert--ready) .cert__frame { aspect-ratio: 4 / 3; }
.cert--ready .cert__frame { border-style: solid; background: #fff; }
.cert__frame svg { width: 34px; height: 34px; }
/* scans are mixed portrait/landscape A4 — letterbox them rather than crop */
.cert__frame img { width: 100%; height: 100%; object-fit: contain; }

.cert__label { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.35; }
.cert__org { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.cert__note { display: block; font-size: 12.5px; color: var(--ink-4); margin-top: 8px; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox__card {
  position: relative;
  z-index: 1;
  max-width: min(560px, 92vw);
  max-height: 88vh;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
  overflow: auto;
}

.lightbox__card img {
  width: 100%;
  border-radius: var(--r-sm);
  background: #fff;
}

.lightbox__card figcaption { padding: 14px 4px 4px; }
.lightbox__card figcaption .label { display: block; }

.lightbox__x {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(18, 21, 23, 0.7);
  color: #fff;
  transition: background-color 0.3s var(--ease);
}

.lightbox__x:hover { background: var(--accent); }

/* ==========================================================================
   9. faq accordion
   ========================================================================== */
.acc { display: grid; gap: 12px; max-width: 900px; }

.acc__item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.4s var(--ease);
}

.acc__item.is-open { border-color: rgba(255, 87, 34, 0.45); }

.acc__btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.acc__n {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex: none;
  min-width: 22px;
}

.acc__q { flex: 1 1 auto; }

.acc__sign {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.acc__sign::before,
.acc__sign::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}

.acc__sign::before { inset: 7px 0; height: 2px; }
.acc__sign::after { inset: 0 7px; width: 2px; }

.acc__item.is-open .acc__sign::after { transform: scaleY(0); opacity: 0; }

.acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
  border-top: 1px solid transparent;
}

.acc__item.is-open .acc__body {
  grid-template-rows: 1fr;
  border-top-color: var(--line);
}

.acc__body > div { overflow: hidden; }

.acc__body p {
  padding: 18px 22px 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ==========================================================================
   10. contact
   ========================================================================== */
.contact-sec {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.contact__side .lead { margin-top: 20px; }

.cinfo { margin-top: 34px; }

.cinfo__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.cinfo__row:first-child { border-top: 1px solid var(--line); }

.cinfo dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }

.cinfo dd {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.cinfo a { transition: color 0.3s var(--ease); }
.cinfo a:hover { color: var(--accent); }

/* form */
.form {
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.form__title { margin-bottom: 6px; }
.form__hint { margin-bottom: 22px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.field label span { color: var(--accent); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.field textarea { resize: vertical; min-height: 90px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-4); }

/* the docs: fields light up with orange lines on focus */
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.18);
  background: rgba(0, 0, 0, 0.32);
}

.select { position: relative; }

.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.select select option { background: var(--surface-2); color: var(--ink); }

.select svg {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-3);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: #ff5252; }

.field__err {
  margin-top: 6px;
  font-size: 13px;
  color: #ff8a80;
}

.form .btn { margin-top: 8px; }
.form__alt { margin-top: 14px; text-align: center; }
.form__alt a { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   footer
   ========================================================================== */
.foot {
  position: relative;
  overflow: hidden;
  background: #0c0e10;
  border-top: 1px solid var(--line);
}

.foot__top { padding-top: clamp(56px, 6vw, 88px); }

.foot__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 48px);
}

.foot__brand .body { margin-top: 18px; max-width: 42ch; font-size: 15px; }
.foot__brand .socials { margin-top: 20px; }

.socials { display: flex; gap: 8px; }

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.socials a:hover {
  background: var(--accent);
  border-color: transparent;
  transform: translateY(-2px);
}

.socials svg { width: 18px; height: 18px; }

.foot__qr {
  display: inline-block;
  margin-top: 16px;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  line-height: 0;
  transition: transform 0.35s var(--ease);
}

.foot__qr:hover { transform: translateY(-2px); }
.foot__qr img { width: 96px; height: 96px; display: block; }

.foot__k {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}

.foot__nav { display: grid; gap: 9px; align-content: start; }

.foot__nav a {
  font-size: 15px;
  color: var(--ink-3);
  transition: color 0.3s var(--ease);
}

.foot__nav a:hover { color: var(--accent); }

.foot__contact { display: grid; gap: 6px; align-content: start; }

.foot__contact .body { font-size: 14px; color: var(--ink-3); }

.foot__v {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  transition: color 0.3s var(--ease);
}

.foot__v:hover { color: var(--accent); }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-4);
}

.foot__bar a { transition: color 0.3s var(--ease); }
.foot__bar a:hover { color: var(--accent); }

.wordmark {
  margin-top: clamp(24px, 3vw, 40px);
  line-height: 0.78;
  font-size: clamp(56px, 16.4vw, 240px);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-align: center;
  color: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  transform: translateY(12%);
  -webkit-user-select: none;
  user-select: none;
}

/* ==========================================================================
   floating dock
   ========================================================================== */
.dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 20px;
  background: rgba(26, 29, 32, 0.9);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: var(--shadow-float);
  transform: translate(-50%, 0);
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}

.dock.is-hidden {
  opacity: 0;
  transform: translate(-50%, 160%);
  pointer-events: none;
}

.dock__txt { line-height: 1.25; }
.dock__txt strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.3px; }
.dock__txt span { display: block; font-size: 12px; color: var(--ink-3); }

.dock__btns { display: flex; gap: 6px; }

.dock__btns a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.dock__btns a:first-child { background: var(--accent); color: #fff; }
.dock__btns a:last-child { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); }
.dock__btns a:hover { transform: translateY(-3px) scale(1.04); }
.dock__btns svg { width: 19px; height: 19px; }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* the pill runs out of room before the page layout does, so the nav collapses
   to the burger earlier than the rest of the 980px breakpoint */
@media (max-width: 1220px) {
  .nav__links,
  .nav__sep { display: none; }

  .nav__burger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: background-color 0.3s var(--ease);
  }

  .nav__burger:hover { background: rgba(255, 255, 255, 0.08); }

  .nav__burger span {
    position: relative;
    display: block;
    width: 17px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.4s var(--ease);
  }

  .nav__burger span::before,
  .nav__burger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 17px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  }

  .nav__burger span::before { top: -5.5px; }
  .nav__burger span::after { top: 5.5px; }

  .nav__burger[aria-expanded="true"] span { transform: rotate(45deg); }
  .nav__burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(-90deg); }
  .nav__burger[aria-expanded="true"] span::after { opacity: 0; }

  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 92px var(--gutter) 40px;
    background: var(--bg);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
    overflow-y: auto;
  }

  .nav__menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

  .nav__menu a {
    padding: 13px 0;
    font-size: clamp(22px, 6vw, 34px);
    font-weight: 600;
    letter-spacing: -0.5px;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .nav__menu.is-open a { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  :root { --gutter: 24px; }

  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media .shots { aspect-ratio: 16 / 10; }
  .analyz__intro,
  .analyz__grid,
  .models,
  .contact,
  .guarantees { grid-template-columns: 1fr; }
  .benefits__list { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__cols { grid-template-columns: 1fr; }
  .model .btn { align-self: stretch; }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: 1fr; }

  /* the wide card folds back into the normal stacked card */
  .svc--wide { display: flex; }
  .svc--wide .svc__list { grid-template-columns: 1fr; }
  .svc--wide .svc__band {
    height: 168px;
    min-height: 0;
    margin: -28px -26px 22px;
    border-radius: var(--r-card) var(--r-card) 0 0;
  }
  .svc--wide .svc__band::after {
    background: linear-gradient(to top, var(--surface-2) 1%, rgba(18, 21, 23, 0) 58%);
  }
  .sectors { grid-template-columns: 1fr; }
  .sector { min-height: 280px; }
  .readouts { grid-template-columns: 1fr 1fr; }
  .cinfo__row { grid-template-columns: 1fr; gap: 4px; }
  .model__rows > div { grid-template-columns: 1fr; gap: 4px; }
  .dock { left: 12px; right: 12px; transform: none; width: auto; }
  .dock.is-hidden { transform: translateY(160%); }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr 1fr; }
  .nav__pill .btn--accent { padding: 11px; border-radius: 50%; }
  .nav__pill .btn--accent span { display: none; }
  .lang button { padding: 6px 7px; font-size: 12px; }
  .hero__cta .btn { width: 100%; }
  .dock__txt span { display: none; }
}
