/* Layout concept: a company site for a mining contractor. Solid header, a photo hero whose lower edge rises in
   three white steps (open-pit benches) that carry the key figures, then quiet white and charcoal bands: split blocks,
   an even service grid, ruled figure tables and list rows. One typeface, square corners, palette from the MINEX logo.
   Dark and light bands are fixed on purpose, so the page looks the same in every viewer theme. */

/* Onest, served from the project (variable weight 400-700), so the page also works without internet */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/onest-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --charcoal: #2b2a29;    /* logo ground */
  --charcoal-2: #242322;
  --deep: #1c1b1a;
  --white: #fefefd;       /* logo white */
  --stone: #efeeec;       /* neutral grey for blocks on white */
  --accent: #bd6057;      /* logo terracotta: numerals, rules, blocks */
  --accent-btn: #b4574e;  /* a shade darker, so white button text keeps 4.5:1 */
  --accent-deep: #9f4a42;
  --accent-soft: #e09a90; /* accent text on charcoal */
  --accent-ink: #9a453c;  /* accent text on white */

  --f: "Onest", "Segoe UI", system-ui, sans-serif;
  --r: 4px;
  --nav-h: 72px;
  --gutter: 40px; /* page side padding */
}
@media (max-width: 719px) { :root { --nav-h: 64px; --gutter: 16px; } }

/* Each band declares its own surface; components read these local tokens */
.on-dark {
  --bg: var(--charcoal); --fg: var(--white); --fg-2: #bab6b0; --rule: rgba(254, 254, 253, .16);
  --surface: #353331; --accent-t: var(--accent-soft); --num: var(--white);
  background: var(--bg); color: var(--fg); color-scheme: dark;
}
.on-light {
  --bg: var(--white); --fg: #201f1e; --fg-2: #5f5b56; --rule: #dcdad6;
  --surface: var(--stone); --accent-t: var(--accent-ink); --num: var(--accent);
  background: var(--bg); color: var(--fg); color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--deep); color: var(--white); font: 400 1rem/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--charcoal); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.75rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-t, var(--accent-soft)); outline-offset: 3px; }

.wrap {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Section name: plain text that matches the menu item */
.label { margin: 0 0 .9rem; font-size: .95rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--accent-t); }
.spec { font-size: .88rem; font-weight: 500; line-height: 1.4; color: var(--fg-2); font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.5rem;
  border-radius: var(--r); border: 1px solid transparent; background: var(--accent-btn); color: #fff;
  font: 600 .98rem/1.2 var(--f); text-decoration: none; text-align: center; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; border-color: rgba(254, 254, 253, .6); }
.btn--ghost:hover { background: rgba(254, 254, 253, .14); }
.btn--light { background: var(--white); color: #201f1e; }
.btn--light:hover { background: #201f1e; color: #fff; }
.btn--sm { min-height: 42px; padding: .6rem 1.15rem; font-size: .93rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.nav { position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto 0; z-index: 50; background: var(--charcoal); border-bottom: 1px solid rgba(254, 254, 253, .12); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo img { width: 148px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; font-size: .95rem; font-weight: 500; }
.nav__links a:not(.btn) { padding-block: .45rem; border-bottom: 2px solid transparent; text-decoration: none; color: rgba(254, 254, 253, .86); transition: color .15s, border-color .15s; }
.nav__links a:not(.btn):hover { color: #fff; border-bottom-color: var(--accent); }
.nav__toggle { display: none; align-items: center; min-height: 42px; padding: .5rem 1rem; border-radius: var(--r); border: 1px solid rgba(254, 254, 253, .5); background: transparent; color: #fff; font: 600 .92rem/1 var(--f); cursor: pointer; }
@media (max-width: 999px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto; background: var(--charcoal); border-bottom: 1px solid rgba(254, 254, 253, .12);
    padding: .25rem max(var(--gutter), env(safe-area-inset-right, 0px)) 1.25rem max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn) { padding: 1rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(254, 254, 253, .12); }
  .nav__links a:not(.btn):hover { border-bottom-color: rgba(254, 254, 253, .12); }
  .nav__cta { margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding-top: var(--nav-h);
  background:
    linear-gradient(90deg, rgba(28, 27, 26, .9) 0%, rgba(28, 27, 26, .68) 42%, rgba(28, 27, 26, .14) 80%),
    linear-gradient(0deg, rgba(28, 27, 26, .5) 0%, rgba(28, 27, 26, 0) 46%),
    url("../assets/photos/hero.jpg") center 38% / cover no-repeat,
    var(--deep);
}
/* the last two pixel rows of the hero are already the colour of the next band, so the join can never show a dark hairline */
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--white); }
/* below the two-column layout the text spans the whole photo, so darken all of it */
@media (max-width: 1199px) { .hero::before { content: ""; position: absolute; inset: 0; background: rgba(28, 27, 26, .42); } }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; min-height: clamp(560px, calc(100svh - var(--nav-h)), 820px); }
.hero__text { max-width: 46rem; padding-block: clamp(3rem, 8vw, 6rem) clamp(2.25rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(2.3rem, 5.3vw, 4.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.hero__lead { margin-top: 1.5rem; max-width: 54ch; font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: rgba(254, 254, 253, .9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Key figures stand on three steps cut into the bottom of the photo, like the benches of an open pit.
   The steps are the colour of the next band, so the page itself seems to rise into the picture. */
.benches {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; margin: 0;
  margin-bottom: -2px; /* tucked under the hero's clip edge, so no hairline can show between the steps and the next band */
  margin-left: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px)));
}
.benches div { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .4rem; min-width: 0; padding: 1rem .85rem; background: var(--white); color: #201f1e; }
.benches div:first-child { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); } /* lines up with the text above */
.benches div + div { margin-left: -1px; } /* neighbours overlap by a pixel, so no seam at fractional widths */
.benches div:nth-child(1) { height: 6.5rem; }
.benches div:nth-child(2) { height: 8rem; }
.benches div:nth-child(3) { height: 9.5rem; }
.benches dd { margin: 0; font-size: clamp(1.45rem, 6.2vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; white-space: nowrap; color: var(--accent); font-variant-numeric: tabular-nums; }
.benches small { font-size: .5em; letter-spacing: 0; }
.benches dt { font-size: .8rem; font-weight: 500; line-height: 1.3; color: #5f5b56; }
@media (min-width: 720px) and (max-width: 1199px) {
  .benches div { padding: 1.2rem 1.5rem; }
  .benches div:nth-child(1) { height: 7.5rem; }
  .benches div:nth-child(2) { height: 9.5rem; }
  .benches div:nth-child(3) { height: 11.5rem; }
  .benches dt { font-size: .88rem; }
}
@media (min-width: 1200px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 2.5rem; align-items: end; }
  .benches { grid-template-columns: repeat(3, 10.5rem); margin-left: 0; margin-right: 0; }
  .benches div, .benches div:first-child { padding: 1.2rem 1.25rem; }
  .benches div:nth-child(1) { height: 8rem; }
  .benches div:nth-child(2) { height: 10.5rem; }
  .benches div:nth-child(3) { height: 13rem; }
  .benches dt { font-size: .88rem; }
  .benches dd { font-size: 2.05rem; } /* "24,3 mln t" fits the 10.5rem step */
  /* the top step runs on to the right edge of the screen */
  .benches div:last-child::after { content: ""; position: absolute; left: calc(100% - 1px); top: 0; bottom: 0; width: 50vw; background: inherit; }
}
@media (min-width: 1360px) {
  .hero__inner { column-gap: 3rem; }
  .benches { grid-template-columns: repeat(3, 11.5rem); }
  .benches div, .benches div:first-child { padding: 1.3rem 1.4rem; }
  .benches dd { font-size: 2.25rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.head { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: end; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
@media (min-width: 900px) { .head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; } }
.head h2 { max-width: 20ch; }
.head > p { color: var(--fg-2); max-width: 50ch; }

/* About */
.about { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 4.5rem; } }
.statement { max-width: 36em; font-size: clamp(1.22rem, 1.9vw, 1.55rem); line-height: 1.42; letter-spacing: -.012em; }
.statement strong { font-weight: 700; }
.about__photo { width: 100%; aspect-ratio: 4 / 5; max-height: 600px; object-fit: cover; border-radius: var(--r); }
@media (max-width: 899px) { .about__photo { aspect-ratio: 4 / 3; } }
.points { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.points article { display: grid; gap: .35rem 2rem; grid-template-columns: minmax(0, 1fr); padding: 1.3rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 560px) { .points article { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); } }
.points p { color: var(--fg-2); }
.scope { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 820px) { .scope { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; } }
.scope__card { background: var(--surface); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); min-width: 0; }
.scope__card--us { --fg: var(--white); --fg-2: #bab6b0; --rule: rgba(254, 254, 253, .16); background: var(--charcoal); color: var(--fg); }
.scope h3 { margin-bottom: 1.1rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.scope ul { margin: 0; padding: 0; list-style: none; }
.scope li { display: flex; gap: .85rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--rule); font-size: .98rem; }
.scope li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--fg-2); transform: translateY(-1px); }
.scope__card--us li::before { background: var(--accent); }

/* Services */
.services { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 280px; padding: 1.75rem; background: var(--surface); border-radius: var(--r); overflow: hidden; }
/* titles line up along the top of a row, the technical line along the bottom */
.card__icon { width: 30px; height: 30px; color: var(--accent-soft); margin-bottom: 2.5rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.card p { margin-bottom: 1.25rem; color: var(--fg-2); font-size: .97rem; }
.card .spec { display: block; margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--rule); }
/* Machine cards: catalogue pictures from the MINEX fleet register stand on a light studio panel.
   Multiply drops their white backdrop into the panel, so every picture shares one background. */
.card--machine { padding: 0; min-height: 0; }
.card__img, .unit__img { position: relative; background: linear-gradient(180deg, #f7f6f4 0%, #e5e3df 100%); }
.card__img { aspect-ratio: 16 / 10; }
.card__img img, .unit__img img { position: absolute; left: 8%; top: 10%; width: 84%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.75rem 1.75rem; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; margin-top: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--accent-btn); border-radius: var(--r); }
@media (min-width: 1000px) { .cta-band { margin-top: 1.25rem; } }
.cta-band h3 { max-width: 30ch; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; color: #fff; }

/* Process */
.steps { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.steps__side h2 { margin-bottom: 1.1rem; }
.steps__side > p:not(.label) { color: var(--fg-2); max-width: 40ch; }
.steps__now { display: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; }
  .steps__side { position: sticky; top: calc(var(--nav-h) + 40px); }
  .steps__now { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-top: 2.75rem; }
}
.steps__now b { font-size: clamp(4rem, 7vw, 5.75rem); font-weight: 700; line-height: .9; letter-spacing: -.05em; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps__now span { font-size: 1rem; font-weight: 500; color: var(--fg-2); }
.steps__now i { flex-basis: 100%; height: 4px; margin-top: 1.1rem; background: var(--rule); }
.steps__now em { display: block; width: 12.5%; height: 100%; background: var(--accent); transition: width .3s cubic-bezier(.2, .7, .2, 1); }
.steps__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.steps__list li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1.25rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.steps__list li > span { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--rule); border-radius: var(--r); font-size: .95rem; font-weight: 700; color: var(--fg-2); font-variant-numeric: tabular-nums; transition: background .2s, border-color .2s, color .2s; }
/* the step crossing the middle of the screen is marked as current */
.steps__list.is-live li.is-active > span { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.steps__list h3 { margin-bottom: .35rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.steps__list p { color: var(--fg-2); max-width: 54ch; }

/* Figures */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .75rem; padding: 1.6rem 1rem 1.6rem 0; border-bottom: 1px solid var(--rule); min-width: 0; }
@media (max-width: 899px) { .figures div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--rule); } }
@media (min-width: 900px) {
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .figures div { padding: 2rem 1.75rem 2.1rem; border-left: 1px solid var(--rule); }
  .figures div:first-child { padding-left: 0; border-left: 0; }
}
.figures dd { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; white-space: nowrap; color: var(--num); font-variant-numeric: tabular-nums; }
.figures small { font-size: .38em; font-weight: 600; letter-spacing: 0; color: var(--accent-t); }
.figures dt { font-size: .92rem; line-height: 1.35; color: var(--fg-2); }
.figures__note { margin-top: 1rem; font-size: .88rem; color: var(--fg-2); }

/* Fleet: one tile per machine type with its picture, unit count, key figure and the models in the register */
.fleet { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.units { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .units { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .units { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.unit { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.unit__img { aspect-ratio: 16 / 10; }
@media (min-width: 1100px) { .unit__img { aspect-ratio: 4 / 3; } }
.unit__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.3rem 1.25rem 1.1rem; }
.unit__head b { min-width: 1.6ch; font-size: 2.4rem; font-weight: 700; line-height: .95; letter-spacing: -.04em; color: var(--num); font-variant-numeric: tabular-nums; }
.unit__head h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.015em; }
.unit__head p { margin-top: .25rem; font-size: .88rem; line-height: 1.4; color: var(--fg-2); }
.unit__models { margin: 0 1.25rem 1.25rem; border-top: 1px solid var(--rule); }
.unit__models div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); font-size: .9rem; line-height: 1.35; }
.unit__models dd { margin: 0; font-weight: 600; color: var(--accent-t); font-variant-numeric: tabular-nums; }
.units__note { margin-top: 1.25rem; max-width: 82ch; font-size: .9rem; color: var(--fg-2); }
/* phones: picture beside the heading, models underneath, so eight tiles stay a short scroll */
@media (max-width: 559px) {
  .unit { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
  .unit__img { aspect-ratio: auto; min-height: 7.5rem; }
  .unit__head { grid-template-columns: minmax(0, 1fr); gap: .4rem; padding: 1rem 1rem .9rem; }
  .unit__head b { font-size: 2rem; }
  .unit__models { grid-column: 1 / -1; margin: 0 1rem 1rem; }
}

/* Calculator */
.calc-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
.calc { display: grid; gap: .6rem; align-content: start; background: var(--surface); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.5rem); }
.calc label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.4rem; font-weight: 600; }
.calc label:first-child { margin-top: 0; }
.calc output { font-weight: 700; white-space: nowrap; color: var(--accent-t); font-variant-numeric: tabular-nums; }
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: .85rem 0; border-radius: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--p, 50%), #cdcac4 var(--p, 50%));
}
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 2px; background: var(--charcoal); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--charcoal); }
.calc input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 2px; background: var(--charcoal); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--charcoal); }
.calc-result { --fg: var(--white); --fg-2: #bab6b0; --rule: rgba(254, 254, 253, .16); background: var(--charcoal); color: var(--fg); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.5rem); }
.calc-result__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; font-size: 1.05rem; color: var(--fg-2); }
.calc-result__big b { font-size: clamp(3.2rem, 6.5vw, 4.75rem); font-weight: 700; line-height: .95; letter-spacing: -.045em; color: var(--fg); font-variant-numeric: tabular-nums; }
.calc-result__list { margin: 0; border-top: 1px solid var(--rule); }
.calc-result__list div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.calc-result__list dt { color: var(--fg-2); }
.calc-result__list dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 1.1rem; font-size: .84rem; color: var(--fg-2); }

/* Safety */
.safety__photo { width: 100%; aspect-ratio: 2.7 / 1; min-height: 210px; object-fit: cover; border-radius: var(--r); margin-bottom: clamp(2rem, 4vw, 3rem); }
.quad { display: grid; gap: 2rem 2.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .quad { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.quad article { padding-top: 1.3rem; border-top: 2px solid var(--accent); }
.quad svg { width: 26px; height: 26px; color: var(--accent-soft); margin-bottom: .9rem; }
.quad h3 { margin-bottom: .4rem; }
.quad p { color: var(--fg-2); font-size: .96rem; }

/* FAQ */
.faq { display: grid; gap: 2.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; } }
.faq h2 { margin-bottom: 1.1rem; }
.faq > div:first-child > p:last-child { color: var(--fg-2); }
.faq__list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 0; list-style: none; cursor: pointer; font-size: 1.12rem; font-weight: 600; letter-spacing: -.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 18px; height: 18px; color: var(--accent);
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--fg-2); max-width: 62ch; }

/* Contact */
.contact-sec { --bg: var(--charcoal-2); }
.contact { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; } }
.contact h2 { margin-bottom: 1.1rem; }
.contact > div > p:not(.label) { color: var(--fg-2); max-width: 46ch; }
.contacts { margin: 2.25rem 0 0; border-top: 1px solid var(--rule); }
.contacts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.contacts dt { font-size: .92rem; color: var(--fg-2); }
.contacts dd { margin: 0; font-weight: 600; user-select: all; }
.contacts a, .footer__grid p a { text-decoration: none; white-space: nowrap; }
.contacts a:hover, .footer__grid p a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rfq { display: grid; gap: 1.25rem; background: var(--surface); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.5rem); }
.rfq__row { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .rfq__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label, .chips legend { font-size: .88rem; font-weight: 600; color: var(--fg-2); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid rgba(254, 254, 253, .32); border-radius: var(--r);
  background: rgba(254, 254, 253, .05); color: var(--fg); font: 400 1rem/1.4 var(--f); transition: border-color .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #9a9690; }
.field input:hover, .field textarea:hover { border-color: rgba(254, 254, 253, .55); }
.field input[aria-invalid="true"] { border-color: var(--accent-soft); }
.field textarea { resize: vertical; }
.chips { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { padding: 0; margin-bottom: .7rem; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; padding: .55rem .95rem; border-radius: var(--r); border: 1px solid rgba(254, 254, 253, .32); font-size: .93rem; font-weight: 500; transition: background .15s, border-color .15s; }
.chips input:checked + span { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.form-status { min-height: 1.4em; font-size: .92rem; color: var(--fg-2); }

/* Footer */
.footer { --bg: var(--deep); padding-top: 4rem; }
.footer__grid { display: grid; gap: 2.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer__brand img { width: 150px; height: auto; }
.footer__brand p { margin-top: 1.1rem; max-width: 34ch; color: var(--fg-2); font-size: .95rem; }
.footer h3 { margin-bottom: 1rem; font-size: .95rem; font-weight: 600; }
.footer nav { display: grid; gap: .55rem; align-content: start; }
.footer nav a { text-decoration: none; color: var(--fg-2); }
.footer nav a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.footer__grid > div:last-child p { color: var(--fg-2); line-height: 1.9; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.4rem; border-top: 1px solid var(--rule); font-size: .9rem; color: var(--fg-2); }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--fg); }

/* ---------- Intro: on arrival the MINEX logo opens large on charcoal and a terracotta line draws under it,
   then the screen fades onto the page. CSS only (about 1.9 s), so it always clears; skipped for reduced motion. ---------- */
.intro { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .intro {
    position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--charcoal);
    animation: intro-out .55s cubic-bezier(.4, 0, .2, 1) 1.35s forwards;
  }
  .intro__mark { width: min(78vw, 600px); animation: intro-in .7s cubic-bezier(.2, .7, .2, 1) both, intro-grow .55s cubic-bezier(.4, 0, .2, 1) 1.35s forwards; }
  .intro__mark img { width: 100%; height: auto; }
  .intro__mark i { display: block; height: 3px; margin-top: clamp(1.25rem, 3vw, 2rem); background: var(--accent); transform-origin: left center; animation: intro-line .95s cubic-bezier(.4, 0, .2, 1) .25s both; }
}
@keyframes intro-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes intro-line { from { transform: scaleX(0); } to { transform: none; } }
@keyframes intro-grow { to { transform: scale(1.04); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Motion: as the intro fades, the hero text settles and the three steps rise in turn ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* "backwards" only: once finished the elements go back to plain layout, with no leftover layers */
  .hero__text > * { animation: settle .8s cubic-bezier(.2, .7, .2, 1) 1.4s backwards; }
  .hero__text > :nth-child(2) { animation-delay: 1.48s; }
  .hero__text > :nth-child(3) { animation-delay: 1.56s; }
  .benches div { animation: rise .7s cubic-bezier(.2, .7, .2, 1) 1.6s backwards; }
  .benches div:nth-child(1) { animation-delay: 1.6s; }
  .benches div:nth-child(2) { animation-delay: 1.72s; }
  .benches div:nth-child(3) { animation-delay: 1.84s; }
}
@keyframes settle { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
