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

:root {
  --base-size: 18px;
  --text-xs: 0.8rem;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lg: 1.4rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.2rem;
  --text-3xl: 2.75rem;
  --text-4xl: 3.5rem;
  --text-5xl: 4.25rem;
  --text-6xl: 5.5rem;
  --space-unit: 1rem;
  --space-xs: calc(var(--space-unit) * 0.5);
  --space-sm: calc(var(--space-unit) * 0.75);
  --space-md: var(--space-unit);
  --space-lg: calc(var(--space-unit) * 1.5);
  --space-xl: calc(var(--space-unit) * 2);
  --space-2xl: calc(var(--space-unit) * 3);
  --header-height: 72px;
  --footer-height: 80px;
}

html {
  font-size: var(--base-size);
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #000814 url('../images/truck-bg.jpg') no-repeat center/cover fixed;
  color: #ffffff;
  min-height: 100vh;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Затемнение фона для ВСЕХ страниц */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,8,20,0.50); /* 50% затемнение */
  pointer-events: none;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

/* Хедер */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0,8,20,0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 12px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Логотип - уменьшаем для десктопа */
.logo-image {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Навигация */
.desktop-nav {
  display: flex;
  gap: var(--space-xl);
}

.desktop-nav a {
  color: #e0e0ff;
  text-decoration: none;
  font-size: var(--text-base);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color 0.3s;
}

.desktop-nav a:hover {
  color: #ff8c42;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.burger span {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Анимация бургера при открытии */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Основной контент */
.main-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

/* Герой-секция (только для главной) */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 0 var(--footer-height);
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.hero-main h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slogan {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #ff8c42;
  line-height: 1.2;
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-company {
  text-align: right;
}

.hero-company h2 {
  font-size: var(--text-6xl);
  font-weight: 900;
  line-height: 1;
  opacity: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-company p {
  font-size: var(--text-xl);
  margin-top: var(--space-lg);
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.3;
  color: #f0f0ff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Футер */
.footer {
  background: rgba(0,8,20,0.9);
  text-align: center;
  font-size: var(--text-sm);
  color: #c7d2ff;
  padding: 32px 0;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Мобильное меню - полупрозрачное */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,8,20,0.4);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  color: white;
  font-size: var(--text-2xl);
  text-decoration: none;
  padding: var(--space-sm) 0;
  text-align: center;
  width: 80%;
  max-width: 300px;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #ff8c42;
}

/* Крестик - исправленная версия */
.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 2.5rem;
  cursor: pointer;
  color: white;
  background: rgba(0,8,20,0.7);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 101;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mobile-menu-close:hover {
  color: #ff8c42;
  background: rgba(0,8,20,0.9);
  border-color: #ff8c42;
  transform: scale(1.05);
}

/* ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ ВНУТРЕННИХ СТРАНИЦ */
.page-content {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 40px;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-xl);
  text-align: center;
  color: #ff8c42 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Улучшаем читаемость текста на всех страницах */
.container h1,
.container h2,
.container h3,
.container h4 {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.container p,
.container li,
.container .requisites-value,
.container .contact-value,
.container .about-text {
  color: #f0f0ff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  line-height: 1.6;
}

/* Стили для страницы "О компании" */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.value-card {
  background: rgba(255,255,255,0.1);
  padding: var(--space-lg);
  border-radius: 12px;
  border-left: 4px solid #ff8c42;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.value-card h3 {
  color: #ff8c42;
  margin-bottom: var(--space-sm);
  font-size: var(--text-xl);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Стили для страницы "Услуги" */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.service-card {
  background: rgba(255,255,255,0.1);
  padding: var(--space-xl);
  border-radius: 12px;
  border-top: 4px solid #ff8c42;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255,140,66,0.15);
}

.service-card h3 {
  color: #ff8c42;
  margin-bottom: var(--space-md);
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.service-card h3::before {
  content: "✓";
  color: #ff8c42;
  font-weight: bold;
}

.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  position: relative;
  color: #f0f0ff;
}

.service-list li::before {
  content: "•";
  color: #ff8c42;
  position: absolute;
  left: 0;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

/* Стили для страницы "Реквизиты" */
.requisites-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-xl);
}

.requisites-section {
  background: rgba(255,255,255,0.1);
  padding: var(--space-xl);
  border-radius: 12px;
  border-left: 4px solid #ff8c42;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.requisites-section h2 {
  color: #ff8c42;
  margin-bottom: var(--space-lg);
  font-size: var(--text-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.requisites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.requisites-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.requisites-item:last-child {
  border-bottom: none;
}

.requisites-label {
  color: #aaaaff;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.requisites-value {
  color: #ffffff;
  font-weight: 400;
  word-break: break-word;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.bank-accounts {
  margin-top: var(--space-lg);
}

.bank-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.account-card {
  background: rgba(0,8,20,0.3);
  padding: var(--space-lg);
  border-radius: 8px;
  border: 1px solid rgba(255,140,66,0.2);
  backdrop-filter: blur(5px);
}

/* Стили для страницы "Контакты" */
.contacts-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contacts-card {
  background: rgba(255,255,255,0.1);
  padding: var(--space-xl);
  border-radius: 12px;
  border-left: 4px solid #ff8c42;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contacts-card h2 {
  color: #ff8c42;
  margin-bottom: var(--space-lg);
  font-size: var(--text-xl);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.contact-label {
  color: #aaaaff;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.contact-value {
  color: #ffffff;
  font-weight: 400;
  font-size: var(--text-lg);
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.contact-value a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-value a:hover {
  color: #ff8c42;
}

/* Яндекс карта */
.yandex-map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255,140,66,0.3);
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: rgba(0,8,20,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255,140,66,0.3);
  color: #aaaaff;
  font-size: var(--text-lg);
  text-align: center;
  padding: var(--space-lg);
}

.map-instructions {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: #8888cc;
  text-align: center;
}

.business-hours {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.business-hours ul {
  list-style: none;
  padding-left: 0;
}

.business-hours li {
  margin-bottom: var(--space-xs);
  display: flex;
  justify-content: space-between;
  color: #f0f0ff;
}

/* Планшетная версия */
@media (min-width: 901px) and (max-width: 1200px) {
  .hero-main h1 {
    font-size: var(--text-4xl);
  }
  
  .slogan {
    font-size: var(--text-2xl);
  }
  
  .hero-company h2 {
    font-size: var(--text-5xl);
  }
  
  .hero-company p {
    font-size: var(--text-lg);
  }
  
  .contacts-container {
    grid-template-columns: 1fr;
  }
}

/* Мобильная версия */
@media (max-width: 900px) {
  :root {
    --base-size: 16px;
    --text-4xl: 1.8rem;
    --text-5xl: 2.2rem;
    --text-6xl: 2.5rem;
  }

  .desktop-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header {
    padding: 8px 0;
  }

  .header .container {
    padding: 0 12px;
  }

  .logo-image {
    height: 40px;
    max-width: 160px;
  }

  .container {
    padding: 0 12px;
  }

  .hero {
    padding: calc(var(--header-height) + 15px) 0 calc(var(--footer-height) - 20px);
    text-align: center;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    align-items: center;
  }

  .hero-content {
    flex-direction: column;
    gap: var(--space-lg);
    width: 100%;
  }

  .hero-main, .hero-company {
    text-align: center;
    width: 100%;
    padding: 0 8px;
  }

  .hero-main h1 {
    font-size: var(--text-4xl);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .slogan {
    font-size: var(--text-xl);
    line-height: 1.3;
    margin-bottom: var(--space-md);
  }

  .hero-company h2 {
    font-size: var(--text-5xl);
    line-height: 1.1;
    margin-bottom: var(--space-xs);
  }

  .hero-company p {
    font-size: var(--text-lg);
    margin-top: var(--space-sm);
    line-height: 1.3;
  }

  .mobile-menu a {
    font-size: var(--text-xl);
    padding: var(--space-xs) 0;
  }
  
  .requisites-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
  
  .requisites-label {
    margin-bottom: 4px;
  }
  
  .contacts-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .yandex-map, .map-placeholder {
    height: 300px;
  }
}

/* Малые экраны (до 480px) */
@media (max-width: 480px) {
  :root {
    --base-size: 14px;
    --footer-height: 70px;
  }

  .container {
    padding: 0 8px;
  }

  .logo-image {
    height: 35px;
    max-width: 140px;
  }

  .hero {
    padding: calc(var(--header-height) + 10px) 0 calc(var(--footer-height) - 10px);
  }

  .hero-content {
    gap: var(--space-md);
  }

  .hero-main h1 {
    font-size: var(--text-3xl);
    line-height: 1.1;
  }

  .slogan {
    font-size: var(--text-lg);
    line-height: 1.25;
  }

  .hero-company h2 {
    font-size: var(--text-4xl);
  }

  .hero-company p {
    font-size: var(--text-base);
  }

  .footer {
    padding: 20px 0;
  }
  
  .page-content {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .yandex-map, .map-placeholder {
    height: 250px;
  }
}

/* Ландшафтная ориентация */
@media (max-height: 600px) and (orientation: landscape) {
  .logo-image {
    height: 35px;
    max-width: 140px;
  }
  
  .hero {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    padding: calc(var(--header-height) + 10px) 0 calc(var(--footer-height) - 10px);
  }
  
  .hero-content {
    gap: var(--space-md);
  }
  
  .hero-main h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
  }
  
  .slogan {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
  }
  
  .hero-company h2 {
    font-size: var(--text-4xl);
  }
  
  .hero-company p {
    font-size: var(--text-base);
    margin-top: var(--space-xs);
  }
  
  .mobile-menu a {
    font-size: var(--text-lg);
    padding: var(--space-xs) 0;
  }
}

/* Очень узкие экраны (до 360px) */
@media (max-width: 360px) {
  .logo-image {
    height: 30px;
    max-width: 120px;
  }
  
  .hero-main h1 {
    font-size: 1.5rem;
  }
  
  .slogan {
    font-size: 1.2rem;
  }
  
  .hero-company h2 {
    font-size: 1.8rem;
  }
  
  .hero-company p {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 6px;
  }
  
  .mobile-menu-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
  .hero .slogan { color: #ff8c42 !important; }
}