/* ============================================
   СТОИМОСТЬ ОБУЧЕНИЯ (BLOCK12)
   ============================================ */
.block12 {
  max-width: var(--page-width);
  width: 100%;
  margin: 0 auto;
  padding: 50px var(--side-padding);
  box-sizing: border-box;
  background-color: var(--color-white);
}

.block12_container {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Блок с текстом */
.block12_text {
  text-align: center;
  margin-bottom: 40px;
}

.block12_title {
  font-family: Lora, serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 50px;
  color: var(--color-black);
  margin-bottom: 35px;
}

.block12_info {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-black);
}

/* Новая структура для 769px+ */
@media (min-width: 769px) {
  .block12_text {
    display: grid;
    grid-template-columns: 1fr 454px;
    gap: 40px;
    align-items: start;
    text-align: left;
    margin-bottom: 40px;
  }
  
  .block12_info {
    display: none;
  }
  
  .block12_text_left {
    display: flex;
    flex-direction: column;
  }
  
  .block12_title {
    text-align: left;
    margin-bottom: 30px;
  }
  
  .block12_text_info_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .block12_text_info_left,
  .block12_text_info_right {
    display: flex;
    flex-direction: column;
  }
  
  .block12_text_info_left p,
  .block12_text_info_right p {
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: var(--color-black);
  }
  
  .block12_text_info_left strong,
  .block12_text_info_right strong {
    font-weight: 700;
  }
  
  .block12_text_dash {
    color: #D2232A;
  }
  
  .block12_text_campus_image_wrapper {
    position: relative;
    width: 454px;
    height: 229px;
    border-radius: 12px;
    overflow: hidden;
  }
  
  .block12_text_campus_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .block12_text_campus_image_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(102, 102, 102, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .block12_text_campus_name {
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 1.5;
  }
  
  .block12_text_campus_info_icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  
  .block12_text_campus_info_icon:hover {
    opacity: 0.8;
    transform: scale(1.05);
  }
  
  .block12_text_campus_info_icon:active {
    transform: scale(0.95);
  }
}

/* Скрываем новую структуру на 768px и меньше */
@media (max-width: 768px) {
  .block12 {
    padding: 32px 20px !important;
  }
  
  .block12_prices {
    margin-top: 0 !important;
  }
  
  .block12_category_buttons {
    display: none !important;
  }
  
  .block12_campus_tabs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: 10px !important;
  }
  
  .block12_campus_selector_wrapper {
    position: relative;
    display: block !important;
    width: 100%;
  }
  
  .block12_year_selector_wrapper {
    position: relative;
    display: block !important;
    width: 100%;
  }
  
  .block12_year_selector_btn {
    padding: 5px 20px;
    width: 100% !important;
    min-height: 48px;
    background: #fff;
    color: #c00;
    border: 2px solid #c00;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    font-family: "Roboto";
    font-size: 14px;
    font-weight: 400;
    gap: 10px;
  }

  .block12_year_selector_btn .block12_year_arrow {
    font-size: 14px !important;
    transition: transform 0.3s ease;
    color: inherit;
    display: inline-block;
  }

  .block12_year_selector_btn.menu-open .block12_year_arrow {
    transform: rotate(180deg);
  }

  .block12_year_modal {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    transform: none;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 1000;
  }

  .block12_year_modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .block12_year_option {
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    border-bottom: 1px solid #f0f0f0;
  }

  .block12_year_option:last-child {
    border-bottom: none;
  }

  .block12_year_option:hover {
    background: #f5f5f5;
  }
  
  .block12_campus_selector_btn {
    padding: 5px 10px !important;
  }
  
  .block12_campus_arrow {
    font-size: 14px !important;
  }
  
  .block12_text_info_wrapper,
  .block12_text_campus_image_wrapper {
    display: none;
  }
  
  .block12_text_left {
    display: block;
  }
  
  .block12_title {
    display: block;
    text-align: left !important;
    margin-bottom: 20px;
  }
  
  .block12_info {
    display: flex !important;
    justify-content: start !important;
    text-align: left !important;
    flex-direction: column !important;
    font-family: "Roboto", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.714em !important;
  }
  
  .block12_info p {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 1.714em !important;
  }
  
  .block12_info p strong {
    font-weight: 700 !important;
  }
  
  .block12_info .accordion_dash {
    color: #D2232A;
    margin-right: 0px;
  }
  
  .block12_text {
    text-align: center;
    margin-bottom: 20px !important;
  }
}

/* Блок с кнопками кампусов */
.block12_campus_tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
  gap: 10px;
  /* Выше .block12_prices: у сетки цен transform на slides создаёт слой, из‑за чего выпадающий список
     оказывался под сеткой и не получал клики (страница начальной школы и др.). */
  position: relative;
  z-index: 20;
}

.block12_campus_selector_wrapper {
  display: none;
}

.block12_year_selector_wrapper {
  display: none;
}

/* На 769px+ показываем селекторы вместо кнопок */
@media (min-width: 769px) {
  .block12_campus_tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
  }
  
  .block12_campus_btn {
    display: none;
  }
  
  .block12_campus_selector_wrapper {
    position: relative;
    display: block;
    width: calc((100% - 60px) / 4);
    min-width: 250px;
  }
  
  .block12_year_selector_wrapper {
    position: relative;
    display: block;
    width: calc((100% - 60px) / 4);
    min-width: 250px;
  }
  
  .block12_campus_selector_btn {
    padding: 5px 20px;
    width: 100%;
    min-height: 48px;
    background: #D2232A;
    color: #fff;
    border: 2px solid #D2232A;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    gap: 10px;
  }
  
  .block12_campus_selector_btn .block12_campus_arrow {
    font-size: 17px;
    transition: transform 0.3s ease;
    color: inherit;
    display: inline-block;
  }
  
  .block12_campus_selector_btn.menu-open .block12_campus_arrow {
    transform: rotate(180deg);
  }
  
  .block12_campus_modal {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 6px;
    box-shadow: inset 0px 4px 8px 0px rgba(217, 217, 217, 1);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    box-sizing: border-box;
  }
  
  .block12_campus_modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .block12_campus_option {
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.171875em;
    color: #231F20;
    border-bottom: 1px solid #EFEFEF;
    position: relative;
    z-index: 1001;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    flex-shrink: 0;
    min-height: 36px;
    height: 36px;
    display: flex;
    align-items: center;
  }
  
  .block12_campus_option:last-child {
    border-bottom: none;
  }
  
  .block12_campus_option:hover {
    background: #f9f9f9;
  }
  
  .block12_campus_option.selected,
  .block12_campus_option.active {
    background: #EFEFEF;
    font-weight: 700;
  }
  
  .block12_year_selector_btn {
    padding: 5px 20px;
    width: 100%;
    min-height: 48px;
    background: #fff;
    color: #D2232A;
    border: 2px solid #D2232A;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    gap: 10px;
    text-align: left;
  }
  
  .block12_year_selector_btn span:first-child {
    text-align: left;
    flex: 1;
  }
  
  .block12_year_selector_btn .block12_year_arrow {
    font-size: 17px;
    transition: transform 0.3s ease;
    color: #D2232A;
    display: inline-block;
  }
  
  .block12_year_selector_btn.menu-open .block12_year_arrow {
    transform: rotate(180deg);
  }
  
  .block12_year_modal {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 6px;
    box-shadow: inset 0px 4px 8px 0px rgba(217, 217, 217, 1);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    box-sizing: border-box;
  }
  
  .block12_year_modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .block12_year_option {
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.171875em;
    color: #231F20;
    border-bottom: 1px solid #EFEFEF;
    position: relative;
    z-index: 1001;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    flex-shrink: 0;
    min-height: 36px;
    height: 36px;
    display: flex;
    align-items: center;
  }
  
  .block12_year_option:last-child {
    border-bottom: none;
  }
  
  .block12_year_option:hover {
    background: #f9f9f9;
  }
  
  .block12_year_option.selected,
  .block12_year_option.active {
    background: #EFEFEF;
    font-weight: 700;
  }
}

.block12_campus_btn {
  padding: 5px 20px;
  width: 206.75px;
  min-height: 48px;
  height: auto;
  background: #fff;
  color: #c00;
  border: 2px solid #c00;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: "Roboto";
  font-size: 16px;
  text-align: center;
  line-height: 1.2;
}

.block12_campus_btn.active {
  background: #c00;
  color: #fff;
  width: 246.56px;
  min-height: 48.02px;
}

/* Блок с ценами */
.block12_prices {
  margin-top: 50px;
  position: relative;
  z-index: 1;
}


/* Кнопки категорий - скрыты по умолчанию на больших экранах */

.block12_prices_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.block12_prices_slides {
  display: contents;
}

.block12_prices_grid {
  padding-bottom: 10px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  transition: scrollbar-color 0.3s ease;
}

.block12_prices_grid:hover,
.block12_prices_grid:active,
.block12_prices_grid.scrolling {
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.block12_prices_grid::-webkit-scrollbar {
  height: 6px;
}

.block12_prices_grid::-webkit-scrollbar-track {
  background: transparent;
}

.block12_prices_grid::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.block12_prices_grid:hover::-webkit-scrollbar-thumb,
.block12_prices_grid:active::-webkit-scrollbar-thumb,
.block12_prices_grid.scrolling::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

.block12_prices_grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.block12_prices_grid:active {
  cursor: grabbing;
}

.block12_price_item[data-campus] {
  display: none;
}

.block12_price_item[data-campus="skolkovo"] {
  display: flex;
}

.block12_price_item {
  background: #fff;
  border-width: 2px;
  border-style: solid;
  border-color: #D9D9D9;
  border-radius: 6px;
  padding: 25px 30px 30px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  box-sizing: border-box;
}

/* Заголовок */
.block12_price_title {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--color-black);
  display: flex;
  align-items: center;
}

@media (min-width: 769px) {
  .block12_price_title {
    font-family: Lora, serif;
    font-weight: 500;
    align-items: start;
    min-height: auto;
    font-size: 22px;
    line-height: 1.25;
  }
}

@media (max-width: 768px) {
  .block12_price_title {
    font-family: Lora, serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: 0%;
  }
}

/* Подзаголовок (годы обучения) */
.block12_price_subtitle {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-black);
  min-height: 22px;
  display: flex;
  align-items: center;
}

/* Заголовок и подзаголовок - объединенный блок */
.block12_price_header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Цены - объединенный блок */
.block12_price_prices {
  display: flex;
  flex-direction: column;
}

/* Убираем интерактивность в block12_prices_grid - как в info_school_2_carousel */
.block12_prices_grid .block12_price_item {
  cursor: default;
}

.block12_prices_grid .block12_price_item:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Кнопки внутри block12_price_info — ссылки «Подробнее» должны быть кликабельны */
.block12_prices_grid .block12_price_info_btn {
  cursor: pointer;
  pointer-events: auto;
}

/* Возраст - контейнер */
.block12_price_age {
  margin: 5px 0;
  min-height: 58px;
  display: flex;
  align-items:last baseline;
  gap: 10px;
}

/* Возраст - левый блок */
.block12_price_age_left {
  font-family: Lora, serif !important;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.2;
  color: #D2232A;
  display: flex;
  align-items: center;
}

/* Возраст - правый блок */
.block12_price_age_right {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #D2232A;
  display: flex;
  align-items: center;
  transform: translateY(-2px);
}

/* Цена со скидкой - объединяем в один блок */
.block12_price_with {
  display: inline-block;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-black);
  width: 100%;
}

/* Скрываем block12_price_with, если block12_price_discount_date пустой */
.block12_price_with:has(.block12_price_discount_date:empty) {
  display: none;
}

/* Но всегда показываем первый блок, даже если у него пустая дата (чтобы была хотя бы одна строка) */
.block12_price_prices > .block12_price_with:first-child:has(.block12_price_discount_date:empty) {
  display: inline-block;
}

/* Если первый блок имеет пустую дату, скрываем второй блок */
.block12_price_prices > .block12_price_with:first-child:has(.block12_price_discount_date:empty) ~ .block12_price_with {
  display: none;
}

.block12_price_with_discount {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700 !important;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0%;
  color: var(--color-black);
  display: inline;
}

.block12_price_discount_date {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-black);
  display: inline;
  margin-left: 5px;
}

/* Если block12_price_with_discount напрямую в block12_price_prices */
.block12_price_prices > .block12_price_with_discount {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700 !important;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-black);
  display: block;
}

/* Информационный блок */
.block12_price_info {
  background: #EFEFEF;
  padding: 17px 17px 20px 30px;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.block12_price_info_content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.block12_price_info_text {
  font-family: Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #000000;
  text-align: left;
}

.block12_price_info_text p {
  margin: 0;
  font-size: 16px;
}

.block12_price_info_buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.block12_price_info_btn {
  width: auto;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: none;
  border: 2px solid transparent;
  box-sizing: border-box;
  pointer-events: auto;
}

.block12_price_info_btn_red {
  background: #c00;
  color: #fff;
  border-color: #c00;
}

.block12_price_info_btn_red:hover {
  background: #c00;
  border-color: #c00;
}

/* Скрываем кнопку "2026-2027 год" в block12_price_info при 768px и меньше */
@media (max-width: 768px) {

  .block12_price_info {
    padding: 30px 17px 20px 30px;
  }
  
  .block12_price_info_text {
    font-size: 14px;
  }
  
  .block12_price_info_buttons {
    font-size: 14px;
  }
  
  .block12_price_info_buttons .block12_price_info_btn {
    font-size: 14px;
  }
  
  .block12_price_info_content {
    align-items: flex-start;
  }
}


/* Адаптивность для block12 */
@media (max-width: 1200px) {
  .block12_prices_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .block12_prices_grid {
    display: flex;
    overflow: hidden;
    gap: 16px;
    padding-top: 18px;
    padding-left: 0;
    padding-right: var(--side-padding);
    grid-template-columns: none;
    width: 100vw;
    /* Компенсируем padding контейнера слева и выходим за его пределы */
    /* Используем left: 0 для позиционирования с края экрана */
    position: relative;
    left: calc(0px - var(--side-padding));
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
    box-sizing: border-box;
  }
  
  /* Swiper стили */
  .block12_prices_grid.swiper {
    overflow: hidden;
    gap: 0; /* Swiper использует spaceBetween вместо gap */
    position: relative;
  }
  
  .block12_prices_slides.swiper-wrapper {
    display: flex;
    gap: 0; /* Swiper использует spaceBetween вместо gap */
    cursor: grab;
    will-change: transform;
    transition-property: transform;
    box-sizing: content-box;
    width: auto !important; /* Позволяем wrapper расширяться */
    min-width: max-content; /* Обеспечиваем минимальную ширину для всех слайдов */
    /* Убираем padding-left при использовании centeredSlides - Swiper сам центрирует */
  }
  
  /* Базовые стили для не-Swiper режима */
  .block12_prices_slides:not(.swiper-wrapper) {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 16px;
    cursor: grab;
    will-change: transform;
  }
  
  .block12_prices_slides.dragging {
    cursor: grabbing;
    transition: none;
  }
  
  .block12_prices_slides .price-item-clone {
    pointer-events: none;
  }
  
  .block12_prices_grid .block12_price_item.swiper-slide {
    width: 270px !important;
    flex: 0 0 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
    height: auto;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box;
  }
  
  /* Отступ между слайдами Swiper (spaceBetween работает через margin-right) */
  .block12_prices_grid.swiper .swiper-slide:not(:last-child) {
    margin-right: 16px !important;
  }
  
  .block12_prices_grid .block12_price_item {
    width: 270px;
    flex: 0 0 270px;
    min-width: 270px;
    height: auto;
  }
  
  /* Убираем margin-left для первого слайда, если он не должен иметь отступ */
  /* Отступ для первого слайда теперь задается выше в правиле для .block12_prices_grid .block12_price_item:first-child */
  
  .block12_prices_grid .block12_price_item:last-child {
    margin-right: 0 !important;
  }
  
  .block12_prices_grid.block12_prices_grid_centered {
    box-sizing: border-box;
  }

  .block12_prices_grid.block12_prices_grid_centered .block12_price_item:first-child {
    margin-left: 0 !important;
  }
  
  .block12_prices_grid.block12_prices_grid_centered .block12_price_item:last-child {
    margin-right: 0 !important;
  }
  
  .block12_prices_grid .block12_price_item {
    flex: 0 0 270px;
    width: 270px;
    min-width: 270px;
    height: auto;
  }
  
  .block12_price_info_mobile {
    background: #EFEFEF;
    padding: 17px 17px 20px 30px;
    border: none;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .block12_price_info_mobile_content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }
  
  .block12_price_info_mobile_text {
    font-family: Roboto, Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    color: #000000;
    text-align: left;
    margin-bottom: 20px;
  }
  
  .block12_price_info_mobile_btn {
    width: auto;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: Roboto, Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    background: #D2232A;
    color: #fff;
    border: none;
    cursor: pointer;
    align-self: flex-start;
  }
  
  .block12_price_info_mobile_btn:hover {
    background: #D2232A;
    opacity: 0.9;
  }
  
  .block12_campus_btn {
    width: calc(50% - 5px);
    min-width: 180px;
  }
  
  .block12_campus_btn:hover {
    width: calc(50% - 5px);
  }
}

@media (max-width: 600px) {
  .block12_prices_grid {
    grid-template-columns: 1fr;
  }
  
  .block12_campus_btn {
    width: 100%;
  }

  .block12_prices_grid.block12_prices_grid_centered {
    justify-content: start;
  }
  .block12_campus_btn:hover {
    width: 100%;
  }
  
  .block12_title {
    font-size: 36px;
    line-height: 40px;
  }
  
  .block7 .phone_flag_selector .phone_modal_wrapper {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 420px) {
  .block7 .phone_flag_selector .phone_modal_wrapper {
    left: 30% !important;
    top: calc(100% + 10px) !important;
    transform: translateX(-50%) !important;
  }
}

/* Базовые стили для кнопок категорий */
.block12_category_buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin-bottom: 16px;
}

.block12_category_btn {
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 5px 10px;
  background: #fff;
  color: #D2232A;
  border: 2px solid #D2232A;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: "Roboto";
  font-size: 20px;
  font-weight: 400;
}

.block12_category_btn_active,
.block12_category_btn.active {
  background: #D2232A;
  color: #fff;
}

.block12_category_btn:hover {
  background: #fff;
  color: #D2232A;
}

.block12_category_btn_active:hover,
.block12_category_btn.active:hover {
  background: #D2232A;
  color: #fff;
}

/* Кнопки категорий видны на десктопе (как на основном лендинге) */

/* Адаптивность для block12_campus_tabs при 1023px и меньше */
@media (max-width: 1023px) {
  .block12_campus_tabs {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
  }

  .block12_campus_btn {
    display: none;
  }

  .block12_campus_selector_wrapper {
    position: relative;
    display: block;
  }

  .block12_campus_selector_btn {
    padding: 5px 20px;
    width: 100%;
    min-height: 48px;
    background: #D2232A;
    color: #fff;
    border: 2px solid #D2232A;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    font-family: "Roboto";
    font-size: 20px;
    font-weight: 400;
    gap: 10px;
  }

  .block12_campus_selector_btn .block12_campus_arrow {
    font-size: 17px;
    transition: transform 0.3s ease;
    color: inherit;
    display: inline-block;
  }

  .block12_campus_selector_btn.menu-open .block12_campus_arrow {
    transform: rotate(180deg);
  }

  .block12_campus_modal {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 6px;
    box-shadow: inset 0px 4px 8px 0px rgba(217, 217, 217, 1);
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    box-sizing: border-box;
  }

  .block12_campus_modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .block12_campus_option {
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.171875em;
    color: #231F20;
    border-bottom: 1px solid #EFEFEF;
    position: relative;
    z-index: 1001;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    flex-shrink: 0;
    min-height: 36px;
    height: 36px;
    display: flex;
    align-items: center;
  }

  .block12_campus_option:last-child {
    border-bottom: none;
  }

  .block12_campus_option:hover {
    background: #f9f9f9;
  }

  .block12_campus_option.selected,
  .block12_campus_option.active {
    background: #EFEFEF;
    font-weight: 700;
  }

}
