section {
  background: white;
  border-radius: 32px;
  display: flex;
  flex-direction: column; /* По умолчанию столбик для маленьких экранов */
  align-items: center;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.07);
}

body{
  background-color: #DE9E13;
  margin: 0;
}
section.courier {
  flex-direction: column; /* Столбик по умолчанию, row-reverse будет в медиа-запросах */
}


.section-content {
  flex: 1 1 100%; /* Полная ширина в столбик */
  display: flex;
  flex-direction: column; /* Элементы в столбик */
  align-items: center; /* Центрируем для маленьких экранов */
  text-align: center; /* Текст по центру */
  position: relative; /* Для позиционирования иконки на больших экранах */
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Полная ширина в столбик */
}

.icon-placeholder {
  display: none; /* Скрыт на маленьких экранах */
}

.icon img {
  display: block;
}

h2 {
  font-family: 'Widock TRIAL';
}

p {
  font-family: 'GothamPro';
}

b, strong {
  font-family: 'GothamPro Black';
  font-weight: -10;
}
button.order-btn {
  background-color: #DE9E13;
  color: white;
  border: none;
  border-radius: 32px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Widock TRIAL';
  box-shadow: 0 2px 8px 0 rgba(222,158,19,0.12);
}

button.order-btn:hover {
  background-color: #bf8915;
}

button.order-btn1 {
  background-color: #DE9E13;
  color: white;
  border: none;
  border-radius: 32px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Widock TRIAL';
  box-shadow: 0 2px 8px 0 rgba(222,158,19,0.12);
}

button.order-btn1:hover {
  background-color: #bf8915;
}

main {
  width: 100%;
  background: #DE9E13; /* Ваш цвет фона */
  background-image: 
    url('../icons/Group.svg');
  background-size: 100% auto; /* Растягиваем по ширине, высота 50px */
  background-repeat: repeat-y;
  background-position-y: 5vw;
  min-height: 100vh;
  padding-bottom: 50px;
}
@media screen and (max-width: 400px) {
  section {
    flex-direction: column;
    padding: 10px 4px;
    margin: 10px auto;
    gap: 8px;
    min-height: 120px;
    width: calc(80% - 10%);
  }
  .section-content {
    flex: 1 1 100%; /* Полная ширина */
    padding: 0 0 8px 0;
    align-items: center;
    text-align: center;
  }
  .icon {
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .icon-placeholder {
    display: none; /* Скрыт */
  }
  .icon img {
    width: 80%;
    height: auto;
  }
  h2 {

    font-size: 8vw; /* Сохранено */
    margin: auto;
    margin-top: 20px;;
    margin-bottom: 40px;
  }
  p {
    margin: auto;
    font-size: 3vw;
    margin-left: 8%;
    margin-right: 5%;
    margin-top: 10px;
    text-align: left;
    margin-bottom: 30px;
  }
  button.order-btn1{
    font-size: 3.8vw;
    padding: 10px ;
    border-radius: 20px;
  }
  button.order-btn {
    font-size: 5.2vw;
    padding: 10px ;
    border-radius: 20px;
  }
  footer p{
    margin-left: 0;
  }
}

@media screen and (min-width: 401px) and (max-width: 767px) {
  section {
    flex-direction: column;
    padding: 16px 8px;
    margin: 15px auto;
    gap: 12px;
    min-height: 160px;
    width: calc(80% - 10%); /* Уменьшаем ширину для мобильных устройств */
  }
  .section-content {
    flex: 1 1 100%; /* Полная ширина */
    padding: 0 0 20px 0;
    align-items: center;
    text-align: center;
    width: 100%; /* Явно вся ширина секции */
    box-sizing: border-box;
  }
  .icon {
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .icon-placeholder {
    display: none; /* Скрыт */
  }
  .icon img {
    width: 80%;
    height: auto;
  }
  h2 {

    font-size: 8vw; /* Сохранено */
    margin: auto;
    margin-top: 20px;;
    margin-bottom: 40px;
  }
  p {
    margin: auto;
    font-size: 3vw;
    margin-left: 8%;
    margin-right: 5%;
    margin-top: 10px;
    text-align: left;
    margin-bottom: 30px;
  }
  button.order-btn1{
    font-size: 3.8vw;
    padding: 10px ;
    border-radius: 20px;
  }
  button.order-btn {
    font-size: 5.2vw;
    padding: 10px ;
    border-radius: 20px;
  }
  footer p{
    margin-left: 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  section {
    flex-direction: row;
    padding: 24px 16px;
    margin: 20px auto;
    gap: 20px;
    min-height: 200px;
    width: calc(80% - 15%);
  }
  section.courier {
    flex-direction: row-reverse; /* Иконка слева, контент справа */
  }
  .section-content {
    flex: 1 1 50%;
    align-items: flex-start;
    text-align: left;
    padding: 0 16px;
  }
  .icon-placeholder {
    display: block;
    flex: 1 1 50%; /* Резервирует правую половину */
  }
  .icon {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70%; /* Половина ширины секции */
    height: 100%;
  }
  section:not(.courier) .icon {
    right: -80%; /* Иконка в правой половине */
  }
  section.courier .icon {
    left: -80%; /* Иконка в левой половине для courier */
  }
  .icon img {
    width: 100%;
    max-width: 260px;
    height: auto;
  }
  h2 {
    margin-bottom: 8px;
  }
  p {
    font-size: 13px;
    margin-bottom: 16px;
  }
  button.order-btn {
    font-size: 16px;
    padding: 12px 28px;
    border-radius: 24px;
  }
  button.order-btn1 {
    font-size: 16px;
    padding: 8px 20px;
    border-radius: 18px;
  }
  .courier .section-content{
    text-align: right;
    align-items: flex-end;
  }
  .courier .section-content h2{
    text-align: center;
    align-items: flex-end;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1439px) {

  section {
    flex-direction: row;
    padding: 36px 32px;
    margin: 20px auto;
    gap: 28px;
    min-height: 260px;
    width: calc(80% - 15%);
  }
  section.courier {
    flex-direction: row-reverse; /* Иконка слева, контент справа */
  }
  .section-content {
    flex: 1 1 20%;
    align-items: flex-start;
    text-align: left;
    padding: 0 24px;
  }
  .icon-placeholder {
    display: block;
    flex: 1 1 10%; /* Резервирует правую половину */
  }
  .icon {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%; /* Половина ширины секции */
    height: 100%;
  }
  section:not(.courier) .icon {
    right: -85%; /* Иконка в правой половине */
  }
  section.courier .icon {
    left: -85%; /* Иконка в левой половине для courier */
  }
  .icon img {
    width: 100%;
    max-width: 290px;
    height: auto;
  }
  h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }
  p {
    font-size: 16px;
    margin-bottom: 20px;
  }
  button.order-btn1 {
    font-size: 20px;
    padding: 16px 36px;
    border-radius: 28px;
  }
  button.order-btn {
    font-size: 20px;
    padding: 16px 36px;
    border-radius: 28px;
  }
  .courier .section-content{
    text-align: right;
    align-items: flex-end;
  }
  .courier .section-content h2{
    text-align: center;
    align-items: flex-end;
  }
}

@media screen and (min-width: 1440px) {

  section {
    flex-direction: row;
    padding: 48px 64px;
    margin: 40px auto;
    gap: 40px;
    min-height: 320px;
    width: calc(80% - 29%);
  }
  section.courier {
    flex-direction: row-reverse; /* Иконка слева, контент справа */
  }
  .section-content {
    flex: 1 1 20%;
    align-items: flex-start;
    text-align: left;
    padding: 0 32px;
  }
  .icon-placeholder {
    display: block;
    flex: 1 1 10%; /* Резервирует правую половину */
  }
  .icon {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80%; /* Половина ширины секции */
    height: 100%;
  }
  section:not(.courier) .icon {
    right: -80%; /* Иконка в правой половине */
  }
  section.courier .icon {
    left: -80%; /* Иконка в левой половине для courier */
  }
  .icon img {
    width: 100%;
    height: auto;
  }
  h2 {
    font-size: 40px;
    margin-bottom: 28px;
  }
  p {
    font-size: 16px;
    margin-bottom: 28px;
  }
  button.order-btn1 {
    font-size: 20px;
    padding: 16px 36px;
    border-radius: 28px;
  }
  button.order-btn {
    font-size: 24px;
    padding: 20px 48px;
    border-radius: 32px;
  }
  .courier .section-content{
    text-align: right;
    align-items: flex-end;
  }
  .courier .section-content h2{
    text-align: center;
    align-items: flex-end;
  }
}