/* MINEREX v30 — плотный адаптивный промышленный каталог */
:root{
  --content:1200px;
  --r-sm:7px;
  --r-md:10px;
  --r-lg:12px;
  --border:#d7e0ec;
  --bg:#f2f5f9;
}

html{scroll-padding-top:128px}
body{
  padding-top:112px;
  font-size:14px;
  line-height:1.58;
}

.container,.header-inner,.hero-container,.footer-inner{
  width:100%;
  max-width:var(--content)!important;
}
.container,.header-inner,.hero-container{padding-left:28px!important;padding-right:28px!important}

/* Шапка и постоянно доступные разделы */
header .header-inner{height:68px!important;gap:18px!important}
header .logo img{width:180px!important;max-width:180px!important;height:auto!important;max-height:52px!important}
header nav a{font-size:14px!important;padding:8px 12px!important}
header nav .nav-cta{padding:10px 17px!important;margin-left:8px!important}

.mx-catalog-strip{
  position:fixed;
  z-index:96;
  top:68px;
  left:0;
  right:0;
  height:44px;
  background:rgba(248,250,253,.98);
  border-bottom:1px solid var(--border);
  box-shadow:0 3px 12px rgba(27,52,85,.035);
  backdrop-filter:blur(8px);
}
.mx-catalog-strip__inner{
  width:100%;
  max-width:var(--content);
  height:100%;
  margin:0 auto;
  padding:0 28px;
  display:flex;
  align-items:stretch;
  overflow-x:auto;
  scrollbar-width:none;
}
.mx-catalog-strip__inner::-webkit-scrollbar{display:none}
.mx-catalog-strip a{
  position:relative;
  min-width:0;
  flex:1 1 0;
  display:flex!important;
  align-items:center;
  justify-content:center;
  padding:0 15px;
  color:#4b596a;
  font-size:12px;
  line-height:1.2;
  font-weight:600;
  text-decoration:none;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:color .15s,background .15s;
}
.mx-catalog-strip a::after{
  content:"";
  position:absolute;
  left:15px;
  right:15px;
  bottom:0;
  height:2px;
  border-radius:2px 2px 0 0;
  background:transparent;
}
.mx-catalog-strip a:hover,.mx-catalog-strip a.is-active{color:var(--blue);background:#f0f4fa}
.mx-catalog-strip a.is-active::after{background:var(--blue)}

/* Главная: компактный первый экран */
.hero{
  min-height:0!important;
  height:auto!important;
  padding:44px 0 76px!important;
  background-position:center 28%!important;
}
.hero::after{
  background:linear-gradient(90deg,rgba(242,245,249,.95) 0%,rgba(242,245,249,.86) 47%,rgba(242,245,249,.24) 78%,rgba(242,245,249,.05) 100%)!important;
}
.hero-box{max-width:610px!important}
.hero-label{margin-bottom:16px!important;line-height:1.45!important;font-size:13px!important}
h1.hero-title{
  max-width:600px;
  margin-bottom:15px!important;
  font-size:clamp(32px,3.35vw,42px)!important;
  line-height:1.1!important;
}
.hero-desc{max-width:600px;font-size:15px!important;line-height:1.55!important}

section{padding:44px 0}
#products{
  position:relative;
  z-index:3;
  margin-top:-52px;
  padding:0 0 42px!important;
}
#products .section-head{
  margin:0!important;
  padding:17px 20px 14px;
  background:#fff;
  border:1px solid var(--border);
  border-bottom:0;
  border-radius:var(--r-lg) var(--r-lg) 0 0;
  box-shadow:0 -6px 24px rgba(27,52,85,.055);
}
#products .eyebrow{margin-bottom:4px!important;font-size:10px!important;letter-spacing:1.6px!important}
#products .section-h{margin-bottom:3px!important;font-size:20px!important}
#products .section-lead{
  max-width:none!important;
  margin:0!important;
  font-size:13px!important;
  line-height:1.45!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cat-card{background:transparent!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
.cat-list{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:12px!important;
  padding:12px!important;
  border:1px solid var(--border);
  border-top:0;
  border-radius:0 0 var(--r-lg) var(--r-lg);
  background:#fff;
}
.cat-row{
  position:relative;
  min-width:0;
  min-height:132px;
  display:block!important;
  padding:16px 42px 16px 17px!important;
  border:1px solid var(--border)!important;
  border-radius:10px!important;
  background:#fbfcfe!important;
  box-shadow:none!important;
}
.cat-row:first-child{border-top:1px solid var(--border)!important}
.cat-row:hover{background:#f4f7fc!important;border-color:#bdcce0!important;box-shadow:0 6px 16px rgba(27,52,85,.065)!important}
.cat-name{margin-bottom:7px!important;font-size:17px!important;line-height:1.25!important;font-weight:650!important}
.cat-desc{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  font-size:12px!important;
  line-height:1.45!important;
}
.cat-row .arr{position:absolute;right:14px;bottom:14px;align-self:auto!important}
.cat-count{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  margin-top:9px;
  padding:2px 7px;
  border:1px solid #d8e2ef;
  border-radius:999px;
  background:#fff;
  color:#708095;
  font-size:10px;
  line-height:1;
  font-weight:600;
}

/* Общая плотность внутренних разделов */
.page-top{padding:28px 0 18px!important}
.crumbs{margin-bottom:10px!important;font-size:12px!important}
.page-top h1{
  margin-bottom:7px!important;
  font-size:clamp(25px,2.7vw,34px)!important;
  line-height:1.16!important;
}
.page-top .sub{max-width:920px!important;font-size:14px!important;line-height:1.5!important}
.prod-section{padding:0 0 38px!important}
.prod-section .prod-card{overflow:visible!important}
.prod-section .prod-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:13px!important;
}
.prod-section .prod-row{
  min-height:128px!important;
  display:grid!important;
  grid-template-columns:92px minmax(0,1fr) 28px;
  align-items:center!important;
  gap:15px!important;
  padding:15px!important;
  border-radius:11px!important;
  border-color:var(--border)!important;
  box-shadow:0 4px 13px rgba(27,52,85,.035)!important;
}
.prod-section .prod-row:hover{box-shadow:0 7px 19px rgba(27,52,85,.085)!important}
.list-thumb{
  width:92px!important;
  height:92px!important;
  border:1px solid #dce4ee;
  border-radius:9px!important;
  background:#f1f4f8;
  overflow:hidden;
}
.list-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.list-thumb-empty{
  display:flex!important;
  align-items:center;
  justify-content:center;
  color:#8091a7;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  background:linear-gradient(145deg,#eef3f9,#f9fbfd);
}
.prod-section .prod-row>div{min-width:0!important}
.prod-section .pr-name{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  font-size:17px!important;
  line-height:1.28!important;
  font-weight:600!important;
}
.prod-section .pr-desc{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  margin-top:6px!important;
  font-size:11.5px!important;
  line-height:1.45!important;
}
.prod-section .arr{width:28px!important;height:28px!important;font-size:18px!important}

/* Карточка товара: чёткая двухколоночная сетка вместо обтекания */
.prod-section .prod-card-wrap{
  padding:28px!important;
  border:1px solid var(--border);
  border-radius:var(--r-lg)!important;
  box-shadow:0 7px 24px rgba(27,52,85,.055)!important;
}
body .prod-section .prod-body-grid.with-photo{
  display:grid!important;
  grid-template-columns:minmax(280px,360px) minmax(0,1fr)!important;
  align-items:start!important;
  gap:28px!important;
}
body .prod-section .product-gallery,
body .prod-section .prod-photo-placeholder{
  float:none!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.gallery-viewport{aspect-ratio:1!important;border-radius:10px!important}
.prod-text{min-width:0!important;overflow:visible!important}
.prod-text p{margin-bottom:10px!important;font-size:14px!important;line-height:1.58!important}
.docs-section{padding:0 0 28px!important}
.docs-card{padding:22px 26px!important;border:1px solid var(--border)}
.docs-title{margin-bottom:10px!important}
.cta-section{padding:0 0 38px!important}
.cta-card{padding:26px 28px!important;border:1px solid var(--border)}
.cta-card .cta-text{margin-bottom:18px!important;font-size:20px!important}
.contact-section{padding:18px 0 42px!important}
.contact-card,.about-card{padding:28px!important;border:1px solid var(--border)}
.about-cols{gap:28px!important}
.about-cols p{line-height:1.62!important;margin-bottom:10px!important}
footer{margin-top:42px!important}

@media(max-width:980px){
  .container,.header-inner,.hero-container{padding-left:22px!important;padding-right:22px!important}
  .mx-catalog-strip__inner{padding:0 22px}
  header nav a{padding-left:9px!important;padding-right:9px!important;font-size:13px!important}
  .hero{padding-top:38px!important}
  .cat-list{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
  body .prod-section .prod-body-grid.with-photo{grid-template-columns:minmax(260px,320px) minmax(0,1fr)!important;gap:24px!important}
}

@media(max-width:900px){
  .cat-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){
  html{scroll-padding-top:122px}
  body{padding-top:108px;font-size:14px}
  .container,.header-inner,.hero-container{padding-left:16px!important;padding-right:16px!important}
  header .header-inner{height:64px!important;min-height:64px!important;padding-top:0!important;padding-bottom:0!important}
  header .logo img{width:155px!important;max-width:calc(100vw - 82px)!important;max-height:44px!important}
  header nav{top:64px!important}
  .mx-catalog-strip{top:64px;height:44px}
  .mx-catalog-strip__inner{padding:0 10px}
  .mx-catalog-strip a{flex:0 0 auto;min-width:max-content;padding:0 13px;font-size:11.5px}
  .mx-catalog-strip a::after{left:12px;right:12px}
  .hero{padding:32px 0 68px!important;background-position:62% center!important}
  .hero::after{background:linear-gradient(90deg,rgba(242,245,249,.97) 0%,rgba(242,245,249,.91) 63%,rgba(242,245,249,.58) 100%)!important}
  .hero-label{margin-bottom:13px!important;font-size:12px!important}
  h1.hero-title{font-size:clamp(29px,8.8vw,36px)!important;line-height:1.08!important}
  .hero-desc{font-size:14px!important;line-height:1.5!important}
  #products{margin-top:-38px;padding-bottom:34px!important}
  #products .section-head{padding:14px 15px 12px}
  #products .section-h{font-size:18px!important}
  #products .section-lead{font-size:12px!important}
  .cat-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;padding:9px!important}
  .cat-row{min-height:132px;padding:14px 34px 14px 13px!important}
  .cat-name{font-size:15px!important;line-height:1.25!important}
  .cat-desc{-webkit-line-clamp:2;font-size:11px!important}
  .cat-row .arr{right:11px;bottom:11px}
  section{padding:36px 0}
  .page-top{padding:22px 0 15px!important}
  .page-top h1{font-size:clamp(23px,6.8vw,30px)!important}
  .page-top .sub{font-size:13px!important;line-height:1.45!important}
  .prod-section .prod-list{grid-template-columns:1fr!important;gap:10px!important}
  .prod-section .prod-row{min-height:104px!important;grid-template-columns:74px minmax(0,1fr) 26px;padding:12px!important;gap:12px!important}
  .list-thumb{width:74px!important;height:74px!important}
  .prod-section .pr-name{font-size:15px!important;line-height:1.28!important}
  .prod-section .pr-desc{font-size:11px!important}
  body .prod-section .prod-body-grid.with-photo{display:grid!important;grid-template-columns:1fr!important;gap:20px!important}
  body .prod-section .product-gallery{width:min(100%,520px)!important;margin:0 auto!important}
  .prod-section .prod-card-wrap{padding:18px!important}
  .prod-text p{font-size:13.5px!important;line-height:1.55!important}
  .docs-card{padding:19px 18px!important}
  .cta-card{padding:23px 18px!important}
  .contact-card,.about-card{padding:22px 18px!important}
  footer{margin-top:30px!important}
}

@media(max-width:420px){
  html{scroll-padding-top:116px}
  body{padding-top:104px}
  header .header-inner{height:60px!important;min-height:60px!important;padding-left:12px!important;padding-right:12px!important}
  header .logo img{width:138px!important;max-width:calc(100vw - 78px)!important;max-height:40px!important}
  header nav{top:60px!important}
  .mx-catalog-strip{top:60px}
  .hero{padding-top:28px!important}
  h1.hero-title{font-size:29px!important}
  #products .section-lead{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .cat-row{min-height:126px}
  .cat-count{display:none}
  .prod-section .prod-row{grid-template-columns:66px minmax(0,1fr) 24px;gap:10px!important;padding:10px!important}
  .list-thumb{width:66px!important;height:66px!important}
  .prod-section .pr-desc{-webkit-line-clamp:2}
  .cta-card .contacts-line{width:100%!important}
}

@media(max-width:350px){
  .cat-list{grid-template-columns:1fr}
  .cat-row{min-height:112px}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
