/* ==========================================================================
   ШИНОМОНТАЖ «ВИТЯЗЬ» (МУРМАНСК) — PREMIUM LIGHT THEME & DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  /* Core Light Theme Palette */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  --bg-alt: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: rgba(245, 158, 11, 0.6);

  /* Warm Automotive Brand Accents */
  --accent-primary: #f59e0b;
  --accent-secondary: #ea580c;
  --accent-dark: #d97706;
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --accent-gradient-hover: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
  --accent-glow: rgba(245, 158, 11, 0.25);
  --accent-light: #fffbeb;

  /* High Contrast Modern Typography */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* UI Badges */
  --badge-gold: #f59e0b;
  --badge-green: #10b981;
  --badge-blue: #0284c7;

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.3);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  background-image: 
    radial-gradient(ellipse at 15% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(234, 88, 12, 0.04) 0%, transparent 40%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  overflow-wrap: break-word;
  word-break: normal;
}

p, span, a, li {
  overflow-wrap: break-word;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  max-width: 100%;
  position: relative;
}

.btn:active {
  transform: scale(0.98) !important;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.45);
}

.btn-glow {
  box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-glow:hover {
  box-shadow: 0 6px 26px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-light);
  color: #b45309;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Modern Form Divider */
.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 1.15rem 0;
}

.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
  transition: var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.logo:hover .logo-icon {
  background: #fef3c7;
  border-color: var(--accent-primary);
  box-shadow: 0 0 14px var(--accent-glow);
}

.logo-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Desktop Nav */
.header-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0.2rem;
  white-space: nowrap;
  display: inline-block;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-phone-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.header-phone-num:hover {
  color: var(--accent-dark);
}

.header-phone-status {
  font-size: 0.72rem;
  color: var(--badge-green);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--badge-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--badge-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Mobile Header Buttons */
.mobile-call-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.mobile-call-btn:hover, .mobile-call-btn:active {
  background: var(--accent-gradient);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.menu-toggle:hover, .menu-toggle:active {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--accent-dark);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  height: calc(100dvh - 68px);
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 1.25rem 5.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 600;
  display: block;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-primary);
  border-radius: 6px;
}

.mobile-nav-link.active {
  color: var(--accent-dark);
  background: var(--accent-light);
  font-weight: 700;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.badge-dikidi {
  background: var(--accent-light);
  border-color: #fde68a;
  color: #b45309;
}

.badge-stars {
  color: var(--badge-gold);
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
}

.feature-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.1;
}

.feature-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Hero Card / Quick Booking Card */
.hero-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.hero-card-header {
  margin-bottom: 1.25rem;
}

.hero-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.hero-card-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-card-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
}

.hero-workshop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center !important;
  display: block;
  transition: transform 0.4s ease;
}

.hero-card:hover .hero-workshop-img {
  transform: scale(1.02);
}

.hero-media-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.accent-text {
  color: var(--accent-dark);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  margin-bottom: 0.85rem;
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
  display: block;
}

.step-badge {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.tech-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-top: 0.4rem;
}

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

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

/* Service Card */
.service-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}

.service-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.service-thumb-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.service-body {
  padding: 1.5rem 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  transition: all 0.25s ease;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.service-card:hover .service-icon {
  transform: translateY(-2px);
  background: #fef3c7;
  border-color: var(--accent-primary);
  box-shadow: 0 0 14px var(--accent-glow);
}

.service-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: #fcfdfe;
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Pricing Table */
.price-table-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.price-table th {
  padding: 1rem 0.75rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
}

.price-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

/* Calculator Section */
.calculator-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.calc-group {
  margin-bottom: 1.65rem;
}

.calc-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

/* Step 1: Car Type Grid */
.car-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.car-card-label {
  display: block;
  cursor: pointer;
}

.car-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  user-select: none;
}

.car-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.pill-radio {
  display: none;
}

.pill-radio:checked + .car-card {
  background: var(--accent-light);
  border-color: var(--accent-primary);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateY(-2px);
}

.car-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.car-card-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.car-card:hover .car-card-icon {
  color: var(--text-primary);
}

.pill-radio:checked + .car-card .car-card-icon {
  color: var(--accent-dark);
}

.car-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.car-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.pill-radio:checked + .car-card .car-card-name {
  color: #b45309;
}

.car-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Step 2: Radius Keypad Grid */
.radius-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.radius-tile-label {
  display: block;
  cursor: pointer;
}

.radius-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 0.25rem;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}

.radius-tile:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--text-primary);
  transform: translateY(-2px);
}

.pill-radio:checked + .radius-tile {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transform: translateY(-2px);
  font-weight: 800;
}

/* Step 3: Custom Addons List */
.custom-addons-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.addon-card {
  display: block;
  cursor: pointer;
}

.addon-checkbox {
  display: none;
}

.addon-card-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  user-select: none;
}

.addon-card-box:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.addon-indicator {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.addon-checkbox:checked + .addon-card-box {
  background: var(--accent-light);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.addon-checkbox:checked + .addon-card-box .addon-indicator {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.addon-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.addon-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.addon-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.addon-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #b45309;
  background: #fef3c7;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Calc Result Side - Sleek High Contrast Focus Widget */
.calc-result-card {
  background: #0f172a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15), 0 0 25px rgba(245, 158, 11, 0.1);
  color: #f8fafc;
}

.calc-price-wrap {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.calc-price-title {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.calc-price-value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1;
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.45);
  transition: transform 0.2s ease;
}

.price-pop {
  animation: popScale 0.3s ease-out;
}

@keyframes popScale {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: #fbbf24; text-shadow: 0 0 30px rgba(245, 158, 11, 0.7); }
  100% { transform: scale(1); }
}

.calc-summary-list {
  list-style: none;
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-summary-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.35rem;
}

.calc-summary-item strong {
  color: #ffffff;
}

/* Reviews */
.review-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

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

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.review-source {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.review-stars {
  color: var(--badge-gold);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #94a3b8;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Map Section */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  position: relative;
  background: #e2e8f0;
}

.map-embed {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
  /* Clean natural map colors in light theme */
  filter: none;
}

.map-overlay-card {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  z-index: 10;
  color: var(--text-primary);
}

/* DIKIDI Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 780px;
  height: 90vh;
  max-height: 820px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--badge-green);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Grounded Deep Slate Footer */
.site-footer {
  background: #0b0f19;
  border-top: 1px solid #1e293b;
  padding: 4rem 0 2rem;
  margin-top: auto;
  color: #f8fafc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.92rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
}

/* Feature Standard Card */
.feature-standard-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.feature-standard-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* Mobile Sticky Bottom Action Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 0.45rem 0.75rem max(0.45rem, env(safe-area-inset-bottom));
  z-index: 95;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

.mobile-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  min-height: 44px;
  transition: all var(--transition-fast);
}

.bar-btn:hover, .bar-btn:active {
  color: var(--text-primary);
}

.bar-btn svg {
  width: 19px;
  height: 19px;
}

.bar-btn-primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  border-radius: var(--radius-md);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  animation: barPulse 3.5s infinite ease-in-out;
}

@keyframes barPulse {
  0%, 100% {
    box-shadow: 0 3px 12px rgba(234, 88, 12, 0.3);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.5);
    transform: translateY(-1.5px);
  }
}

/* ==========================================================================
   RESPONSIVE LAYOUT & MOBILE PERFECTION
   ========================================================================== */

@media (max-width: 1200px) {
  .nav-menu {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.86rem;
  }
  .header-phone-num {
    font-size: 0.95rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  body {
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px));
  }

  .header-inner {
    height: 68px;
  }

  .nav-menu, .header-phone, .header-book-btn {
    display: none !important;
  }

  .mobile-call-btn, .menu-toggle {
    display: flex !important;
  }

  .mobile-bottom-bar {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    background: rgba(255, 255, 255, 0.96);
  }

  .header-actions {
    gap: 0.5rem;
  }

  .hero-section {
    padding: 1.75rem 0 2rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 5.5vw, 2.1rem);
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.98rem;
  }

  .badge-row {
    gap: 0.45rem;
  }

  .badge {
    font-size: 0.76rem;
    padding: 0.3rem 0.65rem;
  }

  /* Compact 3-column stats row on mobile */
  .hero-features {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .feature-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.5rem !important;
    text-align: center;
    align-items: center;
  }

  .feature-number {
    font-size: 1.15rem !important;
    line-height: 1.2;
  }

  .feature-label {
    font-size: 0.7rem !important;
    line-height: 1.2;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .section-desc {
    font-size: 0.92rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .calculator-box {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-md);
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Mobile Car Type Grid: 2 equal symmetrical columns */
  .car-type-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .car-card {
    padding: 0.75rem 0.65rem !important;
    gap: 0.35rem !important;
    min-height: 70px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .car-card-name {
    font-size: 0.9rem !important;
    font-weight: 700;
  }

  .car-card-desc {
    font-size: 0.72rem !important;
    white-space: normal;
    line-height: 1.25;
  }

  /* Mobile Radius Grid: 4 equal symmetrical columns */
  .radius-selector-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.45rem !important;
  }

  .radius-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.15rem !important;
    font-size: 0.88rem !important;
    font-weight: 700;
    min-height: 46px;
    border-radius: var(--radius-sm);
    text-align: center;
    white-space: nowrap;
  }

  .feature-standard-card {
    padding: 1.25rem 1rem !important;
  }

  .addon-card-box {
    padding: 0.75rem 0.85rem;
  }

  .addon-title {
    font-size: 0.86rem;
  }

  .addon-desc {
    font-size: 0.74rem;
  }

  .addon-badge {
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
    font-weight: 700;
  }

  .calc-result-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: var(--radius-md);
  }

  .calc-price-value {
    font-size: 2.3rem;
  }

  .service-card {
    padding: 0 !important;
    border-radius: var(--radius-md);
  }

  .service-body {
    padding: 1.25rem 1rem 0.5rem !important;
  }

  .service-footer {
    padding: 1rem !important;
  }

  .review-card, .hero-card,
  [style*="padding: 2.5rem"], [style*="padding: 2.25rem"], [style*="padding: 2rem"] {
    padding: 1.25rem 1rem !important;
  }

  .map-overlay-card {
    position: static;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 1.25rem 1rem !important;
  }

  .map-embed {
    height: 320px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .btn {
    white-space: normal;
    line-height: 1.35;
    max-width: 100%;
  }

  .btn-lg {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 60px;
  }

  .mobile-drawer {
    top: 60px;
    height: calc(100dvh - 60px);
  }

  .logo {
    gap: 0.5rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .logo-title {
    font-size: 1.05rem;
  }

  .logo-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .bar-btn {
    font-size: 0.68rem;
  }

  .bar-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   AI CHATBOT WIDGET — PREMIUM FLOATING INTERACTION
   ========================================================================== */

.ai-chat-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 99999;
  font-family: var(--font-body);
}

/* Floating Trigger Button */
.ai-chat-trigger {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px -2px rgba(245, 158, 11, 0.5), 0 4px 12px rgba(15, 23, 42, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 99999;
}

.ai-chat-trigger:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6), 0 6px 16px rgba(15, 23, 42, 0.2);
}

.ai-chat-trigger:active {
  transform: translateY(0) scale(0.98);
}

/* Subtle pulsating aura */
.ai-trigger-pulse {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, rgba(234, 88, 12, 0) 70%);
  animation: aiPulseRings 2.8s infinite ease-out;
  pointer-events: none;
  z-index: -1;
}

@keyframes aiPulseRings {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 0.25; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Icons switch */
.ai-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.25s ease;
  pointer-events: none;
}

.ai-trigger-icon svg {
  display: block;
  pointer-events: none;
}

.ai-icon-close {
  display: none;
}

.ai-chat-widget.active .ai-icon-chat {
  display: none;
}

.ai-chat-widget.active .ai-icon-close {
  display: flex;
}

.ai-chat-widget.active .ai-trigger-pulse {
  display: none;
}

/* AI Badge */
.ai-trigger-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #0f172a;
  color: #f59e0b;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* Hint Tooltip */
.ai-trigger-hint {
  position: absolute;
  right: calc(100% + 14px);
  bottom: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px -2px rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-md);
  padding: 8px 12px 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  animation: aiHintFloat 3s ease-in-out infinite alternate;
  pointer-events: auto;
  cursor: pointer;
  z-index: 99998;
}

.ai-trigger-hint::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

.ai-hint-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ai-hint-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-hint-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.ai-hint-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ai-hint-close {
  background: none;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s;
}

.ai-hint-close:hover {
  color: var(--text-primary);
}

@keyframes aiHintFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.ai-trigger-hint.hidden {
  display: none !important;
}

/* Chat Window */
.ai-chat-window {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 390px;
  height: 570px;
  max-height: calc(100vh - 110px);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow: 0 24px 55px -6px rgba(15, 23, 42, 0.25), 0 8px 20px -4px rgba(15, 23, 42, 0.1);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 100000;
}

.ai-chat-widget.active .ai-chat-window {
  display: flex !important;
  animation: aiWindowPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes aiWindowPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Window Header */
.ai-chat-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.ai-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #0f172a;
}

.ai-header-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.ai-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1px;
}

.ai-pulse-mini {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: pulse 1.8s infinite;
}

.ai-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ai-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.05);
}

/* Chat Body */
.ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.ai-chat-body::-webkit-scrollbar {
  width: 5px;
}

.ai-chat-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.ai-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-message {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  animation: aiMessageFade 0.22s ease-out;
}

@keyframes aiMessageFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-message-bot {
  align-self: flex-start;
}

.ai-message-user {
  align-self: flex-end;
}

.ai-message-bot .ai-bubble {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid #e2e8f0;
  border-radius: 16px 16px 16px 4px;
  padding: 11px 14px;
  font-size: 0.88rem;
  line-height: 1.48;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  word-break: break-word;
}

.ai-message-user .ai-bubble {
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.42;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.28);
  word-break: break-word;
}

.ai-bubble p {
  margin: 0 0 6px 0;
}

.ai-bubble p:last-child {
  margin-bottom: 0;
}

.ai-bubble strong {
  font-weight: 700;
  color: var(--text-primary);
}

.ai-message-user .ai-bubble strong {
  color: #ffffff;
}

.ai-bubble ul, .ai-bubble ol {
  margin: 6px 0 6px 18px;
  padding: 0;
}

.ai-bubble li {
  margin-bottom: 3px;
}

/* Call-to-action links inside bot replies */
.ai-bubble a {
  color: var(--accent-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.ai-bubble a:hover {
  color: var(--accent-dark);
}

.ai-bubble a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: #c2410c;
  text-decoration: none;
  font-weight: 700;
  margin: 2px 0;
}

.ai-bubble a[href*="dikidi.ru"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  margin: 4px 0;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.ai-bubble a[href*="dikidi.ru"]:hover {
  filter: brightness(1.05);
}

/* Quick Chips */
.ai-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  animation: aiMessageFade 0.3s ease-out;
}

.ai-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.77rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.25;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ai-chip:hover {
  background: #fffbeb;
  border-color: var(--accent-primary);
  color: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.18);
}

/* Typing Indicator */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  animation: aiMessageFade 0.2s ease-out;
}

.ai-typing-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px 14px 14px 4px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.ai-typing-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: inline-block;
  animation: aiTypingBounce 1.4s infinite ease-in-out both;
}

.ai-typing-bubble span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-bubble span:nth-child(2) { animation-delay: -0.16s; }
.ai-typing-bubble span:nth-child(3) { animation-delay: 0s; }

@keyframes aiTypingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.15); opacity: 1; }
}

.ai-typing-text {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Chat Footer / Form */
.ai-chat-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 14px 10px;
  flex-shrink: 0;
}

.ai-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-input-field {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.ai-input-field::placeholder {
  color: #94a3b8;
}

.ai-input-field:focus {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.ai-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.ai-send-btn:active {
  transform: translateY(0);
}

.ai-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ai-chat-footnote {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.ai-phone-link {
  color: var(--accent-secondary);
  font-weight: 700;
  text-decoration: none;
}

.ai-phone-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   AI CHATBOT RESPONSIVE ADAPTATIONS
   ========================================================================== */

/* Tablet & Mobile: Avoid overlapping bottom bar */
@media (max-width: 1024px) {
  .ai-chat-widget {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
}

@media (max-width: 640px) {
  .ai-chat-trigger {
    width: 56px;
    height: 56px;
  }

  .ai-trigger-hint {
    display: none !important;
  }

  .ai-chat-window {
    position: fixed;
    top: auto;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    height: calc(100dvh - 100px);
    max-height: 540px;
    border-radius: 18px;
    transform-origin: bottom center;
  }
}

/* ==========================================================================
   FAQ & KNOWLEDGE BASE STYLES
   ========================================================================== */
.faq-tab-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-tab-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.faq-tab-btn.active {
  background: var(--accent-primary);
  color: #000000;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.faq-card:hover {
  border-color: rgba(245, 158, 11, 0.35) !important;
}

/* ==========================================================================
   ARTICLES & BLOG STYLES
   ========================================================================== */
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.article-content-body h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content-body p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.article-content-body ul, .article-content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content-body li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(20, 20, 26, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.article-cta-box h3 {
  color: var(--text-primary);
  margin-top: 0;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.article-cta-box p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   HOMEPAGE ARTICLES HORIZONTAL CAROUSEL
   ========================================================================== */
.articles-carousel-wrapper {
  position: relative;
  width: 100%;
}

.articles-carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.25rem;
  padding-top: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.3) rgba(255, 255, 255, 0.05);
}

.articles-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.articles-carousel-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.articles-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  transition: background var(--transition-fast);
}

.articles-carousel-track::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

.article-carousel-card {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.article-carousel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.carousel-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(245, 158, 11, 0.1);
  transform: scale(1.05);
}

.carousel-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 1024px) {
  .article-carousel-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 680px) {
  .article-carousel-card {
    flex: 0 0 84%;
    min-width: 270px;
  }
}


