/* ===== Base ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: #fafafa;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  color: #111111;
  -webkit-font-smoothing: antialiased;
}

a { color: #111111; text-decoration: none; }
a:hover { color: #1f4e9c; }

input::placeholder, textarea::placeholder { color: #999999; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.mono-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #1f4e9c;
}

.mono-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999999;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fafafa;
  border-bottom: 1px solid #111111;
}

.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo {
  height: 84px;
  display: block;
  margin: -2px 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
}

.nav a:hover { color: #1f4e9c; }

.lang-switch {
  display: flex;
  border: 1px solid #111111;
}

.lang-switch button {
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  background: transparent;
  color: #111111;
}

.lang-switch button + button { border-left: 1px solid #111111; }

.lang-switch button.active {
  background: #111111;
  color: #ffffff;
}

/* ===== Hero ===== */
.hero {
  border-bottom: 1px solid #111111;
  background: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.hero-left {
  padding: 80px 64px 80px 0;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left .mono-badge { margin-bottom: 28px; }

.hero h1 {
  margin: 0 0 28px;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111111;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-text {
  margin: 0 0 40px;
  font-size: 18px;
  line-height: 1.65;
  color: #444444;
  max-width: 480px;
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 36px;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: #111111;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1f4e9c;
  color: #ffffff;
}

.btn-secondary {
  color: #111111;
  border: 1px solid #111111;
}

.btn-secondary:hover { background: #f0f0f0; color: #111111; }

.hero-right {
  padding: 48px 0 48px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-photo { height: 420px; }

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #999999;
  margin-top: 12px;
  letter-spacing: 0.06em;
}

/* ===== Facts strip ===== */
.facts {
  border-bottom: 1px solid #111111;
  background: #fafafa;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  padding: 28px 32px;
  border-right: 1px solid #e0e0e0;
}

.fact:first-child { padding-left: 0; }
.fact:last-child { padding-right: 0; border-right: none; }

.fact-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111111;
}

.fact-num-accent { color: #1f4e9c; }

.fact-label {
  font-size: 13px;
  color: #666666;
  margin-top: 2px;
}

/* ===== Sections common ===== */
.section {
  border-bottom: 1px solid #111111;
}

.section-white { background: #ffffff; }
.section-grey { background: #fafafa; }
.section-dark { background: #111111; }
.section-last { border-bottom: none; }

.section .container { padding-top: 96px; padding-bottom: 96px; }

.section-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
}

.section-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #1f4e9c;
}

.section-num-light { color: #7fa3d9; }

.section-head h2 {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #111111;
}

.section-dark .section-head h2 { color: #ffffff; margin-bottom: 16px; }

/* ===== About ===== */
.about-lead {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.7;
  color: #333333;
  text-wrap: pretty;
}

.about-body {
  margin: 0 0 40px;
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
  max-width: 720px;
  text-wrap: pretty;
}

.about-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #111111;
}

.about-cell { padding: 28px 32px; }
.about-cell-first { border-right: 1px solid #e0e0e0; }

.about-cell .mono-label { margin-bottom: 16px; }

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.material {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: #111111;
}

.material .dash {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #1f4e9c;
}

.clients-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.client {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #111111;
}

.service {
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.service:hover { background: #ffffff; }

.service-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #1f4e9c;
  white-space: nowrap;
}

.service h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

.service p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  text-wrap: pretty;
}

/* ===== Equipment ===== */
.equipment-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #999999;
  text-wrap: pretty;
}

.equipment-list-wrap { border-top: 1px solid #444444; }

.equipment-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid #333333;
}

.equipment-group {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7fa3d9;
  padding-top: 2px;
}

.equipment-machines {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.machine {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.machine-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.machine-spec {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #888888;
}

.partners {
  padding-top: 24px;
  margin-top: 8px;
}

.mono-label-dark { color: #666666; margin-bottom: 10px; }

.partners p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #999999;
  max-width: 640px;
  text-wrap: pretty;
}

/* ===== Works ===== */
.works-sub {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: #555555;
  text-wrap: pretty;
}

.section-head h2 + .works-sub,
.section-head h2 + .equipment-sub { margin-top: 16px; }

.works-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1px;
  background: #e0e0e0;
  border: 1px solid #e0e0e0;
}

.works-item { background: #fafafa; }

.works-item-big {
  grid-column: span 2;
  grid-row: span 2;
}

.works-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Contacts ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 64px;
}

.contacts-text {
  margin: 0 0 40px;
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
  text-wrap: pretty;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #111111;
}

.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}

.contact-label { padding-top: 4px; }

.contact-value {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

.form-box {
  border: 1px solid #111111;
  padding: 36px;
  background: #ffffff;
}

.form-box form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-box h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111111;
}

.form-box input,
.form-box textarea {
  width: 100%;
  border: 1px solid #cccccc;
  padding: 14px 16px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  background: #ffffff;
  color: #111111;
  outline: none;
  border-radius: 0;
}

.form-box textarea { resize: vertical; }

.form-box input:focus,
.form-box textarea:focus { border-color: #111111; }

.form-box button {
  border: none;
  cursor: pointer;
  font-family: Helvetica, Arial, sans-serif;
  padding: 17px 36px;
}

.form-hint {
  font-size: 13px;
  color: #999999;
  line-height: 1.5;
}

.form-error {
  font-size: 13px;
  color: #b00020;
  line-height: 1.5;
}

.form-error[hidden] { display: none; }

.form-box button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-thanks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 320px;
}

.form-thanks[hidden] { display: none; }

.form-thanks-title {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  text-transform: uppercase;
}

.form-thanks-text {
  font-size: 15px;
  color: #555555;
}

/* ===== Footer ===== */
.footer { background: #111111; }

.footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-brand span {
  color: #888888;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #888888;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .header-inner { gap: 16px; }
  .nav { gap: 20px; }
  .hero h1 { font-size: 44px; }

  .section-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .container { padding-left: 20px; padding-right: 20px; }

  .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
    row-gap: 8px;
  }

  .logo { height: 56px; }

  .nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-left {
    padding: 48px 0;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .hero h1 { font-size: 34px; }

  .hero-right { padding: 32px 0 48px; }
  .hero-photo { height: 280px; }

  .facts-grid { grid-template-columns: 1fr 1fr; }

  .fact { padding: 20px 16px; }
  .fact:first-child { padding-left: 0; }
  .fact:nth-child(2n) { border-right: none; padding-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid #e0e0e0; }

  .section .container { padding-top: 56px; padding-bottom: 56px; }

  .about-table { grid-template-columns: 1fr; }
  .about-cell-first {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .services-grid { grid-template-columns: 1fr; }
  .service { padding-right: 0; }

  .equipment-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .works-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .form-box { padding: 24px; }
}
