.new_ads_items .swiper-wrapper {
    align-items: stretch; /* Растягиваем слайды по высоте обертки */
    height: 100%;         /* Обертка на всю высоту контейнера */
}
.new_ads_items .swiper-slide {
       display: flex;
    height: auto;
    max-width: 25%;        /* Позволяем высоте тянуться */
}
.ad-card {
  background: white;
  border-radius: 28px;
  padding: 18px 18px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.25s;
  border: 1px solid #f0f3f8;
  display: flex;
  flex-direction: column;
  height: 100%; /* Чтобы карточки были одной высоты */
  width: 100%;  /* Карточка занимает всю ширину слайда */
}
.ad-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 20, 50, 0.08);
    border-color: #d7e3f5;
}
.wrapper_new_ads {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.new_ads_items {
 display: flex;
  width: 100%;
  padding: 50px 0 0;
}
.new_ads_title h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}
.new_ads_title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.ad-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #dce3ed;
    border-radius: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6f89;
    font-size: 2.2rem;
    background: #eef3fc;
    background-image: linear-gradient(145deg, #e6edf8, #f5f9ff);
    overflow: hidden;
}
.ad-image i {
    opacity: 0.6;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.02));
}
.ad-tag {
    background: #e9eff8;
    padding: 3px 14px;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #1d4a7a;
    letter-spacing: 0.3px;
    display: inline-block;
    margin-bottom: 8px;
}
.ad-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0b263f;
}
.ad-title a {
  transition: all 0.3s ease;
}
.ad-title a:hover {
  color: #2a7de1;
}
.ad-desc {
    font-size: 0.9rem;
    color: #485b74;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.ad-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #edf2f9;
    padding-top: 14px;
    flex-wrap: wrap;
    gap: 6px;
}
.ad-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a5fb4;
}
.ad-price small {
    font-weight: 400;
    font-size: 0.75rem;
    color: #6f87a3;
    margin-left: 2px;
}
.ad-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #4d6a8a;
}
.ad-user i {
    color: #2a7de1;
    background: #e3edfc;
    padding: 6px;
    border-radius: 30px;
    font-size: 0.7rem;
}
.ad-desc {
  font-size: 0.9rem;
  color: #485b74;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.wrapper_swiper_nav {
position: absolute;
  z-index: 99;
  top: 24px;
  right: 0;
  width: 110px;
  align-items: center;
  display: flex;
  gap: 20px;
}
.swiper-button::after {
  font-size: 20px;
}
.swiper-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid;
}
.submit-section {
    background: white;
    border-radius: 40px;
    padding: 28px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
    margin: 20px 0 32px;
    border: 1px solid #eef2f8;
}
.submit-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.submit-section h3 i {
    color: #1a5fb4;
}
.form-row {
    display: flex;
    width: 100%;
}
.submit_section_form {
  display: flex;
  width: 100%;
  gap: 10px;
}
.form-row input, .form-row select {
    flex: 1 0 160px;
    padding: 14px 18px;
    border-radius: 60px;
    border: 1px solid #dce3ed;
    background: #fafcff;
    font-size: 0.95rem;
    outline: none;
    transition: 0.15s;
}
.form-row .btn-primary {
    flex: 0 1 auto;
    padding: 14px 40px;
    border-radius: 60px;
    font-weight: 600;
}
#form_home_add_ad {
  cursor: pointer;
}
.submit_section_form_box{
   position: relative;
    flex: 1;
}
.submit_section_form .city_result{
    position: absolute;
    z-index: -1;
    opacity: 0;
    background-color: #fff;
}
.submit_section_form_box.form_actions {
    flex: unset;
}
.submit_section_form_box input,
.submit_section_form_box select {
    width: 100%;
}
.city_result.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    z-index: 99;
    width: 100%;
    border: 1px solid #00000029;
}
.city_result_item {
    padding: 5px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}
.city_result_item:hover {
    background-color: #0000001f;
}
.submit_section_form .ajax_box {
        position: absolute;
    top: -22px;
    left: 0;
    white-space: nowrap;
}