/* ==========================================================================
   MECHANIC52 - INDUSTRIAL EMERGENCY HIGH-CONVERSION STYLESHEET
   Mobile-first, Utility & Heavy Design + Rich Hover Micro-animations
   ========================================================================== */

:root {
  /* 3 Main Colors System */
  --bg-dark: #121316;
  --bg-card-dark: #1b1c20;
  --bg-light: #ffffff;
  --bg-alt-light: #f4f5f7;

  --text-white: #ffffff;
  --text-dark: #111111;
  --text-muted-dark: #999999;
  --text-muted-light: #666666;

  /* Accent Color: Emergency Safety Orange */
  --accent-orange: #FF6B00;
  --accent-orange-hover: #E05E00;

  /* Strict Borders & Radius */
  --border-dark: #2a2c32;
  --border-light: #e0e0e0;
  --radius: 4px;

  /* Typography */
  --font-heading: 'Oswald', -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fast Smooth Animations */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 64px; /* Mobile sticky bar space */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 64px;
  }
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Typography Base */
h1, h2, h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.1;
}

/* 0. STICKY CALL BAR (MOBILE POSITION: FIXED, BOTTOM: 0, HEIGHT: 64PX) */
.sticky-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: var(--accent-orange);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 9999;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 -4px 20px rgba(255, 107, 0, 0.45), 0 -2px 8px rgba(0, 0, 0, 0.5);

  /* Hidden by default on page load - zero flash! */
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  /* Smooth exit transition when hiding */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Appears smoothly ONLY when no main button is in viewport */
.sticky-call-bar.sticky-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  /* Smooth entry transition when appearing */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-call-bar:hover {
  background-color: var(--accent-orange-hover);
}

.sticky-call-bar:active {
  transform: translateY(2px);
}

.sticky-call-bar .phone-icon {
  flex-shrink: 0;
  animation: phone-shake 2.5s infinite ease-in-out;
}

@keyframes phone-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  10%, 30% { transform: rotate(-12deg) scale(1.15); }
  20%, 40% { transform: rotate(12deg) scale(1.15); }
  50% { transform: rotate(0deg) scale(1); }
}

@media (min-width: 768px) {
  .sticky-call-bar {
    display: flex;
  }
}

/* 1. HEADER (56-64PX) */
.header {
  height: 60px;
  background-color: var(--bg-dark);
  border-bottom: 2px solid var(--border-dark);
  display: flex;
  align-items: center;
}

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

.brand {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.5px;
  line-height: 1;
  transition: var(--transition);
}

.logo-text:hover {
  color: var(--accent-orange);
  transform: translateX(2px);
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-phone-block {
  display: none;
  flex-direction: column;
  align-items: flex-end;
}

.header-phone-link {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: var(--transition);
}

.header-phone-link:hover {
  color: var(--text-white);
  transform: scale(1.04);
}

.header-phone-sub {
  font-size: 12px;
  color: var(--text-muted-dark);
}

@media (min-width: 768px) {
  .header-phone-block {
    display: flex;
  }
}

/* BUTTONS WITH RICH HOVER ANIMATIONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  min-height: 56px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.5);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-card {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 12px 20px;
  min-height: 44px;
  font-size: 16px;
  width: 100%;
}

.btn-card:hover {
  background-color: var(--accent-orange);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

/* 2. HERO SECTION */
.hero-section {
  position: relative;
  background-color: #08090a;
  background-image: url('uploads/s/e/3/j/e3j8sdg8k6go/img/full_4sw4ThdJ.jpg');
  background-size: cover;
  background-position: center;
  padding: 40px 0 50px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 11, 13, 0.45), rgba(10, 11, 13, 0.72));
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 46px;
  color: var(--text-white);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  color: #dddddd;
  margin-bottom: 28px;
}

/* ARRIVAL TILES WITH HOVER ANIMATION */
.arrival-tiles {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.tile {
  flex: 1;
  background-color: var(--bg-card-dark);
  border: 2px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  transition: var(--transition);
}

.tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.2);
}

.tile-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.tile-value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: var(--transition);
}

.tile:hover .tile-value {
  transform: scale(1.08);
}

.tile-value small {
  display: block;
  font-size: 13px;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .tile-value small {
    display: inline;
    margin-left: 4px;
    margin-top: 0;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-cta-note {
  font-size: 13px;
  color: var(--text-muted-dark);
}

@media (min-width: 768px) {
  .hero-section {
    padding: 70px 0 80px;
  }
  .hero-title {
    font-size: 64px;
  }
  .hero-subtitle {
    font-size: 20px;
  }
  .tile-value {
    font-size: 38px;
  }
  .tile-label {
    font-size: 13px;
  }
}

/* 3. SYMPTOMS SECTION WITH HOVER ANIMATION */
.symptoms-section {
  background-color: #1a1c22;
  border-top: 3px solid var(--accent-orange);
  border-bottom: 2px solid var(--border-dark);
  padding: 20px 0;
}

.symptoms-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 6px 2px;
  -webkit-overflow-scrolling: touch;
}

.symptom-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--text-white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.symptom-icon {
  transition: transform 0.25s ease;
}

.symptom-item:hover {
  background-color: #262830;
  border-color: var(--accent-orange);
}

.symptom-item:hover .symptom-icon {
  transform: scale(1.2) rotate(-8deg);
  color: var(--accent-orange);
}

/* 4. SERVICES SECTION WITH CARD HOVER & IMAGE ZOOM */
.services-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 0;
}

.section-title {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 32px;
  text-align: left;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--bg-alt-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-orange);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.service-img-wrap {
  position: relative;
  height: 200px;
  background-color: #ddd;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.95);
  transition: transform 0.4s ease;
}

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

.service-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--bg-dark);
  color: var(--accent-orange);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-dark);
  transition: var(--transition);
}

.service-card:hover .service-price {
  background-color: var(--accent-orange);
  color: var(--text-white);
  transform: scale(1.05);
}

.service-price small {
  font-size: 14px;
  color: var(--text-muted-dark);
  font-family: var(--font-body);
  transition: var(--transition);
}

.service-card:hover .service-price small {
  color: rgba(255, 255, 255, 0.8);
}

.service-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-name {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 8px;
  transition: var(--transition);
}

.service-card:hover .service-name {
  color: var(--accent-orange);
}

.service-desc {
  font-size: 15px;
  color: var(--text-muted-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.services-footer-note {
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-muted-light);
  font-weight: 600;
  border-left: 4px solid var(--accent-orange);
  padding-left: 12px;
}

/* 5. STEPS SECTION WITH HOVER ANIMATION */
.steps-section {
  background-color: var(--bg-dark);
  padding: 60px 0;
  border-top: 3px solid var(--border-dark);
  border-bottom: 3px solid var(--border-dark);
}

.steps-section .section-title {
  color: var(--text-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 480px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: var(--bg-card-dark);
  border: 2px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 10px;
  transition: var(--transition);
}

.step-card:hover .step-num {
  transform: scale(1.12);
  color: var(--text-white);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-white);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.step-desc {
  font-size: 15px;
  color: var(--text-muted-dark);
}

/* 6. COVERAGE SECTION WITH HOVER ANIMATION */
.coverage-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 0;
}

.coverage-section .section-title {
  color: var(--text-dark);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .coverage-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.coverage-item {
  background-color: var(--bg-alt-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  transition: var(--transition);
}

.coverage-item:hover {
  background-color: var(--accent-orange);
  color: var(--text-white);
  border-color: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.coverage-note {
  font-size: 15px;
  color: var(--text-muted-light);
  margin-top: 16px;
}

.coverage-note span {
  font-weight: 600;
  color: var(--text-dark);
}

/* 7. GUARANTEES SECTION WITH HOVER ICON SPIN */
.guarantees-section {
  background-color: #1a1c22;
  border-top: 2px solid var(--border-dark);
  border-bottom: 2px solid var(--border-dark);
  padding: 32px 0;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .guarantees-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.guarantee-item:hover {
  transform: translateX(4px);
}

.g-icon {
  width: 32px;
  height: 32px;
  background-color: var(--accent-orange);
  color: var(--text-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--transition);
}

.guarantee-item:hover .g-icon {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.g-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
}

/* 8. TRUST / REVIEWS SECTION WITH HOVER */
.trust-section {
  background-color: var(--bg-dark);
  padding: 60px 0;
}

.trust-section .section-title {
  color: var(--text-white);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .trust-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.t-stat {
  background-color: var(--bg-card-dark);
  border: 2px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.t-stat:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
}

.t-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
  transition: var(--transition);
}

.t-stat:hover .t-val {
  transform: scale(1.08);
}

.t-lbl {
  font-size: 13px;
  color: var(--text-muted-dark);
}

.reviews-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .reviews-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background-color: var(--bg-card-dark);
  border: 2px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  background-color: #2a2c32;
  color: var(--accent-orange);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.review-card:hover .avatar-circle {
  background-color: var(--accent-orange);
  color: var(--text-white);
  transform: scale(1.1);
}

.review-author {
  display: flex;
  flex-direction: column;
}

.review-author strong {
  font-size: 16px;
  color: var(--text-white);
}

.review-author span {
  font-size: 12px;
  color: var(--text-muted-dark);
}

.review-text {
  font-size: 14px;
  color: #cccccc;
  line-height: 1.5;
}

.cold-scenario-note {
  font-size: 14px;
  color: var(--accent-orange);
  background-color: rgba(255, 107, 0, 0.1);
  border: 1px solid var(--accent-orange);
  padding: 12px 16px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

/* SVG иконка в блоке зимнего сценария — без inline style= */
.cold-note-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.cold-scenario-note:hover {
  background-color: rgba(255, 107, 0, 0.18);
  transform: translateX(4px);
}

/* 9. FINAL CALL SECTION */
.final-call-section {
  background-color: #0b0c0e;
  border-top: 3px solid var(--accent-orange);
  padding: 60px 0;
  text-align: center;
}

.final-title {
  font-size: 36px;
  color: var(--text-white);
  margin-bottom: 16px;
}

.final-phone-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
  transition: var(--transition);
}

.final-phone-link:hover {
  color: var(--text-white);
  transform: scale(1.05);
}

.btn-final {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 20px;
}

.live-time-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted-dark);
}

.live-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
  margin-right: 4px;
  transform: translateX(6px);
  flex-shrink: 0;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* 10. FOOTER */
.footer {
  background-color: #070708;
  border-top: 1px solid var(--border-dark);
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--text-muted-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col strong {
  color: var(--text-white);
  display: block;
  margin-bottom: 6px;
}

.footer-col p {
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-white);
  text-decoration: underline;
  transition: var(--transition);
}

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

/* 11. TARGETED TABLET & MOBILE RESPONSIVE POLISH */
@media (max-width: 380px) {
  .hero-title {
    font-size: 32px;
  }
  .tile-value {
    font-size: 20px;
  }
  .tile-label {
    font-size: 9.5px;
  }
  .btn-primary {
    width: 100%;
    font-size: 18px;
  }
  .symptom-item {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-title {
    font-size: 52px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .coverage-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
