/* ═══════════════════════════════════════════════
   LUXARY PIPES — Industrial Precision v2
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: auto;
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --white:   #FAFAF8;
  --off:     #F3F3F0;
  --grey-l:  #E2E2DE;
  --grey-m:  #9A9A94;
  --grey-d:  #4A4A46;
  --black:   #0D0D0B;
  --accent:  #E84010;
  --accent2: #FF6030;
  --font:    'Montserrat', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.76, 0, 0.24, 1);
  --nav-h: 72px;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}


::selection { background: var(--accent); color: #fff; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
address { font-style: normal; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: var(--accent); }


/* ─── PROGRESS BAR ─── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 9000; width: 0%;
  transform-origin: left;
  box-shadow: 0 0 8px var(--accent);
  transition: width .1s linear;
}


/* ─── CONTAINER ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 767px) { .container { padding: 0 24px; } }

/* ─── TYPOGRAPHY ─── */
.section-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 1.5px;
  background: var(--accent); flex-shrink: 0;
}
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 900; line-height: 1.0; letter-spacing: -.03em;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1rem; color: var(--grey-d);
  font-weight: 400; line-height: 1.75; max-width: 500px;
}
.section-header { margin-bottom: 72px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; padding: 15px 30px;
  border-radius: 3px; border: 1.5px solid transparent;
  white-space: nowrap; position: relative;
  overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.1); transform: scaleX(0);
  transform-origin: left; transition: transform .4s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); }
.btn-primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--white); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent2); border-color: var(--accent2); }
.btn-full { width: 100%; justify-content: center; }
.btn { cursor: pointer; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  transition: background .5s, box-shadow .5s;
}
.nav.scrolled {
  background: rgba(250,250,248,.94);
  backdrop-filter: blur(24px) saturate(200%);
  box-shadow: 0 1px 0 var(--grey-l);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 56px;
  height: 100%; display: flex; align-items: center;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px; background: var(--accent);
  color: #fff; font-size: .7rem; font-weight: 900; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center; border-radius: 2px;
}
.logo-text {
  font-size: .75rem; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--white); line-height: 1.1;
  transition: color .3s;
}
.logo-text strong { display: block; font-weight: 900; }
.nav.scrolled .logo-text { color: var(--black); }

.nav-links {
  display: flex; align-items: center; gap: 22px;
  list-style: none; margin-left: auto;
}
.nav-links a {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  color: rgba(255,255,255,.6); transition: color .25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--grey-d); }
.nav.scrolled .nav-links a:hover { color: var(--black); }
.nav-cta {
  padding: 8px 20px !important;
  border: 1.5px solid rgba(255,255,255,.2) !important;
  border-radius: 3px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--white); color: var(--black) !important; border-color: var(--white) !important; }
.nav.scrolled .nav-cta { border-color: var(--black) !important; color: var(--black) !important; }
.nav.scrolled .nav-cta:hover { background: var(--black); color: var(--white) !important; }

.nav-burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: all .35s var(--ease-out); }
.nav.scrolled .nav-burger span { background: var(--black); }
.nav-burger.open span:first-child { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transform: translateX(100%);
  transition: transform .6s var(--ease-out);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-bg {
  position: absolute; inset: 0;
  background: var(--black);
  clip-path: circle(0% at 95% 5%);
  transition: clip-path .6s var(--ease-out);
}
.mobile-menu.open .mobile-menu-bg { clip-path: circle(150% at 95% 5%); }
.mobile-menu ul { list-style: none; text-align: center; position: relative; z-index: 1; }
.mobile-link {
  display: block; font-size: clamp(1.6rem, 5vw, 2.5rem); font-weight: 900;
  color: var(--white); letter-spacing: -.03em; padding: 10px;
  opacity: .5; transition: opacity .25s, color .25s;
  transform: translateY(20px); transition: transform .5s var(--ease-out), opacity .3s, color .25s;
}
.mobile-menu.open .mobile-link { transform: translateY(0); opacity: .5; }
.mobile-link:hover { opacity: 1; color: var(--accent); }
.mobile-menu-footer {
  position: absolute; bottom: 48px; font-size: 1.1rem; font-weight: 700;
  color: rgba(255,255,255,.2); letter-spacing: .04em;
  z-index: 1;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { padding: 0 24px; }
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative; height: 100svh; min-height: 680px;
  display: flex; align-items: center; overflow: hidden;
  background: #0a0a09;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero-glow {
  position: absolute; top: 20%; right: 10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,64,16,.08) 0%, transparent 65%);
  pointer-events: none;
}
/* Круг відео в .hero-bg: той самий вигляд від 768px (desktop і tablet; мобільні — max 767px) */
.hero-pipes--bg {
  position: absolute;
  z-index: 0;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(680px, 56vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(232,64,16,0.12),
    0 0 0 8px rgba(255,255,255,0.02),
    0 24px 80px rgba(0,0,0,.45);
}
@media (max-width: 767px) {
  .hero-pipes--bg {
    display: none;
  }
}
.hero-pipes-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.14);
  transform-origin: center center;
}
.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
/* Копія кола лише для мобільних — у потоці між title і sub */
.hero-pipes--inline {
  display: none;
}
@media (max-width: 767px) {
  .hero-pipes--inline {
    display: block;
    position: relative;
    z-index: 0;
    width: min(100%, 280px);
    max-width: 280px;
    margin: 0 auto 22px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    box-shadow:
      0 0 0 1px rgba(232,64,16,0.12),
      0 0 0 8px rgba(255,255,255,0.02),
      0 24px 80px rgba(0,0,0,.45);
  }
  .hero-pipes--inline .hero-pipes-inner {
    transform: scale(1.06);
  }
}
.hero-noise {
  position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}
.hero-scanline {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-scanline::after {
  content: ''; position: absolute; top: -100%; left: 0; right: 0;
  height: 40%; background: linear-gradient(transparent, rgba(232,64,16,.03), transparent);
  animation: scanDown 8s ease-in-out infinite;
}
@keyframes scanDown { 0% { top: -40%; } 100% { top: 140%; } }

.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 56px;
  width: 100%; padding-top: var(--nav-h);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .65rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
  margin-bottom: 28px; opacity: 0;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

.hero-title {
  display: flex; flex-direction: column;
  font-size: clamp(2.4rem, 6.5vw, 7rem);
  font-weight: 900; line-height: 1;
  letter-spacing: -.04em; color: var(--white);
  margin-bottom: 36px;
}
.hero-line {
  display: block;
}
.hero-char { display: inline-block; overflow: hidden; padding: .15em .08em; margin: -.15em -.08em; }
.hero-char--word { padding: .12em .04em; margin: -.12em -.04em; }
.hero-char-inner { display: inline-block; }
.accent-line { color: var(--accent); }
.hero-sub {
  font-size: clamp(.85rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,.45); font-weight: 400; line-height: 1.75;
  margin-bottom: 44px; max-width: 540px; opacity: 0;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; }

.hero-corner-stats {
  display: flex; align-items: center; gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hcs-item { text-align: left; }
.hcs-num {
  display: block; font-size: 1.3rem; font-weight: 900;
  color: var(--white); letter-spacing: -.03em;
}
.hcs-label {
  font-size: .6rem; font-weight: 600; letter-spacing: .12em;
  color: rgba(255,255,255,.3); text-transform: uppercase;
}
.hcs-div { width: 1px; height: 36px; background: rgba(255,255,255,.1); }

/* ─── TICKER STRIP ─── */
.ticker-strip {
  background: var(--accent); overflow: hidden;
  padding: 10px 0;
}
.ticker-inner {
  display: flex; align-items: center;
  animation: tickerScroll 45s linear infinite;
  white-space: nowrap; width: max-content;
}
.ticker-inner span {
  font-size: .65rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.9); padding: 0 20px;
}
.t-sep { color: rgba(255,255,255,.4) !important; padding: 0 !important; }
@keyframes tickerScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about {
  padding: 128px 0; background: var(--off);
  position: relative; overflow: hidden;
}
.section-bg-text {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-size: clamp(8rem, 20vw, 18rem); font-weight: 900;
  letter-spacing: -.06em; color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,.05);
  line-height: 1; pointer-events: none; user-select: none;
  white-space: nowrap;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  min-width: 0;
}
.about-year {
  font-size: clamp(5rem, 14vw, 11rem); font-weight: 900;
  letter-spacing: -.06em; line-height: 1;
  color: var(--black); margin: 8px 0 0;
}
.about-since {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--grey-m); margin-bottom: 32px;
}
.about-desc { font-size: 1rem; line-height: 1.8; color: var(--grey-d); margin-bottom: 36px; }
.about-left,
.about-right {
  min-width: 0;
}
.about-right { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
.about-card {
  display: grid;
  grid-template-columns: auto 7.75rem minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 24px 28px; background: var(--white);
  border: 1px solid var(--grey-l); border-radius: 6px;
  position: relative; overflow: hidden;
  min-width: 0;
  max-width: 100%;
  transform: translateX(60px); opacity: 0;
  transition: transform .7s var(--ease-out) calc(var(--i,0)*.12s),
              opacity .7s var(--ease-out) calc(var(--i,0)*.12s),
              box-shadow .3s;
}
.about-card-icon {
  grid-column: 1;
  grid-row: 1;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.about-card-metric {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  flex-shrink: 0;
  justify-self: start;
  position: relative;
  z-index: 1;
}
.about-card p {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  min-width: 0;
  font-size: .82rem;
  color: var(--grey-d);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.about-card.visible { transform: translateX(0); opacity: 1; }
.about-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.about-card-glow {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s var(--ease-out);
  z-index: 0;
}
.about-card:hover .about-card-glow { transform: scaleY(1); }
.about-card-num {
  font-size: 2.6rem; font-weight: 900; letter-spacing: -.04em; line-height: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.about-card-unit { font-size: 1.3rem; font-weight: 700; color: var(--grey-m); align-self: flex-start; margin-top: 4px; flex-shrink: 0; position: relative; z-index: 1; }

/* ─── PIPE PATH ─── */
.pipe-path-section {
  position: relative; padding: 0; background: var(--white);
  height: 120px; display: flex; align-items: center; overflow: hidden;
}
.pipe-path-svg {
  width: 100%; height: 100%; position: absolute; inset: 0;
}
.pipe-path-label {
  position: relative; z-index: 1; text-align: center; width: 100%;
  font-size: .65rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(0,0,0,.15);
}

/* ═══════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════ */
.products {
  padding: 128px 0; background: var(--white);
  position: relative; overflow: hidden;
}
.products .section-bg-text { right: -4%; -webkit-text-stroke: 1px rgba(0,0,0,.04); }

.products-custom {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.products-swiper { overflow: visible !important; width: 100%; }
.products-swiper .swiper-wrapper { align-items: center; }
.products-swiper .swiper-slide { width: 360px !important; padding-top: 10px; }
.pipe-card {
  background: var(--off); border: 1px solid var(--grey-l); border-radius: 8px;
  overflow: hidden; transition: box-shadow .4s, transform .4s var(--ease-out);
}
.pipe-card:hover { box-shadow: 0 24px 72px rgba(0,0,0,.12); transform: translateY(-6px); }

.pipe-visual {
  background: #0a0a09; padding: 40px 24px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  position: relative; overflow: hidden;
}
.pipe-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 70%, rgba(232,64,16,.1) 0%, transparent 60%);
  transition: opacity .4s;
}
.pipe-card:hover .pipe-visual::before { opacity: 2; }
.pipe-outer {
  width: var(--d, 160px); height: var(--d, 160px); border-radius: 50%;
  background: conic-gradient(from 0deg, #181816 0%, #282824 30%, #181816 60%, #202020 80%, #181816 100%);
  box-shadow: 0 0 0 1.5px rgba(232,64,16,.35), inset 0 4px 24px rgba(0,0,0,.6),
              0 12px 40px rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: box-shadow .4s;
}
.pipe-card:hover .pipe-outer { box-shadow: 0 0 0 2px var(--accent), inset 0 4px 24px rgba(0,0,0,.6), 0 12px 60px rgba(232,64,16,.15); }
.pipe-inner {
  width: var(--id, 100px); height: var(--id, 100px); border-radius: 50%;
  background: conic-gradient(from 0deg, #0e0e0d 0%, #181816 40%, #0e0e0d 70%, #141412 100%);
  box-shadow: inset 0 3px 16px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
}
.pipe-core { width: 38%; height: 38%; border-radius: 50%; background: radial-gradient(circle, #1e1e1c 0%, #080807 100%); }
.pipe-corrugation { display: flex; gap: 7px; position: relative; z-index: 1; }
.pipe-corrugation span {
  display: block; width: 30px; height: 5px; border-radius: 3px;
  background: linear-gradient(180deg, #2e2e2a 0%, #161614 50%, #2e2e2a 100%);
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.pipe-spec {
  position: absolute; top: 12px; right: 14px;
  font-size: .6rem; font-weight: 700; letter-spacing: .14em;
  color: rgba(255,255,255,.2);
  z-index: 2;
}
.pipe-photo {
  width: 100%; height: 220px;
  object-fit: cover; object-position: center;
  display: block; border-radius: 4px;
  position: relative; z-index: 1;
}
.pipe-info { padding: 24px 24px 28px; }
.pipe-diam { font-size: 2.8rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.pipe-diam span { font-size: 1.1rem; font-weight: 400; color: var(--grey-m); }
.pipe-tag {
  display: inline-block; font-size: .63rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); background: rgba(232,64,16,.08);
  padding: 4px 10px; border-radius: 2px; margin-bottom: 14px;
}
.pipe-info p { font-size: .85rem; line-height: 1.65; color: var(--grey-d); margin-bottom: 20px; }
.pipe-card-cta {}
.pipe-order-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  color: var(--black); border-bottom: 1px solid var(--black);
  padding-bottom: 2px; transition: color .25s, border-color .25s;
}
.pipe-order-btn:hover { color: var(--accent); border-color: var(--accent); }

.swiper-nav { display: flex; align-items: center; gap: 20px; margin-top: 40px; }
.swiper-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--black); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  transition: background .25s, color .25s, transform .25s var(--ease-out);
}
.swiper-btn:hover { background: var(--black); color: var(--white); transform: scale(1.05); }
.swiper-btn { cursor: pointer; }
.swiper-counter { font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.swiper-current { font-size: 1.2rem; color: var(--black); }
.swiper-sep, .swiper-total { color: var(--grey-m); }

.custom-order {
  margin-top: 80px; padding: 40px 48px; background: var(--black);
  border-radius: 8px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.custom-order::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,64,16,.12), transparent 70%);
}
.custom-order-icon { color: var(--accent); flex-shrink: 0; position: relative; z-index: 1; }
.custom-order-text { flex: 1; min-width: 200px; position: relative; z-index: 1; }
.custom-order-text strong { display: block; font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.custom-order-text p { font-size: .88rem; color: rgba(255,255,255,.45); }

/* ═══════════════════════════════════════
   GALLERY
═══════════════════════════════════════ */
.gallery {
  padding: 128px 0;
  background: var(--off);
  position: relative;
  overflow: hidden;
}
.gallery .section-bg-text {
  right: -2%;
  -webkit-text-stroke: 1px rgba(0,0,0,.05);
  color: transparent;
}
.gallery .section-title { color: var(--black); }
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.gallery-cell {
  flex: 0 0 calc(20% - 13px);
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--grey-l);
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  transition: box-shadow .35s var(--ease-out), border-color .35s, transform .35s var(--ease-out);
  will-change: opacity;
}
.gallery-cell:hover,
.gallery-cell:focus-within {
  border-color: rgba(232,64,16,.45);
  box-shadow: 0 16px 48px rgba(232,64,16,.12), 0 12px 40px rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.gallery-thumb {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--black);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: 0;
}
.gallery-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.gallery-thumb-media {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
}
.gallery-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease-out);
}
.gallery-thumb:hover .gallery-thumb-media img,
.gallery-thumb:focus-visible .gallery-thumb-media img {
  transform: scale(1.08);
}
.gallery-thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.55) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.gallery-thumb:hover .gallery-thumb-shade,
.gallery-thumb:focus-visible .gallery-thumb-shade {
  opacity: 1;
}
.gallery-thumb-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s, transform .35s var(--ease-out);
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.gallery-thumb:hover .gallery-thumb-zoom,
.gallery-thumb:focus-visible .gallery-thumb-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.gallery-caption {
  display: block;
  padding: 12px 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border-top: 1px solid var(--grey-l);
  line-height: 1.35;
}

/* Gallery lightbox — лише при відкритому dialog (клік по фото) */
.gallery-lightbox {
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100vh;
  background: transparent;
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.gallery-lightbox:not([open]) {
  display: none !important;
  pointer-events: none;
}
.gallery-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox::backdrop {
  background: rgba(6,6,6,.88);
  backdrop-filter: blur(8px);
}
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
}
.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: min(92vh, 900px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 48px 40px;
  pointer-events: none;
}
.gallery-lightbox-panel > * {
  pointer-events: auto;
}
.gallery-lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.gallery-lightbox-img {
  max-width: 100%;
  max-height: min(70vh, 680px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.gallery-lightbox-caption {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  text-align: center;
  max-width: 42rem;
  line-height: 1.5;
}
.gallery-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.35);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, border-color .25s, transform .25s;
}
.gallery-lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}
.gallery-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.4);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, border-color .25s;
}
.gallery-lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.gallery-lightbox-prev { left: 12px; }
.gallery-lightbox-next { right: 12px; }
body.gallery-lightbox-open {
  overflow: hidden;
}
@media (max-width: 1100px) {
  .gallery-cell { flex: 0 0 calc(33.333% - 11px); }
}
@media (max-width: 720px) {
  .gallery-cell { flex: 0 0 calc(50% - 8px); }
  .gallery-thumb-media { height: 160px; }
  .gallery-lightbox-panel { padding: 52px 16px 32px; }
  .gallery-lightbox-prev { left: 4px; }
  .gallery-lightbox-next { right: 4px; }
}
@media (max-width: 420px) {
  .gallery-cell { flex: 0 0 100%; }
}
@media (max-width: 900px) {
  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

/* ═══════════════════════════════════════
   INDUSTRIES
═══════════════════════════════════════ */
.industries { padding: 128px 0; background: var(--black); position: relative; overflow: hidden; }
.industries .section-bg-text { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.04); }
.industries .section-label { color: var(--accent); }
.industries .section-title { color: var(--white); }
.industries .section-desc { color: rgba(255,255,255,.4); }
.industries-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06); border-radius: 6px; overflow: hidden;
}
.ind-card {
  background: var(--black); padding: 44px 32px;
  position: relative; overflow: hidden;
}
.ind-card-fill {
  position: absolute; inset: 0;
  background: rgba(232,64,16,.06);
  clip-path: circle(0% at 50% 100%);
  transition: clip-path .6s var(--ease-out);
}
.ind-card:hover .ind-card-fill { clip-path: circle(120% at 50% 100%); }
.ind-num {
  position: absolute; top: 20px; right: 24px;
  font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  color: rgba(255,255,255,.12);
}
.ind-icon {
  color: var(--accent); margin-bottom: 24px; position: relative; z-index: 1;
  transition: transform .4s var(--ease-out);
}
.ind-card:hover .ind-icon { transform: scale(1.1) translateY(-2px); }
.ind-card h3 {
  position: relative; z-index: 1; font-size: 1.05rem; font-weight: 700;
  letter-spacing: -.01em; color: var(--white); margin-bottom: 12px;
}
.ind-card p {
  position: relative; z-index: 1;
  font-size: .83rem; line-height: 1.65; color: rgba(255,255,255,.4);
  transition: color .3s;
}
.ind-card:hover p { color: rgba(255,255,255,.65); }
.ind-arrow {
  position: absolute; bottom: 24px; right: 24px; z-index: 1;
  color: var(--accent); opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity .35s, transform .35s var(--ease-out);
}
.ind-card:hover .ind-arrow { opacity: 1; transform: translate(0,0); }

/* ═══════════════════════════════════════
   ADVANTAGES
═══════════════════════════════════════ */
.advantages { padding: 128px 0; background: var(--off); }
.adv-list { border-top: 1px solid var(--grey-l); }
.adv-item {
  padding: 44px 0; border-bottom: 1px solid var(--grey-l);
  display: grid; grid-template-columns: 64px 1fr;
  gap: 24px; align-items: center;
  position: relative; overflow: hidden;
}
.adv-line {
  position: absolute; bottom: 0; left: 0; height: 1px;
  width: 0%; background: var(--accent);
  transition: width .8s var(--ease-out) .3s;
}
.adv-item.visible .adv-line { width: 100%; }
.adv-num { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--grey-m); text-align: center; }
.adv-body { display: flex; align-items: center; gap: 28px; padding-left: 14px; }
.adv-icon {
  color: var(--accent); flex-shrink: 0;
  transition: transform .35s var(--ease-out);
}
.adv-item:hover .adv-icon { transform: rotate(5deg) scale(1.1); }
.adv-content h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.adv-content p { font-size: .88rem; line-height: 1.7; color: var(--grey-d); }

/* ═══════════════════════════════════════
   PARTNERS
═══════════════════════════════════════ */
.partners { padding: 120px 0 0; background: var(--black); overflow: hidden; }

.partners-header { margin-bottom: 64px; }
.partners .section-label { color: var(--accent); }
.partners .section-title { color: var(--white); }
.partners .section-desc { color: rgba(255,255,255,.4); max-width: 560px; }

/* Category explanation cards */
.partners-categories {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06); border-radius: 6px;
  overflow: hidden; margin-bottom: 64px;
}
.pcat {
  padding: 36px 32px; background: var(--black);
  display: flex; flex-direction: column; gap: 16px;
  transition: background .3s;
}
.pcat:hover { background: rgba(255,255,255,.025); }
.pcat-icon { color: var(--accent); }
.pcat-body strong {
  display: block; font-size: .95rem; font-weight: 700;
  color: var(--white); margin-bottom: 10px; letter-spacing: -.01em;
}
.pcat-body p { font-size: .83rem; line-height: 1.7; color: rgba(255,255,255,.38); }

/* Client cards grid */
.partners-clients { margin-bottom: 0; }
.pclients-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.pclients-label::before {
  content: ''; width: 20px; height: 1px; background: rgba(255,255,255,.2);
}
.pclients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.pclient-card {
  flex: 0 0 calc(25% - 9px);
  min-width: 200px;
  padding: 24px 20px; border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px; background: rgba(255,255,255,.02);
  transition: border-color .3s, background .3s, transform .3s var(--ease-out);
}
.pclient-card:hover {
  border-color: rgba(232,64,16,.3); background: rgba(232,64,16,.04);
  transform: translateY(-4px);
}
.pclient-abbr {
  font-size: 1.4rem; font-weight: 900; color: var(--accent);
  letter-spacing: -.03em; margin-bottom: 10px;
  opacity: .4;
}
.pclient-name {
  font-size: .82rem; font-weight: 700; color: var(--white);
  margin-bottom: 8px; line-height: 1.3;
}
.pclient-desc {
  font-size: .75rem; line-height: 1.6; color: rgba(255,255,255,.3);
}

@media (max-width: 900px) {
  .partners-categories { grid-template-columns: 1fr; }
  .pclients-grid { justify-content: center; }
  .pclient-card { flex: 0 0 calc(25% - 9px); min-width: 180px; }
}
@media (max-width: 520px) {
  .pclients-grid { justify-content: flex-start; }
  .pclients-grid .pclient-card { flex: 0 0 100%; }
}

.marquee-wrap {
  overflow: hidden; position: relative; padding: 16px 0;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--black), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(-90deg, var(--black), transparent); }
.marquee-inner {
  display: flex; align-items: center; width: max-content;
  animation: marq 32s linear infinite;
}
.marquee-inner.reverse { animation: marqR 22s linear infinite; }
.marquee-wrap:hover .marquee-inner { animation-play-state: paused; }
.marquee-reverse { padding: 0 0 80px; }
@keyframes marq { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes marqR { from{transform:translateX(-50%)} to{transform:translateX(0)} }
.marquee-item {
  font-size: 1rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  padding: 0 32px; transition: color .25s; white-space: nowrap;
}
.marquee-item.dim { font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.18); letter-spacing: .12em; }
.marquee-item:hover { color: var(--accent); }
.marquee-dot { color: var(--accent); font-size: .8rem; flex-shrink: 0; }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact { padding: 128px 0; background: var(--off); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.contact-grid > * { min-width: 0; }
.contact-block { margin-bottom: 36px; }
.contact-block-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--grey-m); margin-bottom: 12px;
}
.contact-phone {
  display: block; font-size: 1.5rem; font-weight: 900;
  letter-spacing: -.03em; margin-bottom: 4px; transition: color .2s;
}
.contact-phone:hover { color: var(--accent); }
.contact-name { font-size: .85rem; color: var(--grey-d); margin-top: 8px; }
.contact-address { font-size: 1rem; line-height: 1.75; color: var(--grey-d); }
.social-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .88rem; font-weight: 600; transition: color .2s;
}
.social-link:hover { color: var(--accent); }
.contact-map { margin-top: 8px; border-radius: 6px; overflow: hidden; border: 1px solid var(--grey-l); }

.contact-form-wrap {
  background: var(--white); border: 1px solid var(--grey-l);
  border-radius: 8px; padding: 48px;
  transform: translateX(50px); opacity: 0;
  transition: transform .8s var(--ease-out), opacity .8s var(--ease-out);
}
.contact-form-wrap.visible { transform: translateX(0); opacity: 1; }
.form-group { margin-bottom: 22px; position: relative; }
.form-group label {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--grey-d); margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--grey-l); border-radius: 3px;
  background: transparent; color: var(--black);
  font-family: var(--font); font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
  outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(13,13,11,.05);
}
.form-group::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  height: 1.5px; width: 0%; background: var(--accent);
  transition: width .4s var(--ease-out);
}
.form-group:focus-within::after { width: 100%; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(0,0,0,.25); }
.form-select-wrap {
  position: relative;
  margin-bottom: 22px;
  width: 100%;
  min-width: 0;
}
.form-select-wrap label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-d);
  margin-bottom: 8px;
}
.form-select-inner {
  position: relative;
  width: 100%;
}
.form-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 13px 4.5rem 13px 16px;
  border: 1.5px solid var(--grey-l); border-radius: 3px;
  background: transparent; color: var(--black);
  font-family: var(--font); font-size: .95rem;
  line-height: 1.35;
  appearance: none; -webkit-appearance: none;
  outline: none; cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
}
.form-select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(13,13,11,.05);
}
.form-select option[value=""][disabled] { color: rgba(0,0,0,.4); }
.select-arrow {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--grey-d);
}
.form-note {
  font-size: .78rem; color: var(--grey-m); line-height: 1.5;
  margin-bottom: 22px; padding-left: 2px;
}
.form-success {
  display: none; align-items: center; gap: 12px;
  padding: 16px; background: rgba(0,0,0,.03);
  border-radius: 3px; margin-top: 12px;
  font-size: .88rem; font-weight: 600;
}
.form-success.show { display: flex; }
.form-success svg { color: var(--accent); flex-shrink: 0; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer { padding: 36px 0; background: var(--black); position: relative; overflow: hidden; }
.footer-bg-text {
  position: absolute;
  bottom: -8%;
  left: 0;
  right: 0;
  height: clamp(88px, 11vw, 200px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.footer-bg-svg {
  width: 100%;
  max-width: min(100%, 1320px);
  height: 100%;
  display: block;
  flex: 0 0 auto;
}
.footer-bg-outline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1.1;
  paint-order: stroke fill;
  font-family: 'Montserrat', sans-serif;
  font-size: 128px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.footer-inner {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.footer-inner .logo-text { color: rgba(255,255,255,.5); }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.25); letter-spacing: .04em; }
.footer-links { margin-left: auto; display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .75rem; color: rgba(255,255,255,.3); letter-spacing: .06em; transition: color .2s; }
.footer-links a:hover { color: var(--white); }

/* ═══════════════════════════════════════
   SCROLL REVEAL BASE
═══════════════════════════════════════ */
.split-fade {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.split-fade.visible { opacity: 1; transform: translateY(0); }
.gallery-cell.split-fade {
  transform: none;
  transition: opacity .5s ease;
}
.split-label {
  opacity: 0; transform: translateX(-16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.split-label.visible { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════════════════
   MAGNETIC BUTTON
═══════════════════════════════════════ */

/* ─── IND CARD RADIAL GLOW ─── */
.ind-card::after {
  content: ''; position: absolute;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,64,16,.14), transparent 70%);
  left: var(--mx, 50%); top: var(--my, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0;
  transition: opacity .3s;
}
.ind-card:hover::after { opacity: 1; }

/* ─── FLOAT CTA ─── */

/* ─── BACK TO TOP ─── */
.back-top {
  position: fixed; right: 28px; bottom: 40px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid var(--accent);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 20px rgba(232, 64, 16, 0.35);
  opacity: 0; transform: translateY(20px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out),
              background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover {
  background: var(--accent2);
  color: var(--white);
  border-color: var(--accent2);
  box-shadow: 0 6px 24px rgba(232, 64, 16, 0.45);
}

/* ─── ABOUT CARD COUNTER FIXES ─── */
.about-card { cursor: default; }

/* ─── SWIPER ACTIVE SLIDE ─── */
.products-swiper .swiper-slide { transition: opacity .4s; }
.products-swiper .swiper-slide:not(.swiper-slide-active) .pipe-card { opacity: .5; transform: scale(.97); transition: opacity .4s, transform .4s; }
.products-swiper .swiper-slide-active .pipe-card { opacity: 1; transform: scale(1); box-shadow: 0 20px 64px rgba(0,0,0,.16); }

/* hero-line clip-path removed — chars now split via JS */

/* ─── ADV ITEM HOVER BAR ─── */
.adv-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s var(--ease-out);
}
.adv-item:hover::before { transform: scaleY(1); }

/* ─── FORM ANIMATED BORDER ─── */
.form-group textarea { min-height: 100px; }

/* ─── MOBILE MENU LINK STAGGER ─── */
.mobile-menu li:nth-child(1) .mobile-link { transition-delay: .1s; }
.mobile-menu li:nth-child(2) .mobile-link { transition-delay: .15s; }
.mobile-menu li:nth-child(3) .mobile-link { transition-delay: .2s; }
.mobile-menu li:nth-child(4) .mobile-link { transition-delay: .25s; }
.mobile-menu li:nth-child(5) .mobile-link { transition-delay: .3s; }
.mobile-menu li:nth-child(6) .mobile-link { transition-delay: .35s; }

/* ─── SECTION HEADER OVERFLOW FIX ─── */
.section-title .sc { display: inline-block; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .custom-order {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .custom-order-text {
    min-width: 0;
    width: 100%;
  }
  .custom-order .btn.btn-accent {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}
@media (max-width: 767px) {
  .footer { padding-bottom: 44px; }
  .nav {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    box-sizing: border-box;
  }
  /* Hero: без вертикального центрування — інакше контент піднімається під fixed-nav */
  .hero {
    align-items: flex-start;
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
  }
  .hero-content {
    padding: 0 24px;
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 20px);
  }
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.55rem);
    margin-bottom: 18px;
    letter-spacing: -.038em;
  }
  .hero-corner-stats { gap: 16px; margin-top: 24px; padding-top: 20px; }
  .hcs-num { font-size: 1rem; }
  .hero-cta .btn.btn-primary {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
  }
  .hero-cta .btn.btn-ghost {
    margin-bottom: 12px;
  }
  .pipe-path-section { height: 60px; }
  .products-swiper { overflow: hidden !important; }
  .products-swiper .swiper-slide {
    width: 100% !important;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  .products-swiper .pipe-card {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }
  .products .pipe-visual {
    padding: 28px 16px 22px;
  }
  .products .pipe-info {
    padding: 20px 18px 24px;
  }
  .products .pipe-diam {
    font-size: clamp(2rem, 8.5vw, 2.65rem);
  }
  .industries-grid { grid-template-columns: 1fr; }
  .about-right {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 0;
    gap: 14px;
    margin-top: 8px;
  }
  .about-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 12px;
    align-items: center;
    padding: 18px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  }
  .about-card-icon {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 64, 16, 0.08);
    border-radius: 10px;
  }
  .about-card-icon svg {
    width: 22px;
    height: 22px;
  }
  .about-card-metric {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: baseline;
    gap: 0.12em;
    justify-self: start;
    min-width: 0;
  }
  .about-card-num {
    font-size: 2rem;
    line-height: 1;
  }
  .about-card-unit {
    margin-top: 0;
    font-size: 1.05rem;
  }
  .about-card p {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: unset;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--grey-l);
    font-size: 0.8rem;
    line-height: 1.55;
  }
  .about-card:not(.visible) {
    transform: translateX(12px);
  }
  .adv-item { grid-template-columns: 1fr; gap: 16px; }
  .adv-num { display: none; }
  .adv-body { flex-direction: column; align-items: flex-start; gap: 14px; }
  .custom-order { padding: 28px 24px; }
  .contact-form-wrap { padding: 28px 20px; }
  .form-select {
    padding-right: 4.25rem;
    font-size: 0.9rem;
  }
  .select-arrow {
    right: 20px;
  }
  .section-bg-text { display: none; }
  .hero-corner-stats { gap: 10px; flex-wrap: nowrap; justify-content: space-between; }
  .hcs-div { height: 28px; }
  .footer-bg-text {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: clamp(56px, 16vw, 100px);
    bottom: 0;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .footer-bg-svg {
    max-width: 100%;
  }
  .footer-bg-outline {
    font-size: clamp(52px, 14vw, 88px);
    letter-spacing: -0.04em;
  }
}
/* ── SECTION GAP SCALE ── */
/* laptop 1440+  → base styles (80–128px per section) */
/* laptop 1024   */ @media (max-width: 1100px) {
  section, .docs-section, .works-section, .blog-section { padding: 80px 0 !important; }
}
/* tablet 768–900 */ @media (max-width: 900px) and (min-width: 601px) {
  section, .docs-section, .works-section, .blog-section { padding: 60px 0 !important; }
}
/* mobile L 480–600 */ @media (max-width: 600px) and (min-width: 481px) {
  section, .docs-section, .works-section, .blog-section { padding: 48px 0 !important; }
}
@media (max-width: 480px) {
  .section-header { margin-bottom: 44px; }
  section, .docs-section, .works-section, .blog-section { padding: 36px 0 !important; }
  .section-header { margin-bottom: 24px; }
  .docs-section .section-header, .works-section .section-header,
  .blog-section .section-header, .faq .section-header,
  .about .section-header, .gallery .section-header,
  .industries .section-header, .partners-header { margin-bottom: 24px !important; }
  .hero-cta { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { margin-left: 0; }
  .footer-bg-text {
    height: clamp(48px, 15vw, 72px);
    padding: 0 12px;
    bottom: 2px;
  }
  .footer-bg-outline {
    font-size: clamp(40px, 11vw, 64px);
  }
  .back-top { right: 16px; bottom: 24px; }
}

/* ═══════════════════════════════════════
   PROCESS SECTION
═══════════════════════════════════════ */
.process {
  padding: 128px 0;
  background: var(--black);
  overflow: hidden;
}
.process .section-label { color: var(--accent); }
.process .section-title { color: var(--white); }
.process .section-desc { color: rgba(255,255,255,.4); }

.process-track { position: relative; }

.process-line {
  position: absolute; top: 28px; left: 28px; right: 28px; height: 1px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.process-line-fill {
  height: 100%; width: 0%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: width .05s linear;
}

.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
}

.process-step {
  padding: 0 32px 0 0; position: relative;
}

.step-dot {
  width: 56px; height: 56px; position: relative;
  margin-bottom: 32px;
}
.step-dot-inner {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid rgba(232,64,16,.35);
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); position: relative; z-index: 1;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.process-step.active .step-dot-inner,
.process-step:hover .step-dot-inner {
  background: var(--accent); color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(232,64,16,.35);
}
.step-num {
  position: absolute; top: -8px; right: -8px; z-index: 2;
  font-size: .58rem; font-weight: 800; letter-spacing: .1em;
  color: var(--accent); background: var(--black);
  padding: 2px 5px; border-radius: 2px;
  border: 1px solid rgba(232,64,16,.2);
}
.step-body h3 {
  font-size: 1rem; font-weight: 700; color: var(--white);
  margin-bottom: 10px; letter-spacing: -.01em;
}
.step-body p {
  font-size: .83rem; line-height: 1.65; color: rgba(255,255,255,.38);
}

@media (max-width: 900px) {
  .process-line { display: none; }
}
@media (max-width: 900px) and (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 20px;
  }
  .process-step {
    padding: 0 12px 0 0;
  }
}
@media (max-width: 767px) {
  .process {
    padding: 80px 0;
  }
  .process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .process-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 16px;
    align-items: start;
    padding: 0 0 28px 0;
  }
  .process-step:last-child {
    padding-bottom: 0;
  }
  .process-step .step-dot {
    grid-column: 1;
    grid-row: 1;
    width: 52px;
    height: 52px;
    margin-bottom: 0;
  }
  .process-step .step-dot-inner {
    width: 52px;
    height: 52px;
  }
  .process-step .step-dot-inner svg {
    width: 22px;
    height: 22px;
  }
  .process-step .step-num {
    top: -5px;
    right: -5px;
    font-size: 0.5rem;
    padding: 2px 4px;
  }
  .process-step .step-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding-top: 2px;
  }
  .process-step .step-body h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.25;
  }
  .process-step .step-body p {
    font-size: 0.8rem;
    line-height: 1.55;
  }
}
@media (max-width: 480px) {
  .process {
    padding: 72px 0;
  }
  .process-step {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
    padding-bottom: 24px;
  }
  .process-step .step-dot,
  .process-step .step-dot-inner {
    width: 48px;
    height: 48px;
  }
  .process-step .step-dot-inner svg {
    width: 20px;
    height: 20px;
  }
  .process-step .step-body h3 {
    font-size: 0.92rem;
  }
  .process-step .step-body p {
    font-size: 0.78rem;
  }
}

/* ═══════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════ */
.faq { padding: 128px 0; background: var(--off); }
.faq-list {
  border-top: 1px solid var(--grey-l);
}
.faq-item { border-bottom: 1px solid var(--grey-l); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 28px 0;
  background: none; border: none; cursor: pointer;
  text-align: left; font-family: var(--font);
  font-size: 1rem; font-weight: 600; color: var(--black);
  letter-spacing: -.01em;
  transition: color .25s;
}
.faq-q:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--grey-l);
  display: flex; align-items: center; justify-content: center;
  color: var(--black); transition: all .35s var(--ease-out);
}
.faq-item.open .faq-icon {
  background: var(--accent); border-color: var(--accent); color: var(--white);
  transform: rotate(45deg);
}
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  font-size: .92rem; line-height: 1.75; color: var(--grey-d);
  padding-bottom: 0;
  transition: padding-bottom .45s var(--ease-out);
}
.faq-item.open .faq-a-inner { padding-bottom: 28px; }

/* ─── FLOATING LABEL FORM ─── */
.form-float { position: relative; }
.form-float label {
  position: absolute; left: 16px; top: 14px;
  font-size: .92rem; color: var(--grey-m);
  pointer-events: none; background: transparent;
  transition: top .25s var(--ease-out), font-size .25s var(--ease-out),
              color .25s, letter-spacing .25s;
  font-weight: 500; letter-spacing: 0;
  text-transform: none;
}
.form-float input:not(:placeholder-shown) ~ label,
.form-float input:focus ~ label,
.form-float textarea:not(:placeholder-shown) ~ label,
.form-float textarea:focus ~ label {
  top: -10px; font-size: .65rem; color: var(--black);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  background: var(--white); padding: 0 4px; left: 12px;
}
.form-float input, .form-float textarea {
  padding-top: 16px; padding-bottom: 12px;
}

/* ─── ABOUT CARD COUNTER INIT ─── */
.about-card:not(.visible) .about-card-num { opacity: 0; }

/* ─── SECTION TRANSITION CLIP ─── */
.ticker-strip { position: relative; z-index: 1; }

/* ─── PIPE PATH ─── */
.pipe-path-section { background: var(--off); }
#pipeDrawPath { will-change: stroke-dashoffset; }

/* ─── HERO MOUSE PARALLAX LAYER ─── */
#heroContent { will-change: transform; }
#heroPipes   { will-change: transform; }

/* ─── ABOUT CARD VISIBLE TRANSITION ─── */
.about-card.visible { transform: translateX(0) !important; opacity: 1 !important; }

/* ─── CORRUGATION SPAN INITIAL ─── */
.pipe-corrugation span { will-change: transform; transform-origin: center bottom; }

/* ─── BACK TOP CURSOR COARSE ─── */
@media (pointer: coarse) {
  .back-top { cursor: pointer; }
}

/* ═══ DOCS SECTION ═══ */
.docs-section {
  padding: 120px 0;
  background: var(--off);
}
.docs-section .section-header { margin-bottom: 56px; }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--grey-l);
  border-radius: 12px;
  text-decoration: none;
  color: var(--black);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.doc-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(232,64,16,.10);
  transform: translateY(-3px);
}
.doc-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off);
  border-radius: 10px;
  color: var(--grey-d);
}
.doc-card-body { flex: 1; }
.doc-card-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}
.doc-card-meta {
  font-size: .78rem;
  color: var(--grey-m);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.doc-card-arrow {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
}
.doc-card:hover .doc-card-arrow {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 900px) {
  .docs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .docs-grid { grid-template-columns: 1fr; gap: 10px; }
  .doc-card { padding: 16px; gap: 14px; }
  .doc-card-icon { width: 44px; height: 44px; flex-shrink: 0; }
  .doc-card-title { font-size: .88rem; }
}

/* ═══ WORKS SECTION ═══ */
.works-section {
  padding: 120px 0;
  background: var(--white);
}
.works-section .section-header { margin-bottom: 56px; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--off);
  border: 1px solid var(--grey-l);
  transition: box-shadow .2s, transform .2s;
}
.work-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
  transform: translateY(-4px);
}
.work-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: block;
  object-fit: cover;
}
.work-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--grey-l);
  color: var(--grey-m);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.work-card-caption {
  padding: 20px 20px 22px;
}
.work-card-title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
}
.work-card-meta {
  font-size: .78rem;
  color: var(--grey-m);
  text-transform: uppercase;
  letter-spacing: .04em;
}
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
}

.docs-note {
  margin-top: 32px;
  font-size: .9rem;
  color: var(--grey-d);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

/* ═══ DOCS LIGHTBOX ═══ */
.doc-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  z-index: 1100;
}
.doc-lightbox:not([open]) { display: none; }
.doc-lightbox::backdrop { background: rgba(0,0,0,.85); }
.doc-lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}
.doc-lightbox-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 80px;
  pointer-events: none;
}
.doc-lightbox-panel > * { pointer-events: auto; }
.doc-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(90vw, 900px);
  max-height: calc(100vh - 140px);
}
.doc-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.doc-lightbox-caption {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}
.doc-lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  z-index: 10;
}
.doc-lightbox-close:hover { background: rgba(255,255,255,.18); }
.doc-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  z-index: 10;
}
.doc-lightbox-nav:hover { background: rgba(255,255,255,.2); }
.doc-lightbox-prev { left: 12px; }
.doc-lightbox-next { right: 12px; }
.doc-lightbox-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
  z-index: 10;
}
.doc-lightbox-download:hover { background: var(--accent2); }
.doc-card { cursor: pointer; text-align: left; width: 100%; }

/* ═══ BLOG SECTION ═══ */
.blog-section {
  padding: 120px 0;
  background: var(--off);
}
.blog-section .section-header { margin-bottom: 56px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--grey-l);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.blog-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.10);
  transform: translateY(-5px);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  object-fit: cover;
}
.blog-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-l);
  color: var(--grey-m);
}
.blog-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-card-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232,64,16,.08);
  border-radius: 4px;
  padding: 3px 8px;
}
.blog-card-date {
  font-size: .75rem;
  color: var(--grey-m);
  letter-spacing: .04em;
}
.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--black);
}
.blog-card-excerpt {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--grey-d);
  flex: 1;
}
.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
  transition: gap .2s;
}
.blog-card:hover .blog-card-readmore { gap: 10px; }
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ═══ ABOUT COMPLIANCE ═══ */
.about-compliance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--grey-l);
}
.about-compliance-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  background: var(--off);
  border: 1px solid var(--grey-l);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.about-compliance-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(232,64,16,.08);
}
.acc-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,64,16,.08);
  border-radius: 10px;
  color: var(--accent);
}
.acc-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-m);
}
.acc-value {
  font-size: .92rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}
@media (max-width: 900px) {
  .about-compliance { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .about-compliance { grid-template-columns: 1fr; }
}

