/* Стили карточек акций */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  align-items: end;
}
.div__action {
  margin: 0 !important;
}
.actions-grid-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4vh;
    margin-bottom: 2.5rem;
    margin-left: 4vh;
    margin-right: 4vh;
    align-items: end;
}
.action-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
  min-height: 120px;
  height: 300px;
  overflow: hidden;
  padding: 0;
  position: relative;
}
.action-card-page {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.07);
    overflow: hidden;
    padding: 0;
    position: relative;
    height: 100%;
}
.action-card:hover {
  box-shadow: 0 8px 32px 0 rgba(45,131,244,0.10);
}
.action-card-page:hover {
  box-shadow: 0 8px 32px 0 rgba(45,131,244,0.10);
}
.action-image {
  width: 100%;
  height: 250px;
  flex-shrink: 0;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 15px 15px 0px 0px;
  overflow: hidden;
  padding: 0;
}
.action-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.action-content {
  flex: 1 1 auto;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.action-content-body {
  display: flex;
  flex-direction: column;
   align-items: stretch !important;
  min-width: 0;
}
.action-title {
  margin-bottom: 0.4em;
}
.action-short-desc {
  color: #444;
  font-size: 0.97rem;
  margin: 0 0 0.5em 0;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  display: block;
}
.small-description {
  width: 100%;
  height: auto;
  display: block;
}

.action-short-desc.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.action-toggle-btn {
  display: inline-block;
  margin-bottom: 0.6em;
  border: none;
  background: #fff;
  color: #19191a;
  border-radius: 5px;
  padding: 9px 18px 9px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.2s;
  outline: none;
  box-shadow: 0 1px 4px 0 rgba(55,55,55,0.03);
  user-select: none;
  letter-spacing: 0.02em;
}
.action-toggle-btn:hover, .action-toggle-btn:focus {
  background: #ededed;
  color: #19191a;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(25,25,26,0.10);
}
.action-toggle-btn:active {
  background: #d9d9d9;
  color: #0d0d0d;
  box-shadow: none;
}
.action-desc-collapsed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.57,.1,.1,1), padding 0.3s;
  padding: 0 0;
  margin-bottom: 0;
}

.action-desc-collapsed.is-open {
  max-height: 2000px;
  padding: 0.5rem 0 1rem 0;
  margin-bottom: 0.5rem;
  /* Нет скролла и жёсткой высоты */
}
.action-signup-btn {
  margin-left: auto;
  align-self: flex-start;
}
.action-full-desc {
  word-break: break-word;
  white-space: pre-line;
  overflow-y: auto;
  max-height: 200px;
  padding: 0.9em 1.3rem 0.5em 1.3rem;
  font-size: 1rem;
  color: #222;
  line-height: 1.6;
}
.action-desc-full {
  word-break: break-word;
  white-space: pre-line;
  font-size: 1rem;
  color: #222;
  line-height: 1.6;
  margin-bottom: 0.8em;
  overflow-y: auto;
  max-height: calc(320px - 60px - 2*1.3rem);
  padding-bottom: 1rem;
}
.action-desc-full-page {
    word-break: break-word;
    white-space: pre-line;
    font-size: 1rem;
    color: #222;
    line-height: 1.6;
    margin-bottom: 0.8em;
    overflow-y: auto;
    height: calc(300px - 60px - 2 * 1.47rem);
    padding-bottom: 1rem;
}
.action-content.js-action-brief,
.action-content.js-action-full {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  height: 400px;
}
.action-full-buttons {
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    gap: 1rem;
    box-shadow: 0 -2px 8px rgba(25, 25, 26, 0.03);
    z-index: 2;
}
.action-full-buttons-page {
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    gap: 1rem;
    box-shadow: 0 -2px 8px rgba(25, 25, 26, 0.03);
    z-index: 2;
}
@media (max-width: 1024px) {
.actions-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4vh;
    margin-bottom: 2.5rem;
    margin-left: 4vh;
    margin-right: 4vh;
    align-items: end;
}
}
@media (max-width: 768px) {
.actions-grid-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4vh;
    margin-bottom: 2.5rem;
    margin-left: 4vh;
    margin-right: 4vh;
    align-items: end;
}
}
@media (max-width: 425px) {
.actions-grid-page {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 4vh;
    margin-bottom: 2.5rem;
    margin-left: 4vh;
    margin-right: 4vh;
    align-items: end;
}
}
@media (max-width: 900px) {
  .actions-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    max-width: 96vw;
  }
  .action-card {
    min-height: 180px;
    padding: 0.9rem;
  }
  .action-image { height: 150px; margin-bottom: 0.7rem; }
  .action-title { font-size: 1rem; }
  .action-signup-btn { margin: 0; align-self: stretch; }
  .action-short-desc { max-width: 100%; }
}
.actions {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}
.actions__preloader {
  min-height: 320px; /* примерная высота под слайды */
  width: 100%;
  background: #f7f7f7;
  border-radius: 16px;
  animation: fade 1.2s infinite alternate;
}

@keyframes fade {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* Скрываем прелоадер, когда слайдер готов */
.actions--ready .actions__preloader {
  display: none;
}
.actions__slider {
  min-height: 320px; /* подстраховка, чтобы не схлопнулся */
  opacity: 0; /* чтобы не мигал */
  transition: opacity 0.3s ease;
}

.actions__wrapper {
    display: flex;
}
/* Пока Swiper не подгрузился */
.actions__slider {
  min-height: 320px; /* подстраховка, чтобы не схлопнулся */
  opacity: 0; /* чтобы не мигал */
  transition: opacity 0.3s ease;
}

/* Когда Swiper инициализировался */
.actions__slider.swiper-initialized {
  min-height: auto;
  opacity: 1;
}
.actions__item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: transform .3s ease, box-shadow .3s ease;
    flex: 0 0 auto;
    margin-bottom: 2vh;
}

.actions__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- Картинка с наложением текста --- */
.actions__image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 16px;
}

.actions__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.actions__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 25%, rgba(0,0,0,0.1) 80%, transparent 100%);
    box-sizing: border-box;
}

.action-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.action-short-desc {
    font-size: 15px;
    margin-bottom: 12px;
    max-width: 90%;
}

.action-short-desc-main {
    font-size: 15px;
    margin-bottom: 12px;
    max-width: 90%;
    color: block;
}

.yellow-btn.action-signup-btn {
    background: #ffcc00;
    color: #000;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.yellow-btn.action-signup-btn:hover {
    background: #e6b800;
}