.cgp-courses-catalog {
  --cgp-red: #ae1022;
  --cgp-red-dark: #8e0c1a;
  --cgp-border: #cacaca;
  --cgp-border-soft: #e6e6e6;
  --cgp-date-bg: #dbdbdb;
  --cgp-filter-bg: #f4e6dc;
  --cgp-filter-border: #d7c6b9;
  --cgp-text: #222;
  --cgp-muted: #666;
  color: var(--cgp-text);
  margin: 20px 0;
  clear: both;
}

.cgp-courses-catalog * {
  box-sizing: border-box;
}

/* Фильтры: компактные выпадающие мультиселекты */
.cgp-courses-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 10px 14px;
  align-items: start;
  margin: 0 0 18px;
  position: relative;
  z-index: 20;
}

.cgp-filter-group {
  position: relative;
  min-width: 0;
}

.cgp-filter-toggle {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--cgp-filter-border);
  border-radius: 3px;
  background: #fff;
  color: #222;
  padding: 6px 32px 6px 9px;
  text-align: left;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
button.cgp-filter-toggle:hover{
  background-color: var(--cgp-filter-bg);
}

.cgp-filter-title-text {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  color: #1c1c1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cgp-filter-state {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--cgp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cgp-filter-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  font-size: 15px;
}

.cgp-filter-group.is-open .cgp-filter-toggle,
.cgp-filter-group.has-active .cgp-filter-toggle {
  border-color: var(--cgp-red);
  background-color: var(--cgp-filter-bg);
}

.cgp-filter-group.has-active .cgp-filter-state {
  color: var(--cgp-red);
  font-weight: 700;
}

.cgp-filter-group.is-open .cgp-filter-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.cgp-filter-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 260px;
  max-width: min(380px, 92vw);
  border: 1px solid var(--cgp-filter-border);
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
  padding: 7px;
  z-index: 100;
}

.cgp-filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 7px;
  font-size: 12px;
  color: var(--cgp-muted);
  border-bottom: 1px solid #eee3d8;
  margin-bottom: 6px;
}

.cgp-filter-clear {
  border: 0;
  background: transparent;
  color: var(--cgp-red);
  cursor: pointer;
  font-size: 12px;
  padding: 0 5px;
}

.cgp-filter-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}
.cgp-filter-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 0;
  margin-top: 7px;
  border-top: 1px solid #eee3d8;
}

.cgp-filter-selected-hint {
  color: var(--cgp-muted);
  font-size: 12px;
  line-height: 1.2;
}

.cgp-filter-done {
  border: 1px solid var(--cgp-red);
  border-radius: 2px;
  background: var(--cgp-red);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 14px;
}

.cgp-filter-done:hover,
.cgp-filter-done:focus {
  background: var(--cgp-red-dark);
  border-color: var(--cgp-red-dark);
  color: #fff;
}


.cgp-filter-option {
  display: flex;
  gap: 7px;
  width: 100%;
  border: 1px solid var(--cgp-filter-border);
  border-radius: 2px;
  padding: 5px 7px;
  background: var(--cgp-filter-bg);
  color: #2b2b2b;
  text-align: left;
  font-size: 12px;
  line-height: 1.22;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
  align-items: center;
}

.cgp-filter-option input {
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--cgp-red);
}

.cgp-filter-option span {
  min-width: 0;
}

.cgp-filter-option:hover,
.cgp-filter-option.is-active {
  background: var(--cgp-red);
  border-color: var(--cgp-red);
  color: #fff;
}

.cgp-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.cgp-filter-reset {
  border: 1px solid var(--cgp-border);
  border-radius: 2px;
  padding: 6px 13px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 13px;
}

.cgp-filter-reset:hover {
  color: #fff;
  background: var(--cgp-red);
  border-color: var(--cgp-red);
}

.cgp-courses-summary {
  margin: 0 0 12px;
  color: var(--cgp-muted);
  font-size: 14px;
}

/* Десктопная таблица */
.cgp-courses-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.cgp-open-period + .cgp-open-period {
  margin-top: 34px;
}

.cgp-open-period-title {
  margin: 0 0 10px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  background: var(--cgp-red);
}

table.iksweb.cgp-courses-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  height: auto;
  font-size: 15px;
  line-height: 1.25;
  background: #fff;
  table-layout: fixed;
}

.cgp-courses-table--open {
  min-width: 1080px;
}

.cgp-courses-table--corporate {
  min-width: 680px;
}

.cgp-courses-catalog--corporate table.iksweb.cgp-courses-table {
  font-size: 16px;
}

table.iksweb.cgp-courses-table,
table.iksweb.cgp-courses-table td,
table.iksweb.cgp-courses-table th {
  border: 1px solid var(--cgp-border);
}

table.iksweb.cgp-courses-table td,
table.iksweb.cgp-courses-table th {
  vertical-align: middle;
  overflow-wrap: anywhere;
}


/* v1.5.3: vertical centering for all desktop table cells */
table.iksweb.cgp-courses-table td,
table.iksweb.cgp-courses-table th {
  vertical-align: middle !important;
}

table.iksweb.cgp-courses-table .cgp-table-main-head td {
  background-color: var(--cgp-red);
  color: #fff;
  text-align: center;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 700;
}

table.iksweb.cgp-courses-table .cgp-table-main-head td:first-child {
  text-align: left;
}

table.iksweb.cgp-courses-table .cgp-group-row td {
  background-color: var(--cgp-red);
  color: #fff;
  width: 100%;
  font-weight: 700;
  padding: 7px 10px;
}


.cgp-courses-table--corporate .cgp-corporate-meta-row td {
  padding: 7px 10px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: #333;
  text-align: left;
}

.cgp-courses-table--corporate .cgp-corporate-meta-row td span {
  color: var(--cgp-red);
  font-weight: 700;
}

.cgp-courses-table--corporate .cgp-corporate-meta-row--program td {
  background: #f7f2f3;
}

.cgp-courses-table--corporate .cgp-corporate-meta-row--industry td {
  background: #fafafa;
  font-size: 13px;
}

table.iksweb.cgp-courses-table td.openings {
  background: var(--cgp-date-bg);
  text-align: center;
  padding: 4px 5px;
  font-size: 13px;
  line-height: 1.2;
}

table.iksweb.cgp-courses-table .w70 { width: 8%; }
table.iksweb.cgp-courses-table .w80 { width: 8%; }
table.iksweb.cgp-courses-table .w100 { width: 9%; }
table.iksweb.cgp-courses-table .w110 { width: 13%; }
table.iksweb.cgp-courses-table .w160 { width: 18%; }
.cgp-courses-table--open .cgp-table-main-head td:first-child { width: 40%; }
.cgp-courses-table--corporate .cgp-table-main-head td:first-child { width: 74%; }
/* v1.5.2: compact columns, wider course title column */
table.iksweb.cgp-courses-table .cgp-col-name {
  width: 40%;
}

table.iksweb.cgp-courses-table .cgp-col-volume,
table.iksweb.cgp-courses-table .cgp-col-format,
table.iksweb.cgp-courses-table .cgp-col-price,
table.iksweb.cgp-courses-table .cgp-col-month,
table.iksweb.cgp-courses-table .cgp-col-format-wide {
  text-align: center;
}

.cgp-courses-table--open .cgp-col-name { width: 40%; }
.cgp-courses-table--open .cgp-col-volume { width: 6%; }
.cgp-courses-table--open .cgp-col-format { width: 7%; }
.cgp-courses-table--open .cgp-col-price { width: 9%; }
.cgp-courses-table--open .cgp-col-month { width: 6.33%; }

.cgp-courses-table--corporate .cgp-col-name { width: 74%; }
.cgp-courses-table--corporate .cgp-col-volume { width: 10%; }
.cgp-courses-table--corporate .cgp-col-format-wide { width: 16%; }

.cgp-courses-table--open .cgp-course-item td:nth-child(2),
.cgp-courses-table--open .cgp-course-item td:nth-child(3),
.cgp-courses-table--open .cgp-course-item td:nth-child(4),
.cgp-courses-table--corporate .cgp-course-item td:nth-child(2),
.cgp-courses-table--corporate .cgp-course-item td:nth-child(3) {
  text-align: center;
  vertical-align: middle;
}

.cgp-courses-table--open .cgp-course-item td:nth-child(2),
.cgp-courses-table--corporate .cgp-course-item td:nth-child(2) {
  white-space: nowrap;
}

.cgp-courses-table--open .cgp-table-main-head td,
.cgp-courses-table--corporate .cgp-table-main-head td {
  padding-left: 6px;
  padding-right: 6px;
}

.cgp-courses-table--open .cgp-course-item td:first-child,
.cgp-courses-table--corporate .cgp-course-item td:first-child {
  padding-left: 10px;
  padding-right: 10px;
}


.cgp-course-name-link,
.cgp-course-name-text {
  font-weight: 400;
}

.cgp-course-name-link {
  color: #21759b;
  text-decoration: underline;
}

.cgp-course-name-link:hover {
  color: var(--cgp-red);
}

.cgp-course-marker,
.cgp-course-badge {
  color: #fff;
  font-weight: 700;
}

.cgp-course-badges-inline {
  display: inline;
}

.cgp-course-badge {
  display: inline-flex;
  margin-left: 5px;
  font-size: .95em;
  line-height: 1.2;
  background-color: #d10000;
  padding: 5px 10px;
  border-radius: 10px;
}

.cgp-format-text {
  display: inline-block;
  margin-right: 3px;
}

table.iksweb.cgp-courses-table img {
  display: inline-block;
  vertical-align: middle;
  max-width: 24px;
  height: auto;
}

/* Мобильные карточки: на десктопе строго скрыты */
.cgp-courses-cards-wrap {
  display: none !important;
}

.cgp-courses-cards {
  display: grid;
  gap: 12px;
}

/* Мобильная группировка карточек по направлению обучения */
.cgp-mobile-direction {
  overflow: hidden;
  border: 1px solid var(--cgp-border-soft);
  border-left: 4px solid var(--cgp-red);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.cgp-mobile-direction[hidden] {
  display: none !important;
}

.cgp-mobile-direction-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 15px 14px;
  border: 0;
  background: #fff;
  color: var(--cgp-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cgp-mobile-direction-toggle:hover,
.cgp-mobile-direction-toggle:focus-visible,
.cgp-mobile-direction.is-open .cgp-mobile-direction-toggle {
  background: #fff6f7;
}

.cgp-mobile-direction-toggle:focus-visible {
  outline: 2px solid var(--cgp-red);
  outline-offset: -2px;
}

.cgp-mobile-direction-title {
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.cgp-mobile-direction-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cgp-muted);
  font-size: 13px;
  white-space: nowrap;
}

.cgp-mobile-direction-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--cgp-red);
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.cgp-mobile-direction-arrow {
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border-right: 2px solid var(--cgp-red);
  border-bottom: 2px solid var(--cgp-red);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.cgp-mobile-direction.is-open .cgp-mobile-direction-arrow {
  transform: rotate(225deg) translate(-1px, -1px);
}

.cgp-mobile-direction-panel {
  padding: 12px;
  border-top: 1px solid var(--cgp-border-soft);
  background: #f8f8f8;
}

.cgp-mobile-direction-cards {
  display: grid;
  gap: 12px;
}

.cgp-course-card {
  border: 1px solid var(--cgp-border-soft);
  background: #fff;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.cgp-card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  color: #21759b;
}

.cgp-card-title a {
  color: #21759b;
  text-decoration: underline;
}

.cgp-card-main {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.cgp-card-fact {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 14px;
  line-height: 1.35;
}

.cgp-card-fact-label {
  color: #333;
  font-weight: 700;
  flex: 0 0 auto;
}

.cgp-card-fact-value {
  color: var(--cgp-text);
  min-width: 0;
}

.cgp-card-dates,
.cgp-card-details {
  margin-top: 12px;
  border-top: 1px solid var(--cgp-border-soft);
  padding-top: 10px;
}

.cgp-card-dates summary,
.cgp-card-details summary {
  cursor: pointer;
  color: #21759b;
  font-weight: 700;
  font-size: 14px;
}

.cgp-card-dates dl,
.cgp-card-details dl {
  display: grid;
  grid-template-columns: minmax(105px, 34%) 1fr;
  gap: 7px 10px;
  margin: 10px 0 0;
  font-size: 13px;
}

.cgp-card-dates dt,
.cgp-card-details dt {
  font-weight: 700;
  color: var(--cgp-muted);
}

.cgp-card-dates dd,
.cgp-card-details dd {
  margin: 0;
}

.cgp-card-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 13px;
  background: var(--cgp-red);
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
}

.cgp-card-link:hover {
  background: var(--cgp-red-dark);
}

.cgp-courses-empty-filter {
  margin: 15px 0;
  padding: 12px;
  border: 1px solid var(--cgp-border);
  background: #fff;
}

@media screen and (max-width: 1140px) {
  .cgp-courses-filters {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cgp-filter-panel {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }

  .cgp-filter-options {
    max-height: 220px;
  }

  .cgp-filter-actions {
    justify-content: stretch;
    margin-top: 0;
  }

  .cgp-filter-reset {
    width: 100%;
  }

  .cgp-courses-table-wrap {
    display: none !important;
  }

  .cgp-courses-cards-wrap {
    display: block !important;
  }
}

@media screen and (max-width: 560px) {
  .cgp-card-dates dl,
  .cgp-card-details dl {
    grid-template-columns: 1fr;
  }

  .cgp-card-fact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .cgp-mobile-direction-toggle {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 13px 12px;
  }

  .cgp-mobile-direction-count-label {
    display: none;
  }

  .cgp-mobile-direction-panel {
    padding: 10px;
  }
}

/* Условные обозначения форматов обучения — как в исходной таблице */
.cgp-format-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin: 0 auto 10px;
  padding: 6px 10px;
  color: #111;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
}

.cgp-format-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.cgp-format-legend-separator {
  color: #111;
  margin: 0 1px;
}

.cgp-format-icon,
table.iksweb.cgp-courses-table .cgp-format-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  max-width: 24px;
  object-fit: contain;
  vertical-align: middle;
}

.cgp-format-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  min-height: 24px;
}

table.iksweb.cgp-courses-table td.cgp-format-cell {
  text-align: center;
  vertical-align: middle;
  padding-left: 4px;
  padding-right: 4px;
}

.cgp-month-format,
.cgp-month-date,
.cgp-month-place {
  display: inline-block;
}

.cgp-month-format {
  font-weight: 400;
}

.cgp-month-place {
  font-size: 12px;
}

@media screen and (max-width: 1140px) {
  .cgp-format-legend {
    display: none;
  }
}

/* Кнопки скачивания актуальных Excel-файлов */
.cgp-programs-file-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid #ae1022;
  border-radius: 3px;
  background: #ae1022;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cgp-programs-file-link:hover,
.cgp-programs-file-link:focus {
  border-color: #8e0c1a;
  background: #8e0c1a;
  color: #fff;
  text-decoration: none;
}

.cgp-programs-file-empty {
  display: inline-block;
  color: #666;
}

/* Исправление мобильного аккордеона направлений */
button.cgp-mobile-direction-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 11px 11px 11px 9px;

  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;

  color: #1c1c1c !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;

  white-space: normal !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.cgp-mobile-direction-toggle:hover,
button.cgp-mobile-direction-toggle:focus,
button.cgp-mobile-direction-toggle:focus-visible,
.cgp-mobile-direction.is-open > button.cgp-mobile-direction-toggle {
  background: #fff4f5;
  color: #1c1c1c !important;
}

.cgp-mobile-direction-title {
  display: block;
  flex: 1 1 auto;
  min-width: 0;

  color: #1c1c1c !important;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;

  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

button.cgp-mobile-direction-toggle:hover .cgp-mobile-direction-title,
button.cgp-mobile-direction-toggle:focus .cgp-mobile-direction-title,
.cgp-mobile-direction.is-open .cgp-mobile-direction-title {
  color: #1c1c1c !important;
}

.cgp-mobile-direction-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;

  color: #666666;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.cgp-mobile-direction-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 24px;
  height: 24px;
  padding: 0 7px;

  border-radius: 999px;
  background: #ae1022;
  color: #ffffff;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.cgp-mobile-direction-arrow {
  display: block;
  flex: 0 0 auto;

  width: 8px;
  height: 8px;
  margin: 0 2px 3px 1px;

  border-right: 2px solid #ae1022;
  border-bottom: 2px solid #ae1022;

  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}

.cgp-mobile-direction.is-open .cgp-mobile-direction-arrow {
  margin-top: 5px;
  margin-bottom: 0;
  transform: rotate(225deg);
}

.cgp-mobile-direction {
  overflow: hidden;
  margin: 0;

  border: 1px solid #e6e6e6;
  border-left: 4px solid #ae1022;
  border-radius: 3px;

  background: #ffffff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.055);
}

.cgp-mobile-direction-panel {
  padding: 8px;
  border-top: 1px solid #efd8db;
  background: #fafafa;
}

.cgp-mobile-direction-cards {
  gap: 9px;
}

@media screen and (max-width: 560px) {
  button.cgp-mobile-direction-toggle {
    min-height: 50px;
    padding: 10px 9px 10px 8px;
    font-size: 13px;
  }

  .cgp-mobile-direction-count-label {
    display: none;
  }

  .cgp-mobile-direction-panel {
    padding: 7px;
    text-align: left;
  }
}

/* Выбранные значения фильтра показываются названиями,
   каждое значение с новой строки. */
.cgp-filter-toggle {
  height: auto;
  white-space: normal !important;
}

.cgp-filter-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;

  white-space: normal !important;
  overflow: visible;
  text-overflow: clip;
}

.cgp-filter-selected-value {
  display: block;
  width: 100%;

  color: var(--cgp-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.18;

  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Стрелка остаётся сверху при увеличении высоты поля. */
.cgp-filter-arrow {
  top: 20px;
}

/* Недоступные значения зависимых фильтров остаются видимыми, но неактивными. */
.cgp-filter-option.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.cgp-filter-option.is-disabled input,
.cgp-filter-option.is-disabled span {
  cursor: not-allowed;
}

.cgp-filter-option.is-disabled span {
  color: #777777;
}

.cgp-filter-option.is-disabled:hover {
  background: transparent;
}

/* Блок скачивания единого полного каталога программ с графиком */
.cgp-programs-download-card {
  display: flex;
  align-items: center;
  gap: 18px;

  width: 100%;
  margin: 24px 0;
  padding: 27px 38px 27px 28px;

  border: 2px solid #ae1022;
  border-left-width: 6px;
  border-radius: 6px;

  background: #fff7f7;
  color: #222222;
}

.cgp-programs-download-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  width: 46px;
  height: 46px;

  border-radius: 50%;
  background: #ae1022;
  color: #ffffff;
}

.cgp-programs-download-card__icon span {
  position: relative;
  display: block;

  width: 18px;
  height: 22px;
}

.cgp-programs-download-card__icon span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1px;

  width: 4px;
  height: 15px;

  border-radius: 999px;
  background: #ffffff;

  transform: translateX(-50%);
}

.cgp-programs-download-card__icon span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;

  width: 13px;
  height: 13px;

  border-right: 4px solid #ffffff;
  border-bottom: 4px solid #ffffff;

  transform: translateX(-50%) rotate(45deg);
}

.cgp-programs-download-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.cgp-programs-download-card__title {
  margin: 0 0 7px;

  color: #222222;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.cgp-programs-download-card__description {
  margin: 0;

  color: #333333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.cgp-programs-download-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  min-height: 44px;
  padding: 12px 22px;

  border: 1px solid #ae1022;
  border-radius: 7px;

  background: #ae1022;
  color: #ffffff !important;

  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;

  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cgp-programs-download-card__button:hover,
.cgp-programs-download-card__button:focus {
  border-color: #8e0c1a;
  background: #8e0c1a;
  color: #ffffff !important;
  text-decoration: none !important;
}

.cgp-programs-download-card__button-text-mobile {
  display: none;
}

@media screen and (max-width: 767px) {
  .cgp-programs-download-card {
    display: block;

    margin: 20px 0;
    padding: 26px 20px 22px;

    border-width: 2px;
    border-radius: 5px;

    background: #fff7f7;
  }

  .cgp-programs-download-card__icon {
    display: none;
  }

  .cgp-programs-download-card__title {
    margin-bottom: 14px;

    font-size: 22px;
    line-height: 1.22;
  }

  .cgp-programs-download-card__description {
    max-width: 100%;
    margin-bottom: 18px;

    font-size: 16px;
    line-height: 1.35;
  }

  .cgp-programs-download-card__button {
    min-width: 155px;
    min-height: 48px;
    padding: 13px 22px;

    border-radius: 7px;

    font-size: 17px;
  }

  .cgp-programs-download-card__button-text-desktop {
    display: none;
  }

  .cgp-programs-download-card__button-text-mobile {
    display: inline;
  }
}
