/* ==========================================================================
   ASTRUM EHITUS OÜ — Modern site design system
   Brand: Astrum orange (#E1553E) + deep charcoal. Built by Must Uba.
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/*  1. Tokens                                                                 */
/* -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --orange:        #E1553E;
  --orange-600:    #D0472F;
  --orange-700:    #B63C27;
  --orange-soft:   #F4826E;
  --orange-tint:   #FBEDE9;

  /* Neutrals */
  --ink:           #15171C;
  --charcoal:      #1C1F26;
  --charcoal-2:    #23262F;
  --steel:         #5B626E;
  --steel-light:   #8A9199;
  --line:          #E6E8EC;
  --concrete:      #F4F5F7;
  --concrete-2:    #ECEEF1;
  --white:         #FFFFFF;

  /* Typography */
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii & shadow */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(21,23,28,.06);
  --shadow-md: 0 14px 40px -12px rgba(21,23,28,.18);
  --shadow-lg: 0 30px 70px -24px rgba(21,23,28,.32);
  --shadow-orange: 0 18px 44px -14px rgba(225,85,62,.55);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 84px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* -------------------------------------------------------------------------- */
/*  2. Reset & base                                                           */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
}
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p  { color: var(--steel); }

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

/* -------------------------------------------------------------------------- */
/*  3. Layout helpers                                                         */
/* -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(70px, 9vw, 130px); }
.section--tint { background: var(--concrete); }
.section--dark { background: var(--charcoal); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #B9BEC8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 700; font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--orange); display: inline-block; }
.section--dark .eyebrow { color: var(--orange-soft); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 18px; font-size: 1.08rem; }

.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; color: var(--steel); }

/* -------------------------------------------------------------------------- */
/*  4. Buttons                                                                */
/* -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--orange);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  letter-spacing: .01em;
  border-radius: 100px;
  background: var(--btn-bg); color: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-orange); background: var(--orange-600); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--orange); color: #fff; }
.btn--lg { padding: 19px 38px; font-size: 1.05rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--orange);
  transition: gap .3s var(--ease);
}
.textlink svg { width: 16px; height: 16px; }
.textlink:hover { gap: 14px; }

/* -------------------------------------------------------------------------- */
/*  5. Header / nav                                                           */
/* -------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.header.scrolled {
  height: 68px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; transition: height .4s var(--ease); }
.header.scrolled .brand img { height: 36px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 10px 16px; border-radius: 100px;
  font-weight: 500; font-size: .96rem; color: var(--ink);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.header:not(.scrolled) .nav a { color: #fff; }
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--orange); }
.header:not(.scrolled) .nav a.active { color: var(--orange-soft); }

.header__cta { display: flex; align-items: center; gap: 18px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; color: var(--ink);
}
.header:not(.scrolled) .header__phone { color: #fff; }
.header__phone svg { width: 18px; height: 18px; color: var(--orange); }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: .3s var(--ease); }
.header:not(.scrolled) .burger { color: #fff; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--charcoal);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  transform: translateX(100%); transition: transform .5s var(--ease);
  visibility: hidden;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer a {
  font-family: var(--font-head); text-transform: uppercase;
  font-size: 2rem; color: #fff; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .25s, padding-left .3s var(--ease);
}
.drawer a:hover { color: var(--orange-soft); padding-left: 12px; }
.drawer .btn { margin-top: 30px; align-self: flex-start; }

/* -------------------------------------------------------------------------- */
/*  6. Hero                                                                   */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  padding-top: var(--header-h);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,16,20,.92) 0%, rgba(15,16,20,.66) 46%, rgba(15,16,20,.30) 100%),
    linear-gradient(0deg, rgba(15,16,20,.85), rgba(15,16,20,0) 45%);
}
.hero .container { position: relative; z-index: 2; }
.hero__content { max-width: 820px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 26px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(225,85,62,.35); }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--orange); }
.hero__sub { margin-top: 24px; font-size: clamp(1.1rem, 2vw, 1.35rem); color: #D7DAE0; max-width: 620px; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.hero__scroll .mouse { width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative; }
.hero__scroll .mouse::after { content:""; position:absolute; left:50%; top:8px; width:4px; height:8px; border-radius:2px; background:#fff; transform:translateX(-50%); animation: scrolldot 1.7s infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0;transform:translate(-50%,12px);} 100%{opacity:0;} }

/* page hero (interior) */
.pagehero {
  position: relative; padding-top: calc(var(--header-h) + 70px); padding-bottom: 80px;
  color: #fff; overflow: hidden;
}
.pagehero__bg { position: absolute; inset: 0; z-index: 0; }
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(15,16,20,.93), rgba(15,16,20,.62)); }
.pagehero .container { position: relative; z-index: 2; }
.pagehero h1 { color: #fff; }
.pagehero p { color: #D7DAE0; max-width: 620px; margin-top: 18px; font-size: 1.12rem; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.crumbs a:hover { color: var(--orange-soft); }
.crumbs span { color: var(--orange-soft); }

/* -------------------------------------------------------------------------- */
/*  7. Stat strip                                                             */
/* -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.stat { background: #fff; padding: 40px 28px; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--orange); line-height: 1; }
.stat__num sup { font-size: .5em; top: -.7em; }
.stat__label { margin-top: 10px; font-size: .92rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.stats--onhero { margin-top: -70px; position: relative; z-index: 5; }

/* -------------------------------------------------------------------------- */
/*  8. Feature / about split                                                  */
/* -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.split__media .frame { position: absolute; inset: -18px auto auto -18px; width: 62%; height: 62%; border: 2px solid var(--orange); border-radius: var(--r-lg); z-index: -1; }
.media-badge {
  position: absolute; right: -20px; bottom: -20px;
  background: var(--orange); color: #fff; border-radius: var(--r-md);
  padding: 22px 26px; box-shadow: var(--shadow-orange); text-align: center;
}
.media-badge b { font-family: var(--font-head); font-size: 2.4rem; display: block; line-height: 1; }
.media-badge span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.checklist { display: grid; gap: 14px; margin-top: 28px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist svg { flex: none; width: 24px; height: 24px; color: var(--orange); margin-top: 2px; }
.section--dark .checklist li { color: #EDEFF2; }

/* -------------------------------------------------------------------------- */
/*  9. Service cards                                                          */
/* -------------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.svc {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 30px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: var(--orange); transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s var(--ease);
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc:hover::before { transform: scaleY(1); }
.svc__icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--orange-tint); color: var(--orange);
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.svc__icon svg { width: 30px; height: 30px; }
.svc:hover .svc__icon { background: var(--orange); color: #fff; transform: rotate(-6deg) scale(1.05); }
.svc h3 { font-size: 1.3rem; margin-bottom: 10px; }
.svc p { font-size: .96rem; }
.svc__num { position: absolute; right: 24px; top: 18px; font-family: var(--font-head); font-size: 3rem; color: var(--concrete-2); line-height: 1; transition: color .4s; }
.svc:hover .svc__num { color: var(--orange-tint); }

/* -------------------------------------------------------------------------- */
/*  10. Machine cards                                                         */
/* -------------------------------------------------------------------------- */
.machine {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.machine:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.machine__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--concrete-2); }
.machine__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.machine:hover .machine__img img { transform: scale(1.08); }
.machine__tag { position: absolute; left: 14px; top: 14px; background: rgba(21,23,28,.82); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; backdrop-filter: blur(4px); }
.machine__body { padding: 22px 24px 26px; }
.machine__body h3 { font-size: 1.28rem; }
.machine__type { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); margin-bottom: 6px; }
.machine__specs { display: flex; gap: 22px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.machine__specs .sp { flex: 1; }
.machine__specs .sp b { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); display: block; line-height: 1; }
.machine__specs .sp span { font-size: .78rem; color: var(--steel-light); text-transform: uppercase; letter-spacing: .04em; }

/* -------------------------------------------------------------------------- */
/*  11. Services list (detailed page)                                         */
/* -------------------------------------------------------------------------- */
.svc-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 26px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 30px; transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.svc-row:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateX(6px); }
.svc-row__ic { width: 72px; height: 72px; border-radius: 18px; background: var(--orange-tint); color: var(--orange); display: grid; place-items: center; transition: .35s var(--ease); }
.svc-row__ic svg { width: 34px; height: 34px; }
.svc-row:hover .svc-row__ic { background: var(--orange); color: #fff; }
.svc-row__txt h3 { font-size: 1.24rem; margin-bottom: 4px; }
.svc-row__txt p { font-size: .95rem; }
.svc-row__no { font-family: var(--font-head); font-size: 1.6rem; color: var(--line); }
.svc-row:hover .svc-row__no { color: var(--orange); }

/* -------------------------------------------------------------------------- */
/*  12. Gallery                                                               */
/* -------------------------------------------------------------------------- */
.gallery { columns: 3; column-gap: 18px; }
.gallery__item {
  break-inside: avoid; margin-bottom: 18px; position: relative;
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; transition: transform .6s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(21,23,28,.72), rgba(21,23,28,0) 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery__cap {
  position: absolute; left: 18px; bottom: 14px; z-index: 2; color: #fff;
  font-weight: 600; font-size: .95rem; transform: translateY(8px); opacity: 0;
  transition: .4s var(--ease);
}
.gallery__cap .plus { display:inline-flex; width:34px;height:34px;border-radius:50%;background:var(--orange);align-items:center;justify-content:center;margin-bottom:8px; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button {
  padding: 10px 22px; border-radius: 100px; font-weight: 600; font-size: .9rem;
  background: var(--concrete); color: var(--steel);
  transition: .3s var(--ease);
}
.filters button:hover { color: var(--ink); }
.filters button.active { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(10,11,14,.94); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 5vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 5vh; left: 0; right: 0; text-align: center; color: #fff; font-weight: 500; }
.lb-btn { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .3s, transform .3s; }
.lb-btn:hover { background: var(--orange); transform: scale(1.05); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 4vh; right: 4vw; }
.lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }

/* -------------------------------------------------------------------------- */
/*  13. CTA band                                                              */
/* -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; color: #fff; border-radius: var(--r-xl); padding: clamp(48px, 7vw, 84px); }
.cta-band__bg { position: absolute; inset: 0; z-index: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(115deg, rgba(198,60,38,.95), rgba(21,23,28,.86)); }
.cta-band .container, .cta-band__inner { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 520px; margin-top: 16px; }
.cta-band__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------------------------------------------------------------------------- */
/*  14. Contact / form                                                        */
/* -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.info-card { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: .35s var(--ease); }
.info-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.info-card__ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--orange-tint); color: var(--orange); display: grid; place-items: center; }
.info-card__ic svg { width: 24px; height: 24px; }
.info-card h4 { font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.info-card a, .info-card p { color: var(--steel); font-size: .98rem; }
.info-card a:hover { color: var(--orange); }
.info-stack { display: grid; gap: 16px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 8px; color: var(--ink); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: .98rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--concrete);
  color: var(--ink); transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 4px rgba(225,85,62,.12);
}
.form__note { font-size: .84rem; color: var(--steel-light); margin-top: 6px; }
.form-success { display: none; padding: 18px 20px; border-radius: var(--r-sm); background: #E9F7EF; color: #1B7A45; font-weight: 600; margin-bottom: 20px; }
.form-success.show { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip label { display: inline-block; padding: 9px 16px; border-radius: 100px; background: var(--concrete); border: 1.5px solid var(--line); font-size: .88rem; font-weight: 500; cursor: pointer; transition: .25s; margin: 0; }
.chip input:checked + label { background: var(--orange); color: #fff; border-color: var(--orange); }

/* -------------------------------------------------------------------------- */
/*  15. Process steps                                                         */
/* -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; }
.step__no { font-family: var(--font-head); font-size: 1rem; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); margin-bottom: 20px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: .94rem; }
.step:not(:last-child)::after { content:""; position: absolute; top: 27px; left: 66px; right: -13px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }

/* -------------------------------------------------------------------------- */
/*  16. Footer                                                                */
/* -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: #B9BEC8; padding-top: 78px; }
.footer a:hover { color: var(--orange-soft); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand img { height: 48px; margin-bottom: 20px; }
.footer__brand p { color: #8A9199; max-width: 300px; font-size: .95rem; }
.footer h5 { font-family: var(--font-head); text-transform: uppercase; color: #fff; font-size: 1.05rem; letter-spacing: .06em; margin-bottom: 20px; }
.footer ul { display: grid; gap: 12px; }
.footer ul a, .footer ul li { color: #9CA3AD; font-size: .95rem; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--orange); flex: none; margin-top: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-block: 26px; font-size: .86rem; color: #7A828C; }
.footer__made a { color: var(--orange-soft); font-weight: 600; }

/* -------------------------------------------------------------------------- */
/*  17. Scroll reveal                                                         */
/* -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------------------------- */
/*  18. Marquee (trust strip)                                                 */
/* -------------------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .05em; color: var(--steel-light); display: inline-flex; align-items: center; gap: 60px; }
.marquee__track span::after { content: "•"; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------------------- */
/*  19. Responsive                                                            */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .gallery { columns: 2; }
}
@media (max-width: 860px) {
  .nav, .header__phone { display: none; }
  .burger { display: block; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats--onhero { margin-top: 40px; }
  .cta-band__row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 56px 1fr; }
  .svc-row__no { display: none; }
  .media-badge { right: 12px; bottom: -14px; padding: 16px 18px; }
  .hero__actions .btn { flex: 1; justify-content: center; }
}

/* ========================================================================== */
/*  20. PREMIUM REFINEMENTS                                                    */
/* ========================================================================== */

/* --- Accessibility: visible keyboard focus --- */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.header:not(.scrolled) .nav a:focus-visible,
.hero a:focus-visible,
.section--dark a:focus-visible { outline-color: var(--orange-soft); }
.btn:focus-visible { outline-offset: 4px; }

/* --- Primary button: subtle depth gradient --- */
.btn { background-image: linear-gradient(135deg, #E9603F 0%, var(--orange-600) 100%); }
.btn--ghost, .btn--light { background-image: none; }
.btn--light:hover { background-image: linear-gradient(135deg, #E9603F 0%, var(--orange-600) 100%); }

/* --- Hero entrance animation --- */
.hero__badge  { animation: heroIn .7s .05s both var(--ease); }
.hero h1      { animation: heroIn .8s .16s both var(--ease); }
.hero__sub    { animation: heroIn .8s .30s both var(--ease); }
.hero__actions{ animation: heroIn .8s .44s both var(--ease); }
.hero__scroll { animation: heroIn 1s .9s both var(--ease); }
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.25); }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* --- Stat strip wrapper (replaces inline negative margin) --- */
.stats-wrap { margin-top: -64px; position: relative; z-index: 5; }
.stat { transition: background .35s var(--ease), transform .35s var(--ease); }
.stat:hover { background: var(--concrete); }
.stat:hover .stat__num { transform: scale(1.04); }
.stat__num { transition: transform .35s var(--ease); display: inline-block; }

/* --- Card image loading shimmer (until hotlinked photo paints) --- */
.machine__img, .split__media img, .gallery__item, .pagehero__bg, .hero__bg, .cta-band__bg {
  background-color: var(--concrete-2);
}
.section--dark .machine__img { background-color: #2A2E37; }

/* --- Back to top --- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-orange);
  opacity: 0; transform: translateY(22px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--orange-600); transform: translateY(-4px); }
.to-top svg { width: 22px; height: 22px; }

/* --- Tighter, safer mobile header --- */
@media (max-width: 560px) {
  .header__cta .btn { padding: 12px 18px; font-size: .9rem; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
@media (max-width: 400px) {
  .header__cta .btn svg { display: none; }
  .header__cta .btn { padding: 11px 16px; }
  .brand img { height: 38px; }
}

/* --- Smoother anchor offset under fixed header --- */
:target { scroll-margin-top: calc(var(--header-h) + 20px); }

/* --- Print sanity --- */
@media print {
  .header, .drawer, .to-top, .hero__scroll, .cta-band { display: none !important; }
  body { color: #000; }
}
