:root {
  --blue: #075ed6;
  --blue-dark: #07316f;
  --blue-soft: #eaf4ff;
  --ink: #0c1734;
  --muted: #5d6b82;
  --line: #dce5f1;
  --panel: #ffffff;
  --panel-soft: #f6f9fd;
  --steel: #748399;
  --green: #15905d;
  --shadow: 0 10px 24px rgba(12, 23, 52, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: transparent;
  overflow: hidden;
}

.brand-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-title {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.brand-subtitle {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-dark);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  padding: 27px 0 23px;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.hero {
  min-height: 500px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 38%, rgba(255,255,255,0.34) 66%, rgba(255,255,255,0.06) 100%),
    url("images/hero-port-logistics.png") center right / cover no-repeat;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 38%, rgba(255,255,255,0.34) 66%, rgba(255,255,255,0.06) 100%),
    image-set(url("images/hero-port-logistics.webp") type("image/webp"), url("images/hero-port-logistics.png") type("image/png")) center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  width: min(585px, 100%);
  padding: 72px 0;
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  color: var(--blue-dark);
  font-weight: 850;
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--ink);
  font-weight: 800;
}

h3 {
  font-size: 17px;
  font-weight: 800;
}

.lead {
  color: #33435e;
  font-size: 19px;
  max-width: 560px;
  margin: 22px 0 28px;
}

.search-box {
  display: grid;
  grid-template-columns: 140px 1fr 64px;
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.search-box select,
.search-box input,
.search-box button {
  border: 0;
  min-height: 58px;
  font: inherit;
}

.search-box select,
.search-box input {
  background: #fff;
  color: var(--muted);
  padding: 0 18px;
  outline: none;
}

.search-box select {
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.search-box button {
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

.search-box button img {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.search-note {
  color: var(--blue-dark);
  margin: 10px 0 0;
  font-size: 13px;
  min-height: 21px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 7px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
  font-weight: 800;
}

.button img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.button.primary img,
.mail-icon img {
  filter: brightness(0) invert(1);
}

.button span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.9;
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.section {
  padding: 42px 0;
}

.section.compact {
  padding: 30px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 690px;
}

.link {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card,
.card,
.directory-panel,
.list-panel,
.product-row,
.company-row,
.industry-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
}

.stat-icon img {
  width: 44px;
  height: 44px;
}

.stat-card strong {
  display: block;
  font-size: 31px;
  color: var(--blue);
  line-height: 1.1;
}

.stat-card span {
  color: var(--muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: 270px 1fr 330px;
  gap: 18px;
  align-items: start;
}

.directory-panel,
.list-panel {
  padding: 20px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-title h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title h3 img {
  width: 24px;
  height: 24px;
}

.country-list,
.plain-list {
  display: grid;
  gap: 10px;
}

.country-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  color: var(--ink);
}

.flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(12, 23, 52, 0.1);
}

.country-item small {
  color: var(--blue);
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-row {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 18px;
  padding: 10px;
  align-items: center;
}

.product-row img {
  width: 122px;
  height: 106px;
  object-fit: cover;
  border-radius: 7px;
  background: var(--panel-soft);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.company-list {
  display: grid;
  gap: 15px;
}

.company-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 12px;
  align-items: center;
}

.company-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f7fbff;
  border: 1px solid var(--line);
  object-fit: contain;
}

span.company-logo {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
}

.industry-grid,
.country-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.industry-icon-grid {
  grid-template-columns: repeat(8, 1fr);
}

.b2b-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.category-card {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  color: var(--ink);
}

.category-card img {
  width: 34px;
  height: 34px;
}

.category-card:hover {
  border-color: #b8d6ff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.country-module {
  margin-top: 30px;
}

.country-module h2 {
  font-size: 25px;
  margin-bottom: 14px;
}

.country-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.country-category-grid a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  font-size: 13px;
}

.country-category-grid img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.supplier-grid,
.buying-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.supplier-card,
.buying-lead-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.supplier-card h3,
.buying-lead-card h3 {
  margin-bottom: 8px;
}

.supplier-card p,
.buying-lead-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.module-intro {
  margin: 0 0 14px;
  color: var(--muted);
}

.lead-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef7ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 9px;
}

.industry-card,
.card {
  padding: 20px;
  min-height: 120px;
}

.icon-card {
  min-height: 136px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  padding: 18px 12px;
}

.icon-card img {
  width: 48px;
  height: 48px;
}

.icon-card strong {
  margin: 0;
  font-size: 13px;
  line-height: 1.24;
}

.industry-card strong,
.card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}

.industry-card p,
.card p,
.seo-copy p {
  margin: 0;
  color: var(--muted);
}

.seo-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 18px;
}

.cta-strip {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(90deg, #eaf5ff 0%, #f7fbff 100%);
  border: 1px solid #d6eafe;
  border-radius: 8px;
  padding: 26px 32px;
}

.mail-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
}

.mail-icon img {
  width: 34px;
  height: 34px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow img {
  width: 16px;
  height: 16px;
}

.page-hero {
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  padding: 54px 0;
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.breadcrumbs {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.breadcrumbs a {
  color: var(--blue);
  font-weight: 800;
}

.breadcrumb-separator {
  color: #8a96aa;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.detail-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 22px;
}

.detail-image img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.sidebar-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  position: sticky;
  top: 100px;
}

.directory-shell {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.directory-main {
  display: grid;
  gap: 18px;
}

.module-card,
.directory-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.directory-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 20px;
}

.module-card > h2,
.directory-sidebar h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.module-card > p {
  color: var(--muted);
  margin: 0 0 14px;
}

.quick-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-bar {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
  margin-bottom: 16px;
}

.filter-pill,
.alpha-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 13px;
}

.filter-pill.active,
.alpha-strip a.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.subcategory-list,
.sidebar-link-list,
.info-list {
  display: grid;
  gap: 9px;
}

.subcategory-list {
  grid-template-columns: repeat(2, 1fr);
}

.subcategory-list a,
.sidebar-link-list a,
.info-list li {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
}

.subcategory-list img,
.sidebar-link-list img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.subcategory-list span,
.sidebar-link-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.25;
}

.subcategory-list small,
.sidebar-link-list small,
.info-list small {
  color: var(--blue);
  font-weight: 800;
}

.alpha-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.result-list {
  display: grid;
  gap: 14px;
}

.listing-card {
  display: grid;
  grid-template-columns: 128px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.listing-card.compact {
  grid-template-columns: 74px 1fr auto;
}

.listing-card > img,
.listing-logo {
  width: 128px;
  height: 112px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.listing-card.compact > img,
.listing-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.listing-card h3 {
  margin-bottom: 6px;
}

.listing-card p {
  color: var(--muted);
  margin: 0 0 8px;
}

.listing-actions {
  display: grid;
  gap: 8px;
  min-width: 140px;
}

.soft-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid #cbe2ff;
  font-weight: 850;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-summary {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 24px;
  align-items: start;
}

.detail-summary img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 38%;
  color: var(--muted);
  background: var(--panel-soft);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.profile-head {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.profile-head img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.mini-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.mini-stat strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
}

.country-hub-hero {
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 54px 0;
}

.country-hub-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: center;
}

.country-hub-inner h1 {
  font-size: clamp(38px, 5vw, 60px);
}

.country-search {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.country-search input,
.country-search button {
  border: 0;
  min-height: 58px;
  font: inherit;
}

.country-search input {
  padding: 0 18px;
  outline: none;
}

.country-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.country-search button img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.country-hub-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.country-hub-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.country-hub-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 100px;
}

.country-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.country-directory-grid.featured {
  grid-template-columns: repeat(4, 1fr);
}

.country-directory-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  align-content: start;
}

.country-directory-card:hover {
  border-color: #b8d6ff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.country-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.country-directory-card .flag,
.flag-badge {
  width: 34px;
  height: 24px;
}

.flag-badge {
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}

.region-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.country-directory-card h3 {
  font-size: 20px;
}

.country-directory-card p {
  margin: 0;
  color: var(--muted);
  min-height: 44px;
}

.country-card-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.country-card-meta strong {
  color: var(--blue);
  font-size: 24px;
}

.country-card-meta span {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 60%, rgba(255,255,255,0.72) 100%),
      url("images/hero-port-logistics.png") center right / cover no-repeat;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 60%, rgba(255,255,255,0.72) 100%),
      image-set(url("images/hero-port-logistics-mobile.webp") type("image/webp"), url("images/hero-port-logistics.png") type("image/png")) center right / cover no-repeat;
  }

  .stats,
  .industry-grid,
  .b2b-category-grid,
  .country-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .country-category-grid,
  .supplier-grid,
  .buying-lead-grid {
    grid-template-columns: 1fr;
  }

  .portal-grid,
  .detail-layout,
  .directory-shell,
  .country-hub-inner,
  .country-hub-layout,
  .detail-summary,
  .seo-copy,
  .cta-strip {
    grid-template-columns: 1fr;
  }

  .sidebar-box,
  .directory-sidebar,
  .country-hub-sidebar {
    position: static;
  }

  .country-directory-grid,
  .country-directory-grid.featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .listing-card,
  .listing-card.compact {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: start;
  }

  .listing-card > img,
  .listing-card.compact > img,
  .listing-logo {
    width: 112px;
    height: 96px;
  }

  .listing-card.compact > img,
  .listing-logo {
    width: 74px;
    height: 74px;
  }

  .listing-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), 1180px);
  }

  .brand-title {
    font-size: 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 12px;
  }

  .brand-mark img {
    width: 42px;
    height: 42px;
  }

  .hero-content {
    padding: 50px 0 58px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .lead {
    font-size: 16px;
  }

  .page-hero {
    padding: 34px 0;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .section {
    padding: 26px 0;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .country-search {
    grid-template-columns: 1fr;
  }

  .search-box select {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .search-box button {
    min-height: 50px;
  }

  .stats,
  .industry-grid,
  .b2b-category-grid,
  .country-grid,
  .country-directory-grid,
  .country-directory-grid.featured,
  .country-hub-panel,
  .card-grid,
  .mini-stat-grid {
    grid-template-columns: 1fr;
  }

  .country-hub-hero {
    padding: 34px 0;
  }

  .country-directory-card {
    min-height: auto;
  }

  .module-card,
  .directory-sidebar {
    padding: 16px;
  }

  .module-card > h2,
  .directory-sidebar h3 {
    font-size: 21px;
  }

  .profile-head {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 12px;
    align-items: start;
  }

  .profile-head img {
    width: 66px;
    height: 66px;
  }

  .profile-head h2 {
    font-size: 21px;
  }

  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .spec-table td {
    padding-top: 0;
  }

  .subcategory-list {
    grid-template-columns: 1fr;
  }

  .subcategory-list a,
  .sidebar-link-list a {
    min-height: 44px;
  }

  .product-row {
    grid-template-columns: 96px 1fr;
  }

  .product-row img {
    width: 96px;
    height: 96px;
  }

  .stat-card,
  .section-head {
    align-items: start;
  }

  .section-head {
    flex-direction: column;
  }

  .listing-card,
  .listing-card.compact {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .listing-card > img,
  .listing-card.compact > img,
  .listing-logo {
    width: 92px;
    height: 92px;
    object-fit: cover;
  }

  .listing-card.compact > img,
  .listing-logo {
    object-fit: contain;
  }

  .listing-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
}
