/* ─────────────────────────────────────────────────────────────
   PK05 — Подкомитет «Искусственный интеллект в промышленности»
   Использует глобальные переменные из home/styles.css
───────────────────────────────────────────────────────────── */

.pk05 {
  background: var(--bg);
  color: #fff;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Хлебные крошки ──────────────────────────────────────── */
.pk05__breadcrumbs {
  padding: 20px 42px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.pk05__breadcrumbs a { color: var(--text-muted); transition: color .2s; }
.pk05__breadcrumbs a:hover { color: #fff; }
.pk05__breadcrumbs .breadcrumb-sep {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 1px;
  flex-shrink: 0;
}
.pk05__breadcrumbs .breadcrumb-current { color: #fff; }

/* ── Hero ────────────────────────────────────────────────── */
.pk05-hero {
  margin: 0 42px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,22,43,0) 0%, rgba(0,22,43,0.6) 100%),
    url('images/pk05-hero.png') center / cover no-repeat;
  background-color: #00162B;
  min-height: 404px;
  position: relative;
  display: flex;
  align-items: center;
}
.pk05-hero__inner {
  position: relative;
  z-index: 1;
  padding: 44px 48px;
  width: 100%;
}
.pk05-hero__title {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 0 20px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,22,43,0.55);
}
.pk05-hero__lead {
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  color: #fff;
}
/* Акцентная фраза в лиде. Класс — для текста из вёрстки, <b>/<strong> —
   для текста из админки: там редактор просто выделяет фразу жирным,
   не зная про имена классов */
.pk05-hero__lead-accent,
.pk05-hero__lead b,
.pk05-hero__lead strong {
  color: var(--accent);
  font-weight: inherit;
}
.pk05-hero__cta-row {
  margin-top: 24px;
  text-align: right;
}
.pk05-hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px 62px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  background: rgba(44,59,76,0.5);
  border: 1px solid #56718F;
  box-shadow: -2px 2px 4px rgba(0,22,43,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
}
.pk05-hero__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(227deg, rgba(255,131,104,0.8) 0%, rgba(255,131,104,0) 80%);
  opacity: 0;
  transition: opacity .3s;
}
.pk05-hero__cta span { position: relative; z-index: 1; }
.pk05-hero__cta:hover::after { opacity: 1; }

/* ── Sections ────────────────────────────────────────────── */
.pk05-section {
  --pk05-px: 16px;
  margin: 28px 0 0;
  padding: 24px var(--pk05-px);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.pk05-docs-section { margin-bottom: 56px; }
@media (min-width: 1101px) {
  .pk05-section {
    --pk05-px: 48px;
    margin: 32px 42px 0;
    padding: 40px var(--pk05-px);
    background: transparent;
    border: 1px solid #56718F;
    border-radius: 16px;
  }
  .pk05-section--plain {
    padding: 40px var(--pk05-px) 0;
    border: 0;
    border-radius: 0;
  }
  .pk05-section--gradient {
    background: linear-gradient(135deg, #00162B 0%, #3A4658 100%);
    border: 0;
  }
  .pk05-goal-section {
    padding-bottom: 40px;
  }
  .pk05-docs-section {
    margin-bottom: 64px;
  }
}
.pk05-section__head {
  margin: 0 calc(-1 * var(--pk05-px)) 28px;
  padding: 0 var(--pk05-px) 24px;
  border-bottom: 1px solid #56718F;
}
/* У «Направлений деятельности» линия остаётся прозрачной (сливается с градиентом) */
.pk05-section--gradient .pk05-section__head {
  border-bottom-color: var(--bg);
}
.pk05-section__title {
  font-family: 'Play', sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #fff;
}
.pk05-section__head .pk05-section__title { margin: 0; }

.pk05-goal {
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

/* ── Направления деятельности ───────────────────────────── */
.pk05-directions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pk05-direction__icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 16px;
}
.pk05-direction__title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 16px;
}
.pk05-direction__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pk05-direction__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-light);
}
.pk05-direction__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Документы подкомитета (аккордеон — 1:1 как на ЦКП) ─── */
.pk05-docs__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 24px;
}
.pk05-doc {
  position: relative;
  background: #2C3B4C;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: background .3s, border-color .2s;
}
.pk05-doc::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(227deg, rgba(255,131,104,0.8) 0%, rgba(255,131,104,0) 80%);
  opacity: 0;
  transition: opacity .3s;
}
.pk05-doc:hover,
.pk05-doc.is-open {
  background: linear-gradient(90deg, #00162B 0%, #3F4B5B 100%);
  border-color: rgba(255, 131, 104, 0.4);
}
.pk05-doc:hover::after,
.pk05-doc.is-open::after { opacity: 1; }
.pk05-doc__head {
  position: relative;
  z-index: 1;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.pk05-doc__icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}
.pk05-doc__title {
  font-size: 18px;
  line-height: 1.44;
  color: #fff;
  flex: 1;
}
.pk05-doc__body {
  position: relative;
  z-index: 1;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 24px 0 72px;
}
.pk05-doc.is-open .pk05-doc__body {
  max-height: 120px;
  padding: 0 24px 24px 72px;
}
.pk05-doc__btn {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid #56718F;
  transition: border-color .15s;
}
.pk05-doc__btn:hover { border-color: var(--accent); }

/* ── Заявка на вступление (Figma 2241-767) ────────────────── */
.pk05-apply-section { padding-bottom: 24px; }
.pk05-apply__lead {
  font: 400 18px/28px Arial, sans-serif;
  color: #fff;
  margin: 0 0 32px;
}

.pk05-apply__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.pk05-apply__field { display: flex; flex-direction: column; }
.pk05-apply__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  min-height: 20px;
}
.pk05-apply__label {
  font: 400 14px/20px Arial, sans-serif;
  color: #fff;
}
.pk05-apply__req { color: var(--accent); }
.pk05-apply__form-link {
  font: 400 14px/20px Arial, sans-serif;
  color: var(--accent);
  white-space: nowrap;
  transition: opacity .2s;
}
.pk05-apply__form-link:hover { opacity: .8; }

.pk05-apply__input,
.pk05-apply__file {
  height: 56px;
  border: 1px solid #56718F;
  border-radius: 8px;
  background: transparent;
  font: 400 16px/24px Arial, sans-serif;
  color: #fff;
  transition: border-color .2s;
}
.pk05-apply__input {
  width: 100%;
  padding: 0 16px;
  outline: none;
}
.pk05-apply__input::placeholder { color: var(--text-muted); }
.pk05-apply__input:focus { border-color: var(--accent); }

/* Кнопка выбора файла: сам input скрыт, label работает как кнопка */
.pk05-apply__file {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.pk05-apply__file:hover { border-color: var(--accent); }
.pk05-apply__file-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk05-apply__file.has-file { border-color: var(--accent); font-weight: 400; }

.pk05-apply__privacy {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  cursor: pointer;
  font: 400 14px/20px Arial, sans-serif;
  color: #fff;
}
.pk05-apply__privacy input[type="checkbox"] {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.pk05-apply__privacy a { color: var(--accent); }
.pk05-apply__privacy a:hover { text-decoration: underline; }

.pk05-apply__submit {
  min-width: 272px;
  height: 56px;
  padding: 0 32px;
  border: 1px solid #56718F;
  border-radius: 8px;
  background: transparent;
  font: 700 16px/24px Arial, sans-serif;
  color: #fff;
  cursor: pointer;
  transition: border-color .2s;
}
.pk05-apply__submit:hover { border-color: var(--accent); }

.pk05-apply__error {
  margin: 6px 0 0;
  font: 400 13px/18px Arial, sans-serif;
  color: var(--accent-red);
}
.pk05-apply__error--privacy { margin: -24px 0 24px; }
.pk05-apply__success {
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: rgba(255,131,104,0.1);
  font: 400 16px/24px Arial, sans-serif;
  color: #fff;
}

/* ── Контакты (одна карточка — 1:1 как на ЦКП: председатель
   слева, ответственный секретарь справа, наполнение своё) ── */
.pk05-contact {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 32px 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, #00162B 0%, #3F4B5B 100%);
}
.pk05-contact__person {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
}
.pk05-contact__role {
  font: 400 18px/28px Arial, sans-serif;
  color: #fff;
  margin-bottom: 8px;
}
.pk05-contact__person .pk05-contact__role { font-weight: 700; }
.pk05-contact__name {
  font: 400 24px/32px Arial, sans-serif;
  color: #fff;
  margin-bottom: 8px;
}
.pk05-contact__position {
  font: 400 16px/24px Arial, sans-serif;
  color: #fff;
}
/* почта председателя — под должностью */
.pk05-contact__person .pk05-contact__info { margin-top: 16px; }

.pk05-contact__secretary { display: flex; flex-direction: column; gap: 16px; }
.pk05-contact__secretary .pk05-contact__role { margin-bottom: 0; }
.pk05-contact__secretary .pk05-contact__name { margin-bottom: 0; }

.pk05-contact__info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pk05-contact__info li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pk05-contact__icon {
  width: 20px;
  height: 20px;
  color: #FF8368;
  flex-shrink: 0;
}
.pk05-contact__info a,
.pk05-contact__info span {
  font: 400 18px/28px Arial, sans-serif;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.pk05-contact__info a:hover { text-decoration: underline; }

@media (min-width: 769px) {
  .pk05-contact { min-height: 200px; }
  .pk05-contact__person { flex: 0 1 auto; width: 40%; max-width: 40%; min-width: 0; }
  /* Колонки центрируются по вертикали независимо друг от друга и содержат
     разное число строк, поэтому почта председателя оказывается выше почты
     секретаря. Добавочный отступ ставит обе строки на одну линию. */
  .pk05-contact__person .pk05-contact__info { margin-top: 32px; }
  .pk05-contact__secretary {
    position: absolute;
    left: 66%;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
  }
}

/* Обёртки/элементы, которые нужны только мобильному макету */
.pk05-contact__card { display: contents; }
.pk05-directions-pagination { display: none; }

/* ── Адаптив ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pk05-directions { grid-template-columns: 1fr; }
  .pk05-apply__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Размеры сняты с макета Figma «моб/ПК 05» (2210-402), база 360px */

  .pk05 { padding-bottom: 50px; }
  .pk05__breadcrumbs {
    padding: 25px 20px 0;
    gap: 12px;
    font-size: 12px;
    line-height: 18px;
  }

  /* ── Hero: во всю ширину, скруглённый ──────────────────────────────── */
  .pk05-hero {
    margin: 25px 0 0;
    min-height: 0;
    border-radius: 16px;
    align-items: stretch;
  }
  .pk05-hero__inner { padding: 36px 20px 46px; }
  .pk05-hero__title {
    font-size: 32px;
    line-height: 40px;
    margin: 0 0 16px;
  }
  .pk05-hero__lead { font-size: 16px; line-height: 24px; }
  .pk05-hero__cta-row { margin-top: 20px; }
  .pk05-hero__cta {
    display: flex;
    width: 100%;
    padding: 11px 24px;
    font-size: 14px;
    text-align: center;
  }

  /* ── Секции-коробки (Направления, Контакты) ────────────────────────── */
  .pk05-section {
    --pk05-px: 20px;
    margin: 32px 0 0;
    padding: 0;
    border: 1px solid #56718F;
    border-radius: 8px;
  }
  .pk05-section__head {
    margin: 0;
    padding: 24px 20px;
    border-bottom: 1px solid #56718F;
  }
  .pk05-section__title {
    font: 400 24px/32px 'Play', Arial, sans-serif;
    letter-spacing: 0;
    margin: 0;
  }

  /* ── Секции без коробки (Цель работы) ──────────────────────────────── */
  .pk05-section--plain {
    margin: 32px 0 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #56718F;
    border-radius: 0;
  }
  /* разделитель у «Цель работы» только сверху, под заголовком линии нет */
  .pk05-section--plain > .pk05-section__title { padding: 24px 20px; }
  .pk05-goal { padding: 0 20px; font-size: 16px; line-height: 24px; }

  /* ── Направления: градиентная карточка + карусель по одному направлению ── */
  .pk05-section--gradient {
    background: linear-gradient(180deg, #0F2337 0%, #3E4A5C 100%);
    border: none;
  }
  .pk05-section--gradient .pk05-section__head { border-bottom-color: #56718F; }

  .pk05-directions {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    padding: 24px 0 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pk05-directions::-webkit-scrollbar { display: none; }
  .pk05-direction {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 11px;
    /* слайды карусели равной высоты: без start лишняя высота растягивает
       авто-строки, заголовок уезжает вверх, а центрированная иконка — вниз */
    align-content: start;
    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
    padding: 0 20px;
    scroll-snap-align: start;
  }
  .pk05-direction__icon {
    grid-area: 1 / 1;
    align-self: center;
    width: 24px;
    height: 24px;
    margin: 0;
  }
  .pk05-direction__title {
    grid-area: 1 / 2;
    font: 700 18px/26px Arial, sans-serif;
    margin: 0;
  }
  .pk05-direction__list {
    grid-column: 1 / -1;
    gap: 12px;
    margin-top: 15px;
  }
  .pk05-direction__list li {
    padding-left: 18px;
    font-size: 14px;
    line-height: 20px;
    color: #fff;
  }
  /* в макете маркер — квадратик 6×6 со скруглением 1px, не круг */
  .pk05-direction__list li::before {
    top: 9px;
    border-radius: 1px;
  }
  .pk05-directions-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 4px 20px 12px;
  }

  /* ── Документы: заголовок без рамки, карточки как на /documents/ ───── */
  .pk05-docs-section { margin: 50px 0 0; border-top: 0; }
  .pk05-docs-section > .pk05-section__title {
    padding: 0 20px;
    margin-bottom: 25px;
    border-bottom: 0;
  }
  .pk05-docs__list { gap: 25px; padding: 0 20px; }
  .pk05-doc {
    background: linear-gradient(90deg, #061A2F 0%, #354254 100%);
    border-radius: 8px;
  }
  /* на мобайле карточка раскрыта всегда — кнопка видна сразу */
  .pk05-doc__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 16px 0;
    pointer-events: none;
  }
  .pk05-doc__icon { width: 24px; height: 24px; color: #fff; }
  .pk05-doc__title { font: 400 16px/24px Arial, sans-serif; }
  .pk05-doc__body,
  .pk05-doc.is-open .pk05-doc__body {
    max-height: none;
    overflow: visible;
    padding: 24px 16px 20px;
  }
  .pk05-doc__btn {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 48px;
    padding: 0 24px;
    border-radius: 5px;
    font-size: 16px;
    line-height: 24px;
    width: auto;
  }

  /* ── Заявка: поля в один столбец, кнопки на всю ширину ─────────────── */
  .pk05-apply-section {
    margin: 50px 0 0;
    padding: 0 20px;
    border: 0;
  }
  .pk05-apply-section > .pk05-section__title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 16px;
  }
  .pk05-apply__lead { font: 400 16px/24px Arial, sans-serif; margin-bottom: 25px; }
  .pk05-apply__grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
  .pk05-apply__privacy { align-items: flex-start; gap: 12px; margin-bottom: 25px; }
  .pk05-apply__submit { width: 100%; min-width: 0; }

  /* ── Контакты: подпись роли над карточкой с градиентом ─────────────── */
  .pk05-contact {
    display: block;
    padding: 24px 20px 30px;
    background: none;
    border-radius: 0;
  }
  .pk05-contact__person,
  .pk05-contact__secretary { display: block; width: 100%; }
  .pk05-contact__secretary { margin-top: 36px; }
  .pk05-contact__role {
    font: 400 16px/24px Arial, sans-serif;
    color: #fff;
    margin: 0 0 11px;
  }
  .pk05-contact__card {
    display: block;
    padding: 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, #00162B 0%, #3F4B5B 100%);
  }
  .pk05-contact__name { font: 400 16px/24px Arial, sans-serif; margin: 0 0 15px; }
  .pk05-contact__position { font: 400 12px/18px Arial, sans-serif; }
  .pk05-contact__info { gap: 5px; }
  .pk05-contact__person .pk05-contact__info { margin-top: 10px; }
  .pk05-contact__info li { gap: 8px; }
  .pk05-contact__icon { width: 16px; height: 16px; }
  .pk05-contact__info a,
  .pk05-contact__info span { font: 400 12px/18px Arial, sans-serif; white-space: normal; }
}
