/* ===== Tokens ===== */
:root{
  --black: #0d0d0e;
  --black-2: #141416;
  --steel: #1f2023;
  --steel-light: #2a2b2e;
  --white: #f3f1ec;
  --grey: #9a9893;
  --accent: #ff7a45;
  --accent-2: #ffd27a;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a{color:inherit;text-decoration:none;}

/* ===== Grain overlay ===== */
.grain{
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
}

/* ===== Spark field ===== */
.spark-field{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.spark{
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 2px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 6px 1px var(--accent);
  opacity: 0;
  animation: sparkFly 1.8s ease-out forwards;
}
@keyframes sparkFly{
  0%{ opacity: 1; transform: translate(0,0) scale(1); }
  100%{ opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); }
}

/* ===== Header ===== */
.header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13,13,14,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 72px;
}
.logo{
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  display:flex;
  align-items:baseline;
  gap:8px;
}
.logo__mark{
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.logo__dot{ color: var(--accent); font-size: 22px; }
.logo__sub{
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey);
  display:none;
}
@media(min-width:560px){ .logo__sub{display:inline;} }

.header__phones{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header__phone{
  font-family: var(--font-head);
  font-weight:600;
  font-size: 14px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  transition: border-color .25s, color .25s, background .25s;
  white-space: nowrap;
}
.header__phone:hover{ border-color: var(--accent); color: var(--accent-2); background: rgba(255,122,69,0.08); }
@media (max-width: 560px){
  .header__phones{ flex-direction: column; align-items: flex-end; gap: 6px; }
  .header__phone{ font-size: 12px; padding: 7px 11px; }
}

/* ===== Hero ===== */
.hero{
  position: relative;
  padding: 120px 0 160px;
  overflow: hidden;
}
.hero__inner{ position: relative; z-index: 2; }
.hero__eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 24px;
}
.hero__title{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(42px, 9vw, 96px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero__title .line{ display:block; }
.hero__title .line--cut{
  position: relative;
  color: var(--white);
}
.hero__title .line--accent{
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 16px 30px;
  border-radius: 10px;
  display: inline-block;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn--primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0d04;
}
.btn--primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(255,122,69,0.55);
}
.btn--big{ margin-top: 40px; padding: 18px 42px; font-size: 15px; }

.hero__angle{
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 140px;
  background: var(--black-2);
  clip-path: polygon(0 100%, 100% 100%, 100% 25%, 0 90%);
  z-index: 1;
}

/* ===== Section titles ===== */
.section-title{
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 38px);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 48px;
  display:flex;
  align-items: baseline;
  gap: 16px;
}
.section-title span{
  font-size: 15px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
}
.section-title--light span{ color: var(--accent-2); border-color: var(--accent-2); }

/* ===== Services ===== */
.services{
  background: var(--black-2);
  padding: 110px 0;
  position: relative;
  z-index: 2;
}
.services__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card{
  background: var(--black-2);
  padding: 36px 30px;
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .3s, border-color .3s, box-shadow .3s, background .3s;
}
.card:hover{
  background: #1a1b1e;
  border-color: rgba(255,122,69,0.4);
  transform: translateY(-6px);
  box-shadow: 0 18px 34px -16px rgba(255,122,69,0.3);
}
.card:hover .card__num{ color: var(--accent); transform: translateX(4px); }
.card__num{
  font-family: var(--font-head);
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
  transition: color .3s, transform .3s;
}
.card h3{
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.card p{ color: var(--grey); font-size: 14.5px; }

/* ===== Why ===== */
.why{
  background: linear-gradient(135deg, #1a0e07 0%, var(--black) 55%);
  padding: 110px 0;
  position: relative;
  z-index: 2;
}
.why__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}
.why__item{
  display:flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  border-radius: 2px;
  transition: transform .3s;
}
.why__item:hover{ transform: translateX(4px); }
.why__big{
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent-2);
}
.why__big small{ font-size: 18px; }
.why__label{
  color: var(--grey);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== Process ===== */
.process{
  background: var(--black-2);
  padding: 110px 0;
  position: relative;
  z-index: 2;
}
.process__list{
  list-style: none;
  counter-reset: none;
  display: flex;
  flex-direction: column;
}
.process__list li{
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 16px;
}
.process__list li:first-child{ border-top: 1px solid rgba(255,255,255,0.08); }
.process__step{
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  min-width: 64px;
}
.process__list span:last-child{ color: var(--grey); }

/* ===== Contacts ===== */
.contacts{
  background: linear-gradient(135deg, var(--accent) 0%, #ffb05f 60%, var(--accent-2) 100%);
  position: relative;
  padding: 110px 0 100px;
  overflow: hidden;
  color: #140800;
}
.contacts__angle{
  position: absolute;
  top: 0; left:0; right:0;
  height: 110px;
  background: var(--black-2);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 100%);
}
.contacts__inner{ position: relative; z-index: 2; }
.contacts .section-title{ color: #140800; }
.contacts .section-title span{
  color: #140800;
  border-color: #140800;
}
.contacts__lead{
  max-width: 520px;
  font-size: 17px;
  margin-bottom: 48px;
  color: rgba(20,8,0,0.8);
}
.contacts__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.contact-card{
  background: rgba(20,8,0,0.92);
  color: var(--white);
  padding: 24px 24px;
  border-radius: 14px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .3s, background .3s, box-shadow .3s;
}
.contact-card:hover{
  transform: translateY(-6px);
  background: #000;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,0.5);
}
.contact-card--alt{ background: rgba(20,8,0,0.6); }
.contact-card__label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}
.contact-card__value{
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
}
.contacts .btn--primary{
  background: #140800;
  color: var(--accent-2);
}
.contacts .btn--primary:hover{
  background: #000;
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
}

/* ===== Footer ===== */
.footer{
  background: var(--black);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__inner{
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--grey);
}

/* ===== Responsive ===== */
@media (max-width: 640px){
  .hero{ padding: 90px 0 120px; }
  .section-title{ margin-bottom: 32px; }
  .services, .why, .process, .contacts{ padding: 80px 0; }
}
