:root {
  --ink: #17201c;
  --muted: #64706b;
  --paper: #f7f6f1;
  --white: #ffffff;
  --line: #d9ded6;
  --accent: #b83f2e;
  --accent-dark: #7f2d24;
  --green: #557662;
  --steel: #3e5661;
  --shadow: 0 22px 60px rgba(23, 32, 28, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", sans-serif;
  line-height: 1.7;
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  max-width: 820px;
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 1.16;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  line-height: 1.22;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.selector-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(85, 118, 98, 0.11), transparent 34%),
    linear-gradient(315deg, rgba(184, 63, 46, 0.12), transparent 38%),
    var(--paper);
}

.selector {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.selector h1 {
  color: var(--ink);
}

.selector-copy {
  max-width: 720px;
  margin: 22px 0 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.concept-card {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(23, 32, 28, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.concept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.concept-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.concept-card span,
.concept-card h2,
.concept-card p {
  margin-inline: 22px;
}

.concept-card span {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 800;
}

.concept-card h2 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.concept-card p {
  margin-top: 10px;
  color: var(--muted);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 246, 241, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 32, 28, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.contact {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 1.28rem;
  font-weight: 800;
  min-width: 0;
}

.brand span:last-child {
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 91vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 112px clamp(20px, 6vw, 82px) 92px;
}

.hero-slideshow,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.6s ease;
  animation: hero-ken-burns 9s ease-in-out infinite;
}

.hero-slide.is-active {
  opacity: 1;
}

@keyframes hero-ken-burns {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
  }
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 22, 20, 0.78), rgba(15, 22, 20, 0.34) 49%, rgba(15, 22, 20, 0.08)),
    linear-gradient(0deg, rgba(15, 22, 20, 0.38), transparent 45%);
}

.theme-eco .hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 42, 31, 0.56), rgba(23, 42, 31, 0.14) 52%, rgba(23, 42, 31, 0)),
    linear-gradient(0deg, rgba(23, 42, 31, 0.18), transparent 45%);
}

.theme-logistics .hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 28, 35, 0.8), rgba(15, 28, 35, 0.34) 52%, rgba(15, 28, 35, 0.08)),
    linear-gradient(0deg, rgba(15, 28, 35, 0.38), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  color: var(--white);
}

.hero .eyebrow {
  color: #ffd7ca;
}

.theme-eco .hero .eyebrow {
  color: #d3f0d8;
}

.theme-logistics .hero .eyebrow {
  color: #d8eef7;
}

.hero-copy {
  max-width: 710px;
  margin: 26px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: var(--white);
}

.theme-eco .button.primary {
  background: var(--green);
}

.theme-logistics .button.primary {
  background: var(--steel);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.74);
  color: var(--white);
}

.stats,
.section,
.company-section,
.split-section,
.process,
.case-band,
.delivery-band,
.contact,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -42px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stats div {
  min-height: 130px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 106px 0 0;
}

.section-heading,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: end;
}

.section-heading {
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 28px;
}

.service-card p,
.lead-text,
.split-section p,
.process p {
  margin: 10px 0 0;
  color: var(--muted);
}

.lead-text {
  max-width: 820px;
  font-size: 1.08rem;
}

.simple-section .section-heading {
  margin-bottom: 18px;
}

.split-section {
  padding: 106px 0 0;
  align-items: start;
}

.split-section p {
  margin-top: 34px;
  font-size: 1.06rem;
}

.process,
.case-band,
.delivery-band {
  display: grid;
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
}

.process,
.case-band {
  grid-template-columns: repeat(3, 1fr);
}

.process article,
.case-band article,
.delivery-band div {
  min-height: 150px;
  background: var(--white);
  padding: 24px;
}

.process span,
.case-band span,
.delivery-band span {
  display: block;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 12px;
}

.theme-eco .process span,
.theme-eco .case-band span,
.theme-eco .delivery-band span {
  color: var(--green);
}

.theme-logistics .process span,
.theme-logistics .case-band span,
.theme-logistics .delivery-band span {
  color: var(--steel);
}

.delivery-band {
  grid-template-columns: repeat(4, 1fr);
}

.delivery-band strong {
  font-size: 1.12rem;
}

.contact {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 108px;
  margin-bottom: 78px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact h2 {
  max-width: 760px;
}

.company-section {
  margin-top: 84px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.company-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.company-list {
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.company-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  color: var(--muted);
  font-weight: 800;
}

.company-list dd {
  margin: 0;
}

.contact-note {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .concept-grid,
  .stats,
  .service-grid,
  .section-heading,
  .split-section,
  .process,
  .case-band,
  .delivery-band {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 86vh;
  }

  .stats {
    width: 100%;
    margin-top: 0;
    box-shadow: none;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section,
  .company-section,
  .split-section,
  .process,
  .case-band,
  .delivery-band,
  .contact,
  .footer {
    width: min(100% - 32px, 1120px);
  }

  .section,
  .split-section {
    padding-top: 78px;
  }
}

@media (max-width: 520px) {
  .selector {
    width: min(100% - 32px, 1160px);
    padding-top: 44px;
  }

  .hero {
    padding-inline: 18px;
  }

  .button,
  .contact .button {
    width: 100%;
  }

  .button {
    text-align: center;
  }

  .service-card,
  .process article,
  .case-band article,
  .delivery-band div {
    padding: 22px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
