/* ============================================================
   Sunrise Packaging — Global Stylesheet
   B2B packaging manufacturer site | SEO-ready | Responsive
   ============================================================ */

:root {
  --primary: #14663d;
  --primary-dark: #0d4d2d;
  --accent: #e8892a;
  --accent-dark: #cf7517;
  --kraft: #a97744;
  --ink: #1e2a23;
  --muted: #5c6b62;
  --bg: #ffffff;
  --bg-alt: #f7f4ee;
  --bg-dark: #12332a;
  --border: #e6e0d4;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(30, 42, 35, 0.06);
  --shadow-md: 0 10px 30px rgba(30, 42, 35, 0.10);
  --shadow-lg: 0 20px 50px rgba(30, 42, 35, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 2px solid transparent; transition: all .2s ease;
  text-decoration: none; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: #f1f1f1; color: var(--primary-dark); }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--bg-dark); color: #cfe3d8;
  font-size: 13px; padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #eaf5ef; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; }
.topbar svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.topbar .lang-sep { color: rgba(234, 245, 239, 0.45); margin: 0 2px; }
.topbar .lang-sw {
  font-weight: 600; color: #fff; text-decoration: none;
  border: 1px solid rgba(234, 245, 239, 0.4); border-radius: 999px;
  padding: 1px 10px; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.topbar .lang-sw:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo .logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--kraft));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px;
}
.logo .logo-img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.footer-brand .logo-img { background: #fff; border-radius: 10px; padding: 4px; }
.logo small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link {
  padding: 10px 14px; color: var(--ink); font-weight: 600; font-size: 15px;
  border-radius: 8px; transition: background .15s;
}
.main-nav a.nav-link:hover { background: var(--bg-alt); color: var(--primary); }
.main-nav a.nav-link.active { color: var(--primary); }
.nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #f4f0e8 0%, #efe9dc 55%, #e8f0ea 100%);
  padding: 0; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px;
  align-items: center; padding: 64px 0 0;
}
.hero-content { padding-bottom: 64px; }
.hero .eyebrow { color: var(--kraft); }
.hero h1 { margin: 12px 0 18px; }
.hero h1 .hl { color: var(--primary); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-img { position: relative; align-self: stretch; display: flex; align-items: flex-end; }
.hero-img img { border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }

/* ---------- Hero video ---------- */
.hero-img .hero-video {
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  display: block;
  background: #eef2ef;
}
.hero-sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 51, 42, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  backdrop-filter: blur(4px);
}
.hero-sound svg { width: 17px; height: 17px; fill: #fff; flex: none; }
.hero-sound:hover { background: rgba(13, 77, 45, 0.92); }
.hero-sound.on { background: var(--accent); }
.hero-sound.on:hover { background: var(--accent-dark); }
.trust-badges { display: flex; gap: 26px; flex-wrap: wrap; }
.trust-badges .tb { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.trust-badges .tb svg { width: 26px; height: 26px; fill: var(--primary); flex: none; }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.section-head p.lead { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* ---------- Product cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Case / workshop gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-md);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gallery-grid figcaption { padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.gallery-note { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }

/* ---------- Business license card ---------- */
.license-card {
  display: flex; gap: 28px; align-items: center; text-align: left;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 24px; margin-top: 36px;
}
.license-card img { width: 380px; max-width: 42%; border-radius: calc(var(--radius) - 4px); flex: none; }
.license-card h3 { margin: 0 0 10px; }
.license-card p { margin: 0 0 10px; color: var(--muted); }
.license-card .license-note { font-size: 13.5px; margin-bottom: 0; }
@media (max-width: 860px) {
  .license-card { flex-direction: column; }
  .license-card img { width: 100%; max-width: 100%; }
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-grid > :last-child:nth-child(3n + 1) { grid-column: 2; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card .card-img { aspect-ratio: 1 / 1; overflow: hidden; background: #f2eee6; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card .card-body { padding: 20px 22px 24px; }
.card .card-body h3 { margin-bottom: 8px; }
.card .card-body h3 a { color: var(--ink); }
.card .card-body h3 a:hover { color: var(--primary); }
.card .card-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.card .link-more { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.card .link-more::after { content: "\2192"; transition: transform .2s; }
.card .link-more:hover::after { transform: translateX(4px); }

/* ---------- Feature cards ---------- */
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.feature-card .fi {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, #e9f3ec, #f6ead9);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card .fi svg { width: 26px; height: 26px; fill: var(--primary); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 16px; text-align: center; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 15px;
  margin-bottom: 12px;
}
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--bg-dark); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #ffd9a8; letter-spacing: -0.02em; }
.stat .num sup { font-size: 0.5em; color: var(--accent); }
.stat .lbl { color: #bcd6c9; font-size: 14px; font-weight: 600; margin-top: 4px; }

/* ---------- Certifications ---------- */
.cert-strip { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 50px;
  padding: 12px 22px; font-weight: 700; font-size: 14.5px; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.cert-badge svg { width: 20px; height: 20px; fill: var(--primary); }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote-card .stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.quote-card blockquote { font-size: 15px; color: var(--ink); margin-bottom: 18px; flex: 1; }
.quote-card .who { font-size: 14px; color: var(--muted); }
.quote-card .who strong { color: var(--ink); display: block; font-size: 14.5px; }

/* ---------- Blog cards ---------- */
.blog-card { display: flex; flex-direction: column; }
.blog-card .meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.blog-card .meta span + span::before { content: " \2022 "; margin: 0 6px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  padding: 18px 24px; font-weight: 600; font-size: 16px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--primary);
  flex: none; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 20px; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: var(--radius); padding: 56px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #d8ecdf; max-width: 560px; margin: 0 auto 28px; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { padding: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: #b8b0a2; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--bg-alt); padding: 34px 0 46px; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin: 10px 0 12px; font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.page-hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 760px; }

/* ---------- Product detail ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.product-layout .p-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); position: sticky; top: 96px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0 22px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.tag { background: #eef4f0; color: var(--primary); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 50px; border: 1px solid #d8e6dd; }

.check-list { list-style: none; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink); font-size: 15px; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.form-group label .req { color: #c0392b; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 102, 61, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions .btn { width: 100%; justify-content: center; }
.form-success {
  display: none; background: #eaf6ee; border: 1px solid #bfe3cb; color: var(--primary-dark);
  border-radius: 10px; padding: 14px 18px; font-size: 14.5px; margin-top: 16px;
}

/* ---------- Contact info cards ---------- */
.contact-info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-sm);
}
.contact-info-card .fi {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #e9f3ec, #f6ead9);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-card .fi svg { width: 22px; height: 22px; fill: var(--primary); }
.contact-info-card h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-card p { font-size: 14.5px; color: var(--muted); }
.contact-info-card a { font-weight: 600; }

/* ---------- Article (blog) ---------- */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-wrap h2 { margin: 40px 0 14px; font-size: 1.55rem; }
.article-wrap h3 { margin: 28px 0 10px; font-size: 1.2rem; }
.article-wrap p, .article-wrap li { color: #37443c; font-size: 16px; }
.article-wrap ul, .article-wrap ol { padding-left: 22px; margin: 12px 0 18px; }
.article-wrap li { margin-bottom: 8px; }
.article-wrap .meta { font-size: 14px; color: var(--muted); margin: 12px 0 26px; }
.article-hero-img { border-radius: var(--radius); overflow: hidden; margin: 24px 0; box-shadow: var(--shadow-md); }
.callout {
  background: #f2f7f4; border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 24px 0; font-size: 15px;
}

/* ---------- Related products ---------- */
.related-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #b9d2c5; padding: 60px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 0.02em; }
.site-footer a { color: #b9d2c5; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 300px; line-height: 1.7; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; fill: #8fbf9f; flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8fae9c; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal on scroll (progressive enhancement) ----------
   Hidden state is only applied via JS (.armed) so content stays
   visible if scripts are blocked or fail to load. */
.reveal.armed { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.armed.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal.armed { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .gallery-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-content { padding-bottom: 0; }
  .hero-img { max-width: 620px; margin: 0 auto; }
  .product-layout { grid-template-columns: 1fr; }
  .product-layout .p-img { position: static; }
}

@media (max-width: 768px) {
  .product-grid > :last-child:nth-child(3n + 1) { grid-column: auto; }
  section { padding: 52px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px 22px 22px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 13px 10px; font-size: 16px; border-bottom: 1px solid #f0ece3; }
  .nav-cta { margin: 14px 0 0; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 42px 26px; }
  .topbar .tb-item { margin-right: 10px; }
}

@media (max-width: 480px) {
  .form-actions { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid-4 { grid-template-columns: 1fr; }
  .related-strip { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
