/* AMG v106 | restrained industrial luxury
   A strictly additive stylesheet: no content, document or form behaviour is replaced. */
body.amg-v106 {
  --amg106-ink:#25272d;
  --amg106-muted:#666a70;
  --amg106-burgundy:#862b40;
  --amg106-wine:#a64155;
  --amg106-warm:#f8f5ef;
  --amg106-line:rgba(40,43,51,.105);
  --amg106-shadow:0 14px 42px rgba(28,29,33,.065),0 2px 9px rgba(28,29,33,.022);
  --amg106-lift:0 23px 55px rgba(28,29,33,.105),0 4px 11px rgba(28,29,33,.035);
  font-optical-sizing:auto;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  color:var(--amg106-ink);
}
html:has(body.amg-v106){scroll-padding-top:100px}
body.amg-v106 :where(section,article,div){min-width:0}
body.amg-v106 :where(a,button,input,textarea,select,summary):focus-visible{
  outline:3px solid rgba(159,55,77,.38);outline-offset:3px;
}
/* Navigation: quiet, high-quality interactions, without replacing menu mechanics */
body.amg-v106 .header {
  border-bottom:1px solid rgba(55,43,43,.09);
  background:rgba(251,249,245,.96);
  box-shadow:0 7px 30px rgba(24,26,31,.042);
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
}
body.amg-v106 .header .nav-simple,
body.amg-v106 .header .nav-group-main,
body.amg-v106 .header .header-phone {
  transition:color .2s ease,opacity .2s ease;
  letter-spacing:-.013em;
}
body.amg-v106 .header :where(.nav-simple,.nav-group-main):hover{color:var(--amg106-burgundy)}
body.amg-v106 .header .mega-menu{
  background:#fdfbf8;
  border:1px solid rgba(66,45,45,.12);
  border-radius:20px;
  box-shadow:0 26px 60px rgba(34,29,32,.15);
}
body.amg-v106 .header .mega-menu a{transition:background .18s ease,color .18s ease,border-radius .18s ease}
body.amg-v106 .header .mega-menu a:hover{color:#86283e;background:rgba(153,51,78,.055);border-radius:9px}
/* Hero treatment: image stays visible, typography reads clearly on all screens. */
body.amg-v106 .page-hero.hero-photo{isolation:isolate}
body.amg-v106 .page-hero.hero-photo:before{
  background:linear-gradient(92deg,rgba(20,23,28,.85) 0%,rgba(20,23,28,.64) 33%,rgba(20,23,28,.30) 66%,rgba(20,23,28,.17) 100%);
}
body.amg-v106 .page-hero.hero-photo h1{
  max-width:950px;
  letter-spacing:-.055em;
  line-height:1.055;
  text-wrap:balance;
  text-shadow:0 5px 25px rgba(15,17,20,.12);
}
body.amg-v106 .page-hero.hero-photo > p:not(.eyebrow){
  max-width:830px;
  line-height:1.65;
  color:rgba(255,255,255,.88);
  text-wrap:pretty;
}
body.amg-v106 .page-hero.hero-photo .eyebrow{
  color:#f1dcc0;
  font-size:11px;
  letter-spacing:.16em;
}
body.amg-v106 .page-hero.hero-photo .hero-actions{gap:12px}
body.amg-v106 .page-hero.hero-photo .hero-actions .btn{min-height:48px}
/* V106 editorial headings: a consistent rhythm on light and dark sections. */
body.amg-v106 :is(.section-head h2,.real-photo-head h2,.amg-f104-heading h2,.service-scope .section-head h2,.cta-panel h2){
  letter-spacing:-.045em;
  line-height:1.12;
  text-wrap:balance;
}
body.amg-v106 .section-head{gap:18px;margin-bottom:clamp(24px,2.65vw,39px)}
body.amg-v106 .section .eyebrow,
body.amg-v106 .real-photo-head .eyebrow{letter-spacing:.145em;font-weight:800}
body.amg-v106 .section-head>p:not(.eyebrow){max-width:720px;line-height:1.65}
body.amg-v106 .section:where(:not(.dark-band)):where(:not(.amg-home-about)) p{overflow-wrap:break-word}
/* Consistent CTA materiality; never force dark button text in dark sections. */
body.amg-v106 :is(.btn.primary,a.btn.primary,.amg-about-button){
  background:linear-gradient(118deg,#7d2539 0%,#963146 78%,#a64056 100%);
  border:1px solid rgba(100,21,43,.12);
  color:#fff;
  min-height:46px;
  border-radius:13px;
  box-shadow:0 10px 22px rgba(131,34,57,.16),inset 0 1px 0 rgba(255,255,255,.15);
}
body.amg-v106 :is(.btn.primary,a.btn.primary,.amg-about-button):hover{
  transform:translateY(-2px);
  box-shadow:0 16px 29px rgba(131,34,57,.22),inset 0 1px 0 rgba(255,255,255,.15);
}
body.amg-v106 :is(.btn,a.btn,.amg-about-button){
  transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease,border-color .2s ease;
}
body.amg-v106 .page-hero .btn.secondary{
  border:1px solid rgba(255,255,255,.38);
  color:#fff;
  background:rgba(255,255,255,.105);
  -webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);
}
body.amg-v106 .page-hero .btn.secondary:hover{background:rgba(255,255,255,.18)}
/* A more deliberate grid rhythm on broad catalog sections. */
body.amg-v106 .cards-grid{gap:clamp(14px,1.55vw,23px)}
body.amg-v106 .cards-grid>.card,
body.amg-v106 .cards-grid>a.card,
body.amg-v106 :is(.service-choice-grid,.detail-grid,.service-scope-grid,.light-complect-grid,.service-related-grid) >article{
  border-color:var(--amg106-line);
  border-radius:22px;
  box-shadow:var(--amg106-shadow);
}
body.amg-v106 .cards-grid>.card,
body.amg-v106 :is(.service-card,.product-card){
  transition:transform .23s cubic-bezier(.2,.7,.24,1),box-shadow .23s ease,border-color .23s ease;
}
body.amg-v106 .cards-grid>a.card:hover,
body.amg-v106 .cards-grid>a.service-card:hover{
  transform:translateY(-4px);
  border-color:rgba(135,42,64,.21);
  box-shadow:var(--amg106-lift);
}
body.amg-v106 :is(.service-card,.product-card,.real-photo-card,.amg-f104-photo-grid figure) img{
  image-rendering:auto;
}
body.amg-v106 .cards-grid .card .tag,
body.amg-v106 .cards-grid .service-card .tag{
  font-size:10px;letter-spacing:.085em;font-weight:790;
  border-radius:999px;
}
body.amg-v106 .cards-grid :is(.card,.service-card) h3{
  letter-spacing:-.027em;
  line-height:1.16;
  text-wrap:balance;
}
body.amg-v106 .cards-grid :is(.card,.service-card) p{line-height:1.6}
/* Structural cards in service and production sections – not engineering spec tables */
body.amg-v106 :is(.amg-galv-facts .amg-galv-fact,.amg-f104-grid article,.pipe-v103-facts article,.service-choice-grid article,.service-scope-grid article,.detail-grid article,.service-kpi-strip article){
  border-radius:20px;
  border-color:rgba(49,46,47,.10);
  box-shadow:0 10px 29px rgba(29,32,38,.043);
}
body.amg-v106 :is(.amg-f104-grid article,.pipe-v103-facts article,.service-choice-grid article,.service-scope-grid article){
  transition:box-shadow .22s ease,border-color .22s ease;
}
body.amg-v106 :is(.amg-f104-grid article,.pipe-v103-facts article,.service-choice-grid article,.service-scope-grid article):hover{
  border-color:rgba(145,48,70,.19);
  box-shadow:0 15px 34px rgba(29,32,38,.070);
}
/* Tighten the texture of real product photography, but never crop technical drawings. */
body.amg-v106 :is(.real-photo-card,.amg-f104-photo-grid figure,.galv-v103-real-gallery figure,.pipe-v103-photo-layout figure){
  border-radius:19px;
  box-shadow:var(--amg106-shadow);
}
body.amg-v106 :is(.real-photo-card,.amg-f104-photo-grid figure,.galv-v103-real-gallery figure) {overflow:hidden}
body.amg-v106 .real-photo-card:focus-visible{outline-offset:4px}
/* FAQ as a clear accordion, with no hiding and no JS dependence. */
body.amg-v106 .faq-list{gap:13px}
body.amg-v106 .faq-list details{
  background:rgba(255,255,255,.87);
  border:1px solid rgba(56,49,51,.115);
  border-radius:19px;
  box-shadow:0 7px 24px rgba(30,31,35,.037);
  transition:box-shadow .22s ease,border-color .22s ease;
}
body.amg-v106 .faq-list details[open]{border-color:rgba(140,43,63,.25);box-shadow:0 13px 32px rgba(30,31,35,.06)}
body.amg-v106 .faq-list summary{line-height:1.35;letter-spacing:-.014em;text-wrap:pretty}
/* Form clarity: retain v105 input fields and their validation, no backend changes. */
body.amg-v106 .lead-form :is(input:not([type="checkbox"]),textarea,select),
body.amg-v106 form.contacts-lead-form :is(input:not([type="checkbox"]),textarea,select){
  border-radius:13px;
  transition:box-shadow .2s ease,border-color .2s ease,background-color .2s ease;
}
body.amg-v106 .lead-form :is(input:not([type="checkbox"]),textarea,select):focus,
body.amg-v106 form.contacts-lead-form :is(input:not([type="checkbox"]),textarea,select):focus{
  border-color:rgba(142,49,70,.55);
  box-shadow:0 0 0 4px rgba(142,49,70,.09);
}
/* Avoid line breaks that create uncontrolled horizontal overflow on mobile. */
body.amg-v106 :is(.section-head,.real-photo-head,.section .card,.amg-f104-grid article,.lc-product-content,.lead-form){min-width:0}
body.amg-v106 :is(.section h2,.section-head h2,.page-hero h1,.amg-f104-heading h2){overflow-wrap:break-word}
body.amg-v106 :is(.lc-table-scroll,.rail-table-wrap,.vsgt-table-wrap,.rm-table-scroll){overscroll-behavior-inline:contain}
/* Very subtle entry animation on hover-capable desktops only; content always remains visible. */
@media (hover:hover) and (pointer:fine){
 body.amg-v106 .real-photo-card img{transition:transform .38s cubic-bezier(.22,.7,.25,1)}
 body.amg-v106 .real-photo-card:hover img{transform:scale(1.023)}
}
@media (max-width:1050px){
 body.amg-v106 .page-hero.hero-photo:before{
   background:linear-gradient(92deg,rgba(20,23,28,.83) 0%,rgba(20,23,28,.58) 57%,rgba(20,23,28,.30) 100%);
 }
 body.amg-v106 .header{background:rgba(250,248,244,.985)}
}
@media (max-width:720px){
 html:has(body.amg-v106){scroll-padding-top:79px}
 body.amg-v106 .page-hero.hero-photo{padding-bottom:clamp(39px,7vw,66px)}
 body.amg-v106 .page-hero.hero-photo:before{
   background:linear-gradient(180deg,rgba(20,23,28,.48) 0%,rgba(20,23,28,.79) 47%,rgba(20,23,28,.87) 100%);
 }
 body.amg-v106 .page-hero.hero-photo h1{font-size:clamp(32px,9vw,47px);line-height:1.09;letter-spacing:-.046em}
 body.amg-v106 .page-hero.hero-photo>p:not(.eyebrow){font-size:14px;line-height:1.57}
 body.amg-v106 .page-hero.hero-photo .hero-actions{gap:10px}
 body.amg-v106 .page-hero.hero-photo .hero-actions .btn{min-height:46px}
 body.amg-v106 .section-head{align-items:flex-start;gap:13px;margin-bottom:23px}
 body.amg-v106 :is(.section-head h2,.real-photo-head h2,.amg-f104-heading h2){line-height:1.16;letter-spacing:-.038em}
 body.amg-v106 .cards-grid{gap:14px}
 body.amg-v106 .cards-grid>.card{border-radius:18px}
 body.amg-v106 :is(.service-choice-grid article,.service-scope-grid article,.detail-grid article,.amg-f104-grid article,.pipe-v103-facts article){border-radius:17px}
 body.amg-v106 .faq-list details{border-radius:16px;padding:18px 19px}
 body.amg-v106 .faq-list summary{font-size:16px;padding-right:28px}
}
@media(prefers-reduced-motion:reduce){
 html:has(body.amg-v106){scroll-behavior:auto}
 body.amg-v106 *,body.amg-v106 *:before,body.amg-v106 *:after{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
/* Mobile hero: remove the half-screen empty strip above the heading. */
@media(max-width:720px){
 body.amg-v106 .page-hero.hero-photo{
   justify-content:center;
   padding-top:clamp(63px,13vw,86px);
 }
 body.amg-v106 .page-hero.hero-photo:before{
   background:linear-gradient(180deg,rgba(18,20,26,.63),rgba(18,20,26,.73) 45%,rgba(18,20,26,.86));
 }
}
