/* ============ Services Page — Sections 1–3 ============ */

/* Section 1: Service Lattice Hero */
.svc-hero{
  position:relative; padding: calc(var(--header-h) + 38px) 0 56px; overflow:hidden;
  background:
    radial-gradient(1000px 600px at 20% -10%, rgba(255,230,109,.28), transparent 70%),
    radial-gradient(900px 700px at 90% 20%, rgba(16,185,129,.20), transparent 70%);
}
.svc-hero-inner{
  display:grid; grid-template-columns: 1.2fr .9fr; gap:40px; align-items:center;
}
@media (max-width: 1024px){
  .svc-hero-inner{ grid-template-columns:1fr; gap:24px; }
}
.svc-h1{
  font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3rem);
  line-height:1.1; margin:0 0 12px;
  background: linear-gradient(135deg, #083344 0%, #0E9F6E 35%, #FFD642 95%);
  background-clip:text; -webkit-background-clip:text; color:transparent;
}
.svc-lede{ color:var(--muted); margin:0 0 12px; max-width: 70ch; }
.svc-points{ margin:0; padding-left: 1rem; color:#0e2f27; }
.svc-points li{ padding:.15rem 0; }

/* asymmetric mosaic */
.svc-mosaic{
  display:grid; grid-template-areas:
    "a b"
    "a c";
  grid-template-columns: 1fr 1fr; gap:12px; align-content:start;
  transform: rotate(-1.5deg);
}
.svc-mosaic .mosaic{ display:grid; gap:6px; justify-items:start; }
.svc-mosaic .a{ grid-area:a; }
.svc-mosaic .b{ grid-area:b; }
.svc-mosaic .c{ grid-area:c; }
.svc-mosaic figcaption{
  font-size:.85rem; color:#0e3a30; background:linear-gradient(135deg, rgba(255,230,109,.5), rgba(16,185,129,.16));
  padding:.3rem .6rem; border-radius:999px; border:1px solid rgba(14,159,110,.25);
}

/* moving lattice backdrop */
.svc-lattice{
  position:absolute; inset:0; pointer-events:none; z-index:-1;
  background:
    repeating-linear-gradient(0deg, rgba(14,159,110,.08) 0 22px, transparent 22px 44px),
    repeating-linear-gradient(90deg, rgba(14,159,110,.08) 0 22px, transparent 22px 44px);
  mask-image: linear-gradient(180deg, #000 0 70%, transparent 100%);
}
.svc-lattice .cell{
  position:absolute; width:18px; height:18px; border-radius:6px;
  background: linear-gradient(135deg, var(--g2), var(--y2));
  box-shadow:0 0 12px rgba(16,185,129,.24);
  animation: floatCells 8s ease-in-out infinite;
}
.svc-lattice .cell:nth-child(1){ left:10%; top:18%; animation-delay:.2s; }
.svc-lattice .cell:nth-child(2){ left:26%; top:30%; animation-delay:.6s; }
.svc-lattice .cell:nth-child(3){ left:54%; top:24%; animation-delay:1s; }
.svc-lattice .cell:nth-child(4){ left:70%; top:12%; animation-delay:1.4s; }
.svc-lattice .cell:nth-child(5){ left:82%; top:36%; animation-delay:1.8s; }
.svc-lattice .cell:nth-child(6){ left:40%; top:44%; animation-delay:2.2s; }
@keyframes floatCells{
  0%,100%{ transform: translateY(-4px) rotate(-4deg); opacity:.8; }
  50%{ transform: translateY(6px) rotate(4deg); opacity:1; }
}

/* Section 2: Residential Moves Flowline */
.svc-residential{ padding:64px 0; position:relative; }
.resi-head h2{ margin:0 0 6px; font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); }
.resi-lede{ color:var(--muted); max-width:72ch; }

.resi-flow{
  margin-top:18px; list-style:none; padding:0; position:relative;
  border-left:3px dashed rgba(14,159,110,.45);
}
.rf-step{ position:relative; padding:0 0 22px 18px; }
.rf-step:last-child{ padding-bottom:0; }
.rf-head h3{ margin:0 0 6px; font-size:1.05rem; }
.rf-body p{ margin:0 0 10px; color:#0e2f27; }
.rf-fig{ display:grid; gap:6px; justify-items:start; }
.rf-fig figcaption{
  font-size:.85rem; color:#0e3a30; background:linear-gradient(135deg, rgba(255,230,109,.5), rgba(16,185,129,.18));
  padding:.3rem .6rem; border-radius:999px; border:1px solid rgba(14,159,110,.25);
}

/* animated fill for the flowline spine */
.resi-flow::after{
  content:""; position:absolute; left:-3px; top:0; width:3px; height:0;
  background:linear-gradient(180deg, var(--g2), var(--y2));
  border-radius:3px; box-shadow:0 0 10px rgba(16,185,129,.3);
  transition: height 1.6s cubic-bezier(.25,.9,.23,.99);
}
.resi-flow.is-on::after{ height:100%; }

/* Section 3: Office & Commercial */
.svc-office{ padding:64px 0; position:relative; }
.office-head h2{ margin:0 0 6px; font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); }
.office-lede{ color:var(--muted); max-width:72ch; }

.office-grid{
  margin-top:18px; display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; align-items:start;
}
@media (max-width: 1024px){ .office-grid{ grid-template-columns:1fr; } }

.office-copy h3{ margin:0 0 6px; font-size:1.05rem; }
.office-copy p{ margin:0 0 12px; color:#0e2f27; }

.office-rail{ display:grid; gap:12px; align-content:start; }
.office-rail figcaption{
  font-size:.85rem; color:#0e3a30; background:linear-gradient(135deg, rgba(255,230,109,.5), rgba(16,185,129,.18));
  padding:.3rem .6rem; border-radius:999px; border:1px solid rgba(14,159,110,.25);
}

/* decorative compliance ribbon */
.office-ribbon{
  position:absolute; right:-10%; bottom:-30%; width:640px; height:640px; border-radius:50%;
  border:2px dashed rgba(14,159,110,.45); filter: blur(.2px);
  animation: officeSpin 26s linear infinite;
}
@keyframes officeSpin{ to{ transform: rotate(360deg); } }
/* --- Fix: prevent horizontal overflow on Services --- */
.svc-hero,
.svc-office{
  overflow: hidden;           /* режем выступающие фоновые элементы */
}

/* немного щадим поворот мозаики; на узких — убираем */
.svc-mosaic{ transform: rotate(-1.2deg); }
@media (max-width: 520px){
  .svc-mosaic{ transform: none; }
}

/* декоративная лента в офис-секции — делаем компактнее и безопаснее */
.office-ribbon{
  right: -2%;                 /* было -10%, провоцировало выход */
  width: 520px;
  height: 520px;
}
@media (max-width: 700px){
  .office-ribbon{ display: none; }  /* на очень узких просто скрываем */
}
/* ============ Section 4: On-Site Labour ============ */
.svc-labour{ padding:64px 0; position:relative; overflow:hidden; }
.labour-head h2{ margin:0 0 6px; font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); }
.labour-lede{ color:var(--muted); max-width:72ch; }

.labour-grid{
  margin-top:18px;
  display:grid; grid-template-columns: repeat(3,1fr); gap:18px;
}
@media (max-width: 1024px){ .labour-grid{ grid-template-columns:1fr; } }

.role-card{
  background:rgba(255,255,255,.72); border:1px solid var(--line);
  border-radius:18px; padding:14px; box-shadow:var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.role-card:hover{ transform: translateY(-4px); box-shadow:var(--shadow-lg); }
.role-card h3{ margin:0 0 6px; font-size:1.05rem; }
.role-card p{ margin:0 0 10px; color:#0e2f27; }

/* animated signal rail */
.signal-rail{
  position:absolute; left:-10%; right:-10%; bottom:-8px; height:10px; overflow:hidden;
  background: repeating-linear-gradient(90deg, rgba(14,159,110,.2) 0 26px, rgba(14,159,110,.45) 26px 46px, rgba(14,159,110,.2) 46px 66px);
}
.sig{
  position:absolute; top:-6px; width:16px; height:16px; border-radius:6px;
  background:linear-gradient(135deg, var(--g2), var(--y2)); box-shadow:0 0 10px rgba(16,185,129,.22);
  animation: sigRun 8s linear infinite;
}
.sig-lift{ left:0%; }
.sig-move{ left:25%; animation-delay:.6s; }
.sig-stop{ left:50%; animation-delay:1.2s; }
.sig-clear{ left:75%; animation-delay:1.8s; }
@keyframes sigRun{ to{ transform: translateX(60vw); } }

/* ============ Section 5: Stone & Glass ============ */
.svc-stoneglass{ padding:64px 0; position:relative; overflow:hidden; }
.sg-head h2{ margin:0 0 6px; font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); }
.sg-lede{ color:var(--muted); max-width:72ch; }

.sg-grid{ margin-top:18px; display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
@media (max-width: 1024px){ .sg-grid{ grid-template-columns:1fr; } }

.sg-card{
  background:rgba(255,255,255,.72); border:1px solid var(--line);
  border-radius:18px; padding:14px; box-shadow:var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sg-card:hover{ transform: translateY(-4px); box-shadow:var(--shadow-lg); }
.sg-card h3{ margin:0 0 6px; font-size:1.05rem; }
.sg-card p{ margin:0 0 10px; color:#0e2f27; }

/* decorative strap triangle motif */
.sg-triangle{
  position:absolute; right:-6%; top:-10%; width:520px; height:520px; border-radius:50%;
  pointer-events:none; filter: blur(.2px);
}
.sg-triangle .edge{
  position:absolute; width:2px; height:54%; left:50%; background:rgba(14,159,110,.5);
  transform-origin: bottom center;
}
.sg-triangle .e1{ transform: rotate(30deg); }
.sg-triangle .e2{ transform: rotate(-30deg); }
.sg-triangle .e3{
  width: 60%; height:2px; top:50%; left:20%; background:rgba(14,159,110,.5);
}
@media (max-width: 700px){ .sg-triangle{ display:none; } }

/* ============ Section 6: Monsoon Playbook 2.0 ============ */
.svc-monsoon{ padding:64px 0; position:relative; overflow:hidden; }
.mon-head h2{ margin:0 0 6px; font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); }
.mon-lede{ color:var(--muted); max-width:72ch; }

.mon-grid{ margin-top:18px; display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
@media (max-width: 1024px){ .mon-grid{ grid-template-columns:1fr; } }

.mon-card{
  background:rgba(255,255,255,.72); border:1px solid var(--line);
  border-radius:18px; padding:14px; box-shadow:var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mon-card:hover{ transform: translateY(-4px); box-shadow:var(--shadow-lg); }
.mon-card h3{ margin:0 0 6px; font-size:1.05rem; }
.mon-card p{ margin:0 0 10px; color:#0e2f27; }

/* rain overlay */
.mon-rain{ position:absolute; inset:0; pointer-events:none; }
.mon-rain .drop{
  position:absolute; width:2px; height:18px; background:rgba(14,159,110,.35);
  top:-20px; left:10%; border-radius:2px;
  animation: rainFall 1.6s linear infinite;
}
.mon-rain .d2{ left:30%; animation-delay:.2s; height:24px; }
.mon-rain .d3{ left:48%; animation-delay:.4s; }
.mon-rain .d4{ left:62%; animation-delay:.6s; height:22px; }
.mon-rain .d5{ left:78%; animation-delay:.8s; }
.mon-rain .d6{ left:90%; animation-delay:1s; height:26px; }
@keyframes rainFall{
  0%{ transform: translateY(0); opacity:.7; }
  100%{ transform: translateY(120%); opacity:0; }
}
/* ============ Section 10: Safety Playbook Live ============ */
.svc-safety{ padding:64px 0; position:relative; overflow:hidden; }
.safety-head h2{ margin:0 0 6px; font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); }
.safety-lede{ color:var(--muted); max-width:72ch; }

.safety-grid{ margin-top:18px; display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; }
@media (max-width: 1024px){ .safety-grid{ grid-template-columns:1fr; } }

.safety-list{
  margin:0; padding:0; list-style:none; border-left:3px dashed rgba(14,159,110,.45);
}
.s-item{ position:relative; padding:0 0 18px 18px; }
.s-item:last-child{ padding-bottom:0; }
.s-item h3{ margin:0 0 6px; font-size:1.05rem; }
.s-item p{ margin:0; color:#0e2f27; }

/* reveal bullets ping in */
.reveal.is-visible .s-item::before{
  content:""; position:absolute; left:-10px; top:2px; width:14px; height:14px; border-radius:50%;
  background:linear-gradient(135deg, var(--g2), var(--y2)); box-shadow:0 0 0 6px rgba(16,185,129,.18);
  transform: scale(.1); animation: safetyPing .5s ease-out forwards;
}
.reveal.is-visible .s-item:nth-child(2)::before{ animation-delay:.1s; }
.reveal.is-visible .s-item:nth-child(3)::before{ animation-delay:.2s; }
.reveal.is-visible .s-item:nth-child(4)::before{ animation-delay:.3s; }
@keyframes safetyPing{ 0%{transform:scale(.1);opacity:.4;}60%{transform:scale(1.2);}100%{transform:scale(1);opacity:1;} }

.safety-rail{ display:grid; gap:12px; align-content:start; }

/* decorative soft pulses */
.safety-pulses{ position:absolute; inset:0; pointer-events:none; z-index:-1; }
.pulse{
  position:absolute; width:10px; height:10px; border-radius:50%; background:#0E9F6E;
  box-shadow:0 0 0 8px rgba(14,159,110,.12);
  animation: pulseFloat 6s ease-in-out infinite;
}
.p1{ top:18%; left:12%; animation-delay:.2s; }
.p2{ top:36%; left:44%; animation-delay:.6s; }
.p3{ top:52%; left:22%; animation-delay:1s; }
.p4{ top:70%; left:68%; animation-delay:1.4s; }
@keyframes pulseFloat{
  0%,100%{ transform: translateY(-4px) scale(.9); opacity:.8; }
  50%{ transform: translateY(6px) scale(1.05); opacity:1; }
}

/* ============ Section 11: Crate Design & CG Marks ============ */
.svc-crate{ padding:64px 0; position:relative; overflow:hidden; }
.crate-head h2{ margin:0 0 6px; font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); }
.crate-lede{ color:var(--muted); max-width:72ch; }

.crate-grid{ margin-top:18px; display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; }
@media (max-width: 1024px){ .crate-grid{ grid-template-columns:1fr; } }

.crate-copy h3{ margin:0 0 6px; font-size:1.05rem; }
.crate-copy p{ margin:0 0 12px; color:#0e2f27; }

/* crate diagram */
.crate-visual{ display:grid; gap:12px; }
.crate-box{
  position:relative; height:160px; border-radius:14px; background:#fff;
  border:2px solid rgba(14,159,110,.35); box-shadow:var(--shadow); overflow:hidden;
}
.crate-box .pad{
  position:absolute; background: repeating-linear-gradient(90deg, rgba(255,214,66,.35) 0 10px, rgba(255,214,66,.15) 10px 20px);
}
.crate-box .pad.top{ left:0; right:0; top:0; height:10px; }
.crate-box .pad.bottom{ left:0; right:0; bottom:0; height:10px; }
.crate-box .pad.left{ top:0; bottom:0; left:0; width:10px; }
.crate-box .pad.right{ top:0; bottom:0; right:0; width:10px; }
.crate-box .brace{
  position:absolute; width:2px; height:100%; top:0; background:rgba(14,159,110,.4);
  transform-origin: bottom center;
}
.crate-box .b1{ left:34%; transform: rotate(-6deg); }
.crate-box .b2{ right:34%; transform: rotate(6deg); }
.crate-box .cg-dot{
  position:absolute; left:50%; top:50%; width:12px; height:12px; border-radius:50%;
  transform: translate(-50%,-50%); background: linear-gradient(135deg, var(--g2), var(--y2));
  box-shadow:0 0 0 8px rgba(16,185,129,.16);
  animation: cgPulse 3s ease-in-out infinite;
}
@keyframes cgPulse{
  0%,100%{ transform:translate(-50%,-50%) scale(.9); box-shadow:0 0 0 8px rgba(16,185,129,.16); }
  50%{ transform:translate(-50%,-50%) scale(1.1); box-shadow:0 0 0 12px rgba(16,185,129,.22); }
}
.crate-figs{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media (max-width: 600px){ .crate-figs{ grid-template-columns:1fr; } }

/* ============ Section 12: Energy & Emissions ============ */
.svc-green{ padding:64px 0; position:relative; overflow:hidden; }
.green-head h2{ margin:0 0 6px; font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); }
.green-lede{ color:var(--muted); max-width:72ch; }

.green-grid{ margin-top:18px; display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; align-items:start; }
@media (max-width: 1024px){ .green-grid{ grid-template-columns:1fr; } }

.green-meters{ background:rgba(255,255,255,.72); border:1px solid var(--line); border-radius:18px; padding:14px; box-shadow:var(--shadow); }
.gm-row{ display:grid; grid-template-columns: 1fr auto; gap:10px; align-items:center; margin-bottom:10px; }
.gm-label{ color:#0e2f27; }
.meter{
  position:relative; width:180px; height:10px; border-radius:999px; overflow:hidden;
  background:linear-gradient(90deg, rgba(14,159,110,.18), rgba(255,214,66,.25));
  border:1px solid rgba(14,159,110,.25);
}
.meter .bar{
  position:absolute; left:0; top:0; bottom:0; width:0;
  background:linear-gradient(90deg, var(--g2), var(--y2));
  border-radius:999px; box-shadow:0 0 10px rgba(16,185,129,.25);
  transition: width 1.2s cubic-bezier(.25,.9,.23,1);
}
.reveal.is-visible .meter .bar.w24{ width:24%; }
.reveal.is-visible .meter .bar.w16{ width:16%; }
.reveal.is-visible .meter .bar.w94{ width:94%; }
.meter .pct{ margin-left:8px; font-weight:800; color:#063a2f; }

.green-visual{ display:grid; gap:12px; align-content:start; }

/* decorative dashed loop */
.green-loop{
  position:absolute; left:-8%; bottom:-34%; width:620px; height:620px; border-radius:50%;
  border:2px dashed rgba(14,159,110,.45); filter: blur(.2px);
  animation: greenSpin 26s linear infinite;
}
@keyframes greenSpin{ to{ transform:rotate(360deg);} }
@media (max-width: 720px){ .green-loop{ display:none; } }
/* ============ Section 13: Crew Academy ============ */
.svc-academy{ padding:64px 0; position:relative; overflow:hidden; }
.academy-head h2{ margin:0 0 6px; font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); }
.academy-lede{ color:var(--muted); max-width:72ch; }

.academy-grid{ margin-top:18px; display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; align-items:start; }
@media (max-width: 1024px){ .academy-grid{ grid-template-columns:1fr; } }

.ladder h3{ margin:0 0 8px; font-size:1.05rem; }
.ladder-list{
  margin:0; padding:0; list-style:none; border-left:3px dashed rgba(14,159,110,.45);
}
.ladder-list li{
  position:relative; padding:0 0 18px 18px;
}
.ladder-list li:last-child{ padding-bottom:0; }
.ladder-list h4{ margin:0 0 4px; font-size:1rem; }
.ladder-list p{ margin:0; color:#0e2f27; }

/* glowing bullets go one by one on reveal */
.reveal.is-visible .ladder-list li::before{
  content:""; position:absolute; left:-10px; top:2px; width:14px; height:14px; border-radius:50%;
  background:linear-gradient(135deg, var(--g2), var(--y2));
  box-shadow:0 0 0 6px rgba(16,185,129,.18);
  transform: scale(.1); animation: stepOn .55s cubic-bezier(.2,.7,.2,1) forwards;
}
.reveal.is-visible .ladder-list li:nth-child(1)::before{ animation-delay:.05s; }
.reveal.is-visible .ladder-list li:nth-child(2)::before{ animation-delay:.2s; }
.reveal.is-visible .ladder-list li:nth-child(3)::before{ animation-delay:.35s; }
@keyframes stepOn{ 0%{transform:scale(.1);opacity:.6;}80%{transform:scale(1.25);}100%{transform:scale(1);opacity:1;} }

.academy-visual{ display:grid; gap:12px; align-content:start; }
.cert-badges{ display:flex; gap:10px; flex-wrap:wrap; }
.badge{
  display:inline-grid; place-items:center; min-width:84px; height:32px; padding:0 .6rem;
  font-weight:800; color:#063a2f; border-radius:999px; border:1px solid rgba(14,159,110,.28);
  background:linear-gradient(135deg, rgba(255,214,66,.22), rgba(16,185,129,.22));
  box-shadow:var(--shadow);
  animation: badgePulse 3s ease-in-out infinite;
}
.badge.b2{ animation-delay:.3s; }
.badge.b3{ animation-delay:.6s; }
@keyframes badgePulse{
  0%,100%{ transform:translateY(-2px); filter:saturate(.95); }
  50%{ transform:translateY(2px); filter:saturate(1.05); }
}

/* ============ Section 14: Service Catalogue & Quick Links ============ */
.svc-catalogue{ padding:64px 0; position:relative; overflow:hidden; }
.catalogue-head h2{ margin:0 0 6px; font-size:clamp(1.4rem,1.1rem + 1.2vw,2rem); }
.catalogue-lede{ color:var(--muted); max-width:72ch; }

.catalogue-grid{ margin-top:18px; display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; align-items:start; }
@media (max-width: 1024px){ .catalogue-grid{ grid-template-columns:1fr; } }

.catalogue-cats h3{ margin:0 0 6px; font-size:1.05rem; }
.catalogue-cats p{ margin:0 0 10px; color:#0e2f27; }
.cat-fig figcaption{
  font-size:.85rem; color:#0e3a30; background:linear-gradient(135deg, rgba(255,230,109,.5), rgba(16,185,129,.18));
  padding:.3rem .6rem; border-radius:999px; border:1px solid rgba(14,159,110,.25);
}

/* link cards */
.link-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap:12px;
}
@media (max-width: 600px){ .link-grid{ grid-template-columns:1fr; } }

.link-card{
  display:flex; flex-direction:column; gap:2px; padding:.9rem 1rem; border-radius:14px;
  background:rgba(255,255,255,.72); border:1px solid var(--line); box-shadow:var(--shadow);
  text-decoration:none; transition: transform .2s ease, box-shadow .2s ease;
  position:relative; overflow:hidden; color:#0b3b2f;
}
.link-card .title{ font-weight:800; }
.link-card .hint{ color:#0e2f27; opacity:.9; font-size:.95rem; }

/* gentle shine on hover/focus */
.link-card::after{
  content:""; position:absolute; left:-40%; top:0; width:40%; height:100%;
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 100%);
  transform:skewX(-16deg); opacity:0;
}
.link-card:hover, .link-card:focus-visible{
  transform: translateY(-2px); box-shadow:var(--shadow-lg);
}
.link-card:hover::after, .link-card:focus-visible::after{
  animation: shine .9s ease forwards;
}
@keyframes shine{ to{ transform:translateX(220%) skewX(-16deg); opacity:0; } }
