/* ==========================================================================
   IoT Systems — Minimalist Industrial Tech Stylesheet
   Pure, uncluttered typographic design
   ========================================================================== */

:root {
  --bg: #090a0f;
  --bg-subtle: #10121a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --text: #f0f2f5;
  --text-muted: #8a919e;
  --text-dim: #545b67;
  
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --max-w: 1040px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 28px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.lang-btn {
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  color: var(--text-dim);
  font-weight: 500;
  transition: all 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 6rem 0 5rem 0;
  border-bottom: 1px solid var(--border);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-meta::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #ffffff;
  max-width: 820px;
  margin-bottom: 1.75rem;
}

.hero-title span {
  color: var(--text-muted);
  font-weight: 400;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-solid {
  background: #ffffff;
  color: #000000;
}

.btn-solid:hover {
  background: #e2e8f0;
}

.btn-subtle {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-subtle:hover {
  color: #ffffff;
  border-color: var(--border-hover);
}

/* ==========================================================================
   Minimal Section Structure
   ========================================================================== */

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   Solutions List (Clean Minimal Numbers)
   ========================================================================== */

.solutions-list {
  display: flex;
  flex-direction: column;
}

.solution-row {
  display: grid;
  grid-template-columns: 80px 240px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}

.solution-row:first-child {
  border-top: none;
  padding-top: 0;
}

.solution-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.solution-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.solution-detail {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Partners & Representation Section
   ========================================================================== */

.partners-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.partner-box {
  padding: 2rem 0;
}

.partner-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.partner-logo-container {
  height: 48px;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.partner-logo-container img {
  max-height: 38px;
  width: auto;
}

.partner-text-logo {
  font-family: var(--font-sans);
  font-size: 1.95rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.partner-text-logo .logo-flow {
  font-weight: 200;
  letter-spacing: 0.06em;
}

.partner-text-logo .logo-maitre {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.partner-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.partner-country {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.partner-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Clients Section (Understated Monochromatic)
   ========================================================================== */

.clients-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}

.client-item {
  padding: 2rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.2s ease;
}

.client-item:hover {
  border-color: var(--border-hover);
}

.client-item img {
  max-height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

.client-item:hover img {
  opacity: 1;
}

.client-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.client-item-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Requisites (Clean Data Sheet)
   ========================================================================== */

.requisites-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.spec-sheet {
  border-top: 1px solid var(--border);
}

.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-val {
  font-size: 0.95rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.spec-val.mono {
  font-family: var(--font-mono);
  color: var(--accent);
}

.copy-mini {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 2px 7px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-mini:hover {
  color: #ffffff;
  border-color: var(--border-hover);
}

/* ==========================================================================
   Contact Form (Minimalist Inline)
   ========================================================================== */

.contact-simple {
  padding: 1.5rem 0;
}

.simple-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.15s ease;
}

.form-field:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field::placeholder {
  color: var(--text-dim);
}

textarea.form-field {
  min-height: 90px;
  resize: vertical;
}

.form-feedback {
  font-size: 0.82rem;
  color: #34d399;
  display: none;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 3rem 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .solution-row {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
  }
  
  .solution-detail {
    grid-column: 2 / -1;
  }

  .partners-wrap,
  .clients-strip,
  .requisites-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .header-right .nav-link {
    display: none;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
