:root{
  --bg:#f5f7fb; --surface:#fff; --text:#182638; --muted:#66768b;
  --primary:#24578f; --primary-2:#3d78b7; --accent:#74bf36;
  --line:#e3e9f1; --shadow:0 12px 36px rgba(30,61,95,.08);
  --radius:18px; --max:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif;line-height:1.5}
a{color:inherit}
button,input{font:inherit}
.container{width:min(var(--max),calc(100% - 36px));margin:auto}
.topbar{background:#fff;border-bottom:1px solid var(--line)}
.topbar-inner{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand{display:flex;align-items:center;gap:14px;font-weight:650;color:#7294ba}
.brand-mark{width:30px;height:30px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:2px;transform:rotate(45deg)}
.brand-mark span{background:#73bf36;border-radius:3px} .brand-mark span:nth-child(2){background:#4a8ccc}
.brand-mark span:nth-child(3){background:#55a3dc} .brand-mark span:nth-child(4){background:#91ca54}
.logo{width:180px;max-height:52px;object-fit:contain}
.contact-row{display:flex;gap:22px;align-items:center;color:var(--muted);font-size:12px}
.contact-row b{display:block;color:#58aa29;font-size:12px}
.header-main{background:#fff;padding:16px 0 18px}
.header-grid{display:grid;grid-template-columns:220px 1fr auto;align-items:center;gap:28px}
.search{height:42px;border:1px solid var(--line);border-radius:12px;padding:0 14px;outline:none;background:#f9fbfd}
.search:focus{border-color:#9ab9dc;box-shadow:0 0 0 4px rgba(61,120,183,.08)}
.header-note{font-size:12px;color:var(--muted);text-align:right}
.header-note b{color:var(--primary)}
.nav-wrap{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;gap:7px;overflow:auto;padding:10px 0}
.nav a{white-space:nowrap;text-decoration:none;padding:11px 14px;border-radius:10px;font-size:13px;font-weight:650;color:#415267;transition:.2s}
.nav a:hover{background:#eef4fa;color:var(--primary)}
.nav a.active{background:var(--primary);color:#fff}
.hero{padding:28px 0}
.hero-card{position:relative;overflow:hidden;border-radius:24px;min-height:370px;background:linear-gradient(90deg,rgba(13,43,72,.88),rgba(13,43,72,.18)),url("images/logo.jpg") center/cover;box-shadow:var(--shadow)}
.hero-content{max-width:570px;padding:55px;color:white}
.kicker{display:inline-block;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px;letter-spacing:.5px;text-transform:uppercase}
.hero h1{font-size:42px;line-height:1.08;margin:18px 0 14px}
.hero p{font-size:17px;color:#edf5fd;max-width:520px;margin:0 0 25px}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0;cursor:pointer;padding:12px 18px;border-radius:11px;font-weight:700}
.btn-primary{background:var(--accent);color:white}
.btn-light{background:white;color:var(--primary)}
.section{padding:18px 0 55px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.section-head h2{font-size:28px;margin:0}
.section-head p{margin:4px 0 0;color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 24px rgba(30,61,95,.045);transition:.2s;overflow:hidden}
.card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(30,61,95,.11);border-color:#cbd8e7}
.product{padding:16px}
.product img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px;background:#f4f8fc}
.product h3{margin:13px 0 5px;font-size:16px}
.product p{margin:0;color:var(--muted);font-size:13px}
.product .link{display:inline-block;margin-top:13px;color:var(--primary);font-size:13px;font-weight:700;text-decoration:none}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.info-card{padding:24px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.info-card .num{font-size:34px;font-weight:800;color:var(--primary);margin-bottom:8px}
.info-card h3{margin:0 0 6px}
.info-card p{margin:0;color:var(--muted);font-size:14px}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.news-card{padding:22px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.news-card time{font-size:11px;color:#9ab0c8}
.news-card h3{font-size:17px;line-height:1.3;margin:10px 0}
.news-card p{color:var(--muted);font-size:14px;margin:0}
.page-section{display:none;animation:fade .25s ease}
.page-section.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.breadcrumb{font-size:12px;color:var(--muted);margin-bottom:15px}
.breadcrumb a{color:var(--primary);text-decoration:none}
.detail-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:22px}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px}
.panel h2{margin-top:0}
.panel p,.panel li{color:var(--muted)}
.footer{margin-top:18px;background:#193a5d;color:#dbe8f6}
.footer-inner{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px;padding:35px 0}
.footer h3{margin-top:0;color:#fff}
.footer p,.footer a{font-size:13px;color:#b8cbe0;text-decoration:none}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:15px 0;color:#9fb5cb;font-size:11px}
.mobile-menu{display:none}
@media(max-width:1050px){
  .cards{grid-template-columns:repeat(3,1fr)}
  .contact-row{display:none}
  .header-grid{grid-template-columns:1fr auto}
}
@media(max-width:780px){
  .container{width:min(var(--max),calc(100% - 24px))}
  .header-grid{grid-template-columns:1fr}
  .header-note{text-align:left}
  .logo{width:150px}
  .topbar-inner{min-height:64px}
  .brand{font-size:13px}
  .hero-card{min-height:500px}
  .hero-content{padding:35px 26px}
  .hero h1{font-size:31px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .info-grid,.news-grid,.detail-grid,.footer-inner{grid-template-columns:1fr}
}
@media(max-width:500px){
  .cards{grid-template-columns:1fr}
  .hero p{font-size:15px}
}
.joomla-component-slot{display:none}


/* Detailed product page — railway scales */
.detail-shell{background:#fff;border:1px solid var(--line);border-radius:0;box-shadow:var(--shadow);padding:0 18px 24px;margin:24px 0 56px}
.detail-breadcrumb{height:38px;display:flex;align-items:center;gap:9px;border-bottom:1px solid #eef2f6;color:#9ba9b8;font-size:12px}
.detail-breadcrumb a{color:#7a9cc0;text-decoration:none}
.product-layout{display:grid;grid-template-columns:160px minmax(0,1fr) 255px;gap:18px;padding-top:22px}
.product-sidebar{font-size:12px}
.side-block{margin-bottom:22px}
.side-title,.tech-title{padding:7px 9px;background:#87a8d5;color:#fff;font-size:12px;font-weight:800;letter-spacing:.2px}
.side-link{display:block;padding:7px 10px;background:#edf2f8;border-bottom:1px solid #fff;color:#53606d;text-decoration:none;line-height:1.25}
.side-link:hover,.side-link.active{background:#dfeaf6;color:#275588}
.side-link::before{content:'›';margin-right:7px;color:#6687a8}
.product-article{padding:6px 2px 0}
.product-title{display:flex;align-items:center;gap:14px;border-bottom:2px solid #62b72f;padding-bottom:2px;margin-bottom:18px}
.product-heading-icon{width:84px;height:84px;display:flex;align-items:center;justify-content:center}
.product-heading-icon img{width:84px;height:84px;object-fit:cover;border-radius:12px}
.product-title h1{margin:0;color:#58ad2c;font-size:28px;font-weight:500}
.lead-italic{font-size:13px;line-height:1.35;color:#426b9b;font-style:italic;font-weight:600}
.product-article p{font-size:14px;line-height:1.4;color:#444}
.model-list{padding-left:27px;color:#53606d;font-size:14px;line-height:1.55}
.chart-frame{border:1px solid #555;padding:3px;background:#fff;margin-top:16px}
.chart-frame img{display:block;width:100%;height:auto}
.technology-sidebar{font-size:12px}
.tech-subtitle{background:#eff3f8;color:#596774;padding:6px 7px;margin-top:0}
.tech-icons{display:flex;flex-wrap:wrap;gap:7px;padding:7px 4px 10px}
.tech-icons span{min-width:38px;height:38px;border:2px solid #67b934;border-radius:8px;color:#5ca830;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:700;font-size:12px;line-height:1.0}
.materials{margin-top:28px}
.share-row{display:flex;justify-content:center;align-items:center;gap:10px;padding-top:10px;color:#9ca8b5;font-size:12px}
.share-row a{width:30px;height:30px;border-radius:50%;background:#edf3f9;display:flex;align-items:center;justify-content:center;text-decoration:none;color:#4e80b5;font-weight:800}
@media(max-width:1050px){
  .product-layout{grid-template-columns:150px 1fr}
  .technology-sidebar{grid-column:2}
}
@media(max-width:780px){
  .detail-shell{padding:0 12px 22px}
  .product-layout{grid-template-columns:1fr}
  .technology-sidebar{grid-column:auto}
  .product-title h1{font-size:24px}
}


/* Newton product detail page */
.model-link{color:#4b84b7;text-decoration:none}
.model-link:hover{color:#5eae2b;text-decoration:underline}
.newton-shell{background:#fff;border:1px solid #e1e7ee;box-shadow:0 12px 32px rgba(30,61,95,.07);margin:24px 0 55px;padding:0 18px 35px}
.newton-breadcrumb{height:38px;display:flex;gap:8px;align-items:center;border-bottom:1px solid #edf1f5;color:#9aa8b5;font-size:12px}
.newton-breadcrumb a{color:#7c9fc8;text-decoration:none}
.newton-grid{display:grid;grid-template-columns:160px minmax(0,1fr);gap:18px;padding-top:25px}
.newton-side{font-size:12px}
.newton-article{padding:0 6px 10px}
.newton-title{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.newton-heading-icon{width:84px;height:84px;flex:0 0 84px}
.newton-heading-icon img{width:84px;height:84px;object-fit:cover;border-radius:12px}
.newton-title h1{margin:0;color:#5eae2b;font-size:28px;line-height:1.15;font-weight:500}
.newton-title-line{height:2px;background:#5eae2b;margin-top:4px}
.newton-intro{color:#426b9b;font-size:13px;line-height:1.34;font-style:italic;font-weight:600;text-align:justify}
.newton-copy h2{color:#61b12e;font-size:15px;font-weight:500;margin:24px 0 14px}
.newton-copy p,.newton-tabpanel p,.newton-tabpanel li{font-size:14px;line-height:1.45;color:#424b55}
.green-list{padding-left:22px}
.green-list li::marker{color:#63b436}
.newton-tabs{display:flex;gap:0;border-bottom:1px solid #8eace0;margin-top:22px;overflow:auto}
.newton-tab{border:0;background:transparent;color:#8ba8cf;padding:9px 12px;cursor:pointer;white-space:nowrap;font-size:13px}
.newton-tab:hover{color:#5eae2b}
.newton-tab.active{background:#8eacdf;color:#fff;border-radius:7px 7px 0 0}
.newton-tabpanel{display:none;padding:18px 18px 4px;background:linear-gradient(#fff,#f7f9fb);min-height:220px}
.newton-tabpanel.active{display:block}
.newton-tabpanel h3{color:#61b12e;font-size:15px;font-weight:500;margin:20px 0 10px}
.newton-image-row{display:grid;grid-template-columns:minmax(0,48%) 1fr;gap:28px;align-items:start;margin:8px 0 36px}
.newton-image-row img{width:100%;display:block;background:#f4f7fa}
.newton-image-row p{margin:0 0 12px}
.newton-image-row a{color:#65b634;text-decoration:none}
.newton-spec-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.newton-spec-cards>div{padding:16px;border:1px solid #dfe7ef;background:#fff}
.newton-spec-cards b{display:block;color:#507aa5;margin-bottom:4px}
.newton-spec-cards span{font-size:13px;color:#718092}
.newton-table{border:1px solid #dfe7ef}
.newton-table>div{display:grid;grid-template-columns:1fr 1fr;padding:11px 14px;border-bottom:1px solid #e7ecf2;font-size:13px}
.newton-table>div:last-child{border-bottom:0}
.newton-table b{color:#527da9}
.cert-placeholder{border:1px dashed #a9bdd5;padding:20px;color:#7b8b9c;background:#fafcff}
@media(max-width:780px){
 .newton-shell{padding:0 12px 24px}
 .newton-grid{grid-template-columns:1fr}
 .newton-title h1{font-size:24px}
 .newton-image-row{grid-template-columns:1fr}
 .newton-spec-cards{grid-template-columns:1fr}
}

/* Wagon scales page — reference design */
.railway-shell{background:#fff;border-top:1px solid #e8edf2;margin:0 0 55px;padding:0 0 30px}.railway-breadcrumb{height:38px;display:flex;align-items:center;gap:9px;background:#f7f9fc;border-bottom:1px solid #e8edf2;padding:0 14px;color:#9ca8b4;font-size:12px}.railway-breadcrumb a{color:#7898bf;text-decoration:none}.railway-article{max-width:930px;margin:0 auto;padding:28px 22px 20px}.railway-heading{display:flex;align-items:center;gap:14px;margin-bottom:10px}.railway-heading img{width:84px;height:84px;object-fit:cover;flex:0 0 84px}.railway-heading-text{flex:1}.railway-heading h1{margin:0;color:#58af2e;font-size:30px;line-height:1.1;font-weight:500}.railway-green-line{height:2px;background:#68b634;margin-top:4px;width:100%}.railway-lead{margin:8px 0 27px;color:#466b97;font-size:13px;line-height:1.34;font-style:italic;text-align:justify;font-weight:600}.railway-body{margin:0 0 8px;color:#424b55;font-size:14px;line-height:1.4}.railway-models{margin:2px 0 27px;padding-left:28px;color:#424b55;font-size:14px;line-height:1.55}.railway-models li::marker{color:#3b3f43}.railway-models a{color:#6c9bcc;text-decoration:none}.railway-models a:hover{color:#62b332;text-decoration:underline}.railway-caption{margin-bottom:16px}.railway-chart{border:1px solid #555;background:#fff;padding:4px}.railway-chart img{width:100%;display:block;height:auto}@media(max-width:780px){.railway-article{padding:20px 14px}.railway-heading h1{font-size:25px}.railway-heading img{width:72px;height:72px;flex-basis:72px}.railway-lead,.railway-body,.railway-models{font-size:13px}}


/* Automobile scales page — based on provided reference */
.auto-layout{display:grid;grid-template-columns:160px minmax(0,1fr) 255px;gap:18px;max-width:1120px;margin:0 auto;padding:22px 0 30px}
.auto-sidebar{font-size:12px}
.auto-article{padding-top:2px}
.product-article-intro{margin-top:22px}
.auto-green-title{color:#61b12e;font-size:15px;font-weight:500;margin:24px 0 14px}
.auto-benefits{padding-left:25px;font-size:14px;line-height:1.5}
.auto-benefits li::marker{color:#61b12e}
.auto-tabs{margin-top:20px}
.auto-image-row{margin-top:8px}
.auto-image-row img{max-height:240px;object-fit:contain;object-position:left top}
@media(max-width:1050px){
  .auto-layout{grid-template-columns:150px 1fr}
  .auto-layout .technology-sidebar{grid-column:2}
}
@media(max-width:780px){
  .auto-layout{grid-template-columns:1fr;padding:15px 0 20px}
  .auto-layout .technology-sidebar{grid-column:auto}
  .auto-image-row{grid-template-columns:1fr}
}


/* Automobile page aligned with the railway scales page */
.automobile-shell{max-width:1120px;margin-left:auto;margin-right:auto}
.auto-tags{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 2px;padding:0 2px}
.auto-tags a{
  display:inline-flex;align-items:center;padding:6px 10px;border:1px solid #cfdceb;
  border-radius:999px;background:#f7faff;color:#6b8caf;text-decoration:none;font-size:11px;
  transition:.2s
}
.auto-tags a:hover{border-color:#7dbf3d;color:#5eae2b;background:#fbfff8}
.auto-tags a:first-child{background:#8eacdf;color:#fff;border-color:#8eacdf}
.auto-railway-article{padding-top:12px}
.auto-railway-article .railway-heading img{object-fit:cover}
.auto-railway-article .railway-lead{margin-top:8px}
.auto-benefits-list{margin-top:4px}
.auto-image-row{grid-template-columns:minmax(0,48%) 1fr}
@media(max-width:780px){
  .auto-tags{gap:5px}
  .auto-tags a{font-size:10px;padding:5px 8px}
  .auto-image-row{grid-template-columns:1fr}
}


/* Automobile page: no duplicated Product/Solutions sidebar */
.automobile-page .auto-layout{
  display:block;
  max-width:1120px;
}
.automobile-page .auto-article{
  width:100%;
  max-width:none;
}


/* News detail pages */
.news-card .link{
  display:inline-block;
  margin-top:16px;
  color:var(--primary);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}
.news-card .link:hover{color:#5eae2b}
.news-detail-page .section{max-width:980px;margin:0 auto}
.news-detail{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:34px 38px 38px;
}
.news-detail time{
  font-size:12px;
  color:#9ab0c8;
}
.news-detail h1{
  margin:10px 0 14px;
  color:var(--primary);
  font-size:32px;
  line-height:1.2;
}
.news-detail-line{
  height:2px;
  width:100%;
  background:linear-gradient(90deg,#76bf35 0 45%,#dfe9f3 45% 100%);
  margin-bottom:22px;
}
.news-detail p{
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
  margin:0 0 18px;
}
.back-link{
  display:inline-block;
  margin-top:10px;
  color:var(--primary);
  font-weight:700;
  text-decoration:none;
}
@media(max-width:780px){
  .news-detail{padding:24px 20px}
  .news-detail h1{font-size:25px}
  .news-detail p{font-size:15px}
}


/* Under-development pages */
.under-development-page .section{min-height:520px;display:flex;align-items:center;justify-content:center}
.under-development{
  width:min(820px,100%);
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:70px 35px;
  text-align:center;
}
.under-development-icon{
  width:76px;height:76px;margin:0 auto 24px;
  border-radius:22px;background:#f2f7fc;
  display:flex;align-items:center;justify-content:center;
  font-size:36px;
}
.under-development h1{
  margin:0 0 12px;
  color:var(--primary);
  font-size:32px;line-height:1.2;
}
.under-development p{margin:0 0 28px;color:var(--muted);font-size:17px}
@media(max-width:780px){
  .under-development{padding:50px 22px}
  .under-development h1{font-size:26px}
}


/* About company page */
.about-page{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.about-header{
  padding:38px 42px 32px;
  background:linear-gradient(135deg,#f7fbff,#fff);
  border-bottom:1px solid var(--line);
}
.about-kicker{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:#69b533;
  margin-bottom:8px;
}
.about-header h1{
  margin:0 0 10px;
  color:var(--primary);
  font-size:38px;
  line-height:1.15;
}
.about-lead{
  margin:0;
  max-width:850px;
  color:var(--muted);
  font-size:17px;
}
.about-content{
  padding:32px 42px 44px;
}
.about-content h2{
  margin:26px 0 14px;
  color:#5fae2e;
  font-size:22px;
}
.about-content h2:first-child{margin-top:0}
.about-content h3{
  margin:0 0 12px;
  color:var(--primary);
  font-size:17px;
}
.about-content p{
  color:#526273;
  font-size:15px;
  line-height:1.72;
  margin:0 0 16px;
}
.about-list{
  margin:0;
  padding-left:24px;
  color:#526273;
}
.about-list li{
  margin:0 0 10px;
  line-height:1.55;
}
.about-list li::marker{color:#68b533}
.about-list a{
  color:var(--primary);
  text-decoration:none;
  font-weight:650;
}
.about-list a:hover{color:#5eae2b;text-decoration:underline}
.about-list.compact li{margin-bottom:8px;font-size:14px}
.about-highlight{
  margin:28px 0 30px;
  padding:22px 24px;
  border-left:4px solid var(--accent);
  background:#f7fbf3;
  border-radius:0 14px 14px 0;
}
.about-highlight strong{
  display:block;
  color:var(--primary);
  font-size:17px;
  margin-bottom:6px;
}
.about-highlight p{margin:0}
.clients-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:12px;
}
.client-group{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
}
@media(max-width:900px){
  .clients-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:780px){
  .about-header{padding:30px 22px 26px}
  .about-content{padding:26px 22px 32px}
  .about-header h1{font-size:30px}
  .about-lead{font-size:15px}
  .clients-grid{grid-template-columns:1fr}
}


/* Interactive product cards */
a.product-card-link{
  position:relative;
  display:block;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  overflow:hidden;
}
a.product-card-link::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,0),rgba(116,191,54,.08));
  opacity:0;
  transform:scale(.98);
  transition:opacity .28s ease,transform .28s ease;
  pointer-events:none;
}
a.product-card-link:hover{
  transform:translateY(-7px);
  border-color:#b7cee5;
  box-shadow:0 20px 42px rgba(35,84,135,.16);
}
a.product-card-link:hover::after{
  opacity:1;
  transform:scale(1);
}
a.product-card-link img{
  transition:transform .45s cubic-bezier(.2,.8,.2,1),filter .3s ease;
}
a.product-card-link:hover img{
  transform:scale(1.055);
  filter:saturate(1.06);
}
a.product-card-link h3{
  transition:color .22s ease;
}
a.product-card-link:hover h3{
  color:var(--primary);
}
.card-arrow{
  position:absolute;
  right:16px;
  bottom:15px;
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(36,87,143,.92);
  color:#fff;
  font-size:18px;
  line-height:1;
  box-shadow:0 8px 18px rgba(36,87,143,.2);
  transform:translateX(-4px);
  opacity:.86;
  transition:transform .25s ease, background .25s ease, opacity .25s ease;
  z-index:2;
}
a.product-card-link:hover .card-arrow{
  transform:translateX(0);
  background:var(--accent);
  opacity:1;
}
@media (prefers-reduced-motion: reduce){
  a.product-card-link,
  a.product-card-link img,
  a.product-card-link::after,
  .card-arrow{transition:none}
}


/* Main product/category icons: visually reduced by ~50% */
#home .product-card-link img{
  width:50%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  margin:0 auto 10px;
  display:block;
}
#home .product-card-link{
  padding-top:18px;
}
@media(max-width:780px){
  #home .product-card-link img{width:50%}
}


/* Main product tiles on the home page — icon-only presentation */
#home .product-card-link{
  min-height:245px;
  padding:22px 20px 20px;
  text-align:center;
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  perspective:900px;
  transform-style:preserve-3d;
}
#home .product-card-link p{
  display:none !important;
}
#home .product-card-link h3{
  margin:14px 0 0;
  font-size:16px;
  line-height:1.25;
  position:relative;
  z-index:4;
}
#home .product-card-link img{
  width:66px !important;
  height:66px !important;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:18px !important;
  margin:4px auto 0 !important;
  position:relative;
  z-index:3;
  transform-origin:center;
  transition:
    transform .8s cubic-bezier(.22,1,.36,1),
    filter .7s ease,
    border-radius .8s cubic-bezier(.22,1,.36,1),
    box-shadow .6s ease;
  will-change:transform,filter,border-radius;
}
#home .product-card-link::before{
  content:"";
  position:absolute;
  width:92px;
  height:92px;
  top:20px;
  left:50%;
  transform:translateX(-50%) rotate(45deg) scale(.72);
  border-radius:20px;
  border:1px solid rgba(99,176,48,.18);
  background:linear-gradient(135deg,rgba(119,191,59,.04),rgba(60,125,190,.05));
  opacity:0;
  z-index:1;
  transition:
    opacity .55s ease,
    transform .8s cubic-bezier(.22,1,.36,1),
    border-color .55s ease,
    background .55s ease,
    box-shadow .55s ease;
  pointer-events:none;
}
#home .product-card-link::after{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:16px;
  background:
    radial-gradient(circle at 50% 20%,rgba(112,190,52,.13),transparent 34%),
    linear-gradient(135deg,rgba(68,127,190,.06),rgba(115,190,54,.06));
  opacity:0;
  transform:scale(.92);
  transition:
    opacity .55s ease,
    transform .8s cubic-bezier(.22,1,.36,1);
  pointer-events:none;
}
#home .product-card-link:hover{
  transform:translateY(-8px);
  box-shadow:0 22px 48px rgba(28,71,111,.16);
}
#home .product-card-link:hover::before{
  opacity:1;
  transform:translateX(-50%) rotate(45deg) scale(1);
  border-color:rgba(99,176,48,.42);
  background:linear-gradient(135deg,rgba(119,191,59,.16),rgba(61,124,190,.12));
  box-shadow:0 10px 26px rgba(80,132,183,.12);
}
#home .product-card-link:hover::after{
  opacity:1;
  transform:scale(1);
}
#home .product-card-link:hover img{
  transform:
    rotateY(180deg)
    rotateZ(45deg)
    scale(1.08);
  border-radius:10px !important;
  filter:
    saturate(1.65)
    hue-rotate(28deg)
    contrast(1.12)
    brightness(1.04);
  box-shadow:
    0 16px 34px rgba(70,120,170,.24),
    0 0 0 3px rgba(116,191,54,.10);
}
#home .product-card-link:hover h3{
  color:#4c8aae;
  transform:translateY(2px);
  transition:color .35s ease,transform .35s ease;
}
#home .product-card-link .card-arrow{
  right:14px;
  bottom:14px;
  opacity:.55;
  transform:scale(.9) rotate(0deg);
}
#home .product-card-link:hover .card-arrow{
  opacity:1;
  transform:scale(1.08) rotate(-45deg);
  background:var(--accent);
}
@media(max-width:780px){
  #home .product-card-link{min-height:210px}
  #home .product-card-link img{width:58px !important;height:58px !important}
}
@media(prefers-reduced-motion:reduce){
  #home .product-card-link,
  #home .product-card-link img,
  #home .product-card-link::before,
  #home .product-card-link::after,
  #home .product-card-link h3,
  #home .product-card-link .card-arrow{
    transition:none !important;
  }
}


/* Cleaner, smoother icon animation for Home + Products */
#home .product-card-link img,
#products .product-card-link img{
  width:66px !important;
  height:66px !important;
  margin:4px auto 12px !important;
  border-radius:18px !important;
  transform-origin:50% 50%;
  transform:translateZ(0) rotateZ(0deg) rotateY(0deg) scale(1);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transition:
    transform .95s cubic-bezier(.22,.61,.36,1),
    filter .75s ease,
    border-radius .65s ease,
    box-shadow .65s ease;
  will-change:transform,filter,border-radius;
}
#products .product-card-link{
  min-height:245px;
  padding:22px 20px 20px;
  text-align:center;
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  perspective:1000px;
  transform-style:preserve-3d;
}
#products .product-card-link p{
  display:none !important;
}
#products .product-card-link h3{
  margin:14px 0 0;
  font-size:16px;
  line-height:1.25;
  position:relative;
  z-index:4;
}
#products .product-card-link::before,
#home .product-card-link::before{
  width:92px;
  height:92px;
  border-radius:18px;
  transform:translateX(-50%) rotate(45deg) scale(.72);
  transition:
    opacity .65s ease,
    transform 1.05s cubic-bezier(.22,.61,.36,1),
    border-color .55s ease,
    background .55s ease,
    box-shadow .55s ease;
}
#products .product-card-link:hover::before,
#home .product-card-link:hover::before{
  transform:translateX(-50%) rotate(45deg) scale(1);
}
#products .product-card-link:hover,
#home .product-card-link:hover{
  transform:translateY(-6px);
  transition:transform .45s cubic-bezier(.22,.61,.36,1),box-shadow .45s ease,border-color .4s ease;
}
#products .product-card-link:hover img,
#home .product-card-link:hover img{
  transform:
    translateZ(0)
    rotateZ(45deg)
    rotateY(180deg)
    scale(1.04);
  filter:saturate(1.45) hue-rotate(22deg) contrast(1.08);
  border-radius:10px !important;
  box-shadow:0 12px 28px rgba(62,120,170,.22),0 0 0 3px rgba(116,191,54,.10);
}
#products .product-card-link:hover h3,
#home .product-card-link:hover h3{
  color:#4c8aae;
  transition:color .35s ease;
}
#products .product-card-link .card-arrow,
#home .product-card-link .card-arrow{
  transition:
    transform .65s cubic-bezier(.22,.61,.36,1),
    background .35s ease,
    opacity .35s ease;
}
#products .product-card-link:hover .card-arrow,
#home .product-card-link:hover .card-arrow{
  transform:scale(1.05) rotate(-45deg);
  background:var(--accent);
}
.railway-heading-no-image{
  padding-top:2px;
}
.railway-heading-no-image .railway-heading-text{
  width:100%;
}
@media(max-width:780px){
  #products .product-card-link{min-height:210px}
  #products .product-card-link img,
  #home .product-card-link img{width:58px !important;height:58px !important}
}
@media(prefers-reduced-motion:reduce){
  #home .product-card-link,
  #products .product-card-link,
  #home .product-card-link img,
  #products .product-card-link img,
  #home .product-card-link::before,
  #products .product-card-link::before{
    transition:none !important;
  }
}


/* 1.3.6 — keep the icon image visible while it turns into a diamond */
#home .product-card-link img,
#products .product-card-link img{
  opacity:1 !important;
  visibility:visible !important;
  backface-visibility:visible !important;
  -webkit-backface-visibility:visible !important;
  transform-origin:50% 50%;
  transform:rotate(0deg) scale(1);
  transition:
    transform .72s cubic-bezier(.2,.75,.25,1),
    filter .55s ease,
    box-shadow .55s ease,
    border-radius .55s ease;
}
#home .product-card-link:hover img,
#products .product-card-link:hover img{
  opacity:1 !important;
  visibility:visible !important;
  transform:rotate(45deg) scale(1.02) !important;
  filter:saturate(1.35) hue-rotate(18deg) contrast(1.05) !important;
  box-shadow:
    0 12px 26px rgba(50,105,160,.18),
    0 0 0 2px rgba(116,191,54,.12);
  border-radius:10px !important;
}
#home .product-card-link::before,
#products .product-card-link::before{
  opacity:.22;
  transform:translateX(-50%) rotate(45deg) scale(.82);
  transition:
    opacity .55s ease,
    transform .72s cubic-bezier(.2,.75,.25,1),
    border-color .4s ease,
    background .4s ease;
}
#home .product-card-link:hover::before,
#products .product-card-link:hover::before{
  opacity:.95;
  transform:translateX(-50%) rotate(45deg) scale(1);
}
