/* Общие стили */
* {
  box-sizing: border-box; /* Это критично для iOS */
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #333; /* Темный фон */
  color: #fff;
  padding: 15px;
  display: none; /* Скрыта по умолчанию */
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  font-family: sans-serif;
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner p {
  margin: 0 20px 0 0;
}
.cookie-banner a {
  color: #0d7427;
  text-decoration: underline;
}

.cookie-btn {
  background: #4caf50; /* Зеленая кнопка */
  color: white;
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: #45a049;
}

.form-agreement {
  width: 50vw;
  max-width: 90%;
  margin: 20px auto;
  font-size: clamp(0.4rem, 0.9375vw, 0.8rem);
  text-align: center;
  justify-content: center;
  margin-bottom: 10px;
  display: block;
}
.form-agreement a {
  color: #0d7427; /* Цвет ссылки */
  text-decoration: none;
}

.cargo-card {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  outline: none;
  user-select: none;
}

/* Убираем стандартный контур фокуса у скрытого радиобаттона */
.cargo-card input[type="radio"] {
  outline: none;
  appearance: none; /* Скрывает стандартный вид в современных браузерах */
  -webkit-appearance: none;
  position: absolute; /* Чтобы не занимал место, если ты его не скрыл */
  opacity: 0;
}

/* Запрещаем выделение самих картинок внутри */
.cargo-img,
.checkmark-img {
  pointer-events: none; /* Клик будет "проходить сквозь" картинку сразу на label */
  -webkit-user-drag: none;
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Начальное состояние (в самом верху) */
.top-nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;

  /* Делаем фон прозрачным */
  background-color: rgba(26, 26, 26, 0);
  border-bottom: 1px solid transparent;

  /* Плавный переход цветов при скролле */
  transition: all 0.4s ease-in-out;
}

/* Состояние при прокрутке (добавляется скриптом) */
.top-nav-fixed.scrolled {
  background-color: rgba(26, 26, 26, 0.95); /* Почти черный фон */
  border-bottom: 1px solid #333;
  padding: 10px 0; /* Меню станет чуть уже — эффектный прием */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Распределяем по краям */
  max-width: 80vw;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px; /* Фиксированная высота для ровности */
}

/* 1. Блок навигации слева */
.nav-links {
  flex: 1; /* Занимает 33% ширины */
  display: flex;
  list-style: none;
  justify-content: flex-start; /* Прижимает к левому краю */
  gap: 30px; /* Расстояние между ссылками */
}

/* 2. Блок заголовка в центре */
.nav-brand {
  flex: 1; /* Тоже занимает 33% ширины */
  display: flex;
  justify-content: center; /* Центрирует содержимое внутри своей колонки */
  text-align: center;
  font-weight: bold;
  color: #fff;
  white-space: nowrap; /* Чтобы не переносилось */
}

/* 3. Блок контактов справа */
.nav-info {
  flex: 1; /* Тоже занимает 33% ширины */
  display: flex;
  justify-content: flex-end; /* Прижимает к правому краю */
  align-items: center;
  gap: 20px;
}

/* Сброс лишних отступов у ссылок */
.nav-links a,
.nav-info a {
  text-decoration: none;
  color: white;
  margin: 0;
  font-size: clamp(12px, 0.546875vw, 14px);
}

.nav-links a:hover {
  color: #0d7427;
}

.brand-title {
  text-decoration: none;
  color: white;
  font-size: clamp(16px, 0.78125vw, 20px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}

.nav-phones a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(12px, 0.78125vw, 14px);
  font-weight: bold;
}

.nav-phones {
  display: flex;
  flex-direction: column; /* Номера друг под другом */
  justify-content: center;
  gap: 2px; /* Плотность строк телефонов */
}

.nav-social {
  display: flex;
  align-items: center; /* Выравнивает иконки внутри своего ряда */
  gap: 12px; /* Расстояние между самими иконками */
}

.nav-social img {
  display: block; /* Убирает лишние системные отступы снизу */
  width: 22px;
  height: 22px;
  filter: invert(1);
}

section {
  opacity: 0;
  transform: translateY(30px); /* Легкое смещение вниз */
  transition: all 0.8s ease-out; /* Плавность анимации */
  will-change: opacity, transform;
}

/* Класс, который будет добавлять JS при скролле */
section.show {
  opacity: 1;
  transform: translateY(0);
}

/* Хедер */
.hero {
  position: relative;
  height: 100vh; /* на весь экран */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;

  /* Градиент сверху и снизу + фоновая картинка */
  background:
    linear-gradient(
      to bottom,
      rgba(51, 36, 0, 0.6) 0%,
      /* сверху #332400 с 60% прозрачностью */ rgba(0, 0, 0, 0.6) 100%
        /* снизу #000000 с 60% прозрачностью */
    ),
    url("images/page.jpg") center/cover no-repeat; /* фоновая картинка */
  will-change: transform;
  transform: translateZ(0);
}

.hero-content {
  z-index: 1;
  padding: 10px;
  animation: fadeInUp 1.5s ease-out forwards;
}

/* Название сайта */
.hero-content h1 {
  font-size: clamp(2.5rem, 3.125vw, 5rem); /* чуть меньше, чем было 4rem */
  margin: 0 0 -5px 0; /* уменьшено расстояние до слогана */
}

.hero-content p {
  font-size: clamp(
    1.25rem,
    1.5625vw,
    2.5rem
  ); /* чуть меньше, чем было 1.8rem */
  margin: 0;
}

.phone-header {
  position: absolute; /* Позволяет игнорировать соседние элементы */
  top: 20px; /* Отступ сверху */
  right: 20px; /* Отступ справа */
  z-index: 10; /* Поверх всего */
}

.phone-header img {
  width: 250px; /* Настройте нужный размер иконки */
  height: auto;
  transition: transform 0.3s ease;
}

.phone-header img:hover {
  transform: scale(1.1); /* Эффект при наведении */
}
/* Форма */

/* Контейнер для выравнивания в ряд */
.input-container {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 50vw; /* фиксированная ширина ряда */
  max-width: 90%; /* адаптивно для маленьких экранов */
  margin: 0 auto; /* по центру страницы */
}

/* Стилизация полоски (трека) */
#amountRange {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; /* Растягивается максимально */
  height: 8px;
  background: #0d7427; /* ВСЯ ПОЛОСКА ЗЕЛЕНАЯ */
  border-radius: 5px;
  outline: none;
}

/* Бегунок-МОНЕТКА для Chrome, Safari, Edge */
#amountRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px; /* Размер монетки */
  height: 25px;
  background-image: url("images/coin.png"); /* ПУТЬ К ВАШЕЙ МОНЕТКЕ */
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  cursor: pointer;
  border: none;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.4));
  margin-top: -1px; /* Центрирование относительно полоски */
}

/* Бегунок-МОНЕТКА для Firefox */
#amountRange::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background-image: url("images/coin.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  cursor: pointer;
  border: none;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.4));
}

/* Стили поля ввода */
#amountInput {
  width: 90px;
  padding: 8px;
  border: 2px solid #0d7427;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  color: #333;
}

.form-section {
  padding: 7vh 7vw;
  text-align: left;
  background-color: #ffffff;
  background-image: url("images/form-background.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain; /* Или 45% auto, чтобы картинка не залезала под текст */
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.form-section h2 {
  font-size: clamp(1rem, 1.875vw, 3rem);
  margin-top: 0px;
  margin-bottom: 15px;
}

#formRequest {
  width: 50vw; /* Занимает чуть меньше половины экрана */
  max-width: 90%;
  margin-right: 0;
  margin-left: auto; /* Дополнительно гарантирует прижатие вправо */
}

/* Исправляем заголовок */
.form-section-title {
  width: 50vw; /* Такая же ширина, как у вашей формы (.form-row) */
  margin-left: auto; /* Выталкивает блок в правую часть */
  margin-right: 0; /* Прижимает к правому краю (с учетом padding секции) */
  text-align: center; /* Центрирует текст внутри этих 50vw */
}

/* Исправляем описание */
.form-section-desc {
  width: 30vw; /* Увеличиваем с 30vw до 50vw, чтобы совпадало с формой */
  margin-left: auto; /* Выталкивает вправо */
  margin-right: 10vw;
  font-size: clamp(1rem, 0.9375vw, 1.5rem);
  text-align: center;
  justify-content: center;
  margin-bottom: 30px;
  display: block; /* Убираем flex, чтобы margin: auto работал корректно */
}

.form-grid,
.cargo-types,
.type-label {
  width: 100%; /* Теперь они на всю ширину своего контейнера (45vw) */
  max-width: 100%;
  margin-left: 0;
}

.form-section button {
  display: block;
  margin-left: auto;
  margin-right: auto; /* Теперь она центрируется относительно своих 50vw */
}

/* Ряды полей */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Две равные колонки */
  gap: 15px; /* Расстояние между всеми полями */
  width: 50vw;
  max-width: 90%; /* адаптивно для маленьких экранов */
  margin: 0 auto; /* по центру страницы */
}

.form-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;

  width: 50vw; /* фиксированная ширина ряда */
  max-width: 90%; /* адаптивно для маленьких экранов */
  margin: 0 auto; /* по центру страницы */
}

.form-grid input {
  padding: 12px;
  font-size: clamp(0.3rem, 0.625vw, 1rem);
  flex: 1; /* занимает равную ширину в блоке */
  min-width: 100px; /* минимальная ширина для узких экранов */
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.type-label {
  text-align: left; /* текст прижат к левому краю блока */
  font-weight: bold;
  font-size: clamp(0.8rem, 0.625vw, 1rem);
  width: 50vw; /* фиксированная ширина ряда */
  max-width: 90%; /* адаптивно для маленьких экранов */
  margin: 10px auto; /* по центру страницы */
}

/* Карточки типа груза */
.cargo-types {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;

  width: 50vw; /* та же ширина, что и .form-row */
  max-width: 90%;
  margin: 0px auto 20px auto;
}

.cargo-card .checkmark-img {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px; /* размер маленькой галочки */
  height: 20px;
  display: none;
}

.cargo-card.selected .checkmark-img {
  display: block;
}

.cargo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc((100% - 2 * 50px) / 3); /* 3 карточки, вычитаем суммарные gap */
  border: 2px solid #ccc;
  border-radius: 16px;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cargo-card.selected {
  border-color: #0d7427; /* рамка выбранной карточки */
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3); /* тень выбранной карточки */
}

/* Картинка внутри карточки */
.cargo-card .cargo-img {
  width: 100%; /* картинка занимает 80% ширины карточки */
  height: auto; /* сохраняем пропорции */
  object-fit: contain;
  border-radius: 16px;
}

.cargo-card input[type="radio"] {
  display: none; /* скрываем стандартную радиокнопку */
}

/* Подсветка выбранной карточки */
.cargo-card input[type="radio"]:checked + .cargo-img + .cargo-name {
  color: #0d7427;
}

.input-group {
  display: flex;
  gap: 10px; /* Расстояние между селектами */
  width: 100%;
  max-width: 1000px; /* Чтобы не растягивались бесконечно */
  margin: 10px 0;
}

.custom-select:valid {
  color: #000; /* Цвет как у цифр в номере телефона */
}

.custom-select option {
  color: #000;
}

.custom-select {
  padding: 12px;
  color: #757575; /* Тот же серый, что у "Ваше имя" */
  font-size: clamp(0.3rem, 0.625vw, 1rem);
  flex: 1; /* занимает равную ширину в блоке */
  min-width: 100px; /* минимальная ширина для узких экранов */
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;

  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 12px;
  cursor: pointer;
}

/* Эффект при клике */
.custom-select:focus {
  border-color: #a0a0a0;
}

@media (max-width: 768px) {
  .custom-select {
    font-size: clamp(0.8rem, 0.625vw, 1rem);
    width: 100%; /* Занимают всю ширину экрана */
  }
}

/* Кнопка */
.form-section button {
  padding: 12px 30px;
  font-size: clamp(1rem, 0.9375vw, 1.5rem);
  background-color: #0d7427;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 5vh;
  transition: 0.3s;
}

.form-section button:hover {
  background-color: #0d7427;
}

/* Отзывы */
.reviews-section {
  padding: 60px 50px;
  background-color: #292929;
  text-align: center;
}

.reviews-title {
  font-size: clamp(2rem, 1.5625vw, 2.5rem);
  margin-bottom: 40px;
  color: #ffffff;
}

.reviews-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.review-card {
  background-color: #292929;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.review-rating {
  display: flex;
  gap: 4px; /* Расстояние между звездами */
  margin-bottom: 15px; /* Отступ до текста отзыва */
}

.review-rating img {
  width: 18px; /* Размер звезд */
  height: 18px;
  /* Если звезды — это иконки, можно добавить фильтр для цвета, 
     если они вдруг не золотые в оригинале: */
  /* filter: invert(85%) sepia(50%) saturate(1000%) hue-rotate(1deg); */
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.review-name {
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.review-text {
  font-size: clamp(0.8rem, 0.59375vw, 0.95rem);
  color: #ffffff;
}

/* Полезная инфа */
.helpfull-section {
  padding: 10vh 25vw;
  text-align: center;
  background-color: #ffffff;
}

.helpfull-title {
  font-size: clamp(1rem, 0.9375vw, 1.5rem);
  font-weight: lighter;
  letter-spacing: 0.5px;
  color: #292929;
}

/* Услуги */
.services-section {
  padding: 10vh 10vw;
  text-align: center;
  background-color: #292929;
}

.services-title {
  font-size: clamp(2rem, 1.5625vw, 2.5rem);
  margin-bottom: 5vh;
  color: #ffffff;
}

.services-description {
  font-size: clamp(1rem, 1.5625vw, 1.5rem);
  width: 80vw;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  margin-bottom: 10vh;
  color: #ffffff;
}

/* Контейнер карточек */
.services-container {
  display: flex;
  flex-direction: column;
  gap: 40px; /* расстояние между рядами */
}

/* Ряд карточек */
.services-card-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* Стили для чередования */
.left-image img {
  order: 0;
}

.left-image .services-card {
  order: 1;
}

.right-image img {
  order: 1;
}

.right-image .services-card {
  order: 0;
}

/* Карточка с текстом */
.services-card {
  width: 30vw;
  text-align: left;
}

.services-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 400;
  color: #ffffff;
}

.services-card p {
  font-size: 1.1rem;
  color: #ffffff;
}

/* Картинки */
.service-img {
  width: 30vw;
  height: 30vh;
  object-fit: cover;
  border-radius: 10px;
  object-fit: cover;
}

/* Адаптивность */
/* Меньше 1024px — карточки по 100% в колонку */
.footer {
  background-color: #ffffff;
  color: #292929;
  padding: 60px 50px 10px 50px;
  font-family: "Roboto", sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between; /* левая влево, правая вправо */
  align-items: flex-start; /* верхний край на одном уровне */
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 2vh;
}

/* Левая часть */
.footer-left {
  flex: 0 1 auto; /* занимает только нужное место */
}

.footer-left h3 {
  font-size: 1.8rem;
  margin: 0 0 10px 0;
  font-weight: 300;
}

.footer-left p {
  margin: 0 0 20px 0;
  font-size: 1rem;
}

.footer-form {
  display: flex;
  gap: 10px;
}

.footer-form input[type="tel"] {
  padding: 12px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  flex: 1;
  max-width: 250px;
}

.footer-form button {
  padding: 12px 20px;
  background-color: #0d7427;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Правая часть */
.footer-right {
  flex: 0 1 auto; /* занимает только нужное место */
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* прижимает содержимое к правому краю */
  gap: 20px;
}

.footer-contacts p {
  margin: 5px 0;
  display: flex; /* Включаем flexbox */
  align-items: center; /* Выравниваем всё по центру вертикали */
  gap: 8px;
}

.footer-contacts a {
  color: #292929;
  text-decoration: none;
  display: flex; /* Чтобы ссылка-обертка иконки тоже центрировала содержимое */
  align-items: center;
}

.footer-contacts img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer-UNP {
  gap: 0px;
}

.footer-UNP p {
  text-align: right;
  margin-top: 0px;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-social {
  align-self: flex-start;
}

.footer-social a {
  margin-left: 10px; /* небольшие отступы между соцсетями */
}

.footer-social img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Копирайт */
.footer-info {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  transform: scale(0.7);
  transform-origin: top center;
  width: 140%;
  margin-left: -20%;
  -webkit-text-size-adjust: none;
  color: #aaa;
}

.footer-copy {
  text-align: center;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #aaa;
}

/* Стили для кнопки-бургера */
.burger-menu {
  display: none; /* Скрыт на ПК */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.burger-menu span {
  width: 30px;
  height: 3px;
  background: #fff; /* Цвет полосок (черный или белый, смотря какая шапка) */
  border-radius: 10px;
  transition: all 0.3s ease; /* Плавность анимации */
}

.burger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.open span:nth-child(2) {
  opacity: 0; /* Прячем среднюю полоску */
}
.burger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: clamp(6px, 0.78125vw, 14px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent; /* Убирает синий блик при клике на iOS/Android */
  outline: none; /* Убирает рамку фокуса */
  user-select: none; /* Запрещает случайное выделение текста */
}

a,
button,
.burger-menu,
.logo,
.nav-links li a {
  -webkit-tap-highlight-color: transparent; /* Для Chrome, Safari, Android */
  outline: none; /* Убирает пунктирную рамку */
}

/* Запрещаем выделение текста (желтым/синим) при долгом нажатии или двойном клике */
.burger-menu,
.logo,
.nav-links li a,
h1,
h2 {
  /* добавь сюда селектор для "деньги в долг", например .hero-title */
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE/Edge */
  user-select: none; /* Стандарт */
}

.mobile-socials {
  display: none;
}

.mobile-phones-item {
  display: none;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
  .form-section {
    background-image: none !important; /* Убираем фоновую картинку */
    padding: 20px; /* Уменьшаем внутренние отступы секции */
  }

  .form-container {
    width: 100vw !important; /* Форма растягивается на всю ширину */
    max-width: 100%;
    margin: 0 auto;
    padding: 15px; /* Делаем форму компактнее */
  }

  .form-section h2 {
    text-align: center;
  }

  .form-section-title {
    margin-left: auto;
    margin-right: auto;
  }

  .form-section-desc {
    margin-left: auto;
    margin-right: auto;
    width: 80vw;
  }

  #formRequest {
    width: 100vw; /* Занимает чуть меньше половины экрана */
    max-width: 100%;
    margin-right: auto;
    margin-left: auto; /* Дополнительно гарантирует прижатие вправо */
  }

  .input-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100vw; /* фиксированная ширина ряда */
    max-width: 100%; /* адаптивно для маленьких экранов */
    margin: 0 auto; /* по центру страницы */
  }

  .cargo-types {
    display: flex;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;

    width: 100vw; /* та же ширина, что и .form-row */
    max-width: 100%;
    margin: 0px auto 20px auto;
  }

  .cargo-card .checkmark-img {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px; /* размер маленькой галочки */
    height: 15px;
    display: none;
  }

  .cargo-card.selected .checkmark-img {
    display: block;
  }

  .cargo-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: calc((90vw - 2 * 5px) / 3); /* 3 карточки, вычитаем суммарные gap */
    border: 2px solid #ccc;
    border-radius: 16px;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .cargo-card.selected {
    border-color: #0d7427; /* рамка выбранной карточки */
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3); /* тень выбранной карточки */
  }

  /* Картинка внутри карточки */
  .cargo-card .cargo-img {
    width: 100%; /* картинка занимает 80% ширины карточки */
    height: auto; /* сохраняем пропорции */
    object-fit: contain;
    border-radius: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr; /* Все поля в одну колонку */
    gap: 10px;
    margin-bottom: 20px;
    width: 100vw; /* фиксированная ширина ряда */
    max-width: 100%; /* адаптивно для маленьких экранов */
  }

  .form-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;

    width: 100vw; /* фиксированная ширина ряда */
    max-width: 100%; /* адаптивно для маленьких экранов */
  }

  .form-grid input {
    padding: 12px;
    font-size: clamp(0.8rem, 0.625vw, 1rem);
    flex: 1; /* занимает равную ширину в блоке */
    width: 90vw;
    min-width: 100px; /* минимальная ширина для узких экранов */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
  }

  .type-label {
    max-width: 100%;
    width: 100vw; /* фиксированная ширина ряда */
  }

  .header .nav-info {
    display: none;
  }

  .nav-info {
    display: none;
  }

  /* Показываем блок с телефонами */
  .mobile-phones-item {
    display: block;
    margin: 30px 0 20px 0; /* Отступ сверху от меню и снизу до соцсетей */
    width: 100%;
    text-align: center;
  }

  .social-phones {
    display: flex;
    flex-direction: column; /* Телефоны один под другим */
    gap: 15px; /* Расстояние между номерами */
  }

  .social-phones a {
    color: #fff !important; /* Белый цвет для черного фона меню */
    font-size: clamp(18px, 1.25vw, 24px); /* Адаптивный размер */
    text-decoration: none;
    font-weight: 500;
    display: block;
    -webkit-tap-highlight-color: transparent;
  }

  /* 2. Показываем соцсети внутри выпадающего меню */
  .mobile-socials {
    display: block;
    margin-top: 30px; /* Отступ от пунктов меню */
    text-align: center;
  }

  /* Стили для самих иконок внутри меню */
  .mobile-socials .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Расстояние между иконками */
  }

  .mobile-socials .social-icons img {
    width: 35px; /* Сделай их чуть крупнее для удобства нажатия */
    filter: invert(1); /* Если фон меню черный, а иконки темные */
  }
  .burger-menu {
    display: flex; /* Показываем на мобилках */
  }

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

  .phone-header .hero-content p {
    font-size: 1rem;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(26, 26, 26, 0.95) !important;

    /* Эффект скрытия/появления */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 10000;
  }

  /* Класс, который будет добавлять JS при клике */
  .nav-links.active {
    display: flex !important; /* Форсируем появление */
    background: white;
    position: absolute;
    top: 60px; /* Подбери под высоту своей шапки */
    left: 0;
    width: 100%;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    justify-content: center; /* Центр по вертикали */
    align-items: center; /* Центр по горизонтали */
  }

  .nav-links li {
    list-style: none;
    margin: 15px 0; /* Расстояние между пунктами */
    width: 100%;
    text-align: center; /* Центрируем текст внутри строки */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links li a {
    line-height: 1;
    color: #fff !important;
    font-size: clamp(16px, 0.78125vw, 20px);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
  }

  .right-image img {
    order: 0;
  }

  .right-image .services-card {
    order: 1;
  }

  .services-card-row {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .services-card {
    max-width: 100%;
    text-align: center;
    width: 80vw;
  }

  .service-img {
    width: 80%;
    max-width: 300px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-form {
    flex-direction: column;
    gap: 10px;
  }

  .footer-form input[type="tel"] {
    max-width: 100%;
    align-self: center;
  }

  .footer-right {
    align-items: center; /* центрируем контакты на мобильных */
  }

  .reviews-container {
    justify-content: center;
    gap: 15px;
  }
  .reviews-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .reviews-card {
    width: 100%; /* Но на узких экранах займет всю ширину */
    margin: 0 auto; /* Центрирование */
  }
  .service-cards {
    flex-direction: column;
    align-items: center;
  }
  .cargo-types {
    flex-direction: row;
    width: 100vw; /* почти весь экран */
  }
  .footer-social {
    justify-content: center;
    align-content: center;
    align-self: center;
  }
  #amountRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;

    /* Убираем стандартную тень и обводку, которые iOS может рисовать как квадрат */
    box-shadow: none;
    border: 0;
    outline: none;

    /* Гарантируем прозрачность фона */
    background-color: rgba(0, 0, 0, 0);

    /* Остальные ваши стили */
    width: 25px;
    height: 25px;
    background-image: url("images/coin.png");
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.4));
    margin-top: -1px;
  }
  /*.cargo-card {
    width: 100%;
  }*/
}

/**/
.custom-select-wrapper {
  position: relative;
  width: 100%; /* Занимает всё место, которое дает сетка */
}

#real-job-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#real-debts-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Главное поле: высота и рамки один-в-один как у инпутов */
.select-box {
  height: 40px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0 12px; /* Чуть уменьшил отступ, как в дефолте */
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-sizing: border-box;
}

.select-label {
  font-size: clamp(0.3rem, 0.625vw, 1rem);
  color: #757575;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Если текст не влезает, будет троеточие */
}

/* Черный текст при выборе */
.select-box.has-value .select-label {
  color: #000;
}

/* Компактная стрелочка-треугольник (как в дефолтном селекте) */
.select-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #333;
  margin-left: 10px;
  transition: transform 0.2s;
}

.custom-select-wrapper.open .select-arrow {
  transform: rotate(180deg);
}

/* Список опций: теперь выпадает строго под полем */
.select-options-list {
  position: absolute;
  top: 100%; /* Без зазора */
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none; /* Чтобы не двоилась рамка */
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

.custom-select-wrapper.open .select-options-list {
  display: block;
}

.select-option {
  padding: 10px 12px;
  font-size: clamp(0.3rem, 0.625vw, 1rem);
  cursor: pointer;
}

.select-option:hover {
  background: #f0f0f0;
}

/* На мобилках делаем чуть крупнее для удобства */
@media (max-width: 768px) {
  .select-box,
  .select-option {
    font-size: clamp(0.8rem, 0.625vw, 1rem);
  }
  .select-label {
    font-size: clamp(0.8rem, 0.625vw, 1rem);
  }
}
