/* Контейнер баннеров */
.saidi-banners-wrapper {
  display: flex;
  flex-direction: column; /* всегда в колонку */
  align-items: center;
  gap: 8px; /* расстояние между строками */
  margin: 16px 0;
  padding: 0;
}

/* Каждый баннер */
.saidi-banner {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.saidi-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.saidi-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(255, 255, 255, 0.12);
}

.saidi-banner a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ===== СТИЛИ ДЛЯ СЕКЦИИ ПАРТНЕРОВ (как на playfree.casino) ===== */

/* Секция партнеров */
.home-partners {
  margin: 40px 0;
  padding: 0 16px; /* Отступы от краёв экрана */
}

.home-partners__title {
  font-size: 2rem;
  font-weight: bold;
  color: inherit; /* Наследует глобальный стиль темы */
  margin-bottom: 24px;
  text-align: left;
}

.home-partners__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Карточка партнера */
.partner-card {
  background: #1a1428;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative; /* Для абсолютного позиционирования рейтинга */
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ===== Компактный режим ===== */
.home-partners--compact .home-partners__list {
  gap: 18px;
}

.partner-card--compact {
  display: grid;
  grid-template-columns: minmax(140px, 170px) minmax(180px, 220px) minmax(200px, 240px) minmax(200px, 240px) minmax(200px, 220px) minmax(160px, 200px);
  grid-template-areas: "logo title features-left features-right offer cta";
  align-items: stretch;
  gap: 20px;
  padding: 20px 24px;
}

.partner-compact__cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.partner-compact__logo {
  grid-area: logo;
  align-items: center;
  justify-content: center;
}

.partner-card--compact .partner-logo {
  width: 150px;
  max-width: 100%;
  height: auto;
}

.partner-compact__title {
  grid-area: title;
  align-items: flex-start;
}

.partner-name--compact {
  margin: 0;
  font-size: 1.25rem;
}

.partner-rating--compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.partner-rating--compact .rating-number {
  font-size: 1.05rem;
  font-weight: 600;
}

.partner-rating--compact .rating-stars {
  font-size: 1rem;
  letter-spacing: 1px;
}

.partner-compact__features {
  align-items: flex-start;
}

.partner-compact__features--left {
  grid-area: features-left;
}

.partner-compact__features--right {
  grid-area: features-right;
}

.partner-features--compact-column {
  gap: 10px;
}

.partner-compact__offer {
  grid-area: offer;
  justify-content: center;
  align-items: center;
}

.partner-offer--compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px !important;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  min-width: 200px;
  text-align: center;
  font-weight: 600;
  gap: 12px;
}

.partner-compact__cta {
  grid-area: cta;
  justify-content: center;
  align-items: stretch;
}

.partner-btn--compact {
  width: 100%;
  min-width: 0;
  padding: 12px 24px;
}

/* Хедер карточки (десктоп) */
.partner-card__head {
  display: grid;
  grid-template-columns: 300px 1fr; /* logo 300px, название/оффер (рейтинг absolute) */
  align-items: center;
  gap: 20px;
}

/* Логотип в хедере - БЕЗ padding и белого фона */
.partner-logo {
  width: 300px;
  height: 120px;
  object-fit: contain;
  border-radius: 0;
  background: transparent !important; /* Убираем любой фон */
  padding: 0 !important; /* Убираем padding */
  display: block;
}

/* Название и оффер */
.partner-card__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partner-name {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.partner-offer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.4;
  margin: 0;
  padding: 6px 12px;
  border-radius: 12px;
}

.partner-offer--primary {
  align-self: flex-start;
  margin-top: 12px;
}

.partner-offer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.1rem;
  line-height: 1;
  color: inherit;
}

.partner-offer__icon::before {
  content: "🎁";
}

.partner-offer__text {
  display: inline-block;
}

.saidi-toc {
  margin-bottom: 32px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.saidi-toc__title {
  display: inline-block;
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: inherit;
}

.saidi-toc__list {
  margin: 0;
  padding-left: 18px;
  list-style: none;
  counter-reset: saidi-toc-counter;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.saidi-toc--with-item-bg .saidi-toc__list {
  gap: 12px;
}

.saidi-toc--with-item-bg .saidi-toc__item {
  background: transparent !important;
  border-radius: 8px;
}

.saidi-toc__item {
  counter-increment: saidi-toc-counter;
  position: relative;
  padding-left: 32px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.saidi-toc__item::before {
  content: counter(saidi-toc-counter);
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(153, 51, 255, 0.22);
  color: inherit;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.saidi-toc__link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.saidi-toc__link:hover,
.saidi-toc__link:focus {
  color: #8cb4ff;
}

.saidi-toc--plain .saidi-toc__list {
  counter-reset: unset;
}

.saidi-toc--plain .saidi-toc__item {
  padding-left: 0 !important;
}

.saidi-toc--plain .saidi-toc__item::before {
  display: none !important;
}

.partner-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.partner-rating--inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rating-number {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.rating-stars {
  font-size: 1rem;
  color: #fbbf24;
  letter-spacing: 1px;
}

/* Мобильная версия (дублирование названия и оффера) */
.partner-info-mobile {
  display: none; /* По умолчанию скрыто, показываем на мобильных */
}

/* Список преимуществ - КОНТРАСТНЫЙ */
.partner-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-features li {
  position: relative;
  padding-left: 24px;
  color: #e0e0e0; /* Светлый серый для хорошего контраста */
  line-height: 1.6;
  font-size: 0.95rem;
}

.partner-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #4CAF50; /* Яркий зеленый для галочки */
  font-weight: bold;
  font-size: 1.1rem;
}

/* Кнопка CTA */
.partner-card p {
  margin: 0;
  padding: 0;
}

.partner-btn {
  display: inline-block;
  width: 100%;
  background: linear-gradient(135deg, #9933ff 0%, #6600cc 100%);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(153, 51, 255, 0.4);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.partner-btn:hover {
  background: linear-gradient(135deg, #b366ff 0%, #8000ff 100%);
  box-shadow: 0 8px 25px rgba(153, 51, 255, 0.6);
  transform: translateY(-2px);
}

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

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты */
@media (max-width: 1024px) {
  .partner-card__head {
    grid-template-columns: 240px 1fr auto;
    gap: 16px;
  }
  
  .partner-logo {
    width: 240px;
    height: 96px;
  }
  
  .partner-name {
    font-size: 1.4rem;
  }
  
  .partner-offer {
    font-size: 0.9rem;
  }
  
  .partner-offer--primary {
    width: 100%;
    justify-content: center;
  }
  
  .partner-card--compact {
    grid-template-columns: minmax(130px, 160px) minmax(220px, 1fr) minmax(220px, 1fr);
    grid-template-areas:
      "logo title title"
      "logo features-left features-right"
      "offer offer cta";
    gap: 18px;
    padding: 18px;
  }

  .partner-card--compact .partner-logo {
    width: 150px;
  }

  .partner-compact__logo {
    align-items: flex-start;
  }

  .partner-compact__cta,
  .partner-compact__offer {
    align-items: stretch;
  }

  .partner-btn--compact {
    width: 100%;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .home-partners__title {
    font-size: 1.5rem;
  }
  
  /* Скрываем десктопный хедер */
  .partner-card__head {
    display: none;
  }
  
  /* Показываем мобильную версию */
  .partner-info-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  /* Логотип мобильный */
  .partner-logo-mobile {
    text-align: center;
    background: transparent; /* Убираем серый фон */
    border-radius: 8px;
    padding: 0; /* Убираем padding */
    overflow: hidden;
  }
  
  .partner-logo-mobile img {
    width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: cover; /* Cover для заполнения */
    display: block;
  }
  
  /* Название и рейтинг в строку */
  .partner-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }
  
  .partner-name--mobile {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    flex: 1;
  }
  
  .partner-rating--mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .partner-rating--mobile .rating-number {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
  }
  
  .partner-rating--mobile .rating-stars {
    font-size: 1rem;
    color: #fbbf24;
  }
  
  .partner-offer--mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
  }
  
  .saidi-toc {
    padding: 16px;
  }

  .partner-card {
    padding: 20px;
  }
  
  .partner-features {
    margin-top: 12px;
  }
  
  .partner-features li {
    font-size: 0.9rem;
  }
  
  .partner-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .partner-card--compact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "title"
      "features-left"
      "features-right"
      "offer"
      "cta";
    gap: 18px;
    text-align: center;
  }

  .partner-compact__cell {
    align-items: center;
  }

  .partner-compact__features--left,
  .partner-compact__features--right {
    align-items: center;
  }

  .partner-features--compact-column {
    align-items: center;
  }

  .partner-features--compact-column li {
    text-align: left;
  }

  .partner-btn--compact {
    width: 100%;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .home-partners {
    padding: 0 12px; /* Уменьшаем отступы на маленьких экранах */
  }
  
  .partner-card {
    padding: 16px;
  }
  
  .partner-logo-mobile img {
    max-height: 60px;
  }
  
  .partner-header-mobile {
    flex-direction: row !important; /* Принудительно в строку */
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
  }
  
  .partner-rating--mobile {
    flex-direction: row !important; /* Принудительно в строку */
    align-items: center !important;
  }
  
  .partner-name--mobile {
    font-size: 1.15rem;
  }
  
  .partner-features li {
    font-size: 0.85rem;
    padding-left: 20px;
  }
  
  .partner-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .partner-card--compact {
    gap: 14px;
  }

  .partner-offer--compact {
    padding: 10px 14px;
  }
}

/* ===== СТИЛИ ДЛЯ ВИДЖЕТА "ОПИСАНИЕ КАЗИНО" ===== */

.home-casino-description {
  margin: 40px 0;
  padding: 0 16px;
}

.home-casino-description__title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 24px;
  text-align: left;
}

.home-casino-description__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.casino-description-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.casino-description-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.casino-description-card__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.casino-description-logo {
  width: 200px;
  height: 100px;
  object-fit: contain;
  border-radius: 12px;
}

.casino-description-card__content {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.casino-description-card__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.casino-description-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: inherit;
}

.casino-description-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  margin: 0;
}

.casino-description-text p {
  margin: 0 0 12px 0;
}

.casino-description-text p:last-child {
  margin-bottom: 0;
}

.casino-description-card__button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.casino-description-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #3b82f6;
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.casino-description-btn:hover {
  text-decoration: none;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .home-casino-description {
    padding: 0 12px;
  }

  .home-casino-description__title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .casino-description-card {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .casino-description-card__content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .casino-description-card__logo {
    width: 100%;
    justify-content: center;
  }

  .casino-description-logo {
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .casino-description-name {
    font-size: 1.25rem;
    text-align: center;
  }

  .casino-description-text {
    text-align: center;
    font-size: 0.95rem;
  }

  .casino-description-card__button {
    width: 100%;
    justify-content: center;
  }

  .casino-description-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}
