/* ---------- CSS Variables ---------- */
:root {
  --black: #0a0a0a;
  --blue-dark: #1e3a8a;
  --blue: #2563eb;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 30px rgba(37, 99, 235, 0.35);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: radial-gradient(ellipse 120% 80% at 50% 0%, var(--blue-dark) 0%, var(--black) 45%, #0f172a 70%, var(--black) 100%);
  min-height: 100vh;
}

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

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.logo-truck {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.logo .fa-truck {
  font-size: 1.5rem;
  color: var(--blue);
  position: relative;
  z-index: 1;
}
.dust {
  position: absolute;
  left: -6px;
  bottom: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 0;
  animation: dustPuff 2.4s ease-in-out infinite;
}
.dust-2 { left: -10px; bottom: 4px; width: 5px; height: 5px; animation-delay: 0.5s; opacity: 0; }
.dust-3 { left: -8px; bottom: 0; width: 4px; height: 4px; animation-delay: 1s; opacity: 0; }
@keyframes dustPuff {
  0% { opacity: 0; transform: scale(0.6) translateX(0); }
  35% { opacity: 0.5; transform: scale(1) translateX(-2px); }
  100% { opacity: 0; transform: scale(1.2) translateX(-6px); }
}
.nav {
  display: flex;
  gap: 28px;
}
.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--blue); }
.burger {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: #3b82f6; }

/* ---------- Sections ---------- */
.section {
  padding: 60px 0;
}
.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  color: var(--white);
}
.section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
.hero-text {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Info Cards ---------- */
.info-cards-section {
  padding: 40px 0;
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.info-card {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.5);
}
.info-card-icon {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 16px;
}
.info-card-title {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}
.info-card-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ---------- Gallery ---------- */
.gallery-section {
  padding: 60px 0;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(345px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  padding: 24px;
  color: var(--white);
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}
.gallery-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.gallery-text {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Cards (services) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.08);
}
.card-icon {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--white);
}
.card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* ---------- Experience block ---------- */
.experience-block {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.experience-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: var(--radius);
  padding: 20px 28px;
  max-width: 720px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.experience-icon {
  font-size: 1.75rem;
  color: var(--blue);
  flex-shrink: 0;
}
.experience-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

/* ---------- Calculator ---------- */
.calculator-section {
  background: linear-gradient(180deg, transparent 0%, rgba(30, 58, 138, 0.2) 50%, transparent 100%);
}
.calculator-card {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

/* ---------- Improved input fields ---------- */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrapper i {
  position: absolute;
  left: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.2s;
}
.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}
.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  background: rgba(255, 255, 255, 0.12);
}
.input-wrapper input:focus + i,
.input-wrapper textarea:focus + i {
  color: var(--blue);
}
.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.calculator-result {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.result-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}
.result-value {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--blue);
}

/* ---------- Contacts ---------- */
.contacts-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}
.contact-item {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.95);
}
.contact-item:last-child { margin-bottom: 0; }
.contact-item i {
  color: var(--blue);
  width: 24px;
  text-align: center;
}
.contact-item a {
  color: var(--white);
  text-decoration: none;
}
.contact-item a:hover { text-decoration: underline; }

/* ---------- Order form ---------- */
.order-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-message {
  min-height: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-message.success { color: #4ade80; }
.form-message.error { color: #f87171; }
.btn-submit {
  align-self: flex-start;
}

/* ---------- Footer ---------- */
.footer {
  padding: 24px 0;
  border-top: none;
  text-align: center;
  background: transparent;
  margin-top: 0;
}
.footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Featured image card ---------- */
.featured-section {
  padding: 40px 0 60px;
}
.featured-card {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease-out;
}
.featured-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.4);
}
.featured-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: filter 0.3s ease;
}
.featured-card:hover .featured-image {
  filter: brightness(1.05) contrast(1.02);
}
.featured-caption {
  padding: 16px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(37, 99, 235, 0.2);
}
.featured-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Fleet grid (автопарк) ---------- */
.fleet-section {
  padding: 60px 0;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.vehicle-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.08);
}
.vehicle-icon {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 16px;
}
.vehicle-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--white);
}
.vehicle-detail {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vehicle-detail i {
  color: var(--blue);
  width: 20px;
  text-align: center;
}
.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255,255,255,0.6);
  padding: 40px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
  }
  .nav.is-open { display: flex; }
  .burger { display: block; }
  .section { padding: 40px 0; }
  .hero { padding: 70px 0 50px; }
  .calculator-card { padding: 24px; }
  .experience-badge {
    flex-direction: column;
    text-align: center;
    padding: 18px 20px;
  }
  .experience-text { font-size: 0.95rem; }
  .info-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .info-card {
    padding: 24px 20px;
  }
  .info-card-icon { font-size: 2rem; }
  .info-card-title { font-size: 1.15rem; }
  .info-card-text { font-size: 0.95rem; }
  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-overlay { padding: 20px; }
  .gallery-title { font-size: 1.3rem; }
  .gallery-text { font-size: 0.95rem; }
}

/* ---------- Кастомные радио-кнопки и чекбоксы (единый стиль) ---------- */
.price-fieldset {
  margin: 20px 0 0;
  padding: 0;
  border: none;
}
.price-legend {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  padding: 0;
}
.price-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-radio-label,
.price-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  position: relative;
}
/* Кастомные радио-кнопки */
.price-radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  margin: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.price-radio-label input[type="radio"]:checked {
  border-color: var(--blue);
  background-color: var(--blue);
  box-shadow: inset 0 0 0 3px rgba(10, 10, 10, 0.9);
}
.price-radio-label input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}
.price-radio-label input[type="radio"]:hover {
  border-color: var(--blue);
}

/* Кастомные чекбоксы (для всех, включая "3 и более точек") */
.price-checkbox-label input[type="checkbox"],
.price-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: transparent;
  margin: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.price-checkbox-label input[type="checkbox"]:checked,
.price-checkbox:checked {
  border-color: var(--blue);
  background-color: var(--blue);
}
.price-checkbox-label input[type="checkbox"]:checked::after,
.price-checkbox:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
}
.price-checkbox-label input[type="checkbox"]:focus,
.price-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}
.price-checkbox-label input[type="checkbox"]:hover,
.price-checkbox:hover {
  border-color: var(--blue);
}

footer {
  border: none;
  box-shadow: none;
}
