/* ==========================================================================
   Theme: Сервисный центр — Bootstrap 5 theme overrides
   Rebuilt 1:1 from a Tailwind-based landing page.
   ========================================================================== */

:root {
  /* Brand */
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-500: #3b82f6;
  --brand-300: #93c5fd;
  --brand-100: #dbeafe;
  --brand-50: #eff6ff;

  /* Neutrals */
  --inverse: #0f172a;          /* slate-900, dark sections */
  --inverse-2: #1e293b;        /* slate-800 */
  --on-inverse: #ffffff;
  --on-inverse-muted: #cbd5e1; /* slate-300 */

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;        /* slate-50 */
  --surface-3: #f1f5f9;        /* slate-100 */
  --line: #e2e8f0;             /* slate-200 */

  --ink: #0f172a;              /* slate-900 */
  --ink-3: #475569;            /* slate-600 */
  --muted: #64748b;            /* slate-500 */

  --radius-4xl: 1.5rem;
  --radius-3xl: 1.5rem;
  --radius-2xl: 1rem;
  --section-py: 6rem;
  --section-py-sm: 4rem;

  --bs-body-font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-body-color: var(--ink-3);
  --bs-link-color: var(--brand-600);
  --bs-link-hover-color: var(--brand-700);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--ink-3);
  background-color: var(--bg);
}

a {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
}

/* ==========================================================================
   Utility helpers
   ========================================================================== */

.text-brand {
  color: var(--brand-600) !important;
}

.text-brand-300 {
  color: var(--brand-300) !important;
}

.text-ink {
  color: var(--ink) !important;
}

.text-ink-3 {
  color: var(--ink-3) !important;
}

.text-muted-2 {
  color: var(--muted) !important;
}

.bg-brand {
  background-color: var(--brand-600) !important;
}

.bg-brand-700 {
  background-color: var(--brand-700) !important;
}

.bg-inverse {
  background-color: var(--inverse) !important;
}

.bg-surface {
  background-color: var(--surface) !important;
}

.bg-surface-2 {
  background-color: var(--surface-2) !important;
}

.text-on-inverse {
  color: var(--on-inverse) !important;
}

.text-on-inverse-muted {
  color: var(--on-inverse-muted) !important;
}

.border-line {
  border-color: var(--line) !important;
}

.rounded-4xl {
  border-radius: var(--radius-4xl) !important;
}

.rounded-3xl {
  border-radius: 1.25rem !important;
}

.rounded-2xl {
  border-radius: 1rem !important;
}

.h-52 {
  height: 13rem !important;
}

.section-py {
  padding-top: var(--section-py-sm);
  padding-bottom: var(--section-py-sm);
}

@media (min-width: 992px) {
  .section-py {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
  }
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.18);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-600);
}

.eyebrow-inverse {
  color: var(--brand-300);
}

.fw-black {
  font-weight: 800;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-brand {
  background-color: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.9rem 1.5rem;
  box-shadow: 0 10px 25px -8px rgba(37, 99, 235, 0.4);
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-brand:hover,
.btn-brand:focus {
  background-color: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}

.btn-brand-outline-inverse {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.9rem 1.5rem;
  transition: background-color 0.15s ease;
}

.btn-brand-outline-inverse:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-white-on-brand {
  background-color: #fff;
  color: var(--brand-700);
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.9rem 1.5rem;
  border: none;
  transition: background-color 0.15s ease;
}

.btn-white-on-brand:hover {
  background-color: var(--brand-50);
  color: var(--brand-700);
}

.btn-link-brand {
  color: var(--brand-600);
  font-weight: 700;
}

.btn-link-brand:hover {
  color: var(--brand-700);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .nav-link {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-header .nav-link:hover {
  color: var(--brand-600);
}

.brand-logo-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background-color: var(--brand-600);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-section,
.hero-min {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--inverse);
  color: #fff;
  min-height: 76vh;
  display: flex;
  align-items: center;
}

.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-section .hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, var(--inverse) 0%, rgba(15, 23, 42, 0.9) 45%, rgba(15, 23, 42, 0.3) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background-color: rgba(59, 130, 246, 0.15);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-300);
}

.hero-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
}

.hero-icon-badge {
  border-radius: 1rem;
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--brand-300);
  padding: 0.75rem;
  display: inline-flex;
}

/* ==========================================================================
   Category banners
   ========================================================================== */

.category-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background-color: var(--inverse);
  color: #fff;
}

@media (min-width: 576px) {
  .category-banner {
    border-radius: 2rem;
  }
}

.category-banner .banner-img,
.category-banner .banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.category-banner .banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--inverse) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(15, 23, 42, 0.2) 100%);
}

.category-banner .banner-content {
  position: relative;
  padding: 3.5rem 1.25rem;
}

@media (min-width: 576px) {
  .category-banner .banner-content {
    padding: 5rem 2.5rem;
  }
}

@media (min-width: 992px) {
  .category-banner .banner-content {
    padding: 5rem 4rem;
  }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.service-card {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background-color: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -15px rgba(15, 23, 42, 0.2);
}

.service-card img {
  height: 13rem;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.price-card {
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background-color: var(--surface);
  padding: 1.75rem;
  height: 100%;
}

.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.price-card li:last-child {
  border-bottom: none;
}

.price-pill {
  border-radius: 999px;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--brand-600);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.fault-card {
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background-color: var(--surface);
  padding: 1.5rem 2rem;
}

@media (max-width: 575.98px) {
  .fault-card {
    padding: 1.5rem;
  }
}

.fault-symptom {
  border-radius: 1rem;
  background-color: var(--surface-2);
  padding: 0.75rem;
  text-align: center;
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.fault-symptom img {
  margin: 0 auto;
  height: 5rem;
  width: 5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.fault-symptom span {
  margin-top: 0.75rem;
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.fault-cta {
  border-radius: 1.5rem;
  background-color: var(--brand-600);
  color: #fff;
  padding: 2rem;
}

.fault-icon-card {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background-color: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.fault-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -15px rgba(15, 23, 42, 0.2);
}

.fault-icon-card img {
  height: 13rem;
  width: 100%;
  object-fit: cover;
}

.benefit-card {
  border-radius: 1rem;
  background-color: var(--surface);
  padding: 1.5rem;
  height: 100%;
}

.benefit-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-600);
}

.step-card {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background-color: var(--surface);
  padding: 1.75rem;
  height: 100%;
}

.step-number {
  font-size: 3.75rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.2);
  line-height: 1;
}

.review-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.75rem;
  height: 100%;
}

.review-stars {
  color: var(--brand-300);
  letter-spacing: 0.125rem;
}

/* ==========================================================================
   FAQ (details/summary)
   ========================================================================== */

.faq-list {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background-color: var(--surface);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

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

.faq-item .faq-plus {
  color: var(--brand-600);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 1rem 0 0;
  max-width: 42rem;
  line-height: 1.75;
  color: var(--ink-3);
}

/* Optional sticky CTA */
.js-sticky-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1020;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.js-sticky-cta.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
}

@media (min-width: 768px) {
  .js-sticky-cta {
    display: none;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--inverse);
  color: var(--on-inverse-muted);
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.site-footer a {
  color: var(--on-inverse-muted);
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.made-by-bar {
  background-color: var(--inverse);
  color: #64748b;
  border-top: 1px solid #1e293b;
}

.made-by-bar a {
  color: #64748b;
}

.made-by-bar a:hover {
  color: #cbd5e1;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-content.contact-modal {
  border-radius: 1.5rem;
  border: none;
}

.form-control-brand {
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  padding: 1rem;
}

.form-control-brand:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px var(--brand-100);
}

/* ==========================================================================
   Kit catalog page
   ========================================================================== */

.kit-sidebar {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.kit-block,
.kit-panel {
  border: 1px dashed var(--line);
  border-radius: 1rem;
  margin-bottom: 3rem;
  overflow: hidden;
}

.kit-block-title,
.kit-panel-label {
  background-color: var(--inverse);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kit-block-body,
.kit-panel-body {
  background-color: var(--surface-2);
}

.kit-block-body > *:first-child {
  margin-top: 0;
}
