@charset "UTF-8";
#loading {
  text-align: center;
  padding: 20px;
  font-weight: bold;
  display: none;
}

.subcategories_container {
  width: 100%;
  position: fixed;
  top: clamp(25px, 14vw, 65px);
  background: rgb(255, 255, 255);
  z-index: 5;
  height: clamp(20px, 16vw, 100px);
  padding-left: 2.5%;
  display: flex;
  align-items: center;
  /* ДОБАВЛЕНО: Плавность для всех изменяемых свойств */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s ease;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.subcategories_container .subcategories-bar {
  display: flex;
  gap: 15px;
  overflow-x: auto; /* ИСПРАВЛЕНО: для горизонтального скролла лучше использовать overflow-x, а не y */
  scroll-snap-type: x mandatory;
  margin-right: 5%;
  -webkit-overflow-scrolling: touch; /* ДОБАВЛЕНО: плавный инерционный скролл на iOS */
}
.subcategories_container .subcategories-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0; /* ДОБАВЛЕНО: скрываем высоту горизонтального скроллбара */
}
.subcategories_container .subcategories-bar button {
  transition: all 0.4s ease 0s;
  white-space: nowrap;
  padding: 8px 18px;
  width: 100%;
  background-color: #e6e6e6;
  border-radius: 15px;
  font-family: "Manrope";
  font-size: clamp(10px, 3.2vw, 16px);
  font-weight: 500;
  color: #696969;
}
.subcategories_container .subcategories-bar .active {
  background-color: #0a0a0a;
  color: #e4e4e4;
}

.subcategories_container-deactive {
  /* ИСПРАВЛЕНО: Уводим на всю высоту ПЛЮС запас на верхний отступ (calc), 
     чтобы блок гарантированно скрылся за экраном на любом разрешении */
  transform: translateY(calc(-100% - clamp(25px, 14vw, 65px)));
  opacity: 0;
  visibility: hidden;
}

#categories_container {
  position: fixed;
  bottom: clamp(25px, 15vw, 50px);
  width: 100%;
  height: clamp(25px, 15vw, 70px);
  background: rgb(255, 255, 255);
  z-index: 5;
  display: flex;
  align-items: center;
  padding-left: 2.5%;
}
#categories_container .categories-bar {
  display: flex;
  gap: 15px;
  align-items: center;
  overflow-y: scroll;
  scroll-snap-type: x mandatory;
}
#categories_container .categories-bar::-webkit-scrollbar {
  display: none;
  width: 0;
}
#categories_container .categories-bar button {
  transition: all 0.4s ease 0s;
  white-space: nowrap;
  padding: 8px 18px;
  width: 100%;
  background-color: #e6e6e6;
  border-radius: 15px;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(10px, 3.4vw, 16px);
  font-weight: 500;
  color: #696969;
}
#categories_container .categories-bar .active {
  background-color: #0a0a0a;
  color: #e4e4e4;
}

.announcement_buttons {
  position: fixed;
  z-index: 50;
  bottom: clamp(50px, 30vw, 150px);
  right: 5%;
  width: clamp(50px, 12vw, 65px);
  height: clamp(50px, 12vw, 65px);
  border-radius: 15px;
  background: #168331;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 10px;
  box-sizing: border-box;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.announcement_buttons button {
  width: clamp(35px, 9vw, 45px);
  height: clamp(35px, 9vw, 45px);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: scale(0);
  flex-shrink: 0;
}
.announcement_buttons .add_announcement_btn {
  background: url("/media/icons/plus_white.png") center/50% no-repeat;
}
.announcement_buttons .filter_announcement_btn {
  background: url("/media/icons/filter.png") center/60% no-repeat;
}
.announcement_buttons button.open_content_btn {
  background: url("/media/icons/dial-pad.png") center/50% no-repeat;
  opacity: 1;
  transform: translateX(7%);
  position: relative;
  transition: transform 0.4s ease;
}
.announcement_buttons.active {
  width: clamp(100px, 40vw, 280px);
  border-radius: 15px;
}
.announcement_buttons.active button.open_content_btn {
  transform: rotate(180deg);
}
.announcement_buttons.active button {
  opacity: 1;
  transform: scale(1);
}

main .container {
  width: 95%;
  margin: 0 auto;
  height: 100%;
}
main .container .ads-grid {
  margin: 0 auto;
  max-width: 98%;
  padding: 10px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
  grid-gap: 15px 8px;
  justify-content: space-between;
  padding-top: clamp(20px, 16vw, 100px);
  overflow-y: auto;
  height: 90vh;
  grid-auto-rows: max-content;
  padding-bottom: 100px;
}
@media (min-width: 576px) {
  main .container .ads-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-gap: 20px 15px;
    max-width: 1200px;
  }
}
main .container .ads-grid .ad-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 6px;
  border-radius: 12px;
  background-color: #fcfcfc;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #818181;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
main .container .ads-grid .ad-card.vip {
  border-color: #ffc107;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
main .container .ads-grid .ad-card.vip_plus {
  border-color: #dc3545;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
main .container .ads-grid .ad-card .status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
main .container .ads-grid .ad-card .status-badge.badge-vip {
  background-color: #ffc107;
  color: #222;
}
main .container .ads-grid .ad-card .status-badge.badge-vip_plus {
  background-color: #dc3545;
  animation: pulse 2s infinite;
}
main .container .ads-grid .ad-card .img-container {
  width: 100%;
  padding-top: 90%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #252525;
}
main .container .ads-grid .ad-card .img-container img.ad-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}
main .container .ads-grid .ad-card .ad-info {
  padding: 8px 4px 4px 4px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
main .container .ads-grid .ad-card .ad-info .ad-title {
  font-size: 14px;
  line-height: 18px;
  color: #181818;
  margin-bottom: 6px;
  font-family: "Noto Sans";
  font-size: clamp(10px, 3vw, 16px);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 36px;
}
main .container .ads-grid .ad-card .ad-info .ad-price {
  font-family: "Nunito";
  font-size: clamp(12px, 3.3vw, 25px);
  font-weight: 700;
  color: #181818;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
main .container .ads-grid .ad-card .ad-info .ad-date {
  font-family: "Nunito";
  font-size: clamp(8px, 2.5vw, 14px);
  font-weight: 700;
  color: #aaaaaa;
  margin-top: auto;
  text-align: end;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}
/* Базовая подложка модального окна */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-overlay.open .modal-mobile-container {
  transform: translateY(0);
}

/* Контейнер модалки под мобильный стиль шторки (BottomSheet) */
.modal-mobile-container {
  width: 100%;
  max-width: 600px;
  height: 100vh;
  background-color: #ffffff;
  color: #1a202c;
  overflow-y: auto;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
  padding-bottom: 95px;
  box-sizing: border-box;
  /* Декоративная полоска-держатель сверху */
}
.modal-mobile-container .modal-drag-line {
  width: 36px;
  height: 5px;
  background-color: #e2e8f0;
  border-radius: 3px;
  margin: 12px auto 8px auto;
  cursor: pointer;
}
.modal-mobile-container {
  /* Кнопка закрытия (крестик) */
}
.modal-mobile-container .modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  color: #272727;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  border: 1px solid #0a0a0a;
}
.modal-mobile-container .modal-close-btn:active {
  background-color: #e2e8f0;
}

/* Слайдер картинок в шторке */
.modal-slider-wrapper {
  width: 100%;
  padding-top: 75%;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  touch-action: pan-y;
  border-bottom: 1px solid #edf2f7;
}
.modal-slider-wrapper .modal-slider {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.modal-slider-wrapper .modal-slider .slider-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-slider-wrapper .modal-slider .slider-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.modal-slider-wrapper {
  /* Навигация слайдера */
}
.modal-slider-wrapper .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  color: #1a202c;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  border: 1px solid #636777;
}
.modal-slider-wrapper .slider-arrow:active {
  background: #ffffff;
}
.modal-slider-wrapper .slider-arrow.prev {
  left: 10px;
}
.modal-slider-wrapper .slider-arrow.next {
  right: 10px;
}
.modal-slider-wrapper {
  /* Точки пагинации слайдера */
}
.modal-slider-wrapper .slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.15);
  padding: 5px 8px;
  border-radius: 12px;
}
.modal-slider-wrapper .slider-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-slider-wrapper .slider-dots .dot.active {
  background: #ffffff;
  width: 16px;
  border-radius: 4px;
}

/* Полноэкранный режим просмотра картинок (ОСТАВЛЯЕМ ЧЕРНЫМ) */
/* Критически важно оставить его темным, чтобы рамки девайса не резали глаза при фокусе на фото */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.fullscreen-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.fullscreen-overlay .fullscreen-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2010;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullscreen-overlay .fullscreen-close-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

.fullscreen-slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  touch-action: none;
}
.fullscreen-slider-wrapper .fullscreen-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-out;
}
.fullscreen-slider-wrapper .fullscreen-track .fullscreen-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullscreen-slider-wrapper .fullscreen-track .fullscreen-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.fullscreen-slider-wrapper .fullscreen-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 16px 20px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 2005;
}
.fullscreen-slider-wrapper .fullscreen-arrow:active {
  background: rgba(255, 255, 255, 0.3);
}
.fullscreen-slider-wrapper .fullscreen-arrow.prev {
  left: 15px;
}
.fullscreen-slider-wrapper .fullscreen-arrow.next {
  right: 15px;
}
@media (max-width: 576px) {
  .fullscreen-slider-wrapper .fullscreen-arrow {
    display: none;
  }
}
.fullscreen-slider-wrapper .fullscreen-counter {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 12px;
  border-radius: 12px;
  z-index: 2005;
}

/* Текстовый контент внутри модалки */
.modal-body-content {
  padding: 20px;
  font-family: "Nunito", sans-serif;
}
.modal-body-content .modal-page-title {
  font-size: clamp(18px, 5.8vw, 20px);
}
.modal-body-content .modal-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-body-content .modal-price-row .modal-price {
  font-size: clamp(18px, 5.8vw, 24px);
  font-weight: 800;
  color: #1a202c;
}
.modal-body-content .modal-price-row .modal-date {
  font-size: clamp(11px, 3.5vw, 13px);
  color: #718096;
  font-weight: 500;
}
.modal-body-content .modal-title {
  font-size: clamp(15px, 4.6vw, 19px);
  font-weight: 700;
  line-height: 25px;
  margin: 0 0 16px 0;
  color: #2d3748;
}
.modal-body-content .modal-divider {
  height: 1px;
  background-color: #898e92;
  margin: 13px 0;
}
.modal-body-content h3 {
  font-size: 14px;
  color: #2f363f;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.modal-body-content .description_container {
  /* Ограничиваем высоту, учитывая, что сверху есть кнопка возврата "Назад" */
  max-height: 30vh;
  overflow-y: auto;
  /* Стилизация скроллбара */
}
.modal-body-content .description_container::-webkit-scrollbar {
  width: 5px;
}
.modal-body-content .description_container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.modal-body-content .description_container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.modal-body-content .description_container .modal-description {
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 24px;
  color: #2c333d;
  white-space: pre-line;
  margin-bottom: 20px;
}
.modal-body-content {
  /* Контейнер-строка для кнопок действия внизу */
}
.modal-body-content .modal-actions-row {
  position: fixed;
  bottom: 20px;
  left: 5%;
  width: 90%;
  max-width: 540px;
  display: flex;
  gap: 10px;
  z-index: 12;
  box-sizing: border-box;
}
.modal-body-content {
  /* Общий базовый стиль для обеих кнопок */
}
.modal-body-content .modal-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  font-family: "Nunito", sans-serif;
  box-sizing: border-box;
  transition: transform 0.1s ease, background-color 0.2s ease;
}
.modal-body-content .modal-action-btn .btn-icon {
  font-size: 16px;
}
.modal-body-content .modal-action-btn:active {
  transform: scale(0.97);
}
.modal-body-content {
  /* Кнопка Позвонить (делаем благородного темного/стального цвета для баланса) */
}
.modal-body-content .btn-call {
  background: #2d3748;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(45, 55, 72, 0.2);
}
.modal-body-content .btn-call:active {
  background: #1a202c;
}
.modal-body-content {
  /* Кнопка WhatsApp (Фирменный сочный зеленый цвет мессенджера) */
}
.modal-body-content .btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.modal-body-content .btn-whatsapp:active {
  background: #1ebd59;
}

.form-step {
  display: none;
  animation: fadeInStep 0.25s ease-out forwards;
}
.form-step label {
  padding: 10px 0;
}
.form-step.active {
  display: block;
}

.step-4 label {
  padding: 10px 0;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Элементы прогресс-бара шагов */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0 25px 0;
}
.step-indicator .step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #777777;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  border: 1px solid #e0e0e0;
}
.step-indicator .step-dot.active {
  background-color: #179c27;
  border-color: #179c27;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(23, 156, 39, 0.3);
}
.step-indicator .step-line {
  flex-grow: 1;
  max-width: 50px;
  height: 2px;
  background-color: #e0e0e0;
  margin: 0 8px;
}

/* Поля ввода */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.input-group label {
  font-size: clamp(10px, 3.6vw, 14px);
  color: #444444;
  font-weight: 600;
}
.input-group input[type=text],
.input-group input[type=number],
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 14px;
  background-color: #f8f9fa;
  border: 1px solid #878c92;
  border-radius: 10px;
  color: #1a202c;
  font-family: "Nunito", sans-serif;
  box-sizing: border-box;
  font-size: clamp(10px, 3.8vw, 15px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-group input[type=text]::-moz-placeholder, .input-group input[type=number]::-moz-placeholder, .input-group textarea::-moz-placeholder, .input-group select::-moz-placeholder {
  color: #a0aec0;
}
.input-group input[type=text]::placeholder,
.input-group input[type=number]::placeholder,
.input-group textarea::placeholder,
.input-group select::placeholder {
  color: #a0aec0;
}
.input-group input[type=text]:focus,
.input-group input[type=number]:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: #179c27;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 156, 39, 0.1);
}

/* Блок цены и валюты */
.price-inputs {
  display: flex;
  gap: 10px;
}
.price-inputs input {
  flex-grow: 2;
}
.price-inputs select {
  flex-grow: 1;
  max-width: 110px;
  text-align: center;
  cursor: pointer;
}

/* Обертка для анимации категорий внутри Шага 2 */
.categories-slider-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.categories-slider-track {
  display: flex;
  width: 200%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

/* Общие стили для под-экранов категорий */
.sub-step-pane {
  width: 50%;
  box-sizing: border-box;
  padding: 2px 4px;
}
.sub-step-pane label {
  padding: 10px 0;
}

.step-pane-label {
  font-size: clamp(10px, 3.6vw, 14px);
  color: #4a5568;
  font-weight: 700;
  display: block;
  padding: 15px 5px;
}

/* Кастомизация карточек категорий (под горизонтальный переход) */
.category-select-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Ограничиваем высоту блока (например, примерно на 4-5 категорий) */
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
  /* Стилизация скроллбара для WebKit (Chrome, Safari, WebView на Android) */
}
.category-select-grid::-webkit-scrollbar {
  width: 5px;
}
.category-select-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.category-select-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.category-select-grid .cat-select-card {
  background: #f8f9fa;
  padding: 16px 20px;
  border-bottom: 1px solid #9399a0;
  color: #2d3748;
  cursor: pointer;
  font-size: clamp(10px, 3.8vw, 15px);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}
.category-select-grid .cat-select-card .arrow-icon {
  color: #a0aec0;
  transition: transform 0.2s ease;
}
.category-select-grid .cat-select-card:active {
  background: #edf2f7;
}
.category-select-grid .cat-select-card.active {
  border-color: #179c27;
  background: rgba(23, 156, 39, 0.06);
  color: #179c27;
}
.category-select-grid .cat-select-card.active .arrow-icon {
  color: #179c27;
  transform: translateX(4px);
}

/* Шапка подкатегорий с кнопкой возврата */
.subcat-header {
  margin-bottom: 16px;
}
.subcat-header .btn-back-to-cat {
  background: #f1f5f9;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: clamp(10px, 3.6vw, 14px);
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-family: "Nunito", sans-serif;
  border: 1px solid #0a0a0a;
}
.subcat-header .btn-back-to-cat:active {
  background: #e2e8f0;
}

/* Сетка подкатегорий (на всю ширину блоками-тегами) */
/* Сетка подкатегорий с фиксированной высотой и скроллом */
.subcategory-select-grid {
  display: flex;
  flex-direction: column;
  /* Ограничиваем высоту, учитывая, что сверху есть кнопка возврата "Назад" */
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
  /* Стилизация скроллбара */
}
.subcategory-select-grid::-webkit-scrollbar {
  width: 5px;
}
.subcategory-select-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.subcategory-select-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.subcategory-select-grid .subcat-select-item {
  background: #ffffff;
  padding: 17px 18px;
  font-size: clamp(10px, 3.8vw, 15px);
  color: #4a5568;
  cursor: pointer;
  border-bottom: 1px solid #9399a0;
  font-weight: 500;
  transition: all 0.15s ease;
}
.subcategory-select-grid .subcat-select-item:active {
  background: #f8f9fa;
}
.subcategory-select-grid .subcat-select-item.active {
  background: #179c27;
  border-color: #179c27;
  color: #ffffff;
  font-weight: 600;
}

/* Вспомогательные стили состояний */
.subcat-loading,
.subcat-empty {
  text-align: center;
  padding: 30px 10px;
  color: #718096;
  font-size: 14px;
  font-weight: 500;
}

/* Сетка загрузки картинок (Шаг 3) */
.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}
.photo-upload-grid .photo-box {
  aspect-ratio: 1/1;
  background-color: #f8f9fa;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.photo-upload-grid .photo-box input[type=file] {
  display: none;
}
.photo-upload-grid .photo-box span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}
.photo-upload-grid .photo-box {
  /* Эффект при наведении/тапе на пустой бокс */
}
.photo-upload-grid .photo-box:active {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}
.photo-upload-grid .photo-box.has-photo {
  border-style: solid;
  border-color: #179c27;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Список тарифов (Шаг 4) */
.status-rates-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.status-rates-list .rate-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.status-rates-list .rate-card input[type=radio] {
  margin-top: 4px;
  accent-color: #179c27;
  width: 16px;
  height: 16px;
}
.status-rates-list .rate-card .rate-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status-rates-list .rate-card .rate-info .rate-title {
  font-weight: 700;
  font-size: 15px;
  color: #1a202c;
}
.status-rates-list .rate-card .rate-info .rate-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 17px;
}
.status-rates-list .rate-card.active {
  border-color: #179c27;
  background: rgba(23, 156, 39, 0.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.status-rates-list .rate-card.active.ordinary .rate-title {
  color: #179c27;
}
.status-rates-list .rate-card.active.vip .rate-title {
  color: #d97706;
}
.status-rates-list .rate-card.active.vip_plus .rate-title {
  color: #db2777;
}

/* Фиксированная нижняя панель кнопок навигации */
.form-navigation-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #edf2f7;
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  box-sizing: border-box;
  z-index: 100;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.03);
}
.form-navigation-bar .nav-btn {
  flex: 1;
  padding: 15px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  text-align: center;
  transition: transform 0.1s ease, background-color 0.2s ease;
}
.form-navigation-bar .nav-btn:active {
  transform: scale(0.98);
}
.form-navigation-bar .nav-btn.btn-back {
  background: #e2e8f0;
  color: #4a5568;
}
.form-navigation-bar .nav-btn.btn-back:active {
  background: #cbd5e1;
}
.form-navigation-bar .nav-btn.btn-next {
  background: #179c27;
  color: #ffffff;
}
.form-navigation-bar .nav-btn.btn-next:active {
  background: #127a1e;
}
.form-navigation-bar .nav-btn.btn-submit {
  background: #179c27;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 156, 39, 0.3);
}
.form-navigation-bar .nav-btn.btn-submit:active {
  background: #127a1e;
}
.form-navigation-bar {
  /* Кнопка "Опубликовать" */
}
.form-navigation-bar .btn-submit {
  background: #179c27 !important;
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(23, 156, 39, 0.25);
  transition: all 0.2s ease;
}
.form-navigation-bar .btn-submit:active {
  background: #127a1e !important;
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(23, 156, 39, 0.2);
}
.form-navigation-bar .btn-submit:disabled {
  background: #a0aec0 !important;
  box-shadow: none;
  cursor: not-allowed;
}
.form-navigation-bar {
  /* Крутящийся спиннер внутри кнопки загрузки */
}
.form-navigation-bar .spinner-loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Оверлей модалки (затемнение фона) */
.filter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px); /* Трендовое размытие */
  display: flex;
  align-items: flex-end; /* Прижимает шторку к низу */
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Состояние, когда модалка открыта */
.filter-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.filter-modal-overlay.open .filter-modal-content {
  transform: translateY(0);
}

/* Контейнер шторки фильтров */
.filter-modal-content {
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: clamp(16px, 4vw, 24px);
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); /* Плавный выезд */
  /* Нижний отступ с учетом навигационных баров современных безрамочных телефонов */
  padding-bottom: calc(clamp(16px, 4vw, 24px) + env(safe-area-inset-bottom, 0px));
}

/* Декоративная полоска (handle) вверху шторки, показывающая, что её можно закрыть свайпом */
.filter-modal-content::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 0 auto clamp(12px, 3vw, 18px) auto;
}

/* Шапка модалки */
.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(16px, 4vw, 22px);
}

.filter-modal-header h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 700;
  color: #1a202c;
  margin: 0;
}

.close-filter-btn {
  background: #f7fafc;
  border: none;
  width: clamp(32px, 8vw, 38px);
  height: clamp(32px, 8vw, 38px);
  border-radius: 50%;
  font-size: clamp(14px, 3.5vw, 16px);
  color: #4a5568;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.close-filter-btn:active {
  background: #edf2f7;
}

/* Тело модалки */
.filter-modal-body {
  max-height: 60vh; /* Ограничиваем по высоте, чтобы не вылезало за экран */
  overflow-y: auto; /* Если фильтров много, внутри появится плавный скролл */
  padding-right: 2px;
}

.filter-group {
  margin-bottom: clamp(14px, 3.5vw, 18px);
}

.filter-group label {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: clamp(12px, 3.5vw, 14px);
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
}

/* Общие стили для инпутов и селектов */
.filter-group select,
.filter-group input {
  width: 100%;
  padding: clamp(10px, 2.8vw, 13px) clamp(12px, 3vw, 16px);
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(13px, 3.5vw, 15px);
  background: #f8fafc;
  color: #1a202c;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none; /* Убираем дефолтные стрелочки на iOS */
}

/* Кастомная стрелочка для селектов, чтобы на iOS смотрелось чисто */
.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C</svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Фокус-состояние для полей ввода */
.filter-group select:focus,
.filter-group input:focus {
  border-color: #0a0a0a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.05);
}

/* Сетка диапазона цен */
.price-range-inputs {
  display: flex;
  gap: clamp(8px, 2vw, 12px);
}

.price-range-inputs input {
  flex: 1;
}

/* Подвал с кнопками */
.filter-modal-footer {
  display: flex;
  gap: clamp(10px, 2.5vw, 14px);
  margin-top: clamp(20px, 5vw, 26px);
}

.filter-modal-footer button {
  flex: 1;
  padding: clamp(12px, 3.2vw, 15px);
  border-radius: 14px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(14px, 3.5vw, 15px);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
}

.filter-modal-footer button:active {
  transform: scale(0.98); /* Легкий эффект нажатия */
}

.btn-reset-filters {
  background: #f1f5f9;
  color: #64748b;
}

.btn-reset-filters:active {
  background: #e2e8f0;
}

.btn-apply-filters {
  background: #0a0a0a;
  color: #ffffff;
}

.btn-apply-filters:active {
  background: #222222;
}/*# sourceMappingURL=announcement.css.map */