/* ==========================================
   1. ЗМІННІ ТА БАЗОВІ СТИЛІ
   ========================================== */
:root {
  --bg-main: #06090e;
  --bg-card: rgba(13, 19, 29, 0.7);
  --bg-card-hover: rgba(18, 27, 42, 0.9);
  --accent-blue: #0088ff;
  --accent-cyan: #00d2ff;
  --text-main: #ffffff;
  --text-muted: #8a99ad;
  --border-color: rgba(0, 136, 255, 0.15);
  --border-glow: rgba(0, 210, 255, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 136, 255, 0.25);
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-width: 1200px;
}
:root {
  /* ... інші ваші змінні ... */
  
  /* Оновлюємо шрифти */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* Застосовуємо шрифт для всього тіла */
html, body {
  font-family: var(--font-body);
}

/* Застосовуємо стильний шрифт для заголовків та кнопок */
h1, h2, h3, h4, 
.hero-title, 
.section-title, 
.logo-main, 
.btn, 
.nav-link {
  font-family: var(--font-heading);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* ==========================================
   2. ШАПКА (HEADER)
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 40px;
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 2px;
}

.main-nav ul {
  display: flex;
  gap: 25px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: rgba(0, 136, 255, 0.05);
  font-size: 0.85rem;
  font-weight: 700;
}

.lang-item {
  color: var(--text-muted);
  cursor: pointer;
}

.lang-item.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px var(--accent-cyan);
}

.lang-divider {
  color: var(--border-color);
}

/* ==========================================
   3. HERO ЕКРАН
   ========================================== */
.hero-section {
  padding: 80px 0;
  background: radial-gradient(circle at 75% 30%, rgba(0, 136, 255, 0.12) 0%, transparent 60%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.highlight {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 35px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #0066ff 0%, #00d2ff 100%);
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 136, 255, 0.4);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.6);
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.badge-icon {
  width: 20px;
  height: 20px;
}

.hero-engine-img {
  width: 100%;
  max-width: 550px;
  filter: drop-shadow(0 0 35px rgba(0, 136, 255, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================
   4. СЕКЦІЇ ТА КАРТКИ (ЗАГАЛЬНІ)
   ========================================== */
section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 50px;
  color: #fff;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-cyan);
  margin: 12px auto 0;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* БАР МАРКЕЙ */
.brands-section {
  padding: 30px 0;
  background: rgba(13, 19, 29, 0.4);
  border-y: 1px solid var(--border-color);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.brand-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.brand-card img {
  height: 32px;
  object-fit: contain;
}

.brand-card span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ДВИГУНИ */
.engines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.engine-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.engine-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.engine-name {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.engine-code {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.engine-models {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 38px;
}

.engine-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}

/* ПЕРЕВАГИ (WHY US) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ПРОЦЕС РОБОТИ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

.step-num {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-icon {
  width: 50px;
  height: 50px;
  margin: 15px 0 20px;
}

.process-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.process-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* FAQ (АКОРДЕОН) */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle {
  color: var(--accent-cyan);
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.faq-item.active .faq-answer {
  max-height: 150px;
  padding: 0 20px 18px;
}

/* ==========================================
   5. ФУТЕР (FOOTER)
   ========================================== */
.site-footer {
  background: #030508;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 15px 0 20px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.socials img:hover {
  opacity: 1;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.contacts-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   6. АДАПТИВНІСТЬ (MOBILE RESPONSIVE)
   ========================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-media {
    display: flex;
    justify-content: center;
  }

  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .engines-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .main-nav { display: none; } /* Тут пізніше додамо мобільне бургер-меню */
  .hero-title { font-size: 2rem; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .engines-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
}


/* Блок секції форми */
.booking-section {
  padding: 60px 20px;
  background-color: #080c14; /* Темний фон під стиль сайту */
}

/* Заклик до дії над формою */
.cta-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 35px auto;
}

.cta-title {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.cta-description {
  color: #a0aec0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Стилі посилання-телефону */
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00c6ff; /* Неоново-блакитний акцент */
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.phone-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.work-hours {
  display: block;
  color: #718096;
  font-size: 13px;
  margin-top: 6px;
}

/* Стилі картки форми */
.service-form {
  background: #0d121d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #a0aec0;
  font-size: 13px;
  margin-bottom: 6px;
}

.form-group label .required {
  color: #00c6ff;
}

.form-group label .optional {
  color: #718096;
  font-size: 11px;
}

/* Інпути та випадаючий список */
.form-group input,
.form-group select,
.form-group textarea {
  background-color: #161f30;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group select option {
  background-color: #161f30;
  color: #ffffff;
}

/* Фокус під час вводу */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00c6ff;
  box-shadow: 0 0 8px rgba(0, 198, 255, 0.3);
}

.form-group textarea {
  resize: vertical;
}

/* Кнопка */
.btn-submit {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  justify-content: center;
}

.btn-submit:hover {
  opacity: 0.9;
}

.form-privacy {
  text-align: center;
  color: #718096;
  font-size: 11px;
  margin-top: 14px;
  margin-bottom: 0;
}


/* Базові стилі для ПК (без змін) */
.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 25px;
  margin-bottom: 25px;
}

.hero-buttons .btn {
  width: 280px;            
  box-sizing: border-box;
  padding: 12px 20px;
  font-size: 14px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Оновлений адаптив під мобільні */
@media (max-width: 768px) {
  .hero-buttons {
    width: 100%;             /* Блок розтягується на всю ширину */
    padding: 0 16px;         /* Невеличкі бічні відступи від країв екрана */
    box-sizing: border-box;
    align-items: stretch;    /* Розтягує кнопки всередині на всю ширину */
  }

  .hero-buttons .btn {
    width: 100%;             /* Кнопка займає 100% ширини контейнера */
    max-width: none;
  }
}