/* ==========================================================================
   Стили раздела «Аттестация лабораторий НК» (icnk-rb.ru)
   Стиль гармонизирован с разделом «Обучение и повышение квалификации»
   ========================================================================== */

/* Общий контейнер раздела */
.attest-section {
  padding: 40px 0 60px;
}

/* Вводный баннер */
.attest-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: 40px;
}

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

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

.attest-intro-banner__callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #dce8f0;
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 14px;
}

.attest-intro-banner__callout-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: #08c;
  margin-top: 2px;
}

.attest-intro-banner__callout-icon svg {
  width: 100%;
  height: 100%;
}

.attest-intro-banner__callout-text {
  font-family: RobotoRegular, sans-serif;
  font-size: 0.9375rem;
  color: #2c3d51;
  line-height: 1.5;
  margin: 0;
}

.attest-intro-banner__callout-text strong {
  font-family: GilroyBold, sans-serif;
  color: #08c;
}

/* Группа / Секция */
.attest-group {
  margin-bottom: 60px;
}

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

.attest-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;
}

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

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

/* ==========================================================================
   Карточки методов неразрушающего контроля (12 методов)
   ========================================================================== */
.attest-method-card {
  height: 100%;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
}

.attest-method-card:hover {
  border-color: #08c;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 136, 204, 0.12);
}

.attest-method-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.attest-method-card__icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: #eff8fc;
  color: #08c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.attest-method-card:hover .attest-method-card__icon {
  background: #08c;
  color: #fff;
}

.attest-method-card__icon svg {
  width: 24px;
  height: 24px;
}

.attest-method-card__badge {
  background: #f0f4f8;
  color: #2c3d51;
  font-family: GilroyBold, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.attest-method-card:hover .attest-method-card__badge {
  background: #eff8fc;
  color: #08c;
}

.attest-method-card__title {
  font-family: GilroyBold, sans-serif;
  font-size: 1.125rem;
  line-height: 1.35;
  color: #2c3d51;
  margin: 0 0 10px;
}

.attest-method-card__desc {
  font-family: RobotoLight, sans-serif;
  font-size: 0.875rem;
  color: #66788a;
  line-height: 1.45;
  margin: 0 0 14px;
}

.attest-method-card__submethods {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #e8eef2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attest-subchip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: RobotoRegular, sans-serif;
  font-size: 0.8125rem;
  color: #3e5062;
  line-height: 1.4;
  background: #f8fafc;
  border: 1px solid #eef2f5;
  border-radius: 4px;
  padding: 6px 10px;
}

.attest-subchip__code {
  font-family: GilroyBold, sans-serif;
  font-size: 0.75rem;
  color: #08c;
  min-width: 26px;
}

.attest-subchip__nested {
  margin-left: 14px;
  background: #ffffff;
  border-left: 2px solid #08c;
}

/* ==========================================================================
   Карточки объектов контроля (12 категорий ОПО)
   ========================================================================== */
.attest-object-card {
  height: 100%;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.attest-object-card:hover {
  border-color: #08c;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 136, 204, 0.12);
}

.attest-object-card__header {
  background: #fafcfd;
  padding: 18px 22px;
  border-bottom: 1px solid #edf2f6;
  display: flex;
  align-items: center;
  gap: 14px;
}

.attest-object-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: #eff8fc;
  color: #08c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.attest-object-card:hover .attest-object-card__icon {
  background: #08c;
  color: #fff;
}

.attest-object-card__icon svg {
  width: 22px;
  height: 22px;
}

.attest-object-card__header-info {
  flex: 1;
}

.attest-object-card__num {
  font-family: GilroyBold, sans-serif;
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: #08c;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.attest-object-card__title {
  font-family: GilroyBold, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: #2c3d51;
  margin: 0;
}

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

.attest-object-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attest-object-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: RobotoLight, sans-serif;
  font-size: 0.875rem;
  color: #4a5c6e;
  line-height: 1.45;
  padding: 5px 0;
  border-bottom: 1px solid #f3f6f8;
}

.attest-object-item:last-child {
  border-bottom: none;
}

.attest-code-pill {
  font-family: GilroyBold, sans-serif;
  font-size: 0.75rem;
  background: #eff8fc;
  color: #08c;
  padding: 2px 7px;
  border-radius: 3px;
  min-width: 38px;
  text-align: center;
  flex-shrink: 0;
}

.attest-code-pill--sub {
  background: #f0f4f8;
  color: #2c3d51;
  min-width: 44px;
}

.attest-object-item--nested {
  padding-left: 18px;
  background: #fafcfe;
  border-left: 2px solid #d8e8f2;
}

/* ==========================================================================
   Карточки требований к лаборатории (4 карточки)
   ========================================================================== */
.attest-req-card {
  background: #fff;
  border: 1px solid #dce5ec;
  border-left: 6px solid #08c;
  border-radius: 6px;
  padding: 30px 32px 28px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.attest-req-card:hover {
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.09);
  border-left-color: #0077b5;
}

.attest-req-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.attest-req-card__icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: #eff8fc;
  color: #08c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attest-req-card__icon svg {
  width: 26px;
  height: 26px;
}

.attest-req-card__header-text {
  flex: 1;
}

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

.attest-req-card__title {
  font-family: GilroyBold, sans-serif;
  font-size: 1.25rem;
  color: #2c3d51;
  margin: 0;
  line-height: 1.35;
}

.attest-req-card__text {
  font-family: RobotoLight, sans-serif;
  font-size: 0.9375rem;
  color: #4a5c6e;
  line-height: 1.6;
  margin: 0 0 18px;
}

.attest-req-callout {
  background: #f8fbfe;
  border: 1px solid #e1edf5;
  border-radius: 6px;
  padding: 20px 22px;
  margin-top: 14px;
}

.attest-req-callout__title {
  font-family: GilroyBold, sans-serif;
  font-size: 0.9375rem;
  color: #2c3d51;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attest-req-callout__title svg {
  width: 18px;
  height: 18px;
  color: #08c;
}

.attest-req-clauses {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attest-req-clause {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: RobotoLight, sans-serif;
  font-size: 0.875rem;
  color: #3e5062;
  line-height: 1.5;
}

.attest-req-clause__dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: #08c;
  margin-top: 7px;
}

.attest-req-clause strong {
  font-family: RobotoRegular, sans-serif;
  color: #2c3d51;
}

/* ==========================================================================
   Карточки порядка аттестации (5 шагов процесса)
   ========================================================================== */
.attest-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.attest-step-card {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.attest-step-card:hover {
  border-color: #08c;
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 136, 204, 0.1);
}

.attest-step-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.attest-step-card__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #08c;
  color: #fff;
  font-family: GilroyBold, sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.attest-step-card__chip--highlight {
  background: #edf7ed;
  color: #1e7e34;
}

.attest-step-card__title {
  font-family: GilroyBold, sans-serif;
  font-size: 1.0625rem;
  color: #2c3d51;
  margin: 0 0 12px;
  line-height: 1.35;
}

.attest-step-card__text {
  font-family: RobotoLight, sans-serif;
  font-size: 0.875rem;
  color: #556778;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* ==========================================================================
   Блок полезных документов и ссылок
   ========================================================================== */
.attest-docs-box {
  background: #fafcfd;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  padding: 30px 32px;
  margin-bottom: 50px;
}

.attest-docs-box__title {
  font-family: GilroyBold, sans-serif;
  font-size: 1.25rem;
  color: #2c3d51;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.attest-docs-box__title svg {
  width: 24px;
  height: 24px;
  color: #08c;
}

.attest-docs-item {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.25s ease;
  margin-bottom: 12px;
}

.attest-docs-item:last-child {
  margin-bottom: 0;
}

.attest-docs-item:hover {
  border-color: #08c;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.08);
}

.attest-docs-item__info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.attest-docs-item__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 6px;
  background: #eff8fc;
  color: #08c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attest-docs-item__icon svg {
  width: 22px;
  height: 22px;
}

.attest-docs-item__name {
  font-family: GilroyBold, sans-serif;
  font-size: 0.9375rem;
  color: #2c3d51;
  line-height: 1.35;
}

.attest-docs-item__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  background: #08c;
  color: #fff;
  font-family: GilroyBold, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.attest-docs-item__btn:hover {
  background: #0077b5;
  color: #fff;
  text-decoration: none;
}

.attest-docs-item__btn svg {
  width: 14px;
  height: 14px;
}

/* Адаптивность */
@media (max-width: 991px) {
  .attest-intro-banner {
    padding: 22px 20px;
  }
  .attest-intro-banner__lead {
    font-size: 1.125rem;
  }
  .attest-group__title {
    font-size: 1.375rem;
  }
  .attest-req-card {
    padding: 24px 20px;
  }
  .attest-docs-box {
    padding: 22px 20px;
  }
  .attest-docs-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .attest-docs-item__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .attest-intro-banner__callout {
    flex-direction: column;
  }
  .attest-steps-grid {
    grid-template-columns: 1fr;
  }
  .attest-method-card {
    padding: 20px 16px;
  }
  .attest-object-card__header {
    padding: 14px 16px;
  }
  .attest-object-card__body {
    padding: 16px;
  }
}
