@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --ink: #1C2230;
  --surface: #F7F4EE;
  --panel-dark: #14181F;
  --panel-dark-2: #1C222C;
  --amber: #E8A33D;
  --teal: #2F8F86;
  --line: #D8D3C7;
  --line-dark: #333B48;
  --radius: 2px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

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

/* Header */
.site-header { background: var(--panel-dark); color: #F1EFE9; }
.header-row {
  display: flex; align-items: center; gap: 28px;
  padding: 18px 24px; flex-wrap: wrap;
}
.brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3rem; }
.main-nav { display: flex; gap: 20px; flex: 1; }
.main-nav a { opacity: .8; font-size: .95rem; }
.main-nav a:hover { opacity: 1; }
.lang-switch { display: flex; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: .8rem; }
.lang-switch a { opacity: .55; }
.lang-switch a.active { opacity: 1; color: var(--amber); }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer; border: 1px solid transparent;
}
.btn-call { background: var(--amber); color: var(--panel-dark); }
.btn-primary { background: var(--teal); color: #fff; border: none; }
.btn-ghost { border: 1px solid rgba(241,239,233,.4); color: #F1EFE9; }

/* Hero */
.hero { background: var(--panel-dark); color: #F1EFE9; padding: 64px 0 88px; }
.hero-row { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 380px; }
.hero-copy h1 { font-size: 2.6rem; max-width: 14ch; }
.hero-sub { font-family: 'IBM Plex Mono', monospace; color: var(--amber); font-size: .95rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-panel { flex: 1 1 280px; display: flex; justify-content: center; }
.diagnostic-svg { width: 100%; max-width: 320px; }
.panel-frame { fill: var(--panel-dark-2); stroke: var(--line-dark); stroke-width: 2; }
.panel-rule { stroke: var(--line-dark); stroke-width: 1; }
.panel-label { font-family: 'IBM Plex Mono', monospace; font-size: 9px; fill: #8A93A3; letter-spacing: .04em; }
.panel-label.small { font-size: 10px; fill: var(--teal); }
.error-code-text {
  font-family: 'IBM Plex Mono', monospace; font-size: 34px; font-weight: 500;
  fill: var(--amber); animation: blink-code 4s steps(1) infinite;
}
.check-path {
  fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw-check 4s ease infinite;
}
.status-dot { fill: var(--line-dark); animation: dot-glow 4s steps(1) infinite; }

@keyframes blink-code {
  0%, 55% { opacity: 1; }
  60%, 100% { opacity: 0; }
}
@keyframes draw-check {
  0%, 60% { stroke-dashoffset: 70; }
  85%, 100% { stroke-dashoffset: 0; }
}
@keyframes dot-glow {
  0%, 60% { fill: var(--line-dark); }
  85%, 100% { fill: var(--teal); }
}

@media (prefers-reduced-motion: reduce) {
  .error-code-text, .check-path, .status-dot { animation: none; }
  .check-path { stroke-dashoffset: 0; }
  .status-dot { fill: var(--teal); }
}

/* Sections */
.section { padding: 56px 0; }
.section-title { font-size: 1.6rem; margin-bottom: 28px; }
.page-hero { background: #EFEBE1; }
.page-hero h1 { font-size: 2rem; }

/* Service panels (not rounded shadow cards — bordered with corner ticks) */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.panel-card {
  position: relative; border: 1px solid var(--line); padding: 26px 22px;
  background: #FCFBF8; transition: border-color .15s ease;
}
.panel-card:hover { border-color: var(--teal); }
.panel-card h3 { font-size: 1.15rem; }
.panel-card p { margin: 0; color: #4A5163; font-size: .92rem; }
.corner { position: absolute; width: 9px; height: 9px; border: 2px solid var(--ink); opacity: 0; transition: opacity .15s; }
.panel-card:hover .corner { opacity: .5; }
.corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Why-us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.why-item h4 { font-size: 1.05rem; }
.why-item p { color: #4A5163; margin: 0; font-size: .92rem; }

/* Reviews */
.reviews-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.review-card { margin: 0; border-left: 3px solid var(--teal); padding-left: 18px; }
.review-card p { margin: 0 0 8px; }
.review-card cite { font-size: .85rem; color: #6B7280; font-style: normal; }

/* District tags */
.district-tags, .brand-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.district-tag, .brand-tag {
  border: 1px solid var(--line); padding: 8px 14px; font-size: .88rem;
  font-family: 'IBM Plex Mono', monospace;
}
a.district-tag:hover, a.brand-tag:hover { border-color: var(--teal); color: var(--teal); }

/* Price table */
.price-table { width: 100%; border-collapse: collapse; }
.price-table tr { border-bottom: 1px solid var(--line); }
.price-table td { padding: 12px 0; }
.price-value { font-family: 'IBM Plex Mono', monospace; text-align: right; color: var(--teal); font-weight: 500; }

/* Error code page */
.error-badge {
  font-family: 'IBM Plex Mono', monospace; background: var(--panel-dark); color: var(--amber);
  padding: 4px 10px; margin-right: 10px; font-size: .8em; vertical-align: middle;
}
.breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: .85rem; color: #6B7280; margin: 0 0 6px; }
.breadcrumb a { color: #6B7280; text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--teal); }
.error-content h2 { font-size: 1.2rem; margin-top: 28px; }

/* Footer */
.site-footer { background: var(--panel-dark); color: #C7CBD4; padding: 44px 0 28px; margin-top: 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row a { opacity: .8; }
.rights { width: 100%; opacity: .5; font-size: .82rem; margin-top: 20px; }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed; bottom: 22px; right: 22px; background: var(--teal); color: #fff;
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 40;
}

/* Lead modal */
.lead-modal {
  position: fixed; inset: 0; background: rgba(20,24,31,.6);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.lead-modal[hidden] { display: none; }
.lead-form {
  background: #fff; padding: 32px; max-width: 360px; width: 100%; position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.lead-form input {
  padding: 10px 12px; border: 1px solid var(--line); font-family: inherit; font-size: 1rem;
}
.lead-form .close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 1.4rem; cursor: pointer; }
.form-message { font-size: .85rem; color: var(--teal); margin: 0; }

@media (max-width: 640px) {
  .hero-copy h1 { font-size: 2rem; }
}

.translated-note { font-size: .8rem; color: #6B7280; margin: -18px 0 20px; }

.app-promo { background: var(--panel-dark); color: #F1EFE9; }
.app-promo .section-title { color: #fff; }
.app-promo p { color: #C7CBD4; margin: 0; }
.app-promo-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

.severity-badge {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: .78rem;
  padding: 4px 10px; border-radius: 2px; margin-bottom: 14px;
}
.severity-high { background: #FCE4E1; color: #B3402D; }
.severity-medium { background: #FDF1DC; color: #96650F; }
.severity-low { background: #E4F1EF; color: #1F6B62; }

.metro-line-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
