/* ==========================================================================
   Pomiary Elektryczne — Powiat Kłodzki
   Palette: Deep Slate (#0f172a) + Crisp White (#ffffff) + Electric Amber (#f59e0b) + Teal (#0d9488)
   CSP-safe: no external @import, no inline style dependencies
   ========================================================================== */

:root {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-2: #1e293b;
  --bg-header: rgba(255, 255, 255, 0.92);

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --muted-light: #94a3b8;
  --line: #e2e8f0;
  --line-dark: rgba(148, 163, 184, 0.22);

  --amber: #f59e0b;
  --amber-hover: #d97706;
  --amber-deep: #b45309;
  --amber-soft: #fef3c7;
  --amber-line: #fde68a;

  --teal: #0d9488;
  --teal-soft: #ccfbf1;
  --teal-dark: #115e59;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-w: 1140px;
  --header-h: 72px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 1000;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { left: 1rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease);
  min-height: 44px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--amber);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--amber-hover);
  transform: translateY(-1px);
  outline: none;
}

.btn-dark {
  background: var(--bg-dark);
  color: #ffffff;
}
.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--bg-dark-2);
  transform: translateY(-1px);
  outline: none;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
  outline: none;
}

.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--ink);
  background: var(--bg-soft);
  outline: none;
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 200ms var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-dark);
  color: var(--amber);
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-text small {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0.35rem 0.25rem;
  transition: color 150ms var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--amber-deep);
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.nav-phone svg {
  width: 16px;
  height: 16px;
  color: var(--amber-deep);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.menu-toggle .x { display: none; }
body.nav-open .menu-toggle .bars { display: none; }
body.nav-open .menu-toggle .x { display: block; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem 1.25rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 240ms var(--ease);
    z-index: 499;
    overflow-y: auto;
  }

  body.nav-open .nav {
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-link {
    display: block;
    font-size: 1.1rem;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-phone {
    justify-content: center;
    padding: 0.85rem;
    font-size: 1rem;
  }
}

/* ===== HERO ===== */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.14), transparent 45%),
              linear-gradient(155deg, #0b1222 0%, #0f172a 55%, #1e293b 100%);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.15rem;
}

.hero h1 .accent {
  color: var(--amber);
}

.hero-lead {
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.15rem);
  color: #cbd5e1;
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}

.hero-point {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 500;
}

.hero-point svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
  flex-shrink: 0;
}

.hero-media {
  position: relative;
}

.hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
  background: #1e293b;
}

.hero-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-float-card {
  margin-top: 1rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-float-card strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

.hero-float-card span {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.hero-float-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.22);
  color: #5eead4;
  border: 1px solid rgba(94, 234, 212, 0.3);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero { padding: 2.5rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  .hero-points { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-item strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.trust-item span {
  font-size: 0.84rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
  background: var(--amber-soft);
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 0.7rem;
}

.section-head p {
  font-size: 1.02rem;
  color: var(--muted);
}

/* ===== SERVICES GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-dark);
  color: var(--amber);
  display: grid;
  place-items: center;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.service-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.check-list svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

@media (max-width: 760px) {
  .section { padding: 3.25rem 0; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ===== CREDENTIALS / SPLIT ===== */
.split-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--bg-dark);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-content h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 0.85rem;
}

.split-content > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--amber-deep);
  background: var(--amber-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.feature-row strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.feature-row p {
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .split-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ===== PROCESS & AREA ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.step-card h3 {
  font-size: 1.06rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.area-box {
  background: var(--bg-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.area-box h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.area-box p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.city-tag {
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem;
  font-weight: 600;
  color: #f8fafc;
}

.city-tag.primary {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; }
  .area-box { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.25rem; }
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 820px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber-deep);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.94rem;
  color: var(--muted);
  border-top: 1px solid var(--bg-soft);
  padding-top: 0.85rem;
}

/* ===== CONTACT SECTION ===== */
.contact-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.contact-info h2 {
  font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  max-width: 48ch;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(245, 158, 11, 0.5);
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--amber);
  color: #0f172a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

.contact-method small {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
}

.contact-method strong {
  font-size: 1.05rem;
  color: #ffffff;
}

.contact-form-box {
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 1.65rem;
}

.contact-form-box h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.contact-form-box > p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink-2);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--amber-hover);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--teal-dark);
}

@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; padding: 1.65rem; gap: 1.75rem; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0b1222;
  color: #cbd5e1;
  padding: 3.25rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-link .brand-text strong { color: #ffffff; }
.footer-brand-link .brand-text small { color: #94a3b8; }

.footer-desc {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 44ch;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-bottom {
  padding-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ===== CHATBOT WIDGET (100% CSP-compliant, no inline styles) ===== */
.chatbot-root {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-dark);
  color: #ffffff;
  border: 2px solid var(--amber);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 150ms var(--ease), background-color 150ms var(--ease);
}

.chatbot-toggle:hover {
  transform: translateY(-2px);
  background: var(--bg-dark-2);
}

.chatbot-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--amber);
}

.chatbot-panel {
  width: min(370px, calc(100vw - 2rem));
  max-height: min(520px, calc(100vh - 6.5rem));
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-header {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.chatbot-header strong {
  display: block;
  font-size: 0.95rem;
}

.chatbot-header small {
  font-size: 0.76rem;
  color: #94a3b8;
}

.chatbot-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.chatbot-close svg {
  width: 18px;
  height: 18px;
}

.chatbot-messages {
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  background: var(--bg);
}

.chat-msg {
  max-width: 86%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-msg-bot {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--bg-dark);
  color: #ffffff;
}

.chatbot-quick {
  padding: 0.6rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.chat-chip {
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}

.chat-chip:hover {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--ink);
}

.chatbot-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.chatbot-input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--amber-hover);
}

.chatbot-send {
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: none;
  background: var(--amber);
  color: #0f172a;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

@media (max-width: 480px) {
  .chatbot-root {
    right: 0.85rem;
    bottom: 0.85rem;
  }
  .chatbot-toggle-label {
    display: none;
  }
  .chatbot-toggle {
    padding: 0.85rem;
  }
}
