/* Карточки доступа к прогнозам и трендам (по дизайну access-cards-preview) */

.ac-sprites {
  height: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.ac-cards,
.ac-cards * {
  box-sizing: border-box;
}

.ac-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ac-card {
  background: var(--grayscale-white, #fff);
  border: 1px solid var(--grayscale-body-xlight-darkmode, #DADFE5);
  border-radius: 12px;
}

.ac-card--premium {
  border-color: #EBD5AE;
}

.ac-illustration {
  color: #7f9085;
}

.ac-card--paid .ac-illustration,
.ac-card--premium .ac-illustration {
  color: var(--warning-yellow, #E39D2E);
}

.ac-title {
  color: var(--text-dark-grey, #252525);
  margin: 0;
}

.ac-caption {
  color: var(--grayscale-body-light, #585F6F);
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.ac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ac-btn {
  align-items: center;
  background: var(--grayscale-white, #fff);
  border: 1px solid var(--grayscale-body-xlight-darkmode, #DADFE5);
  border-radius: 8px;
  color: var(--grayscale-body-light, #585F6F);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  line-height: 18px;
  min-height: 40px;
  padding: 10px 17px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}

.ac-btn:hover {
  background: var(--grayscale-gray-xlight, #F4F5F6);
}

.ac-btn--primary {
  background: var(--additional-dull-green, #58A983);
  border-color: var(--additional-dull-green, #58A983);
  color: #fff;
}

.ac-btn--primary:hover {
  background: #4B9874;
  border-color: #4B9874;
}

.ac-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ac-benefits li {
  align-items: center;
  color: var(--grayscale-body-light, #585F6F);
  display: flex;
  gap: 8px;
}

.ac-benefit--locked {
  color: var(--text-tetriary, #6A7284);
}

.ac-benefit-icon {
  color: var(--accent-primary-green, #20A365);
  flex: 0 0 15px;
  height: 17px;
  width: 15px;
}

.ac-benefit--locked .ac-benefit-icon {
  color: #929BA9;
}

/* Мобильная раскладка (как в превью): всё по центру, кнопки на всю ширину */
@media (max-width: 599px) {
  .ac-card {
    border-color: #d5dfd9;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 18px;
    text-align: center;
  }

  .ac-card--premium {
    border-color: #e5c585;
  }

  .ac-illustration {
    display: none;
  }

  .ac-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ac-title {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
  }

  .ac-caption {
    margin-top: 2px;
  }

  .ac-actions {
    flex-direction: column;
    gap: 9px;
    margin-top: 6px;
  }

  .ac-btn {
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
    min-height: 46px;
    width: 100%;
  }

  .ac-btn:not(.ac-btn--primary) {
    border-color: #bdcec2;
    color: #356a49;
    font-weight: 700;
    min-height: 44px;
  }

  .ac-btn:not(.ac-btn--primary):hover {
    background: #f0f6f2;
  }

  .ac-benefits {
    border-top: 1px solid #dce4df;
    column-gap: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: center;
    margin-top: 12px;
    order: 10;
    padding: 14px 0 2px;
    row-gap: 9px;
    text-align: left;
  }

  .ac-card--premium .ac-benefits {
    border-top-color: #F0E3CD;
  }

  .ac-benefits li {
    color: #344b3d;
    font-size: 14px;
    font-weight: 700;
    line-height: 19px;
  }

  .ac-benefit--locked {
    color: #727b88;
    font-weight: 400;
  }

  .ac-benefit-icon {
    color: #26935c;
    flex-basis: 17px;
    height: 19px;
    width: 17px;
  }
}

/* Планшет: иконка слева от заголовка, категории в три колонки снизу */
@media (min-width: 600px) and (max-width: 899px) {
  .ac-card {
    display: grid;
    gap: 6px 16px;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 22px 24px;
  }

  .ac-illustration {
    align-self: start;
    grid-row: 1 / span 2;
    height: 68px;
    width: 56px;
  }

  .ac-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
  }

  .ac-content {
    display: contents;
  }

  .ac-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 10px;
  }

  .ac-benefits {
    border-top: 1px solid var(--grayscale-gray-light, #EDEFF2);
    display: grid;
    gap: 10px 18px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 10px;
    padding: 16px 0 4px;
  }

  .ac-card--premium .ac-benefits {
    border-top-color: #F0E3CD;
  }

  .ac-benefits li {
    font-size: 13px;
    line-height: 18px;
  }
}

/* Десктоп: категории колонкой справа за разделителем */
@media (min-width: 900px) {
  .ac-card {
    align-items: center;
    display: grid;
    gap: 6px 24px;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    padding: 24px 28px;
  }

  .ac-illustration {
    align-self: start;
    height: 90px;
    width: 76px;
  }

  .ac-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .ac-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
  }

  .ac-caption {
    font-size: 13px;
    line-height: 1.55;
  }

  .ac-actions {
    margin-top: 6px;
  }

  .ac-benefits {
    align-content: center;
    align-self: stretch;
    border-left: 1px solid var(--grayscale-gray-light, #EDEFF2);
    display: grid;
    gap: 9px 18px;
    grid-template-columns: minmax(0, max-content);
    min-width: 218px;
    padding: 4px 0 4px 24px;
  }

  .ac-card--premium .ac-benefits {
    border-left-color: #F0E3CD;
  }

  .ac-benefits li {
    font-size: 13px;
    line-height: 18px;
  }

  .ac-benefits--grid {
    grid-template-columns: repeat(3, minmax(0, max-content));
  }
}
