:root {
  --font-heading: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #312E81;
  --indigo: #6366F1;
  --wash: #E0E7FF;
  --gold: #F59E0B;
  --line: rgba(49, 46, 129, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2rem, 7vw, 4.85rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.625rem, 5vw, 3.15rem);
  line-height: 1.05;
}

h3, h4 {
  font-size: clamp(1.375rem, 3.2vw, 1.75rem);
  line-height: 1.15;
}

p, li, td, th, a, button, input, textarea, summary {
  font-size: 16px;
}

.site-shell {
  background: radial-gradient(circle at top left, rgba(224, 231, 255, 0.95), transparent 34rem), #ffffff;
}

.container-page {
  width: min(1180px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.cut {
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.btn-primary,
.btn-dark,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.15rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
}

.btn-primary {
  background: var(--indigo);
  color: #ffffff;
  box-shadow: 8px 8px 0 rgba(245, 158, 11, 0.95);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  color: #ffffff;
  background: var(--ink);
  box-shadow: 11px 11px 0 rgba(245, 158, 11, 0.95);
}

.btn-dark {
  background: #111827;
  color: #ffffff;
}

.btn-light {
  background: #ffffff;
  color: #111827;
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex: none;
  background: url('../images/logo.svg') center/cover no-repeat;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(49, 46, 129, 0.15);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.desktop-nav,
.desktop-phone {
  display: none !important;
}

.mobile-menu-button {
  display: inline-flex !important;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: #ffffff;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(49, 46, 129, 0.15);
  background: #ffffff;
}

.mobile-menu.is-open {
  display: block;
}

.hero-bg {
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(49, 46, 129, 0.72), rgba(49, 46, 129, 0.22)), url('../images/hero-technician.png');
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.trust-panel {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  color: #ffffff;
}

.rating-stars {
  color: var(--gold);
  font-size: 1.35rem;
  letter-spacing: 0.1em;
}

.hero-badges img {
  width: auto;
  height: 52px;
  max-width: 31%;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.28rem;
}

.accent-rule {
  width: 76px;
  height: 6px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--indigo), var(--gold));
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}

.blueprint {
  background-color: #f8faff;
  background-image: linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.card-cut {
  position: relative;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #374151;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: 0 18px 42px rgba(49, 46, 129, 0.08);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  background: var(--wash);
  color: var(--ink);
  border: 1px solid rgba(99, 102, 241, 0.35);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.service-icon svg,
.mini-icon svg {
  width: 29px;
  height: 29px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.mini-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: none;
  background: rgba(224, 231, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.two-col img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #ffffff;
}

.model-table {
  min-width: 860px;
  width: 100%;
  border-collapse: collapse;
}

.model-table th,
.model-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(49, 46, 129, 0.12);
  vertical-align: top;
  text-align: left;
}

.model-table th {
  background: var(--ink);
  color: #ffffff;
}

.process-step {
  border-left: 4px solid var(--indigo);
}

.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 88%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.review-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  scroll-snap-align: start;
}

.map-frame {
  width: 100%;
  min-height: 360px;
  filter: grayscale(0.15) contrast(1.04);
}

.draw-on-scroll path,
.draw-on-scroll rect,
.draw-on-scroll line,
.draw-on-scroll polyline {
  stroke-dasharray: 740;
  stroke-dashoffset: 740;
  transition: stroke-dashoffset 1400ms ease;
}

.draw-on-scroll.is-drawn path,
.draw-on-scroll.is-drawn rect,
.draw-on-scroll.is-drawn line,
.draw-on-scroll.is-drawn polyline {
  stroke-dashoffset: 0;
}

.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none !important;
  padding: 0.7rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(17, 24, 39, 0.96);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.sticky-call.is-visible {
  display: block !important;
  transform: translateY(0);
  opacity: 1;
}

.sticky-call a {
  width: 100%;
  min-height: 50px;
  color: #ffffff;
  background: var(--indigo);
  box-shadow: none;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--wash);
}

.footer-text {
  font-size: 14px;
}

@media (min-width: 768px) {
  .desktop-nav,
  .desktop-phone {
    display: flex !important;
  }

  .mobile-menu-button,
  .mobile-menu,
  .sticky-call,
  .sticky-call.is-visible {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  }

  .two-col {
    grid-template-columns: minmax(0, 65%) minmax(260px, 35%);
  }

  .two-col.image-left {
    grid-template-columns: minmax(260px, 35%) minmax(0, 65%);
  }

  .review-track {
    grid-auto-columns: calc((100% - 2rem) / 3);
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 78px;
  }

  .container-page {
    width: min(100% - 1rem, 720px);
  }

  .btn-primary,
  .btn-dark,
  .btn-light {
    width: 100%;
  }
}
