/* ==========================================================================
   Neeraj Traders - public site stylesheet
   Self-contained (no CDN) so the site works on a locked-down server.
   ========================================================================== */

:root {
  --green-950: #0f2718;
  --green-900: #14311f;
  --green-800: #1a4529;
  --green-700: #1f5c35;
  --green-600: #2a7a45;
  --green-500: #35945a;
  --green-100: #e8f2ea;
  --green-50: #f3f8f4;
  --amber-600: #a9741f;
  --amber-500: #c8963e;
  --amber-100: #fbf1dd;
  --ink: #1c2b22;
  --body: #3d4c43;
  --muted: #6b7c72;
  --line: #e0e8e2;
  --line-strong: #cbd9ce;
  --bg: #f7faf7;
  --white: #ffffff;
  --danger: #b3261e;
  --danger-bg: #fdeceb;
  --warn: #8a6100;
  --warn-bg: #fdf5e2;
  --ok: #1f6f3f;
  --ok-bg: #e9f6ee;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 24, 0.06);
  --shadow: 0 6px 22px rgba(16, 40, 24, 0.08);
  --shadow-lg: 0 18px 45px rgba(16, 40, 24, 0.12);
  --wrap: 1200px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
/* The contact bar and the site header run edge to edge instead of sitting in the
   centred column: the logo and the menu stay at the far left, the search box and
   the quote button at the far right, however wide the screen is. The rest of the
   page keeps the centred column above. */
.topbar .wrap,
.site-header .wrap { max-width: none; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-700); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-600); color: #fff; box-shadow: var(--shadow); }
.btn-accent { background: var(--amber-500); color: #2b1d05; }
.btn-accent:hover { background: #d8a851; color: #2b1d05; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--green-800); }
.btn-outline:hover { border-color: var(--green-600); background: var(--green-50); color: var(--green-800); }
.btn-ghost-light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-whatsapp { background: #1eb955; color: #fff; }
.btn-whatsapp:hover { background: #23cc5e; color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------------------- trust strip */

.announcement {
  background: var(--green-900); color: #eaf4ec; font-size: .92rem;
  text-align: center; padding: 9px 20px;
}
.announcement a { color: #ffe6ad; text-decoration: underline; }

.topbar { background: var(--green-950); color: #cfe0d4; font-size: .86rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #e6f1e9; }
.topbar a:hover { color: #fff; }
.topbar-list { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.topbar-list li { display: flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------------- header */

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.35rem; color: var(--green-900); }
.brand-text span { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Sits directly beside the logo on the left; the auto margin on the right is
   what keeps the search box and quote button pinned to the far edge. */
.main-nav { margin-right: auto; }
/* Direct child only: a descendant selector here would also match the Products
   submenu and its `display: flex` would beat `.submenu { display: none }`. */
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 8px; font-weight: 500;
  color: var(--ink); white-space: nowrap;
}
.main-nav a:hover { background: var(--green-50); color: var(--green-800); }
.main-nav a.is-active { color: var(--green-700); font-weight: 600; }
.main-nav li.has-menu { position: relative; }
.has-menu > a::after { content: "▾"; font-size: .7em; margin-left: 6px; color: var(--muted); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0;
  display: none; max-height: 70vh; overflow: auto;
}
/* Opened by a click on the Products link (see public/js/main.js), so the same
   gesture works with a mouse, a finger and a keyboard. Without JavaScript the
   list stays closed and /products is still reachable from the link itself. */
.has-menu.is-open > .submenu { display: block; }
.has-menu.is-open > a { background: var(--green-50); color: var(--green-800); }
.submenu a { padding: 9px 12px; font-weight: 400; display: flex; justify-content: space-between; gap: 12px; }
.submenu .count { color: var(--muted); font-size: .82rem; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Search popover */
.search-panel { position: relative; }
.search-form { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: #fff; }
.search-form input { border: 0; padding: 10px 14px; font: inherit; width: 190px; background: transparent; }
.search-form input:focus { outline: none; }
.search-form button { border: 0; background: var(--green-700); color: #fff; padding: 10px 16px; cursor: pointer; font: inherit; font-weight: 600; }
.suggestions {
  position: absolute; top: calc(100% + 8px); right: 0; width: 320px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 70; display: none;
}
.suggestions.is-open { display: block; }
.suggestions a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--ink); }
.suggestions a:hover { background: var(--green-50); }
.suggestions img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--green-50); }
.suggestions .empty { padding: 10px 12px; color: var(--muted); font-size: .9rem; }

/* -------------------------------------------------------------------- hero */

.hero { position: relative; color: #fff; background: var(--green-900); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 34, 20, .92) 0%, rgba(12, 42, 25, .75) 45%, rgba(14, 46, 28, .35) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 92px 0 96px; max-width: 720px; }
.hero .eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: #ffe0a3; margin-bottom: 14px; font-weight: 600;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 16px; }
.hero .lede { font-size: clamp(1rem, 1.5vw, 1.2rem); color: #dbe9df; max-width: 60ch; margin-bottom: 22px; }
.hero .bullets { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero .bullets li { display: flex; align-items: center; gap: 8px; color: #e7f2ea; font-size: .95rem; }
.hero .bullets li::before { content: "✓"; color: #9fe0b3; font-weight: 700; }
.hero .btn-row { margin-bottom: 0; }

/* -------------------------------------------------------------- trust bar */

.trust { background: var(--green-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 22px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--green-700); line-height: 1; margin-bottom: 6px; }
.trust-item span { font-size: .92rem; color: var(--muted); }

/* ---------------------------------------------------------------- sections */

.section { padding: 72px 0; }
.section--tint { background: var(--bg); }
.section--tight { padding: 52px 0; }
.section-head { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.section-head.left { margin: 0 0 34px; text-align: left; }
.section-head .eyebrow { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-600); font-weight: 700; margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head .btn-row { margin-top: 22px; }

.section-foot { margin-top: 40px; text-align: center; }

/* ------------------------------------------------------------------- cards */

.grid { display: grid; gap: 24px; }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--green-50); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--green-700); }
.card-body .latin { font-style: italic; color: var(--muted); font-size: .86rem; margin: 0 0 10px; }
.card-body p { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.card-body .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-link { font-weight: 600; font-size: .92rem; }
.card-link::after { content: " →"; }

.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #fff; color: var(--green-800);
  box-shadow: var(--shadow-sm);
}
.badge--new { background: var(--amber-500); color: #33230a; }
.badge--soon { background: var(--green-100); color: var(--green-800); }
.badge--muted { background: #eef1ee; color: var(--muted); }

.category-card .card-body { text-align: center; align-items: center; }
.category-card .card-media { aspect-ratio: 3 / 2; }
.category-card .count { font-size: .85rem; color: var(--muted); }

/* Category strips on the homepage */
.strip { padding: 42px 0; border-top: 1px solid var(--line); }
.strip:first-of-type { border-top: 0; }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.strip-head h3 { margin: 0; font-size: 1.4rem; }
.strip-head .count { color: var(--muted); font-size: .9rem; }
.strip-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.strip-rail .card { scroll-snap-align: start; }

/* -------------------------------------------------------------- editorial */

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split h2 { margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700); font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--green-700); }
.stat span { font-size: .86rem; color: var(--muted); }

/* ------------------------------------------------------------------ CTA band */

.cta-band { background: var(--green-800); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(200, 150, 62, .18);
}
.cta-band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 52px; padding-bottom: 52px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #d6e7db; margin: 0; max-width: 62ch; }

/* -------------------------------------------------------------- page header */

.page-head { background: var(--green-50); border-bottom: 1px solid var(--line); padding: 40px 0; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); margin: 0; max-width: 70ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; font-size: .86rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.breadcrumbs a { color: var(--green-700); }

/* --------------------------------------------------------------- catalogue */

.catalogue { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters { position: sticky; top: 96px; display: grid; gap: 22px; }
.filter-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filter-block h3 { font-size: 1rem; margin-bottom: 12px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.filter-list a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--body); font-size: .94rem; }
.filter-list a:hover { background: var(--green-50); color: var(--green-800); }
.filter-list a.is-active { background: var(--green-100); color: var(--green-800); font-weight: 600; }
.filter-list .count { color: var(--muted); font-size: .85rem; }
.alpha { display: flex; flex-wrap: wrap; gap: 4px; }
.alpha a {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px; font-size: .84rem; color: var(--body);
}
.alpha a:hover { border-color: var(--green-600); color: var(--green-800); }
.alpha a.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.catalogue-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.catalogue-bar .result-count { color: var(--muted); font-size: .92rem; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-size: .9rem; color: var(--muted); }

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

/* --------------------------------------------------------------- pagination */

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 42px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--body); background: #fff;
}
.pagination a:hover { border-color: var(--green-600); color: var(--green-800); }
.pagination .is-current { background: var(--green-700); border-color: var(--green-700); color: #fff; font-weight: 600; }
.pagination .is-disabled { opacity: .45; }
.pagination .ellipsis { border: 0; background: transparent; }

/* ------------------------------------------------------------ product detail */

.product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.gallery { display: grid; gap: 14px; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--green-50); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 10px; overflow-x: auto; }
.gallery-thumbs button {
  border: 2px solid var(--line); border-radius: 10px; overflow: hidden; padding: 0;
  background: var(--green-50); cursor: pointer; aspect-ratio: 1;
}
.gallery-thumbs button.is-active { border-color: var(--green-600); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { margin-bottom: 6px; }
.product-info .latin { font-style: italic; color: var(--muted); margin-bottom: 16px; }
.product-info .lede { font-size: 1.02rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 500; background: var(--green-50); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.product-meta { font-size: .88rem; color: var(--muted); }

.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--green-50); }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose blockquote {
  margin: 1.5rem 0; padding: 16px 22px; border-left: 4px solid var(--green-500);
  background: var(--green-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}

/* ------------------------------------------------------------------- forms */

.form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; font-size: .84rem; color: var(--muted); margin-top: 4px; }
.field .req { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="date"], .field input[type="number"],
.field input[type="search"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green-500); outline: none; box-shadow: 0 0 0 3px rgba(53, 148, 90, .15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .error { display: block; color: var(--danger); font-size: .86rem; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.checkbox input { margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 14px; }

.contact-aside { display: grid; gap: 18px; }
.info-card { background: var(--green-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.info-card p { margin: 0 0 10px; font-size: .94rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card a { color: var(--green-700); }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .94rem; }
.info-list li { display: flex; gap: 10px; }
.info-list .k { color: var(--muted); min-width: 84px; }

/* ---------------------------------------------------------------- gallery page */

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--green-50); aspect-ratio: 1; border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 10px 12px; font-size: .84rem;
  color: #fff; background: linear-gradient(transparent, rgba(10, 30, 18, .82));
}
.album-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.album-tabs a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--body); background: #fff; }
.album-tabs a:hover { border-color: var(--green-600); color: var(--green-800); }
.album-tabs a.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ------------------------------------------------------------ certificates */

.certificate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.certificate { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.certificate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--green-50); }
.certificate .body { padding: 18px; }
.certificate h3 { font-size: 1.05rem; margin-bottom: 8px; }
.certificate dl { margin: 0; font-size: .9rem; color: var(--muted); }
.certificate dl div { display: flex; gap: 8px; }
.certificate dt { min-width: 92px; }
.certificate dd { margin: 0; color: var(--body); }

/* ------------------------------------------------------------------ notices */

.flash-stack { display: grid; gap: 10px; margin: 18px 0; }
.flash {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff; font-size: .94rem;
}
.flash--success { background: var(--ok-bg); border-color: #bfe3cd; color: #14532d; }
.flash--error { background: var(--danger-bg); border-color: #f3c6c2; color: #7f1d1a; }
.flash--warning { background: var(--warn-bg); border-color: #efdcaa; color: #6b4b00; }
.flash--info { background: #eaf2fb; border-color: #c6dcf3; color: #17416b; }
.flash strong { display: block; }

.empty-state { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--bg); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }

.thank-you { max-width: 660px; margin: 0 auto; text-align: center; }
.thank-you .tick {
  width: 78px; height: 78px; border-radius: 50%; background: var(--green-100); color: var(--green-700);
  font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}

.error-page { max-width: 640px; margin: 0 auto; text-align: center; padding: 80px 0; }
.error-page .code { font-family: var(--serif); font-size: 5rem; color: var(--green-100); line-height: 1; }
.error-page pre { text-align: left; background: #1b2620; color: #d9ead9; padding: 18px; border-radius: var(--radius); overflow: auto; font-size: .8rem; }

/* ------------------------------------------------------------------- footer */

.site-footer { background: var(--green-950); color: #b9cdc0; padding: 62px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: #cfe0d4; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .92rem; color: #a8bfb0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; }
.footer-brand img { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid #2c4a37; background: #12301f; color: #fff; font: inherit; }
.newsletter input::placeholder { color: #7f9a88; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; color: #e4efe7;
}
.social-row a:hover { background: var(--green-600); color: #fff; }
.footer-bottom {
  margin-top: 52px; border-top: 1px solid #23412e; padding: 20px 0; font-size: .86rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #93ab9c;
}

/* ------------------------------------------------------- floating helpers */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  background: #1eb955; color: #fff; border-radius: 999px; padding: 13px 20px;
  font-weight: 600; box-shadow: 0 10px 26px rgba(20, 80, 45, .3); font-size: .94rem;
}
.wa-float:hover { background: #23cc5e; color: #fff; }

.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; max-width: 900px; margin: 0 auto; font-size: .92rem;
}
.cookie-bar[hidden] { display: none; }

/* -------------------------------------------------------------- account area */

.account-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.account-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 96px; }
.account-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.account-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--body); font-size: .94rem; }
.account-nav a:hover { background: var(--green-50); color: var(--green-800); }
.account-nav a.is-active { background: var(--green-100); color: var(--green-800); font-weight: 600; }
.account-nav .who { padding: 10px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: .9rem; }
.account-nav .who strong { display: block; color: var(--ink); }

.auth-shell { max-width: 480px; margin: 0 auto; }
.auth-shell.wide { max-width: 660px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head img { height: 54px; margin: 0 auto 14px; filter: none; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-card strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--green-700); line-height: 1.1; }
.stat-card span { font-size: .86rem; color: var(--muted); }

.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .94rem; }
.data-table th, .data-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--green-50); color: var(--ink); font-weight: 600; font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table tbody tr:hover { background: var(--green-50); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status-pill--new { background: var(--amber-100); color: var(--amber-600); }
.status-pill--in_progress { background: #e8eefb; color: #274b8f; }
.status-pill--replied { background: var(--ok-bg); color: var(--ok); }
.status-pill--closed { background: #eceeec; color: #566; }
.status-pill--spam { background: var(--danger-bg); color: var(--danger); }

.thread { display: grid; gap: 16px; }
.thread-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.thread-item header { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.thread-item .body { white-space: pre-wrap; }
.thread-item--admin { background: var(--green-50); border-color: var(--line-strong); }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .grid--6, .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid, .catalogue .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .certificate-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 20px 20px; display: none; margin-left: 0; max-height: calc(100vh - 78px); overflow: auto;
  }
  body.nav-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .submenu { position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; max-height: none; }
  .site-header .wrap { position: relative; }
  .header-actions .search-form input { width: 130px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
  .catalogue { grid-template-columns: 1fr; }
  .filters { position: static; }
  .form-layout { grid-template-columns: 1fr; }
  .product-top { grid-template-columns: 1fr; gap: 32px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .grid--6, .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .hero-inner { padding: 64px 0 68px; }
  .grid--6, .grid--4, .grid--3, .grid--2, .product-grid, .catalogue .product-grid,
  .gallery-grid, .certificate-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .stats { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .topbar-list { gap: 12px; font-size: .8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-panel { display: none; }
  .wa-float span { display: none; }
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
}

@media print {
  .site-header, .site-footer, .wa-float, .cookie-bar, .announcement { display: none; }
}
