/* ==========================================================================
   Стили раздела «Обучение и повышение квалификации» (icnk-rb.ru)
   ========================================================================== */

/* Общие стили раздела */
.training-section {
  padding: 40px 0 60px;
}

.training-intro-banner {
  background: linear-gradient(135deg, #f4f9fc 0%, #e8f3f9 100%);
  border: 1px solid #d5e6f1;
  border-left: 5px solid #08c;
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 45px;
}

.training-intro-banner__lead {
  font-family: GilroyBold, sans-serif;
  font-size: 1.25rem;
  color: #2c3d51;
  line-height: 1.45;
  margin-bottom: 12px;
}

.training-intro-banner__text {
  font-family: RobotoLight, sans-serif;
  font-size: 1rem;
  color: #4d6077;
  line-height: 1.6;
  margin: 0;
}

/* Статистика / преимущества обучения */
.training-features {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
  margin-bottom: 50px;
}

.training-feature-item {
  flex: 1 1 calc(25% - 20px);
  min-width: 220px;
  margin: 10px;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.training-feature-item:hover {
  border-color: #08c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.1);
}

.training-feature-item__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: #eff8fc;
  color: #08c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.training-feature-item__icon svg {
  width: 22px;
  height: 22px;
}

.training-feature-item__title {
  font-family: GilroyBold, sans-serif;
  font-size: 0.9375rem;
  color: #2c3d51;
  line-height: 1.3;
}

.training-feature-item__desc {
  font-family: RobotoLight, sans-serif;
  font-size: 0.8125rem;
  color: #778899;
  margin-top: 3px;
}

/* Блоки программ обучения */
.training-group {
  margin-bottom: 60px;
}

.training-group__header {
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 14px;
  border-bottom: 2px solid #eef2f5;
}

.training-group__badge {
  display: inline-block;
  background: #eff8fc;
  color: #08c;
  font-family: GilroyBold, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.training-group__title {
  font-family: GilroyBold, sans-serif;
  font-size: 1.625rem;
  color: #2c3d51;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.3;
}

.training-group__desc {
  font-family: RobotoLight, sans-serif;
  font-size: 0.9375rem;
  color: #5d6f83;
  margin: 0;
  line-height: 1.5;
}

/* Карточка программы обучения (сетка) */
.course-card-col {
  margin-bottom: 30px;
  display: flex;
}

.course-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.course-card:hover {
  border-color: #08c;
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 136, 204, 0.14);
}

.course-card__header {
  height: 175px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2c3d51;
}

.course-card__header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(44, 61, 81, 0.2) 0%, rgba(44, 61, 81, 0.65) 100%);
}

.course-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #08c;
  color: #fff;
  font-family: GilroyBold, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.course-card__cat-label {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(44, 61, 81, 0.85);
  color: #fff;
  font-family: RobotoLight, sans-serif;
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 3px;
  backdrop-filter: blur(2px);
}

.course-card__body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-card__title {
  font-family: GilroyBold, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: #2c3d51;
  margin: 0 0 14px;
  min-height: 46px;
}

.course-card__title a {
  color: #2c3d51;
  text-decoration: none;
  transition: color 0.2s ease;
}

.course-card:hover .course-card__title a {
  color: #08c;
}

.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.course-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: RobotoRegular, sans-serif;
  font-size: 0.8125rem;
  padding: 4px 9px;
  border-radius: 4px;
  background: #eff8fc;
  color: #08c;
}

.course-card__chip svg {
  width: 13px;
  height: 13px;
}

.course-card__chip--practice {
  background: #edf7ed;
  color: #1e7e34;
}

.course-card__desc {
  font-family: RobotoLight, sans-serif;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.45;
  margin: 0 0 16px;
  flex-grow: 1;
}

.course-card__footer {
  display: flex;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #f1f4f7;
  margin-top: auto;
}

.course-card__btn-detail {
  flex: 1;
  height: 42px;
  line-height: 40px;
  text-align: center;
  font-family: GilroyBold, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #2c3d51;
  background: transparent;
  border: 1px solid #2c3d51;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.course-card__btn-detail:hover {
  background: #2c3d51;
  color: #fff;
  text-decoration: none;
}

.course-card__btn-apply {
  flex: 1;
  height: 42px;
  line-height: 40px;
  text-align: center;
  font-family: GilroyBold, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #fff;
  background: #08c;
  border: 1px solid #08c;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.course-card__btn-apply:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   Стили детальной страницы программы (obuchenie_detail)
   ========================================================================== */

.course-hero {
  background: #2c3d51;
  color: #fff;
  padding: 38px 0 42px;
  position: relative;
  margin-bottom: 40px;
}

.course-hero__badge {
  display: inline-block;
  background: #08c;
  color: #fff;
  font-family: GilroyBold, sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
  letter-spacing: 0.8px;
}

.course-hero__title {
  font-family: GilroyBold, sans-serif;
  font-size: 2.125rem;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.25;
  text-transform: uppercase;
}

.course-hero__lead {
  font-family: RobotoLight, sans-serif;
  font-size: 1.0625rem;
  color: #b9c7cd;
  max-width: 860px;
  margin: 0;
  line-height: 1.5;
}

/* Метрики программы (4 карточки) */
.course-metrics {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
  margin-bottom: 45px;
}

.course-metric-card {
  flex: 1 1 calc(25% - 20px);
  min-width: 220px;
  margin: 10px;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.course-metric-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: #eff8fc;
  color: #08c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.course-metric-card__icon svg {
  width: 24px;
  height: 24px;
}

.course-metric-card__icon--practice {
  background: #edf7ed;
  color: #1e7e34;
}

.course-metric-card__content {
  flex: 1;
}

.course-metric-card__label {
  font-family: RobotoLight, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #778899;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.course-metric-card__value {
  font-family: GilroyBold, sans-serif;
  font-size: 1.0625rem;
  color: #2c3d51;
  line-height: 1.25;
}

/* Карточка "Приобретенные навыки" (ЧЕКЛИСТ) */
.skills-card {
  background: #fff;
  border: 1px solid #dce5ec;
  border-left: 6px solid #08c;
  border-radius: 6px;
  padding: 36px 36px 32px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  margin-bottom: 45px;
}

.skills-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f5;
}

.skills-card__head-icon {
  width: 40px;
  height: 40px;
  background: #eff8fc;
  color: #08c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-card__head-icon svg {
  width: 22px;
  height: 22px;
}

.skills-card__title {
  font-family: GilroyBold, sans-serif;
  font-size: 1.375rem;
  color: #2c3d51;
  text-transform: uppercase;
  margin: 0;
}

.skills-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 992px) {
  .skills-checklist--two-col {
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
  }
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 5px;
  border: 1px solid #edf2f6;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.checklist-item:hover {
  background: #f0f7fb;
  border-color: #d4e7f3;
}

.checklist-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-right: 12px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist-icon svg {
  width: 20px;
  height: 20px;
}

.checklist-text {
  font-family: RobotoRegular, sans-serif;
  font-size: 0.9375rem;
  color: #2c3d51;
  line-height: 1.5;
}

/* Карточка "Результат обучения" (столбец 5) */
.result-card {
  background: linear-gradient(135deg, #f8fbfe 0%, #edf5fa 100%);
  border: 1px solid #dbe8f2;
  border-radius: 6px;
  padding: 32px 34px;
  margin-bottom: 45px;
}

.result-card__title {
  font-family: GilroyBold, sans-serif;
  font-size: 1.375rem;
  color: #2c3d51;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.result-card__content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.result-card__text-block {
  flex: 1 1 500px;
}

.result-card__lead {
  font-family: GilroyBold, sans-serif;
  font-size: 1.125rem;
  color: #08c;
  margin-bottom: 12px;
}

.result-card__points {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.result-card__points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-family: RobotoLight, sans-serif;
  font-size: 0.9375rem;
  color: #4d6077;
  line-height: 1.45;
}

.result-card__points li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #08c;
  font-size: 1.25rem;
  line-height: 1;
}

.result-card__thumb-block {
  flex: 0 0 240px;
  text-align: center;
}

.result-card__thumb {
  display: block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  border: 3px solid #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card__thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.25);
}

.result-card__thumb img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.result-card__thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 136, 204, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: GilroyBold, sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
}

.result-card__thumb:hover .result-card__thumb-overlay {
  opacity: 1;
}

.result-card__thumb-caption {
  font-family: RobotoLight, sans-serif;
  font-size: 0.75rem;
  color: #778899;
  margin-top: 8px;
}

/* Форма записи на курс на детальной странице */
.training-form-section {
  background: #2c3d51;
  color: #fff;
  border-radius: 6px;
  padding: 40px 36px;
  margin-bottom: 50px;
}

.training-form-section__title {
  font-family: GilroyBold, sans-serif;
  font-size: 1.625rem;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.training-form-section__subtitle {
  font-family: RobotoLight, sans-serif;
  font-size: 0.9375rem;
  color: #b9c7cd;
  margin-bottom: 25px;
}

.training-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.training-form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #d5e1ea;
  border-radius: 4px;
  font-family: RobotoRegular, sans-serif;
  font-size: 0.9375rem;
  color: #333;
}

.training-form-input:focus {
  border-color: #08c;
  outline: none;
}

.training-form-textarea {
  width: 100%;
  height: 90px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #d5e1ea;
  border-radius: 4px;
  font-family: RobotoRegular, sans-serif;
  font-size: 0.9375rem;
  color: #333;
  resize: vertical;
  margin-bottom: 15px;
}

.training-form-textarea:focus {
  border-color: #08c;
  outline: none;
}

.training-form-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.training-form-policy {
  font-family: RobotoLight, sans-serif;
  font-size: 0.75rem;
  color: #9cb1c2;
  max-width: 550px;
}

.training-form-policy a {
  color: #70bfe6;
  text-decoration: underline;
}

.training-form-submit {
  height: 50px;
  padding: 0 34px;
  background: #08c;
  color: #fff;
  border: 2px solid #08c;
  border-radius: 4px;
  font-family: GilroyBold, sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.training-form-submit:hover {
  background: transparent;
  color: #08c;
}

/* Кнопка возврата ко всем программам */
.back-to-courses {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: GilroyBold, sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: #08c;
  text-decoration: none;
  margin-bottom: 25px;
  transition: color 0.2s ease;
}

.back-to-courses:hover {
  color: #2c3d51;
  text-decoration: none;
}

.back-to-courses svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

/* Адаптивность для мобильных */
@media (max-width: 991px) {
  .course-metric-card {
    flex: 1 1 calc(50% - 20px);
  }

  .training-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .training-hero__title {
    font-size: 1.625rem;
  }

  .training-feature-item {
    flex: 1 1 100%;
  }

  .course-metric-card {
    flex: 1 1 100%;
  }

  .skills-card {
    padding: 24px 20px;
  }

  .result-card {
    padding: 24px 20px;
  }

  .result-card__thumb-block {
    flex: 1 1 100%;
  }

  .result-card__thumb img {
    height: 220px;
  }

  .training-form-section {
    padding: 28px 20px;
  }

  .training-form-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .training-form-submit {
    width: 100%;
  }
}

/* Форма записи на обучение в стиле страницы attestacziya-laboratorij-nk */
.form-section--training {
  height: auto;
  background: none;
  padding: 0 0 50px;
  margin-bottom: 20px;
}

.form-section--training .form-container {
  position: relative;
  height: auto;
  max-width: 100%;
  padding: 0;
}

.form-section--training .inner-form {
  position: relative;
  width: 100%;
  bottom: auto;
  z-index: 2;
  padding: 50px 45px 40px;
  background-color: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-section--training .inner-form .form-title {
  margin-bottom: 25px;
  font: 400 1.5rem GilroyBold, sans-serif;
  text-transform: uppercase;
  text-align: center;
  color: #2c3d51;
}

.form-section--training .inner-form .form-title span {
  color: #db477b;
}

.form-section--training .inner-form select.form-select {
  cursor: pointer;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2308c' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat calc(100% - 15px) center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 35px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.form-section--training .inner-form select.form-select optgroup {
  font-family: GilroyBold, sans-serif;
  color: #2c3d51;
  background: #f7fafc;
  padding: 6px 4px;
}

.form-section--training .inner-form select.form-select option {
  font-family: RobotoRegular, sans-serif;
  color: #333;
  background: #fff;
  padding: 6px 10px;
}

.form-section--training .training-select-highlight {
  border-color: #08c !important;
  box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.28) !important;
  transition: all 0.35s ease;
}

.form-section--training .form-attach .form-label {
  cursor: pointer;
}

.form-section--training .form-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
}

.form-section--training .form-links li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.form-section--training .form-links li::before {
  content: "•";
  color: #08c;
  position: absolute;
  left: 4px;
  top: -2px;
  font-size: 1.1rem;
}

.form-section--training .form-links a {
  color: #08c;
  font-family: RobotoLight, sans-serif;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.form-section--training .form-links a:hover {
  color: #005580;
  text-decoration: underline;
}

.form-section--training .training-form-policy {
  font-family: RobotoLight, sans-serif;
  font-size: 0.75rem;
  color: #8c9ba5;
  margin-top: 20px;
}

.form-section--training .training-form-policy a {
  color: #08c;
  text-decoration: underline;
}

@media (max-width: 991px) {
  .form-section--training .inner-form {
    padding: 35px 25px 30px;
  }
}

@media (max-width: 576px) {
  .form-section--training .inner-form {
    padding: 25px 15px 20px;
  }
  .form-section--training .inner-form .form-title {
    font-size: 1.25rem;
  }
}

