:root {
  --ink: #16191d;
  --muted: #606873;
  --line: #d8dee5;
  --brand: #202428;
  --brand-dark: #000000;
  --accent: #111315;
  --soft: #f5f7f9;
  --panel: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { width: 260px; display: block; }
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.menu { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.menu li { position: relative; }
.menu a { color: var(--ink); font-weight: 700; font-size: 14px; }
.menu .portal { color: var(--brand-dark); }
.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(16, 20, 24, .12);
}
.submenu:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.submenu a {
  display: block;
  padding: 9px 14px;
  white-space: nowrap;
}
.nav-dropdown:hover .submenu,
.nav-dropdown:focus-within .submenu {
  display: block;
}

.hero {
  min-height: 470px;
  color: #fff;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,21,30,.86), rgba(13,21,30,.62), rgba(13,21,30,.28));
}
.hero .container { position: relative; }
.hero h1 { max-width: 720px; font-size: clamp(30px, 4.5vw, 54px); line-height: 1.05; margin: 0 0 18px; letter-spacing: 0; }
.hero p, .hero li { font-size: 17px; }
.hero ol { padding-left: 22px; max-width: 680px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.button.secondary:hover { background: #fff; border-color: #fff; color: var(--brand-dark); }

.section { padding: 64px 0; }
.section.soft { background: var(--soft); }
.portal-section { background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2, .page-title h1 { font-size: clamp(25px, 3vw, 36px); line-height: 1.15; margin: 0 0 14px; }
.eyebrow { color: var(--brand-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.lead { color: var(--muted); font-size: 17px; max-width: 820px; }
.rule { width: 84px; height: 3px; background: var(--accent); margin: 14px 0 24px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.partners-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.service-card img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 12px; }
.service-card h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.brand-card { display: flex; align-items: center; justify-content: center; min-height: 118px; padding: 18px; }
.brand-card img { max-height: 76px; object-fit: contain; }
.catalog-card { text-align: center; }
.catalog-card img { width: 200px; border: 1px solid #222; display: block; margin: 0 auto 12px; }
.partner-logo { width: min(300px, 100%); display: block; margin-bottom: 20px; }
.feature-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature-list li { padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--soft); }
.brochure-card img { width: min(260px, 100%); border: 1px solid var(--line); display: block; margin: 0 auto 18px; box-shadow: 0 14px 34px rgba(16, 20, 24, .14); }
.info-panel { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px; }
.portal-shot { width: min(390px, 100%); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 45px rgba(20, 25, 30, .12); }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.blog-card .content { padding: 24px; }
.blog-card h3 { font-size: 21px; line-height: 1.2; margin: 0 0 12px; }
.blog-card p { color: var(--muted); margin: 0 0 18px; }
.text-link { color: var(--accent); font-weight: 800; }

.page-hero { min-height: 280px; }
.ma-ford-hero { min-height: 390px; background-position: center top; }
.ma-ford-hero:before { background: linear-gradient(90deg, rgba(13,21,30,.78), rgba(13,21,30,.48), rgba(13,21,30,.18)); }
.worldia-hero { min-height: 390px; background-position: center; }
.worldia-hero:before { background: linear-gradient(90deg, rgba(13,21,30,.84), rgba(13,21,30,.52), rgba(13,21,30,.16)); }
.bor-carbide-hero { min-height: 360px; }
.bor-carbide-hero:before { background: linear-gradient(90deg, rgba(13,21,30,.88), rgba(13,21,30,.58), rgba(13,21,30,.22)); }
.page-content { padding: 64px 0; }
.content-narrow { width: min(900px, calc(100% - 32px)); margin: 0 auto; }
.content-narrow p, .content-narrow li { font-size: 18px; }
.split-row { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line); }
.split-row img { width: 86px; }
.video-wrap { aspect-ratio: 16 / 9; background: #111; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-list p { margin: 8px 0; }
.linkedin { width: 22px; vertical-align: middle; margin-left: 6px; }

.site-footer {
  background: #252525;
  color: #fff;
  padding: 24px 0 26px;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  font-weight: 800;
}
.footer-company {
  font-size: 14px;
  letter-spacing: 0;
}
.footer-contact {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-email {
  font-size: 14px;
}
.footer-label {
  color: rgba(255,255,255,.9);
}


.brand-info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  min-height: 280px;
  padding: 26px;
  text-decoration: none;
  color: inherit;
}

.brand-info-card img {
  max-width: 160px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

.brand-info-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.brand-info-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
}

.brand-info-card span {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
}

.partners-grid {
  align-items: stretch;
}

@media (max-width: 1100px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .brand-info-card {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }
  .logo img { width: min(250px, 68vw); }
  .nav-toggle-label { display: inline-flex; align-items: center; justify-content: center; }
  .menu {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .menu { display: block; }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu > li:last-child { border-bottom: 0; }
  .menu a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
  }
  .submenu {
    position: static;
    display: block;
    min-width: 0;
    margin: -2px 0 8px;
    padding: 0 0 0 16px;
    border: 0;
    box-shadow: none;
  }
  .submenu:before { display: none; }
  .submenu a { padding: 4px 0; color: var(--muted); }
  .footer-contact { gap: 10px 18px; flex-direction: column; }
  .hero { min-height: 510px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split-row { grid-template-columns: 1fr; }
}
