/* RM Security Services — shared stylesheet */

:root {
  --bg: #070b14;
  --bg-2: #0d1424;
  --bg-3: #131c30;
  --line: #1e2a44;
  --text: #e8edf7;
  --muted: #98a5bd;
  --accent: #2f6df6;
  --accent-2: #43e0c8;
  --warn: #f5a524;
  --radius: 14px;
  --max: 1180px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

section { padding: 76px 0; }
section.tight { padding: 52px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */

.topbar {
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}
.topbar .wrap {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  align-items: center;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: var(--text); }

header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 20, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: auto;
  height: 52px;
  flex: none;
  display: block;
}
.brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand span.name { font-size: 1.02rem; line-height: 1.2; }

nav.main { display: flex; align-items: center; gap: 6px; }
nav.main a {
  color: var(--muted);
  font-weight: 600;
  font-size: .94rem;
  padding: 9px 13px;
  border-radius: 9px;
}
nav.main a:hover { color: var(--text); background: var(--bg-3); text-decoration: none; }
nav.main a.active { color: #fff; background: var(--bg-3); }
nav.main .btn { margin-left: 6px; color: #fff; }

.nav-toggle {
  display: none;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 11px;
  font-weight: 700;
  font-size: .96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(47, 109, 246, .32); }
.btn-primary:hover { background: #467ef8; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 104px 0 92px;
  background:
    radial-gradient(900px 460px at 80% -10%, rgba(47, 109, 246, .28), transparent 60%),
    radial-gradient(700px 400px at 8% 105%, rgba(67, 224, 200, .13), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .16;
  pointer-events: none;
}
.hero .photo-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 38%;
  opacity: .3;
  pointer-events: none;
}
.hero .photo-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,11,20,.96) 0%, rgba(7,11,20,.78) 45%, rgba(7,11,20,.45) 100%);
}
.hero .wrap { position: relative; z-index: 1; }

/* ---------- Photos ---------- */

.media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media.tall img { height: 420px; }

.photo-band {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 40%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.photo-band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,11,20,.94) 0%, rgba(7,11,20,.8) 50%, rgba(7,11,20,.55) 100%);
}
.photo-band .wrap { position: relative; z-index: 1; padding-top: 46px; padding-bottom: 46px; }
.photo-band h2 { margin-bottom: 8px; }
.photo-band p { color: #c3d0ea; margin: 0; max-width: 56ch; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero p.lede { font-size: 1.15rem; }

.page-head {
  padding: 62px 0 46px;
  background: radial-gradient(760px 340px at 75% -30%, rgba(47, 109, 246, .25), transparent 62%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

.stat-card {
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.stat-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stat-card li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.stat-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-card li:first-child { padding-top: 0; }
.stat-card .icon { margin-bottom: 0; width: 42px; height: 42px; }
.stat-card .icon svg { width: 20px; height: 20px; }
.stat-card .n {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.stat-card .t { display: block; font-size: .89rem; color: var(--muted); line-height: 1.5; }

/* ---------- Cards / grids ---------- */

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: #33508c; transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

.icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(47, 109, 246, .14);
  border: 1px solid rgba(47, 109, 246, .3);
  margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; stroke: var(--accent-2); fill: none; stroke-width: 1.8; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); }
.checks li::before {
  content: "\2713";
  color: var(--accent-2);
  font-weight: 800;
  flex: none;
  line-height: 1.6;
}

.steps { counter-reset: step; display: grid; gap: 18px; }
.steps li { list-style: none; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  background: rgba(47, 109, 246, .16);
  border: 1px solid rgba(47, 109, 246, .38);
  color: #fff;
}
.steps h3 { margin-bottom: 3px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Pricing ---------- */

.price-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured { border-color: var(--accent); background: linear-gradient(170deg, #142450, var(--bg-2) 55%); }
.tag {
  position: absolute; top: -13px; left: 26px;
  background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; margin: 6px 0 4px; }
.price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price-card ul { margin: 18px 0 24px; }
.price-card .btn { margin-top: auto; width: 100%; }

/* ---------- Gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  cursor: zoom-in;
  position: relative;
}
.gallery img { width: 100%; height: 260px; object-fit: cover; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  font-size: .88rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(4, 8, 16, .92));
}

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 7, 14, .94);
  display: none;
  align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 12px; }
.lightbox button {
  position: absolute; top: 16px; right: 22px;
  background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* ---------- Testimonials ---------- */

.quote {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 24px;
}
.stars { color: var(--warn); letter-spacing: 2px; font-size: .95rem; margin-bottom: 10px; }
.quote p { color: var(--text); font-size: .95rem; }
.quote .who { color: var(--muted); font-weight: 700; font-size: .88rem; margin: 0; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 7px; }
.field .req { color: var(--warn); }
input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: .95rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 14px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin-bottom: 0; width: 42px; height: 42px; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list span { font-size: 1.02rem; font-weight: 600; }

.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map iframe { width: 100%; height: 330px; border: 0; display: block; filter: grayscale(.3) invert(.92) hue-rotate(180deg); }

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

.cta-band {
  background: linear-gradient(120deg, #14306e, #0d1c3f 60%, var(--bg-2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; padding-top: 46px; padding-bottom: 46px; }
.cta-band h2 { margin: 0; }
.cta-band p { color: #c3d0ea; margin: 6px 0 0; }

/* ---------- Footer ---------- */

footer.site {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 54px 0 26px;
  font-size: .93rem;
}
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
footer.site h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: #fff; }
footer.site p { color: var(--muted); }
.legal { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Floating actions ---------- */

.float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.float a {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
  color: #fff;
  transition: transform .14s ease;
}
.float a:hover { text-decoration: none; transform: translateY(-2px); }
.float .wa { background: #25d366; }
.float .tel { background: var(--accent); }
.float .ig { background: linear-gradient(45deg, #f09433 0%, #dc2743 45%, #bc1888 100%); }
.float svg { width: 26px; height: 26px; }

/* ---------- Product / camera type cards ---------- */

.product {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product img { width: 100%; aspect-ratio: 5 / 3; height: auto; object-fit: cover; display: block;
  background: var(--bg-2); border-bottom: 1px solid var(--line); }
.product .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product h3 { margin-bottom: 6px; font-size: 1.2rem; }
.product .tagline { color: var(--accent-2); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.product p { color: var(--muted); font-size: .95rem; }
.product .specs { list-style: none; padding: 18px 0 0; margin: auto 0 0; display: grid; gap: 8px; font-size: .88rem; }
.product .specs li { display: flex; gap: 10px; color: var(--muted); }
.product .specs strong { color: var(--text); font-weight: 600; min-width: 92px; flex: none; }
.product .best { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.product .best strong { color: var(--accent-2); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; min-width: 760px; }
table.cmp th,
table.cmp td {
  padding: 14px 18px;
  text-align: left;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
table.cmp th:last-child, table.cmp td:last-child { border-right: 0; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp thead th {
  background: var(--bg-3);
  color: #fff;
  font-size: .76rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid var(--accent);
}
table.cmp td { color: var(--muted); }
table.cmp tbody tr:nth-child(odd)  td { background: var(--bg); }
table.cmp tbody tr:nth-child(even) td { background: #0b1221; }
table.cmp tbody tr:hover td { background: #111d33; color: #cdd8ea; }
/* first column stays put while the rest scrolls sideways */
table.cmp th:first-child, table.cmp td:first-child {
  position: sticky; left: 0; z-index: 2;
  color: var(--text); font-weight: 700;
  border-right: 1px solid var(--line);
}
table.cmp thead th:first-child { z-index: 3; }
table.cmp .lvl {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid transparent; white-space: nowrap;
}
table.cmp .lvl.hi  { color: var(--accent-2); border-color: rgba(67,224,200,.38); background: rgba(67,224,200,.10); }
table.cmp .lvl.mid { color: var(--warn);     border-color: rgba(245,165,36,.38); background: rgba(245,165,36,.10); }
table.cmp .lvl.lo  { color: #9fb0cc;         border-color: rgba(159,176,204,.32); background: rgba(159,176,204,.07); }
.table-hint { display: none; margin-top: 12px; font-size: .85rem; color: var(--muted); text-align: center; }
@media (max-width: 820px) { .table-hint { display: block; } }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.brand {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  background: var(--bg-2);
  font-weight: 700;
  font-size: .95rem;
}
.brand span { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---------- Site assistant ---------- */

.chat-launcher {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--accent-2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
  transition: transform .14s ease, border-color .14s ease;
  padding: 0;
}
.chat-launcher:hover { transform: translateY(-2px); border-color: var(--accent); }
.chat-launcher.hidden { display: none; }
.chat-launcher svg { width: 25px; height: 25px; }

/* greeting bubble beside the chat button */
.chat-teaser {
  position: absolute;
  top: 0;
  right: 64px;
  display: none;
  align-items: stretch;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  overflow: hidden;
  animation: chatPop .28s ease-out;
}
.chat-teaser.show { display: flex; }
.chat-teaser-text {
  background: none; border: 0;
  color: var(--text);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  padding: 12px 6px 12px 15px;
  white-space: nowrap;
  cursor: pointer;
}
.chat-teaser-text:hover { color: var(--accent-2); }
.chat-teaser-x {
  background: none; border: 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 11px 0 4px;
  cursor: pointer;
}
.chat-teaser-x:hover { color: #fff; }
@keyframes chatPop {
  from { opacity: 0; transform: translateX(8px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 420px) {
  .chat-teaser-text { font-size: .78rem; padding-left: 12px; }
  .chat-teaser-x { padding: 0 8px 0 2px; }
}
@media (max-width: 350px) {
  .chat-teaser-text { font-size: .72rem; }
}

.chat-panel {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 120;
  width: 370px;
  max-width: calc(100vw - 36px);
  height: 540px;
  max-height: calc(100vh - 36px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }

.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(120deg, #14306e, var(--bg-3));
  border-bottom: 1px solid var(--line);
  flex: none;
}
.chat-head strong { display: block; font-size: 1rem; }
.chat-head span { display: block; font-size: .78rem; color: var(--muted); }
.chat-close {
  background: none; border: 0; color: var(--muted);
  font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 2px;
}
.chat-close:hover { color: #fff; }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.55;
}
.chat-msg.bot { background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.me { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.actions { background: none; border: 0; padding: 2px 0 4px; display: flex; gap: 8px; flex-wrap: wrap; max-width: 100%; }

.chat-btn {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}
.chat-btn:hover { text-decoration: none; background: #467ef8; }
.chat-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.chat-btn.ghost:hover { border-color: var(--accent); background: transparent; }

.chat-msg.typing { display: flex; gap: 5px; padding: 14px; }
.chat-msg.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  animation: chatDot 1.1s infinite ease-in-out;
}
.chat-msg.typing span:nth-child(2) { animation-delay: .16s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .32s; }
@keyframes chatDot {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-quick {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 0 18px 12px;
  flex: none;
}
.chat-quick button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}
.chat-quick button:hover { color: var(--text); border-color: var(--accent); }

.chat-input {
  display: flex; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  flex: none;
}
.chat-input input { flex: 1; border-radius: 10px; padding: 11px 13px; font-size: .9rem; }
.chat-input button {
  flex: none;
  width: 44px;
  border: 0; border-radius: 10px;
  background: var(--accent); color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
}
.chat-input button:hover { background: #467ef8; }
.chat-input button svg { width: 19px; height: 19px; }

@media (max-width: 480px) {
  .chat-panel { right: 10px; bottom: 10px; height: calc(100vh - 20px); max-width: calc(100vw - 20px); }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    gap: 2px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 10px; }
  nav.main .btn { margin: 8px 0 0; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 68px 0 60px; }
  .topbar .wrap { justify-content: center; }
}

@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
}

/* product grid keeps two columns on tablets so the cards never go full-bleed */
@media (max-width: 820px) { .grid.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.products { grid-template-columns: 1fr; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
