:root {
  --page-bg: #f2f2f2;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --line: #dddddd;
  --text: #262626;
  --muted: #7a7a7a;
  --muted-dark: #5a5a5a;
  --topbar: #d6d6d6;
  --accent: #ff1e14;
  --accent-dark: #de180f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: 'Noto Sans', sans-serif;
}

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

button,
input {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.topbar {
  background: var(--topbar);
}

.topbar-inner {
  width: min(1360px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 50px;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding-left: 36px;
  color: var(--surface);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-jt {
  font-size: 2rem;
  line-height: 1;
}

.brand-express {
  font-size: 1rem;
  opacity: 0.95;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-button,
.account-button,
.language-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 50px;
  padding: 0 4px;
  color: var(--surface);
  white-space: nowrap;
}

.nav-button {
  font-size: 0.95rem;
}

.nav-icon,
.nav-caret {
  display: inline-block;
  flex: 0 0 auto;
}

.nav-icon {
  width: 12px;
  height: 12px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  opacity: 0.8;
}

.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.92;
}

.account-panel {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 50px;
  padding: 0 26px 0 42px;
  background: var(--accent);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.account-button,
.language-button {
  font-size: 0.95rem;
}

.search-page {
  width: min(1360px, 100%);
  margin: 0 auto;
}

.hero-banner {
  min-height: 194px;
  padding: 0;
  background: var(--surface);
}

.hero-banner-image {
  width: 100%;
  min-height: 194px;
  background-image: url('/css/search_jnt.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-copy h1 {
  margin: 0;
  color: #2a2a2a;
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 0.95;
  font-weight: 800;
}

.hero-illustration {
  position: relative;
  width: 360px;
  height: 174px;
  flex: 0 0 auto;
}

.mascot-scene {
  position: absolute;
  right: 84px;
  bottom: 12px;
  width: 136px;
  height: 156px;
}

.ear,
.mascot-head,
.mascot-body,
.mascot-arm,
.mascot-leg,
.magnifier-ring,
.parcel-box,
.wheel,
.signal {
  position: absolute;
}

.ear {
  width: 24px;
  height: 58px;
  background: #ffffff;
  border: 2px solid #ececec;
  border-radius: 16px;
  top: 0;
}

.ear-left {
  left: 30px;
  transform: rotate(-12deg);
}

.ear-right {
  left: 62px;
  transform: rotate(14deg);
}

.mascot-head {
  width: 78px;
  height: 70px;
  top: 20px;
  left: 20px;
  background: #ffffff;
  border: 2px solid #ededed;
  border-radius: 50%;
}

.mascot-head::before,
.mascot-head::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 6px;
  height: 6px;
  background: #292929;
  border-radius: 50%;
}

.mascot-head::before {
  left: 24px;
}

.mascot-head::after {
  right: 24px;
}

.mascot-body {
  width: 56px;
  height: 58px;
  left: 32px;
  top: 82px;
  background: #ff5939;
  border-radius: 18px 18px 12px 12px;
}

.mascot-arm {
  width: 20px;
  height: 54px;
  right: 34px;
  top: 78px;
  background: #ffb08c;
  border-radius: 14px;
  transform: rotate(32deg);
}

.mascot-leg {
  width: 18px;
  height: 44px;
  top: 118px;
  background: #ff5939;
  border-radius: 12px;
}

.leg-left {
  left: 36px;
}

.leg-right {
  left: 66px;
}

.mascot-leg::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -6px;
  width: 30px;
  height: 14px;
  background: #ffffff;
  border: 2px solid #ececec;
  border-radius: 12px;
}

.magnifier-ring {
  width: 88px;
  height: 88px;
  top: -2px;
  right: -6px;
  border: 10px solid rgba(0, 0, 0, 0.26);
  border-radius: 50%;
}

.magnifier-handle {
  position: absolute;
  width: 66px;
  height: 14px;
  right: 8px;
  top: 72px;
  background: rgba(0, 0, 0, 0.26);
  border-radius: 999px;
  transform: rotate(48deg);
  transform-origin: left center;
}

.parcel-stack {
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 116px;
  height: 146px;
}

.parcel-box {
  left: 0;
  width: 92px;
  height: 58px;
  padding-top: 18px;
  background: #eed5bc;
  color: var(--accent);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 2px;
}

.box-top {
  top: 0;
  left: 16px;
}

.box-bottom {
  top: 62px;
}

.search-panel {
  min-height: 540px;
  padding: 0;
  background: var(--surface);
  border-top: 1px solid #ececec;
}

.search-panel-content {
  padding: 26px 24px 8px;
  background: var(--surface);
}

.search-panel-image {
  width: 100%;
  min-height: 430px;
  background-image: url('/css/hero_footer_section.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  background-color: var(--surface);
}

.site-footer {
  width: min(1360px, 100%);
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f7f7;
  border-top: 1px solid #ececec;
  overflow: hidden;
}

.footer-copyright {
  display: flex;
  align-items: center;
  flex: 0 0 390px;
  align-self: stretch;
  padding: 0 18px;
  background: var(--accent);
  color: var(--surface);
  font-size: 0.9rem;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 14px;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.footer-badges::-webkit-scrollbar {
  display: none;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: #ffffff;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-badge.blue {
  color: #1f4fa6;
}

.footer-badge.gold {
  color: #a27b21;
}

.footer-badge.red {
  color: #d33;
}

.footer-badge.silver {
  color: #8b8b8b;
}

.footer-badge.sky {
  color: #4b8dd9;
}

.footer-badge.navy {
  color: #263b78;
}

.footer-badge.violet {
  color: #5d4b84;
}

.tab-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.tab-button {
  min-width: 150px;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid #ececec;
  background: #ededed;
  color: #323232;
  font-size: 0.95rem;
}

.tab-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}

.search-form {
  width: min(820px, calc(100% - 24px));
  margin: 48px auto 0;
  text-align: center;
}

.search-input-row {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-left: 16px;
  background: var(--surface);
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.search-input-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  color: var(--muted-dark);
  font-size: 0.95rem;
  outline: none;
}

.search-input-row input::placeholder {
  color: #8e8e8e;
}

.clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #777777;
}

.clear-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.search-button,
.info-button,
.chat-button {
  background: var(--accent);
  color: var(--surface);
}

.search-button {
  min-width: 88px;
  min-height: 42px;
  margin-top: 10px;
  border-radius: 4px;
  font-size: 0.95rem;
}

.result-card {
  width: min(860px, calc(100% - 24px));
  margin: 44px auto 0;
  padding: 24px;
  background: var(--surface-soft);
  border: 1px solid #ededed;
  border-radius: 18px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.result-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-header h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffe8e6;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.result-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid #ececec;
  border-radius: 12px;
}

.result-item span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.result-item strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1rem;
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}

.result-footer p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.65;
}

.info-button {
  flex: 0 0 auto;
  min-width: 190px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
}

.delivery-stage {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.mini-truck {
  position: relative;
  width: 172px;
  height: 108px;
}

.truck-cabin,
.truck-box {
  position: absolute;
  bottom: 18px;
  background: var(--accent);
}

.truck-cabin {
  left: 18px;
  width: 46px;
  height: 34px;
  border-radius: 8px 4px 4px 8px;
}

.truck-box {
  left: 56px;
  width: 64px;
  height: 48px;
  border-radius: 6px;
}

.truck-box::before {
  content: "J&T";
  position: absolute;
  top: 14px;
  left: 12px;
  color: var(--surface);
  font-size: 0.88rem;
  font-weight: 800;
}

.wheel {
  bottom: 6px;
  width: 24px;
  height: 24px;
  background: #292929;
  border-radius: 50%;
}

.wheel-left {
  left: 30px;
}

.wheel-right {
  left: 92px;
}

.signal {
  left: 68px;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
}

.signal-one {
  top: 0;
  width: 30px;
  height: 18px;
}

.signal-two {
  top: 10px;
  width: 50px;
  height: 26px;
  left: 58px;
}

.signal-three {
  top: 22px;
  width: 70px;
  height: 34px;
  left: 48px;
}

.chat-widget {
  position: fixed;
  right: 34px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.chat-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd8c2 0%, #ff855d 100%);
  color: var(--surface);
  font-weight: 800;
}

.chat-button {
  width: 90px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.05;
}

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

@media (max-width: 1080px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-mark {
    padding-left: 0;
  }

  .main-nav {
    justify-content: center;
    flex-basis: 100%;
    order: 3;
    padding: 0 12px 10px;
  }

  .account-panel {
    clip-path: none;
    border-radius: 0 0 10px 10px;
  }

  .hero-banner-image {
    background-position: center;
  }

  .footer-copyright {
    flex-basis: 330px;
  }

  .footer-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    gap: 10px;
    padding: 0 12px 12px;
  }

  .brand-jt {
    font-size: 1.65rem;
  }

  .brand-express,
  .nav-button,
  .account-button,
  .language-button {
    font-size: 0.88rem;
  }

  .account-panel {
    width: 100%;
    justify-content: center;
    padding: 0 16px;
  }

  .hero-banner {
    min-height: auto;
    padding: 0;
  }

  .hero-banner-image {
    width: 100%;
    min-height: 122px;
    background-size: cover;
  }

  .search-panel {
    min-height: auto;
  }

  .search-panel-content {
    padding: 24px 16px 6px;
  }

  .search-panel-image {
    min-height: 320px;
    background-position: top center;
    background-size: contain;
  }

  .site-footer {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }

  .footer-copyright {
    flex-basis: auto;
    min-height: 48px;
    clip-path: none;
    justify-content: center;
    text-align: center;
  }

  .footer-badges {
    padding: 12px 14px;
    justify-content: flex-start;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
  }
}
