/* ============================================================
   MMC Autocenter — Style
   ============================================================ */

:root {
  --primary: #e8491d;
  --primary-dark: #c43a15;
  --primary-light: #ff6b3d;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --dark-3: #0f3460;
  --text: #e0e0e0;
  --text-muted: #a0a0a0;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-light: #222240;
  --border: #2a2a4a;
  --gold: #f0c040;
  --gold-dark: #d4a830;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--primary-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */

header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 8px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

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

.phone-link {
  color: var(--gold) !important;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--gold-dark) !important;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

nav a:hover, nav a.active {
  background: rgba(232, 73, 29, 0.15);
  color: var(--primary);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 3px;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
  text-transform: uppercase;
  line-height: 1;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 70px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark) 50%, var(--dark-3) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(232,73,29,0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(5%, 5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,73,29,0.4);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-tg {
  background: #0088cc;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-tg:hover {
  background: #0077b5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,136,204,0.4);
  color: #fff;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 70px 20px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: #fff;
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1rem;
}

.section-dark {
  background: var(--bg-card);
}

/* ============================================================
   ABOUT / EQUIPMENT
   ============================================================ */

.about-text {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
}

.about-text p {
  margin-bottom: 14px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.equip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: var(--transition);
}

.equip-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.equip-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.equip-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #fff;
}

.equip-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #fff;
}

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

/* ============================================================
   GALLERY
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.gallery-item:hover {
  border-color: var(--primary);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 16px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Gallery placeholders */
.gallery-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.8rem;
  gap: 8px;
}

.gallery-placeholder span {
  font-size: 0.85rem;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(232,73,29,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-detail p, .contact-detail a {
  font-size: 1.05rem;
  font-weight: 600;
  word-break: break-word;
}

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-form h3 {
  margin-bottom: 16px;
  color: #fff;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,73,29,0.15);
}

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

.map-container {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-logo span {
  color: var(--primary);
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-text .company {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--dark-2), var(--dark));
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.page-header p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 1rem;
}

/* ============================================================
   RESPONSIVE — Mobile First
   ============================================================ */

/* Small phones */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.4rem; }
  .hero h2 { font-size: 0.95rem; }
  .section-title { font-size: 1.3rem; }
  .header-inner { padding: 8px 10px; }
  .logo { font-size: 1rem; }
  .logo-icon { width: 30px; height: 30px; font-size: 0.85rem; }
  .phone-link { font-size: 0.85rem; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
}

/* Phones */
@media (max-width: 480px) {
  .hero {
    padding: 40px 16px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero h2 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  .hero p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .hero-stats {
    gap: 16px;
    margin-top: 24px;
  }
  .stat-number {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.7rem;
  }
  
  .section {
    padding: 40px 16px;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .section-desc {
    margin-bottom: 24px;
  }
  
  .page-header {
    padding: 32px 16px;
  }
  .page-header h1 {
    font-size: 1.5rem;
  }
  .page-header p {
    font-size: 0.9rem;
  }
  
  .equipment-grid,
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .equip-card { padding: 20px; }
  .service-card { padding: 18px; }
  .service-icon { font-size: 2rem; }
  
  .contact-form {
    padding: 20px;
  }
  .contact-item {
    gap: 10px;
  }
  .contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1rem;
  }
  .contact-detail p, .contact-detail a {
    font-size: 0.95rem;
  }
  
  .map-container iframe {
    height: 240px;
  }
  
  footer {
    padding: 24px 16px;
  }
}

/* Tablets and small desktops */
@media (min-width: 481px) and (max-width: 768px) {
  .hero {
    padding: 50px 20px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero h2 {
    font-size: 1.1rem;
  }
  .section {
    padding: 50px 20px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .page-header h1 {
    font-size: 1.7rem;
  }
  
  .equipment-grid,
  .services-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile navigation at tablet and below */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 8px 0;
    gap: 2px;
    order: 3;
  }
  
  nav.open {
    display: flex;
  }
  
  nav a {
    width: 100%;
    text-align: center;
    padding: 14px 12px;
    font-size: 1rem;
    border-radius: 8px;
  }
  
  .lang-switch {
    justify-content: center;
    margin-top: 8px;
    padding: 8px 0;
  }
  
  .lang-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header-top {
    flex: 1;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .btn {
    padding: 14px 24px;
    font-size: 0.95rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn-tg {
    width: 100%;
  }
}

/* Large screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch-friendly hover for mobile */
@media (hover: none) {
  .equip-card:hover,
  .service-card:hover,
  .gallery-item:hover,
  .btn:hover {
    transform: none;
  }
  
  .gallery-item .overlay {
    opacity: 1;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
  }
  
  .btn-tg:hover {
    transform: none;
    box-shadow: none;
  }
  
  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }
}
