/* Сброс и базовые стили */
* {
  box-sizing: border-box; /* Самое важное для сетки */
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f1f3f5;
  color: #111;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
}



 .hero-banner {
    width:100%;
    height:343px;
    background:#01083a url('/adv.jpg') no-repeat 80% center;
    background-size:auto 343px;
    line-height:0;font-size:0;margin:0;padding:0;
    padding-left: 40px; 
        /* Добавляем Flexbox для вертикального центрирования */
    display: flex;
    align-items: center; /* Центрирование по вертикали */
  }
  .yadoska {
    width:300px;
    height:100px;
    background:#fff url('https://yadoska.ru/oc-content/themes/delta/images/logo.jpg') no-repeat center;
    background-size:auto 70px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .arrow {
    width:57px;
    height:49px;
    background: url('/arrow.gif') no-repeat center;
    background-size:auto 49px;
        margin: 20px;
  }
  
  @media (max-width: 1440px) {
  .hero-banner {
    height: 200px;
    width: 100%;
    background-size:auto 200px;
    line-height: 0;
    font-size: 0;
    margin: 0;
    }
        .yadoska {
    width:200px;
    height:66px;
        background:#fff url('https://yadoska.ru/oc-content/themes/delta/images/logo.jpg') no-repeat center;
    background-size:auto 46px;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  }






/* Logo */
.badge {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge b {
  color: #081349;
  font-weight: 800;
}

.badge::after {
  content: '— Доска рекламных объявлений';
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b7280;
  margin-left: 0.5rem;
}

@media (max-width: 640px) {
  .badge::after {
    display: none;
  }
  .badge {
    font-size: 1rem;
  }
}

/* Элементы формы */
select, input, button {
  font: inherit;
  outline: none;
}

select, input {
  padding: 0.54rem 0.875rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: white;
  font-size: 0.975rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 190px;
  box-sizing: border-box;
  color: #111;
}

/* Специальные стили для select чтобы выглядели одинаково во всех браузерах */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  height: 44px;
  line-height: 1.5;
}

select:hover, input:hover {
  border-color: #d1d5db;
}

select:focus, input:focus {
  border-color: #081349;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input {
  cursor: text;
  height: 44px;
  line-height: 1.5;
}

input::placeholder {
  color: #9ca3af;
}

/* Кнопки */
.btn {
  background: #081349;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.625rem 1rem;
  cursor: pointer;
  font-size: 0.975rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.icon-btn {
  padding: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.moderation-toggle {
  font-size: 0.875rem;
}
.controls {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  
.controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 колонки: селект, селект, кнопка */
    gap: .5rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: visible;         /* больше не нужен скролл */
  }
  
  .controls::-webkit-scrollbar {
    display: none;
  }
  
  .controls select,
  .controls input {
    width: auto;
    min-width: 100px;
    max-width: 38vw;
    flex-shrink: 0;
    height: 44px;
        padding: .6rem .6rem;
    font-size: .9rem;
  }
  
  .controls .btn {
    flex-shrink: 0;
    white-space: nowrap;
    height: 44px;
        padding: .6rem .6rem;
    font-size: .975rem;
  }
}

/* Скрываем лого на маленьких мобилках */
@media (max-width: 640px) {
  header .badge {
    display: none !important;
  }
}


/* --- СЕТКА --- */
.grid {
  max-width: 1550px;
  width: calc(100% - 40px);
  margin: 20px auto;
  box-sizing: border-box;
}

.grid img {
  width: 100%;
  height: auto;
  background: #f0f0f0;
  display: block;
}

/* Карточка */
.card {
  width: calc(25% - 15px);
  
  margin-bottom: 20px; /* Отступ снизу */
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

/* АДАПТИВ */

/* Планшеты (меньше 1100px) -> 3 колонки */
@media (max-width: 1100px) {
  .card {
    width: calc((100% - 40px) / 3);
  }
}

/* Планшеты поменьше (меньше 800px) -> 2 колонки */
@media (max-width: 800px) {
  .card {
    /* 50% - 20px */
    width: calc(50% - 10px);
  }
    .views {
    display: none !important;
  }
  .grid {
  width: calc(100% - 35px);
}
}


/* Телефоны (меньше 374px) -> 1 колонка */
@media (max-width: 374px) {
  .grid {
    width: calc(100% - 24px); 
    margin: 10px auto;
  }
  .card {
    width: 100%;
    margin-bottom: 15px;
  }
}

/* --- Внутрянка карточки --- */
.thumb {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .thumb {
  transform: scale(1.02);
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  gap: 0.75rem;
}

.title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  color: #111;
  word-break: break-word;
}

.location-price {
  color: #6b7280;
  font-size: 0.8125rem;
}

.meta-actions { 
  display: flex; 
  align-items: center; 
  gap: .5rem; 
}

.views {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: #b7cdda;
  font-size: .8125rem;
  line-height: 1;
}

.views svg {
  width: 16px;
  height: 16px;
  opacity: .7;
}

.views-num { 
  opacity: .7; 
}

.icon {
  opacity: 0;
  color: #9ca3af;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.125rem;
  transition: all 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}

.card:hover .icon, .card.owns .icon { 
  opacity: 1; 
}

@media (hover: none), (pointer: coarse) {
  .card .icon {
    opacity: 1 !important;
    padding: 0.5rem;             
    font-size: 1.25rem;          
  }
}

/* --- Остальное (модалки, футер) --- */
.dialog {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; padding: 1rem; z-index: 1000;
  animation: fadeIn 0.2s ease;
  overflow-y: auto; /* Скролл на оверлее */
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.panel {
  background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: min(640px, 96vw); padding: 1.5rem;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: auto 0; /* Центрирование по вертикали когда помещается */
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.panel > .badge { font-size: 1.25rem; margin-bottom: 1.25rem; display: block; }
.panel > .badge::after { content: ''; }

.drop {
  border: 2px dashed #e5e7eb;
  min-height: 180px;
  border-radius: 12px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: #6b7280; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  background: #fafafa;
  padding: 1rem; 
  text-align: center; 
  overflow: hidden;
}
.drop:hover { border-color: #2563eb; background: #eff6ff; color: #2563eb; }
.drop.dragging { border-color: #2563eb; background: #eff6ff; border-style: solid; }

.preview { max-height: 300px; max-width: 100%; border-radius: 10px; display: block; object-fit: contain; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }
.row input, .row select { width: 100%; }
.row .full { grid-column: 1 / -1; }
@media (max-width: 480px) { 
  .row:not(:has(select)) { grid-template-columns: 1fr; } 
}

@media (max-width: 374px) { 
  .row { grid-template-columns: 1fr; } 
}

.panel-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 14px !important; }
.panel-actions .btn { height: 44px; min-width: 140px; }

footer { padding: 3rem 1rem; color: #9ca3af; text-align: center; font-size: 0.875rem; }

#sentinel { height: 40px; display: flex; align-items: center; justify-content: center; color: #9ca3af; }
.loader { width: 20px; height: 20px; border: 2px solid #e5e7eb; border-top-color: #111; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notification {
  position: fixed; top: 80px; right: 20px; z-index: 10000; padding: 12px 20px;
  border-radius: 12px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); max-width: 400px;
  display: flex; align-items: center; gap: 10px; animation: slideInRight 0.3s ease;
}
@media (max-width: 640px) { .notification { top: auto; bottom: 20px; right: 10px; left: 10px; max-width: none; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100px); } }

/* ====== RX Contact Modal ====== */
.rx-overlay{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display:flex; align-items:flex-start; justify-content:center;
  padding: 6rem 1rem;
  overflow-y: auto;
}

@media (max-width: 640px){ 
  .rx-overlay{ 
    align-items: center;
    padding: 6rem 1rem;
  } 
}

.rx-modal{
  width: 100%; max-width: 420px;
  background: #fff; color: #0f172a;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-radius: 20px; overflow: hidden;
  transform: translateY(10px); animation: rx-pop .18s ease-out forwards;
  margin: auto 0;
}

@keyframes rx-pop{ to{ transform: translateY(0);} }

@media (max-width: 640px){
  .rx-modal{ 
    max-width: min(420px, 96vw);
    width: 100%;
  }
}

.rx-wrap{ padding: 1.5rem; display:flex; flex-direction:column; gap:14px; }
.rx-head{ display:flex; flex-direction:column; gap:8px; }

.rx-title{ font-size:18px; font-weight:600; letter-spacing:.01em; }

/* номер/ссылка */
.rx-number{
  display:flex; align-items:center; gap:10px; padding:10px 12px;
  background:#f8fafc; border:1px solid rgba(15,23,42,.08); border-radius: 14px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.rx-number__val{
  font-variant-numeric: tabular-nums; font-weight:500; color:#0f172a;  font-size: 1.2rem;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex: 1 1 auto;
}

.rx-number .rx-number__val {
  font-weight: bold;
}

/* Скрываем поле с URL для ссылок (показываем только для телефонов) */
.rx-number.rx-phone {
  display: none;
}

.rx-copy{
  display:inline-grid; place-items:center; width:34px; height:34px; border-radius:10px;
    cursor: pointer;
  border:1px solid rgba(15,23,42,.08); background:#fff; color:#0f172a; opacity:.95; flex: 0 0 34px;
}
.rx-copy:hover{ opacity:1; }
.rx-copy svg{ width:18px; height:18px; display:block; shape-rendering: geometricPrecision; }

/* сетка кнопок */
.rx-actions{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width: 420px){ .rx-actions{ grid-template-columns: 1fr; } }

/* кнопка */
.rx-btn{
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 16px; border-radius:14px; border:1px solid rgba(15,23,42,.08);
  font-weight:600; letter-spacing:.01em; transition: transform .06s ease, opacity .12s ease;
  background:#ffffff; color:#0f172a; text-decoration:none;
  -webkit-tap-highlight-color: transparent;
}
.rx-btn:active{ transform: translateY(1px); }

/* единое качество иконок */
.rx-ico { 
  display:inline-flex; 
  width:20px; height:20px; 
  align-items:center; justify-content:center; 
  vertical-align:middle;
}
.rx-ico svg { 
  width:18px; height:18px; 
  display:block; 
  shape-rendering:geometricPrecision;
}

.rx-ico .go-site {
  width: 30px; 
  height: 30px; 
  vertical-align: middle;
  margin-right: 4px;
}

.rx-btn { gap: .5rem; }

/* варианты */
.rx-btn--call{
  background:#081349;
  color:#fff;
  border-color:#081349;
}
.rx-btn--call:hover{
  background:#000;
}

.rx-btn--wa{
  background: #22c55e; 
  color:#fff; 
  border-color: #22c55e;
}
.rx-btn--wa:hover{
  background: #16a34a;
}

.rx-btn--web{
  background: #071449; 
  color:#fff; 
  /* border-color: #3b82f6; */
}

.rx-btn--web:hover{
  background: #000; 
}

.rx-btn--tg{
  background: #0ea5e9; 
  color:#fff; 
  border-color: #0ea5e9;
}
.rx-btn--tg:hover{
  background: #0284c7;
}

.rx-btn--ghost{ 
  background:#fff; 
  color:#111; 
  border: 1px solid #e5e7eb;
  cursor: pointer;
}
.rx-btn--ghost:hover{
  background:#f9fafb;
}

.rx-btn--full{ grid-column: 1 / -1; }


.rx-btn--ghost:focus,
.rx-btn--ghost:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}



.fab {
  position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%;
  border: none; display: grid; place-items: center; cursor: pointer; z-index: 1000;
  box-shadow: 0 12px 24px rgba(0,0,0,.2); transition: transform .15s ease;
}
.fab:hover { transform: translateY(-1px); }
.fab--search { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.fab--search svg { width: 20px; height: 20px; }
.fab--reset {
  background: #01083a;       /* синий фон */
  color: #ccdce5;            /* голубая иконка */
  border: 1px solid #01083a;
}

.fab--reset svg {
  width: 20px;
  height: 20px;
}

html { 
  scroll-behavior: smooth;
  /* Фикс для Safari: предотвращает прыжки при lazy load */
  overflow-anchor: auto;
}

/* Якорь для стабилизации скролла в Safari */
.grid {
  overflow-anchor: none;
}

#sentinel {
  overflow-anchor: auto;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f3f4f6; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }


/* ====== Дополнительные поля в форме добавления баннера ====== */

/* Кнопка "Добавить описание и фото" */
.btn-toggle-extra {
  width: 100%;
  margin-top: 1rem;
  background: #fafafa;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
  font-weight: normal;
  padding: 0.54rem 0.875rem;
}

.add-desc {
  position: relative;
  display: inline-block;
}

.add-desc::after {
  content: '';
  display: block;
  position: absolute;
  left: -26px;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background:#9CA3AF url(/uploads/icons/cross.svg) center center no-repeat;
  background-size: 90%;
  transform: rotate(45deg);
}

.btn-toggle-extra:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: none;
  box-shadow: none;
}

/* Контейнер дополнительных полей */
.extra-fields {
  margin-top: 1rem;
}

/* Textarea для описания */
.extra-fields textarea {
  width: 100%;
  padding: 0.54rem 0.875rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 0.975rem;
  font-family: inherit;
  resize: vertical;
  min-height: 180px;
  margin-bottom: .7rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
  color: #111;
}

.extra-fields textarea:hover {
  border-color: #d1d5db;
}

.extra-fields textarea:focus {
  border-color: #081349;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.extra-fields textarea::placeholder {
  color: #9ca3af;
}

/* Счётчик символов */
.char-counter {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: right;
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
  display: none;
}

/* Drop-зона для дополнительных фото */
.extra-images-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  min-height: auto !important;
}

/* Текст-подсказка внутри drop-зоны */
.extra-drop-text {
  text-align: center;
  color: #6b7280;
  padding: 0.5rem;
}

/* Контейнер для превью дополнительных фото (внутри drop-зоны) */
.extra-previews-row {
  display: flex !important;
  flex-direction: row !important; /* Всегда горизонтально */
  flex-wrap: nowrap !important; /* Никогда не переносить */
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: .5rem 0;
}

/* Превью дополнительных фото */
.drop-extra {
  position: relative;
  height: 100px; /* Фиксированная высота для всех */
  min-height: 100px; /* Минимальная высота */
  max-height: 100px; /* Максимальная высота */
  width: 75px; /* Фиксированная ширина по умолчанию */
  min-width: 75px; /* Минимальная ширина */
  font-size: 0.8rem;
  border-radius: 10px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e5e7eb;
  flex-shrink: 0 !important; /* Не сжимать */
  flex-grow: 0 !important; /* Не растягивать */
  flex-basis: auto !important;
}

.drop-extra.uploading {
  cursor: not-allowed;
  background: #e5e7eb;
}

.drop-extra.uploaded {
  background: transparent;
  width: auto; /* Ширина подстраивается под картинку */
  min-width: auto;
  height: 100px; /* Фиксированная высота */
  min-height: 100px;
  max-height: 100px;
}

/* Прогресс-бар */
.upload-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #e5e7eb;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  transition: width 0.3s ease;
  width: 0%;
}

/* Превью загруженной картинки */
.drop-extra .preview {
  height: 90px; /* Фиксированная высота */
  max-height: 90px; /* Не больше 80px */
  min-height: 90px; /* Не меньше 80px */
  max-width: 130px; /* Ширина Не больше 130px */
  width: auto;   /*  Ширина подстраивается под пропорции */
  display: block;
  border-radius: 8px;
  object-fit: contain; /* Сохраняем пропорции */
}

/* Кнопка удаления (крестик) - всегда видна */
.drop-extra .remove-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 10;
  transform: translate(-50%, -50%);
}

.drop-extra .remove-btn::after {
  content: '';
  position: absolute;
  display: block;
  width: 2px;
  height: 14px;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.drop-extra .remove-btn::before {
  content: '';
  position: absolute;
  display: block;
  width: 2px;
  height: 14px;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drop-extra .remove-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.drop-extra .remove-btn img {
  width: 14px;
  height: 14px;
}

/* ====== Дополнительные элементы в контактном попапе ====== */

/* Блок описания */
.rx-description {
  margin-bottom: -10px;
  padding: 12px;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.3;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Дополнительные фото */
.rx-extra-img {
  width: 100%;
  border-radius: 12px;
  margin-top: 8px;
  display: block;
  object-fit: cover;
}

/* ====== Адаптивность для мобильных устройств ====== */

@media (max-width: 480px) {
  .btn-toggle-extra {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .extra-fields textarea {
    min-height: 100px;
    font-size: 16px; /* Предотвращает зум на iOS */
  }
  
  .extra-drops-row {
    grid-template-columns: repeat(2, 1fr); /* 2x2 сетка на мобильных */
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .drop-extra {
    height: 80px; /* Меньшая высота на мобильных */
    width: 60px;
    font-size: 0.7rem;
  }
  
  .drop-extra .preview {
    height: 70px;
    max-height: 80px;
    min-height: auto;
  }
  
  .extra-previews-row {
    gap: 0.5rem;
  }
  
  .drop-extra .remove-btn {
    width: 32px;
    height: 32px;
  }
  
  .drop-extra .remove-btn img {
    width: 16px;
    height: 16px;
  }
  
  .rx-description {
    padding: 10px;
    font-size: 0.875rem;
  }
  
  .rx-extra-img {
    margin-top: 12px;
    border-radius: 10px;
  }
}

/* Ошибка валидации для селектов */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}
