:root {
  --ink: #111317;
  --muted: #646b76;
  --line: #e4e7e1;
  --paper: #f8faf5;
  --panel: #ffffff;
  --accent: #0f8f58;
  --accent-dark: #087044;
  --green-soft: #eaf7ee;
  --blue: #315d9a;
  --coral: #c95f4b;
  --hero-lifestyle-image: url("assets/panda-urban-hero.png");
  --shadow: 0 18px 45px rgba(18, 22, 28, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, rgba(3, 8, 6, 0.82), rgba(3, 8, 6, 0.34));
  backdrop-filter: blur(20px);
}

.brand,
.nav-links a,
.admin-link {
  color: #fff;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-logo {
  width: 50px;
  height: 40px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 143, 88, 0.16);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.language-select {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  min-height: 100vh;
  padding: clamp(118px, 11vw, 156px) clamp(18px, 5vw, 72px) clamp(44px, 6vw, 74px);
  color: #fff;
  background-image:
    radial-gradient(circle at 72% 36%, rgba(16, 151, 93, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(2, 7, 5, 0.95) 0%, rgba(4, 13, 9, 0.78) 34%, rgba(4, 12, 9, 0.38) 68%, rgba(4, 12, 9, 0.58) 100%),
    var(--hero-lifestyle-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  opacity: 0.42;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(0deg, rgba(3, 8, 6, 0.9), transparent);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.15;
}

.hero-text {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.social-button,
.primary-button,
.product-card button,
.floating-whatsapp {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.social-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #17a865, #0b7b4c);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.social-button.instagram {
  background: linear-gradient(135deg, #b72e74, #f06a3b);
}

.social-button.telegram {
  background: linear-gradient(135deg, #235e9f, #204a7d);
}

.social-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
}

.social-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.social-button span:last-child,
.floating-whatsapp span:last-child {
  display: grid;
  gap: 2px;
  text-align: left;
}

.social-button small,
.floating-whatsapp small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(7, 14, 11, 0.5);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.trust-row span::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 143, 88, 0.16);
}

.hero-media {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.brand-proof-card {
  justify-self: end;
  width: min(100%, 320px);
  padding: 22px;
  border: 1px solid rgba(32, 210, 126, 0.34);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, rgba(4, 14, 10, 0.82), rgba(4, 12, 9, 0.66));
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.proof-logo {
  display: block;
  width: 86px;
  height: 66px;
  margin-bottom: 14px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 28px rgba(12, 144, 85, 0.2);
}

.brand-proof-card > strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand-proof-card > span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.proof-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.proof-numbers div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-numbers strong {
  display: block;
  color: #43d684;
  font-size: 25px;
}

.proof-numbers span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
}

.hero-gallery {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 132px));
  gap: 12px;
}

.hero-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.promo-video-card,
.promo-image-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: var(--hero-video-max-width, 100%);
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #07110b;
  box-shadow: var(--shadow);
}

.promo-video-card video,
.promo-image-card > img {
  display: block;
  width: 100%;
  aspect-ratio: var(--hero-video-aspect-ratio, 16 / 9);
  object-fit: var(--hero-video-object-fit, cover);
}

.video-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 13px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.video-label img {
  width: 42px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.stats div {
  position: relative;
  min-height: 116px;
  padding: 26px clamp(18px, 3vw, 42px) 24px 74px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.stats div::before {
  content: "";
  position: absolute;
  top: 31px;
  left: clamp(20px, 3vw, 34px);
  width: 30px;
  height: 30px;
  border: 1px solid rgba(15, 143, 88, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 143, 88, 0.12), rgba(15, 143, 88, 0)),
    #f7fbf8;
  box-shadow: inset 0 0 0 7px #fff;
}

.stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(20px, 2vw, 26px);
}

.stats span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.section {
  padding: clamp(58px, 9vw, 110px) clamp(18px, 5vw, 72px);
}

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

.company-section {
  background: #fff;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 24px;
}

.company-body {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
}

.company-points {
  display: grid;
  gap: 12px;
}

.point-item {
  min-height: 58px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-soft);
  font-weight: 900;
}

.warehouse-grid,
.shipping-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.warehouse-grid {
  grid-template-columns: repeat(3, minmax(180px, 280px));
  justify-content: start;
  gap: 16px;
}

.shipping-grid {
  grid-template-columns: repeat(3, minmax(180px, 260px));
  justify-content: start;
  gap: 16px;
}

.media-card,
.video-card,
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(18, 22, 28, 0.06);
}

.media-card img,
.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}

.media-card img {
  aspect-ratio: 1 / 1;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #07110b;
}

.media-card div,
.video-card div,
.product-body {
  padding: 18px;
}

.media-card div,
.video-card div {
  padding: 12px 14px 14px;
}

.media-card strong,
.video-card strong {
  display: block;
  margin-bottom: 6px;
}

.media-card span,
.video-card span,
.product-body p,
.footer,
.contact-band p {
  color: var(--muted);
}

.shipping-section {
  background: #f2f5f0;
}

.product-card img {
  object-fit: contain;
}

.product-card button,
.primary-button {
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
}

.product-card button {
  width: 100%;
  margin-top: 10px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 30px;
  align-items: center;
  padding: clamp(46px, 8vw, 88px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}

.contact-band .eyebrow {
  color: #94e3bd;
}

.contact-band h2 {
  margin-bottom: 12px;
}

.contact-actions {
  justify-content: end;
  margin: 0;
}

.floating-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
}

.floating-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 228px;
  min-height: 76px;
  padding: 12px 18px 12px 14px;
  border: 3px solid #eafff3;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #10a967, #087044);
  box-shadow: 0 18px 42px rgba(15, 143, 88, 0.38);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (hover: hover) {
  button,
  a,
  .product-card,
  .media-card,
  .video-card {
    transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease;
  }

  button:hover,
  .product-card:hover,
  .media-card:hover,
  .video-card:hover {
    transform: translateY(-2px);
  }

  .nav-links a:hover,
  .admin-link:hover {
    color: var(--accent-dark);
  }
}

@media (max-width: 980px) {
  .hero,
  .company-layout,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .warehouse-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .shipping-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .video-card {
    scroll-snap-align: start;
  }

  .media-card {
    scroll-snap-align: start;
  }

  .contact-actions {
    justify-content: start;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 62px;
  }

  .nav-links {
    display: none;
  }

  .language-select {
    max-width: 92px;
  }

  .admin-link {
    min-height: 34px;
    padding: 0 10px;
  }

  h1 {
    font-size: var(--mobile-hero-title-size, 44px);
  }

  h2 {
    font-size: var(--mobile-section-title-size, 30px);
  }

  .hero,
  .section,
  .contact-band {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    padding-top: var(--mobile-section-padding, 44px);
    padding-bottom: var(--mobile-section-padding, 44px);
  }

  .section {
    padding-top: var(--mobile-section-padding, 44px);
    padding-bottom: var(--mobile-section-padding, 44px);
  }

  .social-actions,
  .social-button,
  .primary-button {
    width: 100%;
  }

  .social-button {
    justify-content: flex-start;
  }

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

  .warehouse-grid {
    grid-template-columns: repeat(3, var(--mobile-warehouse-card-width, 190px));
    gap: var(--mobile-card-gap, 14px);
  }

  .shipping-grid {
    grid-template-columns: repeat(3, var(--mobile-shipping-card-width, 180px));
    gap: var(--mobile-card-gap, 14px);
  }

  .media-card strong,
  .video-card strong {
    font-size: 15px;
    line-height: 1.15;
  }

  .media-card span,
  .video-card span {
    font-size: 13px;
    line-height: 1.25;
  }

  .section-heading,
  .footer {
    display: block;
  }

  .floating-panel {
    right: 14px;
    bottom: 12px;
    left: auto;
  }

  .floating-whatsapp {
    width: var(--mobile-floating-size, 72px);
    min-width: var(--mobile-floating-size, 72px);
    min-height: var(--mobile-floating-size, 72px);
    padding: 0;
    justify-content: center;
  }

  .floating-whatsapp span:last-child {
    display: none;
  }

  html[data-mobile-floating-mode="bar"] .floating-panel {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  html[data-mobile-floating-mode="bar"] .floating-whatsapp {
    width: 100%;
    min-width: 0;
    padding: 12px 18px 12px 14px;
  }

  html[data-mobile-floating-mode="bar"] .floating-whatsapp span:last-child {
    display: grid;
  }

  html[data-mobile-floating-mode="hidden"] .floating-panel {
    display: none;
  }
}
