/* ============================================
   Global Styles for AutoRig.ru
   ============================================ */

/* Import Space Grotesk font */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ============================================
   Root Variables & Reset
   ============================================ */
:root {
  --primary-color: lightgray;
  --accent-color: #4169E1;
  --text-dark: #333;
  --text-light: #fff;
  --bg-light: #f5f5f5;
  --spacing-unit: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: var(--text-dark) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  margin-top: 2rem !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.3 !important;
}

h1 {
  font-size: 3rem !important;
  color: var(--text-dark) !important;
}

h2 {
  font-size: 2.25rem !important;
  color: var(--text-dark) !important;
}

h3 {
  font-size: 1.75rem !important;
  color: var(--text-dark) !important;
}

p {
  margin-bottom: 1.25rem !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
}

strong {
  font-weight: 600 !important;
  color: var(--accent-color) !important;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  background-color: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  padding: 1rem 0 !important;
}

.navbar-brand .brand-text {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--accent-color) !important;
  margin-left: 0.75rem !important;
}

.navbar-item {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  transition: color 0.3s ease !important;
  list-style: none !important;
}

.navbar-item:hover {
  color: var(--accent-color) !important;
}

.navbar-menu ul,
.navbar-start ul,
.navbar-end ul {
  list-style: none !important;
}

.navbar-menu ul::before,
.navbar-start ul::before,
.navbar-end ul::before,
.navbar-menu ul::after,
.navbar-start ul::after,
.navbar-end ul::after,
.navbar-item::before,
.navbar-item::after {
  display: none !important;
  content: none !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative !important;
  min-height: 600px !important;
  display: flex !important;
  align-items: center !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  z-index: 1 !important;
}

.hero .hero-body {
  position: relative !important;
  z-index: 2 !important;
  padding: 4rem 1.5rem !important;
}

.hero h1 {
  color: var(--text-dark) !important;
  margin-bottom: 1.5rem !important;
}

.hero p {
  font-size: 1.25rem !important;
  color: var(--text-dark) !important;
  margin-bottom: 2rem !important;
  max-width: 800px !important;
}

.hero .button {
  font-size: 1.125rem !important;
  padding: 1.25rem 2.5rem !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

.hero .button.is-primary {
  background-color: var(--accent-color) !important;
  color: var(--text-light) !important;
  border: none !important;
}

.hero .button.is-primary:hover {
  background-color: #3151b5 !important;
}

/* ============================================
   Sections
   ============================================ */
section {
  padding: 4rem 1.5rem !important;
}

section:nth-child(even) {
  background-color: var(--bg-light) !important;
}

section:nth-child(odd) {
  background-color: #fff !important;
}

.section-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* ============================================
   Cards
   ============================================ */
.card {
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 1.5rem !important;
  background-color: #fff !important;
}

.card-content {
  padding: 2rem !important;
}

.card-content h3 {
  margin-top: 0 !important;
}

/* ============================================
   Lists
   ============================================ */
ul, ol {
  margin-left: 0 !important;
  padding-left: 2rem !important;
  margin-bottom: 1.5rem !important;
  list-style: none !important;
}

ul li, ol li {
  margin-bottom: 0.75rem !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  position: relative !important;
  padding-left: 1.5rem !important;
}

ul li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.65em !important;
  width: 8px !important;
  height: 8px !important;
  background-color: var(--accent-color) !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

ol {
  counter-reset: ol-counter !important;
}

ol li {
  counter-increment: ol-counter !important;
}

ol li::before {
  content: counter(ol-counter) '.' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: var(--accent-color) !important;
  font-weight: 600 !important;
  display: inline-block !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
}

/* ============================================
   Tables
   ============================================ */
.table-container {
  overflow-x: auto !important;
  margin: 2rem 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

table {
  width: 100% !important;
  border-collapse: collapse !important;
  background-color: #fff !important;
  font-size: 16px !important;
}

thead {
  background-color: var(--accent-color) !important;
  color: var(--text-light) !important;
}

thead th {
  padding: 1rem !important;
  text-align: left !important;
  font-weight: 600 !important;
  font-size: 17px !important;
  white-space: nowrap !important;
}

tbody td {
  padding: 1rem !important;
  border-bottom: 1px solid #e0e0e0 !important;
  font-size: 16px !important;
}

tbody tr:hover {
  background-color: var(--bg-light) !important;
}

/* ============================================
   Images
   ============================================ */
.content-image {
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  margin: 2rem 0 !important;
}

.content-image img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
}

/* ============================================
   Buttons
   ============================================ */
.button {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.125rem !important;
  padding: 1.25rem 2.5rem !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  transition: all 0.3s ease !important;
  border: none !important;
  cursor: pointer !important;
}

.button.is-primary {
  background-color: var(--accent-color) !important;
  color: var(--text-light) !important;
}

.button.is-primary:hover {
  background-color: #3151b5 !important;
  transform: translateY(-2px) !important;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: #2c3e50 !important;
  color: var(--text-light) !important;
  padding: 3rem 1.5rem 2rem !important;
}

.footer h4 {
  color: var(--text-light) !important;
  font-size: 1.25rem !important;
  margin-bottom: 1rem !important;
}

.footer a {
  color: var(--text-light) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  font-size: 16px !important;
}

.footer a:hover {
  color: var(--accent-color) !important;
}

.footer ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.footer ul li {
  margin-bottom: 0.5rem !important;
  padding-left: 0 !important;
}

.footer ul li::before {
  display: none !important;
  content: none !important;
}

.footer .columns {
  margin-bottom: 2rem !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 1.5rem !important;
  margin-top: 2rem !important;
  text-align: center !important;
  font-size: 16px !important;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-item {
  margin-bottom: 2rem !important;
  padding: 1.5rem !important;
  background-color: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.faq-item p:first-child {
  font-weight: 600 !important;
  color: var(--accent-color) !important;
  margin-bottom: 0.75rem !important;
}

/* ============================================
   Responsive Design
   ============================================ */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: #fff !important;
  }

  .navbar-menu ul {
    list-style: none !important;
  }

  .navbar-menu ul::before,
  .navbar-menu ul::after {
    display: none !important;
    content: none !important;
  }
}

@media screen and (max-width: 768px) {
  body {
    font-size: 16px !important;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  p, ul li, ol li {
    font-size: 16px !important;
  }

  .hero {
    min-height: 500px !important;
  }

  .hero h1 {
    font-size: 2rem !important;
  }

  .hero p {
    font-size: 1.125rem !important;
  }

  section {
    padding: 3rem 1rem !important;
  }

  .button {
    font-size: 1rem !important;
    padding: 1rem 2rem !important;
    line-height: 1 !important;
  }

  table {
    font-size: 14px !important;
  }

  thead th {
    font-size: 15px !important;
    padding: 0.75rem !important;
  }

  tbody td {
    font-size: 14px !important;
    padding: 0.75rem !important;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  .hero {
    min-height: 400px !important;
  }

  .hero .button {
    width: 100% !important;
  }

  .button {
    width: 100% !important;
  }
}