/* ==========================================================================
   МТЦ — Металл · Техника · Цемент
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg: #0a0b0d;
  --bg-alt: #101318;
  --surface: #15181e;
  --surface-2: #1c2027;
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --text: #f3f4f6;
  --text-dim: #a3aab3;
  --text-dimmer: #6d7480;
  --accent: #ff7a1f;
  --accent-2: #ffb54a;
  --steel: #5b8fd6;
  --steel-2: #8fb4e8;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.6);
  --ease: cubic-bezier(.16,.84,.44,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4{
  font-family: 'Manrope', 'Inter', sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}
p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.section-eyebrow::before{
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section-title{
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text);
  max-width: 720px;
}
.section-head{
  margin-bottom: 48px;
}
.section-sub{
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 17px;
  max-width: 560px;
}

/* reveal-on-scroll */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn-accent{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #17110a;
  box-shadow: 0 12px 30px -8px rgba(255,122,31,0.55);
}
.btn-accent:hover{ transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(255,122,31,0.7); }
.btn-ghost{
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.11); transform: translateY(-2px); }
.btn-outline{
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover{ border-color: var(--steel-2); color: var(--steel-2); }
.btn-lg{ padding: 17px 34px; font-size: 16px; }
.btn-sm{ padding: 10px 18px; font-size: 13.5px; }

/* ---------- nav ---------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled{
  padding: 12px 0;
  background: rgba(10,11,13,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-right: auto;
}
.brand-mark{
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #fff, var(--steel-2) 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub{
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-top: 2px;
}
.nav-links{
  display: flex;
  gap: 30px;
}
.nav-links a{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color .25s;
}
.nav-links a:hover{ color: var(--text); }
.nav-links a::after{
  content:'';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent-2);
  transition: right .3s var(--ease);
}
.nav-links a:hover::after{ right: 0; }
.burger{
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.burger span{
  width: 22px; height: 2px; background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.burger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2){ opacity: 0; }
.burger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{
  position: fixed; inset: 0;
  background: rgba(8,9,11,0.98);
  backdrop-filter: blur(10px);
  z-index: 90;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 36px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-nav.open{ opacity: 1; visibility: visible; }
.mobile-nav a{ font-size: 26px; font-weight: 700; font-family: 'Manrope', sans-serif; }
.mobile-nav .btn{ margin-top: 10px; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, #1a2130 0%, transparent 55%),
    radial-gradient(100% 80% at 100% 100%, #241608 0%, transparent 55%),
    linear-gradient(180deg, #0c0e11 0%, #08090b 100%);
}
#hero-canvas{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-noise{
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,0.1) 0%, rgba(8,9,11,0.35) 60%, rgba(8,9,11,0.95) 100%);
  pointer-events: none;
}
.hero-content{
  position: relative;
  z-index: 2;
  padding-top: 90px;
  width: 100%;
}
.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-eyebrow .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,122,31,0.18);
}
.hero h1{
  font-size: clamp(64px, 13vw, 148px);
  font-weight: 800;
  line-height: 0.92;
  background: linear-gradient(120deg, #ffffff 20%, var(--steel-2) 55%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.hero-tagline{
  font-family: 'Manrope', sans-serif;
  font-size: clamp(19px, 2.6vw, 27px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.hero-tagline span{ position: relative; padding-right: 20px; }
.hero-tagline span:not(:last-child)::after{
  content: '·';
  position: absolute; right: 0; color: var(--text-dimmer);
}
.hero-desc{
  max-width: 560px;
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 40px;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}
.hero-stats{
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 720px;
}
.hero-stat b{
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}
.hero-stat span{
  font-size: 13px;
  color: var(--text-dimmer);
}
.scroll-hint{
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dimmer);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: floaty 2.6s ease-in-out infinite;
}
.scroll-hint svg{ width: 18px; height: 18px; }
@keyframes floaty{
  0%,100%{ transform: translate(-50%, 0); }
  50%{ transform: translate(-50%, 8px); }
}

/* ---------- directions ---------- */
.directions{ padding: 140px 0 100px; position: relative; }
.direction-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.direction-card{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 3/4.1;
  transition: transform .5s var(--ease), border-color .5s;
  transform-style: preserve-3d;
  perspective: 800px;
}
.direction-card:hover{ border-color: var(--border-strong); }
.direction-media{
  position: absolute; inset: 0;
}
.direction-media img{
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform .7s var(--ease), filter .7s;
  filter: saturate(0.9) brightness(0.72);
}
.direction-card:hover .direction-media img{
  transform: scale(1.13);
  filter: saturate(1.05) brightness(0.8);
}
.direction-card::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,13,0) 20%, rgba(8,9,11,0.94) 90%);
}
.direction-body{
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 30px 26px;
}
.direction-index{
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.direction-card h3{
  font-size: 27px;
  font-weight: 800;
  margin: 8px 0 10px;
}
.direction-card p{
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 34ch;
}
.direction-tags{
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.direction-tags span{
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
}

/* ---------- assortment ---------- */
.assortment{ padding: 100px 0; background: var(--bg-alt); }
.assort-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.assort-card{
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.assort-card:hover{
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.assort-card h3{
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent-2);
}
.assort-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.assort-list li{
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.assort-list li::before{
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--steel-2);
}
.assort-card-cta{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255,122,31,0.12), rgba(91,143,214,0.08));
  border: 1px solid var(--border-strong);
}
.assort-card-cta h3{ color: var(--text); }
.assort-card-cta p{
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 20px;
}

/* ---------- gallery ---------- */
.gallery{ padding: 100px 0; background: var(--bg-alt); }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 14px;
}
.gallery-item{
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
  width: 100%; height: 100%;
}
.gallery-item img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .5s;
  filter: saturate(0.92) brightness(0.86);
}
.gallery-item:hover img{ transform: scale(1.08); filter: saturate(1.05) brightness(1); }
.gallery-item::before{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
  opacity: 0; transition: opacity .4s;
  z-index: 1;
}
.gallery-item:hover::before{ opacity: 1; }
.gallery-item .zoom-ic{
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.7);
  transition: opacity .3s, transform .3s;
}
.gallery-item:hover .zoom-ic{ opacity: 1; transform: scale(1); }
.gallery-item.tall{ grid-row: span 2; }
.gallery-item.wide{ grid-column: span 2; }

.lightbox{
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,7,9,0.94);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  padding: 40px;
}
.lightbox.open{ opacity: 1; visibility: visible; }
.lightbox img{
  max-width: 100%; max-height: 88vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.lightbox-close{
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-strong);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.lightbox-prev{ left: 24px; }
.lightbox-next{ right: 24px; }

/* ---------- why ---------- */
.why{ padding: 100px 0; }
.why-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card{
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.why-card:hover{
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.why-icon{
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,122,31,0.18), rgba(91,143,214,0.18));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-2);
}
.why-icon svg{ width: 22px; height: 22px; }
.why-card h3{
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-card p{
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- band ---------- */
.band{
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.band-track{
  display: flex;
  gap: 60px;
  white-space: nowrap;
  width: max-content;
  animation: scrollx 26s linear infinite;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-dimmer);
  align-items: center;
}
.band-track span{ display: flex; align-items: center; gap: 60px; }
.band-track b{ color: var(--text); font-weight: 800; }
.band-track .sep{ color: var(--accent); font-size: 14px; }
@keyframes scrollx{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- contacts ---------- */
.contacts{ padding: 110px 0; }
.contacts-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.contacts-card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  padding: 46px;
  display: flex;
  flex-direction: column;
}
.contacts-address{
  font-size: 19px;
  font-weight: 600;
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contacts-address svg{ width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; }
.contacts-note{
  color: var(--text-dim);
  font-size: 15px;
  max-width: 46ch;
  margin: 18px 0 32px;
}
.contacts-actions{
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: auto;
}
.contacts-list{
  margin-top: 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.contacts-list-item{
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.contacts-list-item svg{ width: 17px; height: 17px; color: var(--text-dimmer); flex-shrink: 0; }
.contacts-map{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
  position: relative;
}
.contacts-map iframe{
  width: 100%; height: 100%;
  filter: grayscale(0.5) invert(0.92) contrast(0.88);
  position: absolute; inset: 0;
}

/* ---------- footer ---------- */
.footer{
  padding: 34px 0;
  border-top: 1px solid var(--border);
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dimmer);
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .nav-links{ display: none; }
  .burger{ display: flex; }
  .direction-grid{ grid-template-columns: 1fr; }
  .direction-card{ aspect-ratio: 16/11; }
  .why-grid{ grid-template-columns: 1fr 1fr; }
  .assort-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .contacts-grid{ grid-template-columns: 1fr; }
  .contacts-map{ min-height: 280px; }
  .hero-stats{ gap: 26px; }
}
@media (max-width: 560px){
  .container{ padding: 0 18px; }
  .hero-content{ padding-top: 100px; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }
  .why-grid{ grid-template-columns: 1fr; }
  .assort-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 10px; }
  .contacts-card{ padding: 30px 24px; }
  .directions, .assortment, .gallery, .why, .contacts{ padding: 72px 0; }
  .band-track{ font-size: 17px; gap: 34px; }
  .band-track span{ gap: 34px; }
}
