:root {
  --ink: #1E2329;
  --white: #FFFFFF;
  --graphite: #171B20;
  --panel: #F1F3F5;
  --orange: #EE6A1F;
  --steel: #5E6A77;
  --line: #D3D9DF;
  --mist: #9AA5B1;
  --dark-card: #2A3139;
  --peach: #F6B183;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(23, 27, 32, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}
.wordmark-mark {
  width: 12px;
  height: 12px;
  background: var(--orange);
  display: inline-block;
  flex: 0 0 auto;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.nav a { white-space: nowrap;
  color: var(--mist);
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover { color: var(--white); }
.header-cta { flex: 0 0 auto; }
.burger {
  display: none;
  margin-left: 6px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #d55d15; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  color: var(--white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 27, 32, 0.94) 0%, rgba(23, 27, 32, 0.72) 45%, rgba(23, 27, 32, 0.45) 100%);
}
.hero-inner { position: relative; padding: 110px 0 72px; max-width: 780px; }
.wordmark--hero { margin-bottom: 22px; }
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 700;
}
.hero-sub {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--line);
  max-width: 620px;
}
.hero-note {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--mist);
}

/* Sections */
.section { padding: 60px 0; scroll-margin-top: 64px; }
.section--panel { background: var(--panel); }
.section--dark { background: var(--graphite); color: var(--white); }
@media (min-width: 768px) {
  .section { padding: 88px 0; }
}
.section-head { margin-bottom: 32px; max-width: 820px; }
.overline {
  display: block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.section-title {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 40px);
  font-weight: 700;
}
.section-note {
  margin: 32px 0 0;
  font-size: 15px;
  color: var(--steel);
}
.lead { font-size: 17px; margin: 0 0 16px; }
.lead--light { color: var(--line); }

/* Split layouts */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* Photos with brackets */
.photo { position: relative; margin: 0; }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}
.photo--wide img { aspect-ratio: 16 / 9; }
.photo--tall img { aspect-ratio: 4 / 5; }
.photo--square img { aspect-ratio: 1 / 1; }
.photo--bracket::before,
.photo--bracket::after,
.callout--bracket::before,
.callout--bracket::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid var(--orange);
}
.photo--bracket::before,
.callout--bracket::before {
  top: -8px;
  left: -8px;
  border-right: 0;
  border-bottom: 0;
}
.photo--bracket::after,
.callout--bracket::after {
  bottom: -8px;
  right: -8px;
  border-left: 0;
  border-top: 0;
}

/* Stats */
.stats {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 40px 0 0;
}
.stat-value {
  display: block;
  font-size: clamp(38px, 6vw, 52px);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--steel);
  font-size: 14px;
}

/* Requisites */
.requisites {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--panel);
  border-radius: 14px;
  padding: 24px;
  margin-top: 32px;
}
.requisite-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 6px;
}
.requisite-value { font-size: 14px; }

/* Cards */
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card-grid--two { margin: 20px 0; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  flex: 0 0 auto;
}
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 14px 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--steel); font-size: 14px; }

/* Icon list */
.icon-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.icon-list li { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.icon-list .card-icon { width: 40px; height: 40px; }
.icon-list .card-icon .icon { width: 20px; height: 20px; }

/* Panel (repair) */
.panel {
  background: var(--panel);
  border-radius: 14px;
  padding: 28px;
}
.section--panel .panel { background: var(--white); border: 1px solid var(--line); }
.panel-title { margin: 0 0 6px; font-size: 24px; }
.panel-sub { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--steel); font-size: 14px; }

/* Machines */
.machines {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.machine {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.machine img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.machine-body { padding: 16px; }
.machine-model {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 16px;
}
.machine-count { color: var(--orange); font-weight: 700; white-space: nowrap; }
.machine-type { margin: 0; color: var(--steel); font-size: 13px; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 12px; }
table.equip {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
}
.equip th {
  background: var(--graphite);
  color: var(--white);
  text-align: left;
  font-weight: 700;
  padding: 12px;
}
.equip td { border: 1px solid var(--line); padding: 10px 12px; }
.equip .num { text-align: center; }
.equip .group td { background: var(--panel); font-weight: 700; }

/* Works */
.works-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.works-grid--small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.work {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work figcaption { padding: 10px 12px; font-size: 13px; color: var(--steel); }

/* Materials */
.materials { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .materials { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
}
.material-group { padding: 18px 0; border-top: 1px solid var(--line); }
.material-group:first-child { border-top: 0; padding-top: 0; }
.material-group h3 { margin: 0 0 12px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
}
.materials-note { margin: 18px 0 0; font-size: 13px; color: var(--steel); }

/* Industries */
.industries {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.industry h3 { margin: 20px 0 8px; font-size: 18px; }
.industry p { margin: 0; color: var(--steel); font-size: 14px; }

/* Icon rows (dark) */
.icon-rows {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.icon-row { display: flex; gap: 14px; }
.icon-row .card-icon { background: var(--dark-card); color: var(--orange); }
.icon-row h3 { margin: 0 0 6px; font-size: 16px; color: var(--white); }
.icon-row p { margin: 0; font-size: 14px; color: var(--mist); }

/* Steps */
.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--steel); font-size: 13px; }

/* Callout */
.callout {
  position: relative;
  background: var(--graphite);
  color: var(--white);
  border-radius: 14px;
  padding: 32px;
  margin-top: 48px;
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .callout { grid-template-columns: 1.5fr 1fr; align-items: center; }
}
.callout h3 { margin: 0; font-size: clamp(20px, 3vw, 24px); }
.callout-contacts { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.callout-contacts a:hover { color: var(--peach); }

/* Contacts */
.contacts { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .contacts { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
}
.contacts-info > .wordmark--hero { margin-bottom: 18px; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.contact { display: flex; align-items: flex-start; gap: 14px; }
.contact .card-icon { background: var(--dark-card); color: var(--orange); }
.contact-label { display: block; font-size: 11px; color: var(--mist); letter-spacing: 0.04em; }
.contact-value { display: block; font-size: 16px; color: var(--white); }
a.contact-value:hover { color: var(--peach); }
.requisite-line { margin: 28px 0 0; font-size: 12px; color: var(--mist); }
.contacts-photo { margin: 0; }
.contacts-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }

/* Footer */
.site-footer {
  background: var(--graphite);
  color: var(--mist);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-contacts { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-contacts a:hover { color: var(--white); }

/* Mobile navigation */
@media (max-width: 767px) {
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--graphite);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 40;
  }
  .nav--open { transform: translateY(0); }
  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    color: var(--white);
  }
  .header-cta { margin-left: auto; padding: 10px 16px; }
  .burger { display: flex; }
}
