/* === responsive.css — адаптивність для контактної та інших форм === */
/* Мобільні до 760px */
@media (max-width: 760px) {
  .contact-section .wrapper,
  .get-price-section .wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .contact-form .form-row,
  .contact-form .form-row.double {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  /* 🔧 Примусова ширина для form-row без double (message, phone) */
  .contact-form .form-row:not(.double) {
    max-width: 664px;
  }
  .get-price-form .form-row,
  .get-price-form .form-row.triple,
  .contact-form .form-row.triple {
    flex-direction: column;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }
  .contact-form input,
  .contact-form textarea,
  .get-price-form input,
  .get-price-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    font-family: 'Roboto', Arial, sans-serif;
  }
  .contact-form .form-row.center,
  .get-price-form .form-row.center {
    text-align: center;
    padding: 0 15px;
  }
  .contact-form button.btn-primary,
  .get-price-form button.btn-primary {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    display: inline-block;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    flex-wrap: wrap;
  }
  .top-bar-left,
  .top-bar-right {
    display: flex;
    flex: 1;
  }
  .top-bar-left {
    justify-content: flex-start;
    gap: 10px;
  }
  .top-bar-right {
    justify-content: flex-end;
  }
  .top-bar a {
    font-size: 15px;
    padding: 6px 5px;
  }
  .advantages-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .grid-cell {
    width: 100%;
    display: grid;
    grid-template-columns: 15% 82% 3%;
    justify-content: stretch;
  }
  .advantage {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    text-align: left;
    width: 100%;
    max-width: none;
  }
  .advantage img {
    width: 60px;
    height: auto;
  }
  .advantage-text {
    font-size: 22px;
  }
  .category-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .category-item {
    width: 90%;
  }
  h1 {
    font-size: 26px;
  }
  .top-bar-inner {
    padding: 0 15px;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-logo {
    margin: 0 auto;
  }
  .footer-right {
    text-align: center;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* === Мобільні відступи між блоками === */
  
  /* Зменшити відступ між категоріями і кнопкою "Open Online Store" */
  .shop-entry-section .wrapper {
    margin-top: 20px !important; /* Зменшено з 40px до 20px */
  }
  
  /* Збільшити відступ між кнопкою "Open Online Store" і формою доставки */
  .shop-entry-section {
    margin-bottom: 50px; /* Додаємо великий відступ знизу */
  }
  
  /* Альтернативно, можна додати відступ зверху для форми доставки */
  .delivery-form-section,
  .contact-form-section,
  .form-contact-wrapper {
    margin-top: 50px;
  }
}

/* === Додаткові налаштування для дуже маленьких екранів === */
@media (max-width: 480px) {
  
  /* Для дуже маленьких екранів */
  .shop-entry-section .wrapper {
    margin-top: 15px !important;
  }
  
  .shop-entry-section {
    margin-bottom: 40px;
  }
  
  .delivery-form-section,
  .contact-form-section,
  .form-contact-wrapper {
    margin-top: 40px;
  }
}

/* Десктопи 761px+ */
@media (min-width: 761px) {
  .contact-form .form-row.double {
    flex-direction: row;
    gap: 20px;
  }
  .contact-form .form-row.double input {
    width: 50%;
  }
  .contact-form .form-row,
  .get-price-form .form-row {
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 664px;
    box-sizing: border-box;
  }
  .contact-form button.btn-primary,
  .get-price-form button.btn-primary {
    width: 300px;
    margin: 20px auto 30px auto;
    display: block;
  }
}