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

:root {
  --dark: #000;
  --mid: #444;
  --light: #888;
  --border: #E5E5E5;
}

/* Desktop: full viewport, no scroll */
html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--dark);
  background-image: url('../img/pattern.svg');
  background-repeat: repeat;
  background-size: 512px 512px;
}

.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Content */
.content {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
}

/* Header */
.top-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 220px;
  background: rgba(249, 249, 249, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: 0.03em;
  color: var(--dark);
}
.logo img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fff;
  padding: 0;
  border: 1px solid var(--border);
}
.lang-switch a {
  color: var(--mid);
  text-decoration: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}
.lang-switch a:hover {
  color: var(--dark);
  background: rgba(0, 0, 0, 0.05);
}
.lang-switch a.active {
  color: #fff;
  background: #D72B2B;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--dark);
  display: block;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(1.6rem, 3vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 0;
}

.hero-desc {
  font-size: 1.5rem;
  color: var(--mid);
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  gap: 0;
}
.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.stat-icon { width: 30px; height: 30px; color: var(--dark); flex-shrink: 0; }
.stat-num { font-size: 1.35rem; font-weight: 800; line-height: 1; }
.stat-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-top: 3px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--dark);
  margin-bottom: 0;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 36px; height: 2px;
  background: var(--dark);
  display: block;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: visible;
}
.company-card {
  background: #fff;
  display: grid;
  grid-template-rows: 60px 1fr;
  align-items: center;
  justify-items: center;
  padding: 32px 10px 28px;
  min-height: 140px;
  position: relative;
  text-decoration: none;
  transition: background .15s;
}
.company-card:hover { background: #f0f0f0; }
.company-card img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: opacity .25s, filter .25s;
}
.company-card:hover img {
  opacity: 0.15;
  filter: blur(4px);
}
.company-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #D72B2B;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center/32px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center/32px no-repeat;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.company-card:hover::after { opacity: 1; }
.company-card:hover .company-desc { opacity: 0; }

.company-desc {
  font-size: 0.7rem;
  color: var(--mid);
  text-align: center;
  margin-top: 6px;
  line-height: 1.2;
  max-width: 100%;
  font-weight: 500;
  pointer-events: none;
  position: relative;
  z-index: 1;
  align-self: start;
  transition: opacity .25s;
}

.sectors {
  flex: 0 0 auto;
  background: #F8F8F8;
  border-top: 1px solid var(--border);
  padding: 0 280px;
}
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.sector-card {
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background .15s;
}
.sector-card:last-child { border-right: none; }
.sector-icon { width: 28px; height: 28px; color: var(--dark); }
.sector-name { font-weight: 700; font-size: 0.8rem; }
.sector-desc { font-size: 0.7rem; color: var(--light); line-height: 1.35; }

/* Footer */
footer {
  flex: 0 0 auto;
  background: rgba(249, 249, 249, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  height: 75px;
  padding: 0 220px;
  display: flex;
  align-items: center;
}
.footer-contact {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  font-size: 0.9rem;
}
.footer-contact a {
  display: flex; align-items: center; gap: 6px;
  color: var(--mid); text-decoration: none; transition: color .15s;
  font-weight: 500;
}
.footer-contact a:hover { color: var(--dark); }
.footer-contact a[href^="tel"] { order: 1; justify-self: start; }
.footer-contact a[href^="mailto"] { order: 3; justify-self: end; }
.footer-address {
  order: 2;
  justify-self: center;
  text-align: center;
  color: var(--mid);
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.footer-address svg { flex-shrink: 0; }
.footer-address:hover { color: var(--dark); }

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .content { padding: 0 120px; justify-content: space-evenly; }
  .top-header { padding: 22px 120px; }
  .section-label { margin-bottom: 0; }
  .sectors { padding: 0 120px; }

  footer {
    height: auto;
    padding: 20px 16px;
  }
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .footer-contact a[href^="mailto"] { order: 2; }
  .footer-address {
    order: 3;
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 2px;
    text-align: center;
    max-width: 100%;
    white-space: normal;
  }
  .footer-address svg {
    margin-top: 3px;
    align-self: start;
  }
  .hero-title { font-size: clamp(1.5rem, 2.8vw, 2.4rem); margin-bottom: 0; }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  html, body { height: auto; overflow: auto; }

  .page { height: auto; overflow: visible; min-height: 100vh; }

  .content {
    flex: none;
    min-height: auto;
    overflow: visible;
    padding: 48px 16px;
    gap: 48px;
    align-items: stretch;
  }
  .top-header { padding: 18px 16px; }

  .hero-title { font-size: 1.85rem; margin-bottom: 0; }
  .hero-desc { font-size: 1.6rem; max-width: 100%; }

  .stats { padding-top: 18px; }
  .stat { padding-right: 18px; margin-right: 18px; }
  .stat-num { font-size: 1.2rem; }
  .stat-icon { width: 26px; height: 26px; }

  .section-label { margin-bottom: 0; }
  .sectors { padding: 0 16px; }
  .company-grid { grid-template-columns: repeat(1, 1fr); }
  .company-card { min-height: 100px; grid-template-rows: 60px 1fr; }
  .company-card img { max-height: 50px; height: auto; }

  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .sector-card:nth-child(3) { border-right: none; }
  .sector-card:nth-child(4),
  .sector-card:nth-child(5) { border-top: 1px solid var(--border); }
  .sector-card:nth-child(5) { border-right: none; }

  footer {
    height: auto;
    padding: 20px 16px;
  }
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .footer-contact a[href^="mailto"] { order: 2; }
  .footer-address {
    order: 3;
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 2px;
    text-align: center;
    max-width: 100%;
    white-space: normal;
  }
  .footer-address svg {
    margin-top: 3px;
    align-self: start;
  }
}

/* Small mobile ≤ 480px */
@media (max-width: 480px) {
  .hero-title { font-size: 1.55rem; }
  .hero-desc { font-size: 1.6rem; }

  .stats {
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
  .stat {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
  }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }

  .company-grid { grid-template-columns: repeat(1, 1fr); }
  .company-card { min-height: 90px; grid-template-rows: 55px 1fr; }
  .company-card img { max-height: 45px; height: auto; }
  .hero-title { font-size: 1.4rem; }
  .hero-desc { font-size: 1.2rem; }

  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-card { border-right: none; border-bottom: 1px solid var(--border); }
  .sector-card:nth-child(odd) { border-right: 1px solid var(--border); }
  .sector-card:nth-child(4) { border-right: none; }
  .sector-card:nth-child(5) {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
    border-top: none;
  }
  .sector-card:nth-child(3) { border-right: 1px solid var(--border); }

  .footer-copy { font-size: 0.68rem; }
}

/* Section label and eyebrow red */
.eyebrow,
.section-label {
  color: #D72B2B;
}
.eyebrow::before,
.section-label::before,
.section-label::after,
.lang-switch a.active {
  background: #D72B2B;
}
