/* ===== Tokens & reset ===== */
:root {
  --accent: #0197da;
  --ink: #000000;
  --muted: #757779;
  --muted-2: #5c5f60;
  --line: rgba(0, 0, 0, 0.2);
  --line-soft: rgba(0, 0, 0, 0.1);
  --card-bg: #f0f1f3;
  --footer-bg: #00344e;
  --shadow-card: 0 4px 4px rgba(0, 0, 0, 0.25);
  --shadow-inner: 1px 1px 4px -1px rgba(0, 0, 0, 0.25);
  --hero-grad: linear-gradient(to right, #e6f2ff, #ffeed8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 48px 0; }

.section-title {
  font-size: 25px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { height: 40px; width: auto; object-fit: contain; }
.tagline {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

/* ===== Hero ===== */
.hero {
  background: var(--hero-grad);
  padding: 96px 0 120px;
}
.hero-inner { text-align: center; }
.hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: var(--muted);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 16px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  width: 100%;
  margin: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 15px;
  width: max-content;
  animation: marquee var(--duration, 40s) linear infinite;
}
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

/* ===== Category card ===== */
.cat-card {
  flex: 0 0 auto;
  width: 130px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 11px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.cat-icon-box {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-inner);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon-box img { width: 35px; height: 35px; }
.cat-label {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  text-align: center;
}

/* ===== Why choose us ===== */
.why { background: var(--hero-grad); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  text-align: center;
}
.why-icon { width: 30px; height: 30px; margin: 0 auto 14px; }
.why-card h3 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.why-card p { font-size: 12px; color: var(--muted-2); }

/* ===== Testimonials ===== */
.testi-card {
  flex: 0 0 auto;
  width: 280px;
  min-height: 130px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 24px;
  display: flex;
  flex-direction: column;
}
.testi-stars { font-size: 15px; letter-spacing: 1px; }
.testi-text {
  font-size: 12px;
  color: var(--muted-2);
  margin: 12px 0 auto;
}
.testi-author { margin-top: 14px; }
.testi-name { font-size: 12px; display: block; }
.testi-role { font-size: 10px; color: var(--muted-2); }

/* ===== Products ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-thumb {
  height: 102px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  background: #9e9e9e;
  margin-bottom: 14px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-name { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.product-price { font-size: 12px; font-weight: 700; color: var(--accent); }

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 35px 0;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
}
.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 40px; }
.contact { display: flex; align-items: center; gap: 10px; }
.contact img { width: 24px; height: 24px; }
.contact div { display: flex; flex-direction: column; }
.contact-label { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.contact-value { font-size: 13px; color: #fff; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0 0 20px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 0 80px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .section-title { font-size: 21px; }
  .footer-contacts { gap: 20px; }
}
@media (max-width: 520px) {
  .why-grid, .product-grid { grid-template-columns: 1fr; }
  .tagline { display: none; }
}
