:root {
  color-scheme: light;
  --ink: #13202b;
  --muted: #607080;
  --line: #d8e0e5;
  --panel: #ffffff;
  --soft: #f4f7f8;
  --brand: #0b2d5b;
  --brand-2: #2f80d1;
  --accent: #f0b13e;
  --danger: #b64b3b;
  --shadow: 0 18px 40px rgba(24, 37, 49, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
}

.brand img {
  width: 176px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.main-nav a,
.header-action,
.section-heading a,
.submit-box a,
.promo-card a {
  border-radius: 7px;
  font-weight: 750;
}

.main-nav a {
  padding: 10px 12px;
  color: #354657;
  font-size: 0.94rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #e9eff2;
}

.header-action,
.section-heading a,
.submit-box a,
.promo-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  color: #fff;
  background: var(--brand-2);
}

.header-action {
  min-width: 178px;
  padding: 12px 18px;
  color: #17222c;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(240, 177, 62, 0.28);
  white-space: nowrap;
}

.header-action:hover,
.header-action:focus-visible {
  background: #f6c052;
}

.hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background: #0d1620;
}

.hero > img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: clamp(18px, 4vw, 58px);
  color: #fff;
  background: linear-gradient(90deg, rgba(7, 18, 30, 0.78), rgba(7, 18, 30, 0.32) 54%, rgba(7, 18, 30, 0.08));
}

.supplier-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 900px;
  margin-bottom: 30px;
}

.supplier-strip span {
  padding: 8px 12px;
  color: #e9f6f5;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-copy {
  max-width: 840px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker {
  color: #94eee7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 0.98;
}

.hero-copy > p:not(.kicker) {
  max-width: 720px;
  color: #e4eef2;
  font-size: 1.08rem;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 720px;
  margin-top: 26px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.search-panel button {
  padding: 12px 18px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  cursor: pointer;
  font-weight: 800;
}

.promo-carousel {
  position: relative;
  max-width: 1180px;
  margin: -42px auto 36px;
  padding: 0 clamp(16px, 3vw, 24px);
  z-index: 2;
}

.promo-track {
  position: relative;
  min-height: 205px;
}

.promo-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 205px;
  padding: clamp(26px, 3.6vw, 38px);
  color: #fff;
  background: linear-gradient(135deg, #0b2d5b, #2f80d1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.promo-card-image {
  padding: 0;
  background: #0b2d5b;
}

.promo-card-image > .promo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card-image::after {
  display: none;
}

.promo-card-image-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.promo-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 680px;
  padding: clamp(26px, 3.6vw, 38px);
}

.promo-client-logo {
  width: min(260px, 52vw);
  height: auto;
  margin-bottom: 6px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 14px 28px rgba(40, 40, 40, 0.16);
}

.promo-card-image .promo-card-content p {
  color: #dd1215;
}

.promo-card-image .promo-card-content h2 {
  color: #282828;
}

.promo-card-image .promo-card-content a {
  color: #fff;
  background: #dd1215;
}

.promo-card.is-active {
  opacity: 1;
  transform: translateY(0);
}

.promo-card p {
  margin-bottom: 0;
  color: #bff5ef;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.promo-card h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  line-height: 1.12;
}

.promo-card a {
  align-self: flex-start;
  margin-top: 8px;
  width: max-content;
  max-width: 100%;
  background: var(--accent);
  color: #17222c;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dots button {
  width: 36px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c5d0d7;
  cursor: pointer;
}

.carousel-dots .is-active {
  background: var(--brand-2);
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px) 58px;
}

.content-column,
.ad-column {
  min-width: 0;
}

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

.section-heading h2,
.jobs-band h2,
.ad-column h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-bar button,
.category-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  color: #33485a;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-weight: 760;
}

.category-bar .is-selected {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.empty-filter-message {
  margin: 0 0 24px;
  padding: 16px 18px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.listing-card,
.side-ad,
.submit-box,
.jobs-band,
.newsletter-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.listing-card {
  display: grid;
  min-height: 215px;
  padding: 20px;
  align-content: space-between;
  overflow: hidden;
}

.listing-link,
.job-link {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.listing-link:hover,
.listing-link:focus-visible,
.job-link:hover,
.job-link:focus-visible {
  border-color: var(--brand-2);
  box-shadow: 0 14px 34px rgba(19, 32, 43, 0.12);
  transform: translateY(-2px);
}

.listing-photo {
  width: calc(100% + 40px);
  height: 185px;
  max-width: none;
  margin: -20px -20px 16px;
  object-fit: cover;
  background: #e7eef3;
}

.tag {
  width: max-content;
  margin-bottom: 20px;
  padding: 5px 9px;
  color: #fff;
  background: var(--danger);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 850;
}

.tag.supplier {
  background: var(--brand-2);
}

.listing-card h3,
.side-ad h3,
.submit-box h3,
.job-list h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.listing-card p,
.side-ad p,
.submit-box p,
.job-list p {
  color: var(--muted);
}

.listing-brand {
  margin-bottom: 8px;
  color: var(--brand) !important;
  font-weight: 850;
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.listing-meta strong {
  color: var(--brand);
}

.ad-column {
  position: sticky;
  top: 86px;
  height: max-content;
}

.ad-column h2 {
  margin-bottom: 16px;
}

.side-ad,
.submit-box {
  padding: 20px;
  margin-bottom: 14px;
}

.side-ad-visual {
  display: block;
  padding: 0;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.side-ad-visual:hover,
.side-ad-visual:focus-visible {
  border-color: var(--brand-2);
  box-shadow: 0 14px 34px rgba(19, 32, 43, 0.12);
  transform: translateY(-2px);
}

.side-ad-image {
  display: block;
  width: 100%;
  min-height: 190px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e7eef3;
}

.side-ad span {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 8px;
  color: var(--brand-2);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.side-ad h3,
.side-ad p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.side-ad p {
  margin-bottom: 0;
}

.side-ad-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  margin-top: 8px;
  padding: 8px 11px;
  color: #fff;
  background: var(--brand-2);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
}

.side-ad-action:hover,
.side-ad-action:focus-visible {
  background: var(--brand);
}

.submit-box {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.submit-box p {
  color: #d9e6ed;
}

.submit-box a {
  width: 100%;
  background: var(--accent);
  color: #18232d;
}

.jobs-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  margin-top: 28px;
  padding: 24px;
}

.newsletter-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  margin-top: 18px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #eef6ff);
}

.newsletter-band h2 {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.newsletter-band p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.newsletter-form {
  display: grid;
  align-content: center;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.newsletter-form button {
  padding: 12px 14px;
  color: #fff;
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  cursor: pointer;
  font-weight: 800;
}

.newsletter-form small {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.job-list article,
.job-link {
  display: block;
  padding: 16px;
  background: #f6fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-list p {
  margin-bottom: 0;
}

.job-meta,
.job-extra {
  font-size: 0.92rem;
}

.job-meta {
  color: var(--brand) !important;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: #d7e4ec;
  background: #13202b;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .market-layout {
    grid-template-columns: 1fr;
  }

  .ad-column {
    position: static;
    width: 100%;
    max-width: 100%;
  }

  .ad-column h2 {
    font-size: clamp(1.8rem, 7vw, 2.45rem);
  }

  .side-ad,
  .submit-box {
    padding: 16px;
  }

  .side-ad-visual {
    padding: 0;
  }

  .side-ad h3,
  .submit-box h3 {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    line-height: 1.18;
  }

  .side-ad p,
  .submit-box p {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
    line-height: 1.45;
  }

  .jobs-band {
    grid-template-columns: 1fr;
  }

  .newsletter-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .header-action {
    padding: 10px 12px;
  }

  .hero,
  .hero > img {
    min-height: 650px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(7, 18, 30, 0.35), rgba(7, 18, 30, 0.82));
  }

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

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

  .ad-column h2 {
    font-size: clamp(1.65rem, 10vw, 2.15rem);
    line-height: 1.05;
  }

  .side-ad,
  .submit-box {
    padding: 14px;
    margin-bottom: 12px;
  }

  .side-ad-visual {
    padding: 0;
  }

  .side-ad span {
    font-size: 0.72rem;
  }

  .side-ad h3,
  .submit-box h3 {
    font-size: 1.05rem;
  }

  .side-ad p,
  .submit-box p {
    font-size: 0.94rem;
  }

  .promo-track,
  .promo-card {
    min-height: 245px;
  }

  .promo-card a {
    width: 100%;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}
