/* Стили для меню */

.navbar-custom {
  background: linear-gradient(90deg, #0b0c10, #1f1f40, #0b0c10);
  transition: all 0.4s ease;
  padding: 20px 0;
}

.navbar-custom.scrolled {
  background: rgba(15, 15, 40, 0.95);
  padding: 8px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.navbar-custom .nav-link {
  color: #fff;
  text-transform: uppercase;
  margin: 0 12px;
  transition: color 0.3s, transform 0.3s;
}

.navbar-custom .nav-link:hover {
  color: #dc3545;
  transform: scale(1.1);
}
/* === Языковое меню (планета) === */
.navbar-custom .dropdown-toggle {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-custom .dropdown-toggle:hover {
  color: #dc3545;
}

.navbar-custom .dropdown-menu {
  background: rgba(15, 15, 40, 0.95);
  border-radius: 10px;
  min-width: 100px;
  padding: 5px 0;
}

.navbar-custom .dropdown-item {
  color: #ddd;
  transition: all 0.2s ease;
}

.navbar-custom .dropdown-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.navbar-custom .bi-globe2 {
  font-size: 1.1rem;
  color: #dc3545;
}
.navbar-custom .dropdown-toggle:hover {
  transform: none !important; /* отключаем увеличение */
}
.logo {
  height: 45px;
  transition: height 0.4s ease;
}

.navbar-custom.scrolled .logo {
  height: 30px;
}


.hero-section {
  background: url("../img/bg.jpg") no-repeat center center/cover; 
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.icons img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}
.icons img:hover {
  transform: scale(1.2);
}

/* Анимация появления техники */
.hero-images {
  position: relative;
}
.hero-images img {
  position: absolute;
  opacity: 0;
  transform: translateX(100%);
  animation: flyIn 2s forwards;
}
.hero-images .plane { top: 0; right: 0; animation-delay: 0.2s; width: 100%; max-width: 400px; }
.hero-images .train { bottom: 0; left: -22px; animation-delay: 0.8s; width: 100%; max-width: 350px; }
.hero-images .truck { bottom: 0; right: 50px; animation-delay: 1.2s; width: 100%; max-width: 350px; }


@keyframes flyIn {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
/* фон секции (можете заменить на свой) */
.services-section{
   background: url("../img/bg2.jpg") no-repeat center center/cover;
}

/* карточка услуги */
.service-card{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transform: translateZ(0);
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0,0,0,.5);
}

/* картинка */
.service-card__img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transition: transform .6s ease, filter .4s ease;
}
.service-card:hover .service-card__img{
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.1);
}

/* вертикальная плашка-ярлык */
.service-card__label{
  position: absolute;
  inset: 16px auto 16px 12px;   /* top right bottom left */
  width: 56px;                  /* узкая полоса для вертикального вида */
  background: rgb(7 25 46 / 0%);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(2px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* изначально вертикально */
  transform-origin: left center;
  transition: all .45s cubic-bezier(.2,.7,.2,1);
}
.service-card__label > span{
  writing-mode: vertical-rl;            /* вертикальное письмо */
  transform: rotate(180deg);            /* читается снизу-вверх */
  color: #fff;
  letter-spacing: .5px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .95rem;
  transition: transform .45s ease, writing-mode .45s ease, letter-spacing .45s ease;
}

/* Ховер: разворот ярлыка в горизонталь */
.service-card:hover .service-card__label{
  width: calc(100% - 24px);
  left: 12px; right: 12px;
  bottom: 16px; top: auto;
  background: rgb(7 25 46 / 0%);
}
.service-card:hover .service-card__label > span {
  writing-mode: horizontal-tb;
  transform: none;
  letter-spacing: 1.2px;
  text-align: center;
  white-space: normal;   /* тоже разрешаем перенос */
}

/* мобильная логика: всегда горизонтально (чтобы было удобно) */
@media (max-width: 575.98px){
  .service-card__label{
    width: calc(100% - 24px);
    left: 12px; right: 12px; bottom: 16px; top: auto;
  }
  .service-card__label > span{
    writing-mode: horizontal-tb;
    transform: none;
  }
}

/* ---------- Эффект «вылетов» при появлении ----------- */
.fly{ opacity:0; transform: translateX(100%); }
.fly.in-view{ animation: flyIn .9s ease both; }
/* авто-стаггер в пределах одного контейнера */
.hero-images .fly:nth-child(1).in-view{ animation-delay: 0s; }
.hero-images .fly:nth-child(2).in-view{ animation-delay: .35s; }
.hero-images .fly:nth-child(3).in-view{ animation-delay: .7s; }

@keyframes flyIn{
  from{ opacity:0; transform: translateX(100%); }
  to  { opacity:1; transform: translateX(0); }
}
.fly[data-fly="left"]{ transform: translateX(-40px); }
.fly[data-fly="right"]{ transform: translateX(40px); }
.fly[data-fly="up"]{ transform: translateY(40px); }

.fly.in-view{
  opacity: 1;
  transform: none;
}

/* Общие стили для текста */
#services h1, 
#services p {
  text-align: center;
}

/* Уменьшенный текст для длинных подписей */
.service-card__label.small-text span {
  font-size: 0.8rem; /* уменьшаем, чтобы влезало */
  letter-spacing: 0.3px;
}
.service-card__label > span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff;
  letter-spacing: .5px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .95rem;
  transition: transform .45s ease, writing-mode .45s ease, letter-spacing .45s ease;
  text-align: center;
  line-height: 1.2;
  white-space: normal;   /* ✅ разрешаем перенос */
  word-break: break-word; /* переносим длинные слова */
}
/* кнопки/текст всегда поверх */
.hero-text{ position: relative; z-index: 2; }

.hero-images{ position: relative; z-index: 1; }

/* ------- Мобильный режим ------- */
@media (max-width: 767.98px){
  .hero-section{ padding: 72px 0 24px; }              /* комфортные отступы */
  .hero-text{ text-align: left; }                      /* можно center, если нужно */

  .hero-images{
    position: static;                                  /* убираем абсолюты */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
  }
  .hero-images img{
    position: static !important;
    width: min(92vw, 380px);                           /* не шире экрана */
    height: auto;
    animation: none !important;                        /* убрать анимацию */
    transform: none !important;
    opacity: 1 !important;
    pointer-events: none;                              /* не перекрывают клики по кнопке */
  }
}
/* ===== ДЕСКТОП: меняем раскладку и порядок ===== */
@media (min-width: 992px){
  .hero-images{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "plane plane"
      "train truck";
    align-items: end;
    justify-items: end;
    gap: 12px 16px;
    min-height: 460px;          /* резерв по высоте, под себя подстройте */
    overflow: visible;
  }

  /* важное: убрать absolute у изображений именно на десктопе */
  .hero-images img{
    position: relative !important;
    max-width: 100%;
    height: auto;
  }

  /* расположение и слои */
  .hero-images .plane{ grid-area: plane;  justify-self: end;  z-index: 3; }
  .hero-images .train{ grid-area: train;  justify-self: start; z-index: 2; }
  .hero-images .truck{ grid-area: truck;  justify-self: end;  z-index: 2; }

  /* если используете «вылеты» с translateX/translateY — оставляем их,
     сетка не мешает анимации; задержки остаются через data-delay */
}
:root{ --nav-h: 72px; }           /* значение по умолчанию */
body{ padding-top: var(--nav-h); background-color: rgba(15, 15, 40, 0.95)} /* весь контент ниже шапки */

/* якорные секции не прячутся под fixed-меню */
section[id]{ scroll-margin-top: calc(var(--nav-h) + 12px); }

/* на мобиле меню немного выше — оставим запас */
@media (max-width: 767.98px){
  :root{ --nav-h: 76px; }
}

/* шапка поверх всего */
.navbar-custom{ z-index: 1040; }
.about-section {
  background: linear-gradient(180deg, #061a32, #1a1a30);
}

.about-section h2 {
  font-weight: 700;
  letter-spacing: 1px;
}

.about-section ul {
  list-style: none;
  padding-left: 0;
}

.about-section li {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.about-section iframe {
  border: none;
  transition: transform .4s ease;
}

.about-section iframe:hover {
  transform: scale(1.03);
}

/* ===== Партнёры ===== */
.partners-section {
  border-top: 1px solid rgba(255,255,255,0.15);
}

.partner-logo {
  filter: brightness(0) invert(1) opacity(0.85);
  transition: transform .3s ease, opacity .3s ease;
  max-height: 20px;
}

.partner-logo:hover {
  transform: scale(1.1);
  opacity: 1;
  filter: brightness(1) invert(0);
}
.order-section {
  background: linear-gradient(180deg, #1a1a30, #1a1a30);
}

.order-section .form-label {
  font-weight: 600;
  color: #fff;
}

.order-section .form-control {
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}

.order-section .form-control::placeholder {
  color: rgba(255,255,255,0.5);
}

.order-section .form-control:focus {
  background-color: rgba(255,255,255,0.15);
  border-color: #ff4b4b;
  box-shadow: 0 0 0 0.25rem rgba(255,75,75,0.25);
}

.order-section .form-check-label {
  color: #fff;
}

.order-section button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-section button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}
.modal-content {
  background: linear-gradient(180deg, #0b0c10, #1a1a30);
  box-shadow: 0 0 30px rgba(255,0,0,0.3);
  border-radius: 16px;
  animation: fadeIn .4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.contacts-section {
  background: linear-gradient(180deg, #1a1a30, #44448b);
}

.contact-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.contact-list strong {
  color: #ffcc00;
  margin-right: 6px;
}

.map-container iframe {
  width: 100%;
  border-radius: 12px;
  transition: transform .4s ease;
}

.map-container:hover iframe {
  transform: scale(1.01);
}

.socials img {
  width: 32px;
  height: 32px;
  opacity: 0.8;
  transition: transform .3s ease, opacity .3s ease;
}

.socials img:hover {
  transform: scale(1.2);
  opacity: 1;
}
/* --- Стили для всплывающего окна (Lightbox) --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  animation: fadeIn .4s ease;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  transition: transform .3s ease, color .3s ease;
}

.close-btn:hover {
  color: #ff4b4b;
  transform: scale(1.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* ==== Мобильная версия секции УСЛУГИ ==== */
@media (max-width: 767.98px) {
  /* Отключаем hover-анимации */
  .service-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  .service-card:hover .service-card__img {
    transform: none;
    filter: saturate(1.05) contrast(1.05);
  }

  /* Размещаем подписи под изображениями */
  .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .service-card__label {
    position: static;
    width: 100%;
    background: transparent;
    border: none;
    margin-top: 10px;
  }

  .service-card__label > span {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
}
.about-section .btn {
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 24px;
  transition: all 0.3s ease;
}

.about-section .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: pulse 1.5s infinite;
}

/* Пульсация */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
a {
    color: rgb(184 207 241);
    text-decoration: underline;
}