/* ==========================================================
   MKSTAR — stylesheet
   Palette drawn from the MKSTAR mark: indigo + flame red.
   Type: Space Grotesk (display) / IBM Plex Sans (body/UI).
   ========================================================== */

:root{
  --indigo: #362876;
  --indigo-deep: #221a4d;
  --flame: #e0392c;
  --flame-dark: #b82c21;
  --ink: #16151f;
  --steel: #5b6472;
  --paper: #faf9f7;
  --paper-alt: #f1efe9;
  --line: #e4e1d9;
  --white: #ffffff;
  --ok: #1e7a4c;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --maxw: 1180px;
  --radius: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
section{ position: relative; }
.section-pad{ padding: 96px 0; }
@media (max-width: 720px){
  .section-pad{ padding: 64px 0; }
}

.eyebrow{
  display:inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--flame);
  margin-bottom: 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary{ background: var(--flame); color: var(--white); }
.btn-primary:hover{ background: var(--flame-dark); transform: translateY(-1px); }
.btn-ghost{ border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover{ border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline{ border-color: var(--indigo); color: var(--indigo); }
.btn-outline:hover{ background: var(--indigo); color: var(--white); }

/* ---------- header ---------- */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  background: rgba(250,249,247,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height: 34px; width:auto; }
.brand-name{ font-family: var(--font-display); font-weight:700; font-size:19px; letter-spacing:.01em; }
.brand-tag{ display:none; }

.main-nav{ display:flex; align-items:center; gap: 34px; }
.main-nav a{
  font-size: 15px; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background: var(--flame); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after{ transform: scaleX(1); }

.header-cta{ display:flex; align-items:center; gap:18px; }
.header-phone{ display:flex; align-items:center; gap:8px; font-weight:600; font-size:14.5px; }
.header-phone svg{ width:16px; height:16px; fill: var(--flame); }

.nav-toggle{
  display:none; background:none; border:none; padding:8px;
}
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--ink); margin:5px 0; }

@media (max-width: 940px){
  .main-nav{
    position:fixed; top:76px; left:0; right:0; bottom:0;
    background: var(--paper); flex-direction:column; align-items:flex-start;
    padding: 28px; gap: 22px; transform: translateX(100%);
    transition: transform .25s ease; overflow-y:auto;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ font-size: 20px; }
  .header-phone{ display:none; }
  .nav-toggle{ display:block; }
}

/* ---------- hero ---------- */
.hero{
  min-height: 100vh;
  display:flex; align-items:flex-end;
  padding-top: 76px;
  color: var(--white);
  background: var(--indigo-deep);
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background-size: cover; background-position: center;
}
.hero-bg::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(22,17,55,.55) 0%, rgba(15,12,38,.78) 55%, rgba(10,8,26,.95) 100%);
}
.hero-inner{
  position:relative; z-index:2;
  padding-bottom: 90px;
  max-width: 760px;
}
.hero h1{
  font-size: clamp(34px, 5.4vw, 60px);
  margin-bottom: .35em;
}
.hero .lead{
  font-size: 18px; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 34px;
}
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 56px; }
.hero-stats{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  border-top: 1px solid rgba(255,255,255,.22); padding-top: 26px;
  max-width: 820px;
}
.hero-stats .stat-value{ font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--flame); }
.hero-stats .stat-label{ font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 4px; }
@media (max-width: 640px){
  .hero-stats{ grid-template-columns: 1fr; gap:16px; }
}

/* ---------- section headers ---------- */
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head h2{ font-size: clamp(28px, 3.6vw, 40px); }
.section-head .sub{ font-size: 17px; color: var(--steel); }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- products ---------- */
.product-tabs{
  display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.product-tab{
  padding: 12px 4px; margin-right: 30px;
  font-family: var(--font-display); font-weight:600; font-size:15px;
  color: var(--steel); border-bottom: 2px solid transparent;
  background:none; border-top:none; border-left:none; border-right:none;
}
.product-tab.active, .product-tab:hover{ color: var(--indigo); border-bottom-color: var(--flame); }

.product-block{ display:none; }
.product-block.active{ display:block; }

.product-grid{
  display:grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items:center;
}
.product-grid.reverse{ direction: rtl; }
.product-grid.reverse > *{ direction: ltr; }
@media (max-width: 880px){
  .product-grid{ grid-template-columns: 1fr; gap: 32px; }
}
.product-kicker{ color: var(--flame); font-weight:600; font-size:13px; letter-spacing:.04em; margin-bottom:10px; }
.product-block h3{ font-size: clamp(24px, 3vw, 32px); }
.product-lead{ font-size: 16.5px; font-weight:600; color: var(--indigo); margin-bottom: 16px; }
.product-sizes{
  display:inline-block; margin-top: 8px; padding: 10px 16px;
  background: var(--paper-alt); border-left: 3px solid var(--flame);
  font-size: 14.5px; font-weight:600;
}
.image-cluster{
  display:grid; grid-template-columns: 1fr 1fr; gap:14px;
}
.image-cluster img{
  width:100%; height: 100%; object-fit: cover; border-radius: var(--radius);
  aspect-ratio: 4/3.1;
}
.image-cluster img:nth-child(1){ aspect-ratio: 4/4.6; grid-row: span 2; }

.energy-items{
  margin-top: 44px; display:grid; grid-template-columns: repeat(3,1fr); gap: 26px;
}
@media (max-width: 880px){ .energy-items{ grid-template-columns: 1fr; } }
.energy-card{ background: var(--white); border: 1px solid var(--line); }
.energy-card img{ width:100%; aspect-ratio: 16/10.5; object-fit:cover; }
.energy-card .body{ padding: 22px; }
.energy-card h4{ font-size: 17px; margin-bottom: 8px; }
.energy-card p{ font-size: 14.5px; color: var(--steel); margin:0; }

/* ---------- services ---------- */
.services-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 70px;
}
@media (max-width: 780px){ .services-grid{ grid-template-columns: 1fr; } }
.service-card{
  background: var(--white); border: 1px solid var(--line); padding: 34px;
  border-top: 3px solid var(--flame);
}
.service-card h3{ font-size: 21px; margin-bottom: 12px; }
.service-card p{ color: var(--steel); font-size: 15px; margin:0; }

.safety-block{
  display:grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items:start;
  padding: 44px 0; border-top: 1px solid var(--line);
}
@media (max-width: 880px){ .safety-block{ grid-template-columns:1fr; } }
.safety-block h3{ font-size: 22px; margin-bottom: 20px; }
.safety-cols{ display:grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 520px){ .safety-cols{ grid-template-columns: 1fr; } }
.safety-cols h4{
  font-family: var(--font-body); font-size: 13px; font-weight:700; letter-spacing:.03em;
  margin-bottom: 12px; display:flex; align-items:center; gap:8px;
}
.safety-cols .dos h4{ color: var(--ok); }
.safety-cols .donts h4{ color: var(--flame-dark); }
.safety-cols li{
  font-size: 14.5px; color: var(--ink); margin-bottom: 10px; padding-left: 20px; position:relative;
}
.safety-cols .dos li::before{ content:"✓"; position:absolute; left:0; color: var(--ok); font-weight:700; }
.safety-cols .donts li::before{ content:"✕"; position:absolute; left:0; color: var(--flame-dark); font-weight:700; }
.safety-block img{ border-radius: var(--radius); }

/* ---------- about ---------- */
.about-row{
  display:grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 44px 0; border-top: 1px solid var(--line);
}
@media (max-width: 820px){ .about-row{ grid-template-columns: 1fr; gap:18px; } }
.about-row h3{ font-size: 24px; }
.about-row .body p{ color: var(--steel); font-size: 15.5px; }

.knowledge-panel{
  margin-top: 20px; background: var(--indigo); color: #fff; padding: 44px;
}
.knowledge-panel h3{ font-size: 22px; }
.knowledge-panel p{ color: rgba(255,255,255,.82); font-size: 15px; }
.knowledge-panel h4{ font-family: var(--font-body); font-size: 14px; letter-spacing:.03em; color: var(--flame); text-transform:uppercase; margin: 28px 0 10px; }

/* ---------- contact ---------- */
.contact-wrap{
  display:grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items:start;
}
@media (max-width: 900px){ .contact-wrap{ grid-template-columns: 1fr; } }
.contact-card{ background:var(--white); border:1px solid var(--line); padding:24px; margin-bottom:18px; }
.contact-card .label{ font-family: var(--font-display); font-weight:700; font-size:13px; letter-spacing:.03em; color:var(--flame); margin-bottom:8px; }
.contact-card p{ margin:0; font-size:14.5px; color: var(--steel); }
.map-frame{ width:100%; height: 260px; border:1px solid var(--line); margin-top: 4px; }
.map-frame iframe{ width:100%; height:100%; border:0; }

.form-card{ background: var(--white); border:1px solid var(--line); padding: 36px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom: 18px; }
.field label{ display:block; font-size:13px; font-weight:600; margin-bottom:6px; color: var(--ink); }
.field input, .field textarea{
  width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size:14.5px; background: var(--paper);
}
.field input:focus, .field textarea:focus{ outline: 2px solid var(--indigo); outline-offset: 1px; }
.form-note{ font-size: 13px; color: var(--steel); margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer{ background: var(--indigo-deep); color: rgba(255,255,255,.85); padding: 64px 0 26px; }
.footer-grid{ display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
@media (max-width: 720px){ .footer-grid{ grid-template-columns: 1fr; gap:28px; } }
.footer-grid h4{ font-family: var(--font-body); font-size:13px; letter-spacing:.04em; text-transform:uppercase; color: var(--flame); margin-bottom:16px; }
.footer-brand img{ height: 30px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-grid p, .footer-grid li{ font-size: 14px; color: rgba(255,255,255,.68); margin-bottom: 10px; }
.footer-grid a:hover{ color: #fff; }
.social-row{ display:flex; gap:12px; margin-top:16px; }
.social-row a{
  width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,.3);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ border-color: var(--flame); background: var(--flame); }
.social-row svg{ width:15px; height:15px; fill: #fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.15); padding-top: 22px; font-size:13px; color: rgba(255,255,255,.55); }

/* back to top */
.to-top{
  position: fixed; right: 22px; bottom: 22px; width:44px; height:44px; border-radius:50%;
  background: var(--flame); color:#fff; display:flex; align-items:center; justify-content:center;
  border:none; opacity:0; pointer-events:none; transition: opacity .2s ease; z-index: 400;
}
.to-top.show{ opacity:1; pointer-events:auto; }
