/* ------------------------------
   Общий стиль для 8AZ Logistics
------------------------------ */
/* ------------------------------
   Общий стиль
------------------------------ */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #495057;
  color: #ffffff;
  margin: 0;
  padding-top: 0px;
}

h1, h2, h4 {
  font-weight: 700;
  color: #ffc107;
  margin-bottom: 1rem;
}

p, a, span, li {
  line-height: 1.6;
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  color: #ffc107;
}

/* Контейнер */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.container-fluid {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ------------------------------
   Навигация
------------------------------ */
/* === DEFAULT (Desktop) === */
/* === ОБЩИЕ СТИЛИ ДЛЯ НАВИГАЦИИ === */
/* === ОБЩИЕ СТИЛИ === */
.navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 150px;
  max-height: 150px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-wrapper .text-start {
  transform: translateY(-3px);
}

.navbar .fw-bold.fs-4 {
  font-size: 1.3rem;
}

.navbar .text-white-50.small {
  font-size: 0.75rem;
  line-height: 1.15;
}

.navbar .btn {
  padding: 0.45rem 1.1rem;
  font-size: 1rem;
}


/* === МОБИЛЬНАЯ АДАПТАЦИЯ === */
@media (max-width: 576px) {
  .navbar {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  .logo-img {
    height: 100px;
  }

  .logo-wrapper {
    gap: 8px;
  }

  .logo-wrapper .text-start {
    transform: translateY(-2px);
  }

  .navbar .fw-bold.fs-4 {
    font-size: 1.05rem;
  }

  .navbar .text-white-50.small {
    font-size: 0.65rem;
    line-height: 1.1;
  }

  .navbar .btn {
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
  }
}


/* ------------------------------
   Hero-секция
------------------------------ */
.hero-section {
  padding: 80px 0;
  background-color: #2e2f33;
  font-family: 'Segoe UI', sans-serif;
  color: #ffffff;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffc107;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  margin: 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  height: 2rem;
  overflow: hidden;
  position: relative;
}

.hero-subtitle span {
  position: absolute;
  width: 100%;
  opacity: 0;
  animation: cycleText 6s infinite;
}


.hero-subtitle span:nth-child(1) { animation-delay: 0s; }
.hero-subtitle span:nth-child(2) { animation-delay: 2s; }
.hero-subtitle span:nth-child(3) { animation-delay: 4s; }

@keyframes cycleText {
  0%   { opacity: 0; transform: translateY(20px); }
  10%  { opacity: 1; transform: translateY(0); }
  30%  { opacity: 1; }
  40%  { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 0; }
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-stats h4 {
  font-size: 1.5rem;
  color: #ffc107;
  font-weight: bold;
  margin: 0;
}

.hero-stats p {
  font-size: 0.9rem;
  margin: 0;
  color: #ddd;
}

.hero-button {
  margin-top: 2rem;
}

.btn-cta {
  background-color: #ffc107;
  color: #000;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-cta:hover {
  background-color: #e0a800;
  color: #fff;
  transform: translateY(-2px);
}

.hero-image img {
  max-height: 420px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* Анимация стрелочек */
.arrow {
  font-size: 2rem;
  color: #ffb200;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from { transform: translateX(0); opacity: 0.5; }
  to   { transform: translateX(10px); opacity: 1; }
}

/* Подпрыгивающая анимация */
.info-block {
  animation: jump 2s ease-in-out infinite;
}
.info-block:nth-child(2) { animation-delay: 0.3s; }
.info-block:nth-child(3) { animation-delay: 0.6s; }

@keyframes jump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Кнопка */
.btn-warning {
  background-color: #ffb200;
  border-color: #ffb200;
  color: #000;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border-radius: 6px;
}
.btn-warning:hover {
  background-color: #e09e00;
  border-color: #e09e00;
  color: #fff;
  transform: translateY(-2px);
}

/* ------------------------------
   История (Timeline)
------------------------------ */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 20px;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #ffc107;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}
.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
}
.timeline-item.left {
  left: 0;
  text-align: right;
}
.timeline-item.right {
  left: 50%;
  text-align: left;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 10px;
  width: 15px;
  height: 15px;
  background-color: #ffc107;
  border-radius: 50%;
  z-index: 1;
}
.timeline-item.left::before {
  right: -8px;
}
.timeline-item.right::before {
  left: -8px;
}
.timeline-item .content {
  padding: 1rem;
  background-color: #1f1f1f;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}
.timeline-item h5 {
  color: #ffc107;
  font-weight: 700;
}
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 40px;
    padding-right: 25px;
    margin-bottom: 2rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item::before {
    left: 15px;
  }

  .timeline-item.left::before,
  .timeline-item.right::before {
    right: auto;
  }

  .timeline-item .content {
    margin-left: 1.5rem;
  }
}

/* ------------------------------
   Footer
------------------------------ */
footer {
  background-color: #0f0f0f;
  color: #cccccc;
  font-size: 0.9rem;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #333;
}
footer p {
  margin-bottom: 0;
  font-weight: 300;
}
.services-section {
  background-color: #121212;
}

.service-card {
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.service-card .icon {
  color: #ffc107;
}
.service-icon {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.service-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-img {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}
.service-image-large {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
}

.benefits-section {
  background-color: #121212;
}

.benefit-card {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.05);
}
.advantages-section {
  background-color: #1f2225;
  padding-top: 60px;
  padding-bottom: 60px;
}

.advantage-card {
  background-color: #1e1e1e;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.08);
  border-color: #ffb200;
}

.advantage-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 1.2rem;
  border-radius: 10px;
  display: block;
  background-color: #fff; /* белый фон под прозрачные PNG */
  padding: 8px;
}


.client-card img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;

  /* 👇 Добавим фон-подложку и скругление */
   background-color: #ffffff;     /* Белая подложка */
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Светлый ореол */
}

.client-card:hover img {
  transform: scale(1.05);
}

.client-card {
  height: 100%;
  padding: 2rem 1.5rem;
  background-color: #1c1c1c;
  border: 2px solid #ffc107;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.client-card h5 {
  color: #ffc107;
  font-weight: 600;
  margin-top: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* 👈 если фон логотипа светлый */
}

.client-card p {
  color: #cccccc;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}


.contacts-section {
  background-color: #121212;
}

.contact-card {
  background-color: #1e1e1e;
  border: 2px solid #ffc107;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.2);
  transition: 0.3s;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(255, 193, 7, 0.3);
}

.contact-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
html {
  scroll-behavior: smooth;
}
/* Кнопка "Вверх" */
.scroll-to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background-color: #ffc107;
  color: #000;
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-to-top.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: pulse 2s infinite;
}

.scroll-to-top:hover {
  background-color: #e0a800;
  color: #fff;
  transform: translateY(-4px);
}

/* Анимация пульсации кнопки */
@keyframes pulse {
  0% {
    transform: scale(1) translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.05) translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  }
  100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }
}

/* Проект */
.project-card {
  background-color: #1c1c1c;
  border: 2px solid #ffc107;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.project-img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}
#counter {
  animation: glow 2s ease-in-out infinite alternate;
}
.project-img-custom {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}


/* Эффект подсветки */
@keyframes glow {
  from {
    text-shadow: 0 0 10px #ffc107, 0 0 20px #ffc107;
    color: #ffc107;
  }
  to {
    text-shadow: 0 0 20px #ffcf40, 0 0 30px #ffcf40;
    color: #ffe066;
  }
}
/* Эффект при наведении на секцию проекта */
.project-hover-effect {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-hover-effect:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.1);
}
.rounded-section {
  background-color: #000000;
  border-radius: 16px;
  overflow: hidden;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
}

.contact-hero {
  background: url("../img/office.jpg") center center/cover no-repeat;
  min-height: 500px;
  padding: 60px 20px;
  border-radius: 0 0 30px 30px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

.contact-hero .bg-opacity-75 {
  background-color: rgba(0, 0, 0, 0.75);
}

.summary-text p {
  max-width: 800px;
  margin: 0 auto;
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.7;
}
.company-summary-section {
  background-color: #1f1f1f;
  padding: 60px 0;
  border-top: 1px solid #333;
}

.summary-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.summary-title {
  font-size: 2rem;
  color: #ffc107;
  font-weight: 700;
  margin-bottom: 2rem;
}

.summary-number {
  font-size: 2.5rem;
  color: #ffc107;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.summary-label {
  font-size: 1rem;
  color: #ddd;
}
.summary-text p {
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.8;
  text-align: center;
}

.summary-highlight {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.8;
}

.highlight-yellow {
  color: #ffc107;
  font-weight: 700;
}
.contact-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
}
