:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --ink: #15231c;
  --muted: #5d6b63;
  --line: #d7e0da;
  --accent: #0f6b4c;
  --accent-dark: #0a4a35;
  --warm: #c4a35a;
  --shadow: 0 10px 30px rgba(21, 35, 28, 0.08);
  --radius: 14px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 107, 76, 0.08), transparent 32%),
    linear-gradient(180deg, #eef5f1 0%, var(--bg) 40%, #e8efe9 100%);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(480px, calc(100% - 32px)); }
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(244, 247, 245, 0.92);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}
.brand {
  font-weight: 800; font-size: 1.25rem; letter-spacing: 0.04em;
  color: var(--ink); text-transform: uppercase;
}
.nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; align-items: center; }
.nav > a, .nav-drop > a { color: var(--muted); font-weight: 600; }
.nav > a:hover, .nav-drop > a:hover { color: var(--accent); text-decoration: none; }
.nav-drop { position: relative; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; z-index: 50;
}
.nav-drop:hover .nav-drop-menu { display: grid; }
.nav-drop-menu a {
  color: var(--ink); padding: 8px 10px; border-radius: 8px; font-weight: 600;
}
.nav-drop-menu a:hover { background: #eef5f1; color: var(--accent); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 999px;
  padding: 0.7rem 1.15rem; font-weight: 700; cursor: pointer;
  text-decoration: none;
}
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.9rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.hero {
  padding: 72px 0 48px;
  background:
    linear-gradient(120deg, rgba(15, 107, 76, 0.92), rgba(10, 74, 53, 0.75)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60L60 0H30L0 30z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
  color: #fff;
}
.hero-inner { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.85; font-size: 0.85rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0.2em 0; line-height: 1.05; }
.lead { font-size: 1.15rem; line-height: 1.6; opacity: 0.92; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; list-style: none; padding: 0; margin: 36px 0 0;
}
.hero-stats li {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); padding: 14px 16px;
}
.hero-stats strong { display: block; font-size: 1.4rem; }
.hero-stats span { opacity: 0.8; font-size: 0.9rem; }

.stats-band {
  background: #10241b; color: #e8f3ec; padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.home-banners {
  position: relative; background: #0a2a1c; overflow: hidden;
  max-height: min(52vh, 480px);
}
.banner-slide {
  display: block; position: relative; color: #fff; text-decoration: none;
}
.banner-slide img {
  width: 100%; height: min(52vh, 480px); object-fit: cover; display: block;
}
.banner-caption {
  position: absolute; left: 24px; bottom: 24px;
  background: rgba(10, 36, 28, 0.72); padding: 10px 14px; border-radius: 10px;
  font-weight: 700;
}
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.banner-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.45);
}
.banner-dots button.is-active { background: #fff; }
.settings-toggles {
  display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 8px 0 16px;
}
.price-estimate {
  margin: 10px 0 4px; font-size: 1.25rem; font-weight: 700; color: #0f6b4c;
}
.price-estimate-note {
  margin: 0 0 14px; font-size: 0.85rem; color: var(--muted);
}
.price-estimate-card {
  margin: 6px 0 10px; font-size: 0.95rem; font-weight: 700; color: #0f6b4c;
}
.video-preview, .product-video {
  margin: 12px 0 16px; max-width: 720px;
}
.video-preview video, .product-video video,
.video-preview iframe, .product-video iframe {
  width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px;
  background: #0a2a1c; display: block;
}
.stats-band-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.stats-band-grid div, .about-stats div { text-align: center; padding: 8px 6px; }
.stats-band-grid strong, .about-stats strong {
  display: block; font-size: 1.55rem; color: #fff; margin-bottom: 6px;
}
.stats-band-grid span, .about-stats span {
  font-size: 0.88rem; opacity: 0.82; line-height: 1.35;
}
.about-stats {
  margin: 28px 0; padding: 18px 12px;
  background: #eef5f1; border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.about-stats strong { color: var(--ink); }

.section-lead { max-width: 720px; margin: 0 0 20px; line-height: 1.65; }
.lead-sm { font-size: 1.15rem; font-weight: 600; color: var(--ink); }

.about-home {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start;
}
.about-home-copy p { line-height: 1.7; }

.cert-list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.cert-list li {
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.92rem;
}

.case-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.case-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.case-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.case-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.section { padding: 56px 0; }
.section-alt { background: rgba(255,255,255,0.55); }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 12px; margin-bottom: 24px;
}
.section-head h2, .page-hero h1 { margin: 0; }
.page-hero { padding: 40px 0 10px; }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.thumb, .thumb-placeholder {
  aspect-ratio: 1; background: #e7eee9; display: grid; place-items: center;
  overflow: hidden;
}
.thumb img, .main-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-placeholder { color: var(--muted); font-weight: 700; }
.thumb-placeholder.large { min-height: 360px; }
.product-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.product-card h3 a { color: var(--ink); }
.sku, .muted { color: var(--muted); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.cat-grid, .process-grid, .trust-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.cat-card, .process-card, .trust-list > div {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.cat-card { color: inherit; }
.cat-card:hover { border-color: var(--accent); text-decoration: none; }
.cat-card span, .process-card p, .trust-list span { color: var(--muted); display: block; margin-top: 6px; }
.process-card span {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700;
}
.about-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.product-detail { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; }
.gallery .main-img { border-radius: var(--radius); aspect-ratio: 1; background: #fff; border: 1px solid var(--line); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs button { border: 1px solid var(--line); padding: 0; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.quick-specs { padding-left: 18px; color: var(--muted); }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.product-prose h2 { font-size: 1.35rem; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 0.35em; }
.product-prose h3 { font-size: 1.1rem; }
.product-prose ul { padding-left: 1.2em; margin: 0.6em 0 1.1em; }
.product-prose li { margin: 0.25em 0; }
.product-prose p { line-height: 1.7; }
.quick-specs { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 6px; }
.quick-specs li { padding: 8px 12px; background: #eef5f1; border-radius: 8px; font-size: 0.95rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.spec-table th { background: #eef5f1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.inquiry-form, .card-form { display: grid; gap: 12px; }
.inquiry-form label { display: grid; gap: 6px; font-weight: 600; }
.inquiry-form input, .inquiry-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.9rem;
  font: inherit; background: #fff;
}
.card-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.footer { margin-top: 40px; padding: 40px 0 24px; background: #10241b; color: #d7e7de; }
.footer a { color: #b7d8c7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 24px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); opacity: 0.75; font-size: 0.9rem; }
.float-quote {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  border: 0; border-radius: 999px; padding: 0.9rem 1.2rem;
  background: var(--warm); color: #1b1406; font-weight: 800; cursor: pointer;
  box-shadow: var(--shadow);
}
.float-admin-edit {
  position: fixed; right: 18px; bottom: 78px; z-index: 50;
  border-radius: 999px; padding: 0.75rem 1.1rem;
  background: #10241b; color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow);
}
.float-admin-edit:hover { color: #fff; opacity: 0.92; }
.img-manager {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.img-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 16px;
}
.img-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  background: #fff; display: grid; gap: 8px;
}
.img-card.is-main { border-color: #1f7a4c; box-shadow: 0 0 0 2px rgba(31,122,76,0.15); }
.img-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #eef5f1;
}
.img-card-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.img-badge {
  font-size: 0.75rem; font-weight: 800; color: #0f6b4c;
  background: #e5f6ec; padding: 4px 8px; border-radius: 999px;
}
.img-path {
  font-size: 0.7rem; color: var(--muted); word-break: break-all;
  background: #f4f7f5; padding: 4px 6px; border-radius: 6px;
}
.img-upload-form { display: grid; gap: 10px; }
.img-upload-label { display: grid; gap: 6px; font-weight: 600; }
.img-check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 20, 16, 0.55);
  display: grid; place-items: center; padding: 16px;
}
.modal-card {
  width: min(460px, 100%); background: #fff; border-radius: 18px;
  padding: 22px; position: relative; box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; right: 12px; top: 8px; border: 0; background: transparent;
  font-size: 1.6rem; cursor: pointer; color: var(--muted);
}
.flashes { padding-top: 12px; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 8px; }
.flash-ok { background: #e5f6ec; color: #0f6b4c; }
.flash-error, .flash-err { background: #fdeceb; color: #9b1c1c; }
.search-bar { display: flex; gap: 10px; margin-top: 16px; }
.search-bar input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 0.8rem 1rem; }
.pager { display: flex; gap: 16px; justify-content: center; margin-top: 28px; align-items: center; }
.table-wrap { overflow: auto; }
.code-box { background: #10241b; color: #d7e7de; padding: 12px; border-radius: 10px; min-height: 48px; }
.admin-edit label { display: grid; gap: 6px; font-weight: 600; }
.admin-edit input, .admin-edit textarea, .admin-edit select {
  border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.9rem;
  font: inherit; background: #fff; width: 100%; box-sizing: border-box;
}
.admin-edit textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; }
.admin-edit-row { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.flash-list { list-style: none; padding: 0; margin: 0 0 16px; }
@media (max-width: 860px) {
  .nav { display: none; }
  .admin-edit-row { grid-template-columns: 1fr; }
  .hero-stats, .about-teaser, .about-home, .product-detail, .contact-grid, .footer-grid,
  .stats-band-grid, .about-stats, .case-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats-band-grid, .about-stats, .case-grid, .hero-stats { grid-template-columns: 1fr; }
}
