@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat-Regular');
  src: url('../fonts/Montserrat-Regular.woff'), url('../fonts/Montserrat-Regular.woff2') format('woff2'), url('../fonts/Montserrat-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat-Medium');
  src: url('../fonts/Montserrat-Medium.woff'), url('../fonts/Montserrat-Medium.woff2') format('woff2'), url('../fonts/Montserrat-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat-Bold');
  src: url('../fonts/Montserrat-Bold.woff'), url('../fonts/Montserrat-Bold.woff2') format('woff2'), url('../fonts/Montserrat-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.flex {
  display: flex;
}

.list__reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.btn__reset {
  margin: 0;
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.container {
  margin: 0 auto;
  padding: 0 247px;
}

:root {
  --header: #292525;
  --red: #d8b82b;
  --white: #fff;
  --black: #000;
}

/* --- Транспортная как было (часть белая, часть белая) --- */
.transport-top {
  padding: 20px 0;
  background: var(--header);
}

.content-header {
  align-items: center;
  justify-content: space-between;
}

.transport-top h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
}

.logo {
  margin-right: 10px;
  width: 100px;
}

.contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.phone {
  margin-bottom: 5px;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}

.phone:hover {
  text-decoration: underline;
}

.tg-link {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}

.tg-link:hover {
  text-decoration: underline;
}

.delivery {
  padding: 120px 0 60px 0;
  background: url('../img/fon.png') no-repeat center;
  background-size: cover;
}

.shell {
  justify-content: space-between;
  gap: 30px;
}

.delivery-content {
  padding-left: 56px;
  max-width: 60%;
}

.delivery__title {
  margin-bottom: 20px;
  font-size: 48px;
  line-height: 54px;
  font-weight: 500;
  color: var(--black);
}

.delivery-list {
  padding-left: 20px;
  flex-direction: column;
  gap: 10px;
}

.delivery-list-item {
  font-size: 20px;
  line-height: 22px;
  font-weight: 400;
  color: var(--black);
}

.fix {
  margin-bottom: 0;
}

.content__form {
  max-width: 42%;
  width: 100%;
}

.form__cont {
  padding: 30px 30px;
  background: var(--red);
  border: 2px solid var(--black);
  border-radius: 50px;
}

.form__cont h2 {
  font-size: 26px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--white);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--white);
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-pair {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-pair label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.form-pair input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-pair input:focus {
  border-color: var(--red);
  box-shadow: 0 0 5px rgba(188, 70, 57, 0.3);
}

/* Стили для чекбокса */
.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  position: relative;
  padding-left: 30px;
  margin-top: 10px;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
  border-color: var(--red);
}

.checkbox-label input:checked ~ .checkmark {
  background-color: var(--red);
  border-color: var(--red);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

/* Стили для ссылки в чекбоксе */
.checkbox-label a {
  color: var(--red); /* Цвет ссылки */
  text-decoration: underline; /* Подчеркивание */
  margin-left: 5px; /* Отступ от текста */
  transition: color 0.3s ease;
}

.checkbox-label a:hover {
  color: #c0392b; /* Цвет ссылки при наведении */
}

.popup__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup__modal.active {
  display: flex;
  opacity: 1;
}

.overlay_thx {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.popup__thx__body {
  position: relative;
  background: #fff;
  border-radius: 15px;
  padding: 30px 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.popup__modal.active .popup__thx__body {
  transform: scale(1);
}

.close_thx {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.close_thx:hover {
  color: #333;
}

.popup__thx__body h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.popup__thx__body p {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Кнопка отправки */
.btn-send {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background-color: var(--red);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-send:hover {
  background-color: #d8b82b;
  transform: scale(1.05);
}

.cost__delivery {
  padding-top: 50px;
  padding-left: 56px;
}

.cost__delivery__title {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 700;
  color: var(--black);
}

.cost__delivery__text {
  font-size: 22px;
  line-height: 28px;
  font-weight: 400;
  color: var(--black);
}

.aboutus {
  padding: 70px 0;
}

.about {
  justify-content: center;
  gap: 100px;
}

.about__left {
  width: 350px;
  min-height: 136px;
  background-color: #9a8884;
  border: 2px solid #302222;
  border-radius: 20px;
}

.about__right {
  width: 350px;
  min-height: 136px;
  background-color: #9a8884;
  border: 2px solid #302222;
  border-radius: 20px;
}

.content {
  padding: 20px 20px;
}

.about__text {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.about__list {
  padding-left: 20px;
}

.about__item::marker {
  color: #302222;
}

.about__item {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
}

.about__item:not(:last-child) {
  margin-bottom: 5px;
}

.del {
  margin-bottom: 0;
}

.transportation {
  padding: 70px 0;
  background-color: #ebe6e6;
}

.trans-title {
  margin-bottom: 70px;
  font-size: 38px;
  font-weight: 700;
  text-align: center;
}

.trans-list {
  margin-bottom: 40px;
  gap: 40px;
}

.trans-item {
  width: calc((100% - (40px * 3)) / (4));
}

.item-title {
  margin-bottom: 20px;
  font-size: 22px;
  text-align: center;
}

.item-text {
  font-size: 22px;
  line-height: 28px;
}

.truck-title,
.ship-title,
.flying-title,
.train-title {
  margin-bottom: 20px;
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  text-decoration: underline;
  color: var(--black);
}

.truck-text,
.ship-text,
.flying-text,
.train-text {
  margin-bottom: 20px;
  max-width: 80%;
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  color: var(--black);
}

.truck-text {
  margin-bottom: 50px;
}

.list {
  padding-left: 15px;
}

.list:not(:last-child) {
  margin-bottom: 50px;
}

.item {
  max-width: 70%;
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  color: var(--black);
}

.item:not(:last-child) {
  margin-bottom: 10px;
}

.howDeliver {
  padding: 70px 0;
  background-color: #f0ede5;
}

.how-title {
  margin-bottom: 50px;
  font-size: 38px;
  font-weight: 700;
  text-align: center;
}

.how {
  margin-bottom: 20px;
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  text-decoration: underline;
  color: var(--black);
}

.how-ps {
  margin-bottom: 20px;
  max-width: 80%;
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  color: var(--black);
}

.about-text {
  margin-bottom: 20px;
  font-size: 24px;
  line-height: 28px;
  font-weight: 500;
  text-align: center;
  color: var(--black);
}

/* Адаптив для экранов до 1400px */
@media (max-width: 1400px) {
  .container {
    padding: 0 40px; /* Уменьшаем отступы контейнера */
  }

  .content-header {
    flex-wrap: wrap; /* Элементы шапки переносятся на новую строку */
    gap: 20px; /* Отступ между элементами */
    justify-content: center; /* Центрируем элементы */
  }

  .transport-top h1 {
    font-size: 26px; /* Уменьшаем размер заголовка */
  }

  .contacts {
    align-items: center; /* Выравниваем контакты по центру */
  }

  .delivery-content {
    max-width: 100%; /* Убираем ограничение по ширине */
    padding-left: 0; /* Убираем отступ слева */
  }

  .delivery__title {
    font-size: 36px; /* Уменьшаем размер заголовка */
    line-height: 1.2; /* Улучшаем читаемость */
  }

  .content__form {
    max-width: 100%; /* Форма занимает всю ширину */
  }

  .form__cont {
    padding: 20px 15px; /* Уменьшаем отступы внутри формы */
  }

  .form {
    padding: 15px; /* Уменьшаем отступы внутри формы */
  }

  .cost__delivery {
    padding-left: 0; /* Убираем отступ слева */
  }

  .cost__delivery__title {
    font-size: 28px; /* Уменьшаем размер заголовка */
  }

  .cost__delivery__text {
    font-size: 18px; /* Уменьшаем размер текста */
  }

  .trans-title {
    font-size: 32px; /* Уменьшаем размер заголовка */
  }

  .trans-list {
    flex-wrap: wrap;
    gap: 30px; /* Уменьшаем отступ между элементами */
  }

  .trans-item {
    width: calc((100% - (40px * 1)) / (2));
  }

  .item-title {
    font-size: 20px; /* Уменьшаем размер заголовка */
  }

  .truck-title,
  .ship-title,
  .flying-title,
  .train-title {
    font-size: 26px; /* Уменьшаем размер заголовка */
  }

  .truck-text,
  .ship-text,
  .flying-text,
  .train-text {
    font-size: 20px; /* Уменьшаем размер текста */
  }

  .item {
    font-size: 18px; /* Уменьшаем размер текста */
  }

  .how-title {
    font-size: 32px; /* Уменьшаем размер заголовка */
  }

  .how {
    font-size: 26px; /* Уменьшаем размер текста */
  }

  .how-ps {
    font-size: 20px; /* Уменьшаем размер текста */
  }
}

/* Адаптив для экранов до 768px */
@media (max-width: 768px) {
  .container {
    padding: 0 20px; /* Уменьшаем отступы контейнера */
  }

  .transport-top {
    padding: 15px 0;
  }

  .transport-top h1 {
    font-size: 24px; /* Уменьшаем размер заголовка */
  }

  .delivery {
    padding-top: 60px;
  }

  .delivery__title {
    font-size: 28px; /* Уменьшаем размер заголовка */
  }

  .delivery-list-item {
    font-size: 18px; /* Уменьшаем размер текста */
  }

  .form__cont h2 {
    font-size: 22px; /* Уменьшаем размер заголовка */
  }

  .form-pair input {
    font-size: 14px; /* Уменьшаем размер текста */
  }

  .checkbox-label {
    font-size: 14px;
  }

  .checkmark {
    height: 18px;
    width: 18px;
  }

  .checkmark:after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
  }

  .btn-send {
    font-size: 14px; /* Уменьшаем размер текста */
    padding: 10px 15px; /* Уменьшаем отступы внутри кнопки */
  }

  .cost__delivery__title {
    font-size: 24px; /* Уменьшаем размер заголовка */
  }

  .cost__delivery__text {
    font-size: 16px; /* Уменьшаем размер текста */
  }

  .trans-title {
    font-size: 28px; /* Уменьшаем размер заголовка */
  }

  .item-title {
    font-size: 18px; /* Уменьшаем размер заголовка */
  }

  .truck-title,
  .ship-title,
  .flying-title,
  .train-title {
    font-size: 24px; /* Уменьшаем размер заголовка */
  }

  .truck-text,
  .ship-text,
  .flying-text,
  .train-text {
    font-size: 18px; /* Уменьшаем размер текста */
  }

  .item {
    font-size: 16px; /* Уменьшаем размер текста */
  }

  .how-title {
    font-size: 28px; /* Уменьшаем размер заголовка */
  }

  .how {
    font-size: 24px; /* Уменьшаем размер текста */
  }

  .how-ps {
    font-size: 18px; /* Уменьшаем размер текста */
  }

  .popup__thx__body {
    padding: 25px 30px;
    border-radius: 12px;
  }
  
  .close_thx {
    top: 10px;
    right: 15px;
    font-size: 22px;
  }
  
  .popup__thx__body h3 {
    font-size: 22px;
  }
  
  .popup__thx__body p {
    font-size: 15px;
  }
  
  .logo {
    margin-right: 0;
  }
}


@media (max-width: 675px) {
  .content-header {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .transport-top h1 {
    order: 2;
    margin: 0 auto;
  }
}

/* Адаптив для экранов до 576px */
@media (max-width: 576px) {
  .shell {
    flex-direction: column;
    gap: 20px;
  }
}

/* Адаптив для экранов до 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .content-header {
    gap: 10px;
  }

  .popup__thx__body {
    padding: 20px 25px;
    border-radius: 10px;
  }
  
  .close_thx {
    font-size: 20px;
  }
  
  .popup__thx__body h3 {
    font-size: 20px;
  }
  
  .popup__thx__body p {
    font-size: 14px;
  }

  .delivery {
    padding: 40px 0;
  }

  .transportation {
    padding: 40px 0;
  }

  .howDeliver {
    padding: 40px 0;
  }

  .aboutus {
    padding: 40px 0;
  }

  .trans-title {
    margin-bottom: 20px;
  }

  .trans-list {
    margin-bottom: 20px;
  }

  .transport-top h1 {
    font-size: 22px;
    text-align: center;
  }

  .delivery__title {
    font-size: 24px;
  }

  .delivery-list-item {
    font-size: 16px;
  }

  .form__cont h2 {
    font-size: 20px;
  }

  .form-pair input {
    font-size: 12px;
  }

  .checkbox-label {
    font-size: 12px;
    padding-left: 25px;
  }

  .checkmark {
    height: 16px;
    width: 16px;
  }

  .checkmark:after {
    left: 4px;
    top: 0;
    width: 3px;
    height: 6px;
  }

  .checkbox-label a {
    font-size: 12px; /* Уменьшаем размер текста ссылки */
  }

  .btn-send {
    font-size: 12px;
    padding: 8px 12px;
  }

  .cost__delivery__title {
    font-size: 22px;
  }

  .cost__delivery__text {
    font-size: 14px;
  }

  .trans-title {
    font-size: 24px;
  }

  .item-title {
    font-size: 16px;
  }

  .trans-list {
    gap: 20px;
  }

  .trans-item {
    width: 100%;
  }

  .truck-title,
  .ship-title,
  .flying-title,
  .train-title {
    font-size: 22px;
  }

  .truck-text,
  .ship-text,
  .flying-text,
  .train-text {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .item {
    font-size: 14px;
  }

  .how-title {
    font-size: 24px;
  }

  .how {
    font-size: 22px;
  }

  .how-ps {
    font-size: 16px;
  }
}

/* Адаптив для экранов до 320px */
@media (max-width: 320px) {
  .container {
    padding: 0 10px; /* Уменьшаем отступы контейнера */
  }

  .transport-top h1 {
    font-size: 18px; /* Уменьшаем размер заголовка */
  }

  .phone,
  .tg-link {
    font-size: 16px;
  }

  .delivery__title {
    font-size: 22px; /* Уменьшаем размер заголовка */
  }

  .delivery-list-item {
    font-size: 14px; /* Уменьшаем размер текста */
  }

  .form__cont h2 {
    font-size: 18px; /* Уменьшаем размер заголовка */
  }

  .form-pair input {
    font-size: 12px; /* Уменьшаем размер текста */
  }

  .btn-send {
    font-size: 12px; /* Уменьшаем размер текста */
    padding: 6px 10px; /* Уменьшаем отступы внутри кнопки */
  }

  .cost__delivery__title {
    font-size: 20px; /* Уменьшаем размер заголовка */
  }

  .cost__delivery__text {
    font-size: 12px; /* Уменьшаем размер текста */
  }

  .trans-title {
    font-size: 22px; /* Уменьшаем размер заголовка */
  }

  .item-title {
    font-size: 14px; /* Уменьшаем размер заголовка */
  }

  .truck-title,
  .ship-title,
  .flying-title,
  .train-title {
    font-size: 20px; /* Уменьшаем размер заголовка */
  }

  .truck-text,
  .ship-text,
  .flying-text,
  .train-text {
    font-size: 14px; /* Уменьшаем размер текста */
  }

  .item {
    font-size: 12px; /* Уменьшаем размер текста */
  }

  .how-title {
    font-size: 22px; /* Уменьшаем размер заголовка */
  }

  .how {
    font-size: 20px; /* Уменьшаем размер текста */
  }

  .how-ps {
    font-size: 14px; /* Уменьшаем размер текста */
  }
}

@media (max-width: 272px) {
  .content-header {
    justify-content: center;
  }
}