/* ─────────────────────────────────────────────────────────────
   TSKP — Центр коллективного пользования
   Использует глобальные переменные из home/styles.css
   Лэйаут по образцу /ai-registry/ (full-width с margin 20px)
───────────────────────────────────────────────────────────── */

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

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

/* ── Hero: как на ПК 05 — текст во всю ширину, кнопка отдельной
   строкой под ним. Градиент вертикальный: текст идёт до правого
   края, горизонтальный оставлял бы его на светлой части фото. ─── */
.tskp-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('../home/images/reestr.png') center / cover no-repeat;
  background-color: #00162B;
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
}
.tskp-hero__inner {
  position: relative;
  z-index: 1;
  padding: 44px 48px;
  width: 100%;
}
.tskp-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);
}
.tskp-hero__lead {
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  color: #fff;
}
.tskp-hero__lead--mobile { display: none; }
.tskp-hero__cta-row {
  margin-top: 24px;
  text-align: right;
}
.tskp-hero__cta {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 14px 28px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  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;
}
.tskp-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;
}
.tskp-hero__cta span { position: relative; z-index: 1; }
.tskp-hero__cta:hover::after { opacity: 1; }

/* ── Концепция: картинка слева + табы + текст ───────────── */
/* Базовый (fallback) вариант для 769–1100px — потоковая сетка.
   Точный макет по координатам Figma — ниже, в @media (min-width: 1101px). */
.tskp-concept {
  margin: 24px 20px 0;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 32px;
  align-items: start;
}
.tskp-concept__media { margin-left: -20px; }
.tskp-concept__media img { display: block; width: 100%; height: auto; }

.tskp-concept__right { display: grid; gap: 24px; }
.tskp-tabs {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; align-items: flex-end;
}
.tskp-tabs__item {
  position: relative;
  font-family: Arial, sans-serif;
  text-align: right;
  color: #56718F;
  font-size: 20px;
  font-weight: 400;
  padding: 10px 0;
  white-space: nowrap;
  border-bottom: 1px solid #56718F;
}

.tskp-concept__body { display: flex; flex-direction: column; gap: 24px; }
.tskp-concept__lead {
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 20px; line-height: 1.35;
  color: #fff; margin: 0;
}
/* ── Направления исследований (Figma 2455:3835) ───────────────
   Карточка: горизонтальный градиент, иконка слева, текст справа.
   Пропорции сняты с макета и пересчитаны ×24/35 — во столько раз
   лид в вёрстке меньше лида в макете этой ноды. */
.tskp-research__title {
  font-family: Arial, sans-serif;
  margin: 0 0 14px;
  color: #fff; font-size: 16px; line-height: 22px; font-weight: 700;
}
.tskp-research__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.tskp-research__item {
  display: flex; align-items: center; gap: 15px;
  min-height: 58px;
  padding: 12px 16px 12px 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #00162B 0%, #3E4B5B 100%);
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 16px; line-height: 20px;
  color: #fff;
}
.tskp-research__icon {
  flex-shrink: 0;             /* иначе длинный текст сплющивает иконку */
  /* высота — по пропорции viewBox: иконки из макета разной высоты
     (29, 32 и 30 при ширине 30), фиксировать её значит их искажать */
  width: 21px; height: auto;
  color: var(--accent);
}

/* ── Раскладка по координатам Figma (десктоп) ─────────────────
   Ноды: левая часть — 302:4538, правая колонка — 2455:3835.
   Обе нарисованы на странице шириной 1440, начало координат — левый
   верхний угол картинки (она прижата к левому краю вьюпорта и обрезается).

   Размеры заданы в cqw — долях ширины блока (1cqw = 1% ширины). Делитель
   везде 1440, поэтому на ширине 1440 значения совпадают с макетом до
   пикселя, а на широких экранах блок тянется целиком, а не висит слева
   с пустотой справа. Именно cqw, а не vw: vw считает и полосу прокрутки,
   на Windows это дало бы горизонтальный сдвиг.

   Перед каждым cqw оставлено px-значение с макета: браузер без поддержки
   container queries пропустит вторую строку и получит раскладку 1440. */
@media (min-width: 1101px) {
  .tskp-concept {
    position: relative;
    display: block;
    margin: 51px 0 0;          /* 51px — зазор от Hero по макету */
    padding: 0;
    container-type: inline-size;
    height: 806px;             /* запасное значение, см. @supports ниже */
  }
  /* Высота едет за шириной. Через @supports, а не просто height:auto:
     внутри блока только абсолютные потомки, и браузер без aspect-ratio
     схлопнул бы его в нулевую высоту. */
  @supports (aspect-ratio: 1 / 1) {
    .tskp-concept { height: auto; aspect-ratio: 1440 / 806; }
  }
  .tskp-concept__media {
    position: absolute;
    left: 0; top: 0;
    width: 474px;     height: 806px;
    width: 32.917cqw; height: 55.972cqw;
    margin: 0;
  }
  .tskp-concept__media img { width: 100%; height: 100%; object-fit: cover; }

  .tskp-concept__right { display: contents; }

  .tskp-tabs {
    position: absolute;
    left: 0; top: 0;
    width: 704px;              /* правый край всех линий и подписей */
    width: 48.889cqw;
    height: 806px;
    height: 55.972cqw;
    display: block;
    margin: 0; padding: 0;
  }
  .tskp-tabs__item {
    position: absolute;
    right: 0;
    width: 323px;
    width: 22.431cqw;
    padding: 0;
    border: 0;
    font: 400 24px/32px Arial, sans-serif;
    font-size: 1.667cqw;
    line-height: 2.222cqw;
    color: #56718F;
    text-align: right;
  }
  .tskp-tabs__item::after {
    content: "";
    position: absolute;
    right: 0;
    top: 43px;                 /* линия на 43px ниже верха подписи */
    top: 2.986cqw;
    bottom: auto;
    height: 1px;
    background: #56718F;
  }
  /* Вертикальные позиции подписей */
  .tskp-tabs__item:nth-child(1) { top:  75px; top:  5.208cqw; }
  .tskp-tabs__item:nth-child(2) { top: 134px; top:  9.306cqw; }
  .tskp-tabs__item:nth-child(3) { top: 195px; top: 13.542cqw; }
  .tskp-tabs__item:nth-child(4) { top: 256px; top: 17.778cqw; }
  .tskp-tabs__item:nth-child(5) { top: 339px; top: 23.542cqw; }
  .tskp-tabs__item:nth-child(6) { top: 438px; top: 30.417cqw; }
  .tskp-tabs__item:nth-child(7) { top: 537px; top: 37.292cqw; }
  /* Длины линий: правый край общий (704), левый — на разной глубине картинки */
  .tskp-tabs__item:nth-child(1)::after { width: 581px; width: 40.347cqw; }  /* → x=123 */
  .tskp-tabs__item:nth-child(2)::after { width: 538px; width: 37.361cqw; }  /* → x=166 */
  .tskp-tabs__item:nth-child(3)::after { width: 493px; width: 34.236cqw; }  /* → x=211 */
  .tskp-tabs__item:nth-child(4)::after { width: 453px; width: 31.458cqw; }  /* → x=251 */
  .tskp-tabs__item:nth-child(5)::after { width: 400px; width: 27.778cqw; }  /* → x=304 */
  .tskp-tabs__item:nth-child(6)::after { width: 319px; width: 22.153cqw; }  /* → x=385 */
  .tskp-tabs__item:nth-child(7)::after { width: 268px; width: 18.611cqw; }  /* → x=436 */

  /* Правая колонка: left 796, ширина 613 → правый край 1409 при странице 1440 */
  .tskp-concept__body {
    position: absolute;
    left: 796px;     top: 75px;
    left: 55.278cqw; top: 5.208cqw;
    right: auto;
    width: 613px;
    width: 42.569cqw;
    max-width: none;
    display: block;
    gap: 0;
  }
  .tskp-concept__lead {
    width: auto;
    margin: 0;
    font: 400 35px/45px Arial, sans-serif;
    font-size: 2.431cqw;
    line-height: 3.125cqw;
    color: #fff;
  }
  /* Направления идут обычным потоком под лидом: высота лида зависит от
     переносов, привязка по Y только мешала бы. Сверка размеров:
     32 + 20 + 84 + 20 + 84 + 20 + 114 = 374 — ровно высота фрейма в макете. */
  .tskp-research { margin-top: 50px; margin-top: 3.472cqw; }
  .tskp-research__title {
    margin: 0 0 20px;
    margin-bottom: 1.389cqw;
    font: 700 24px/32px Arial, sans-serif;
    font-size: 1.667cqw;
    line-height: 2.222cqw;
  }
  .tskp-research__list { gap: 20px; gap: 1.389cqw; }
  .tskp-research__item {
    gap: 21px;
    gap: 1.458cqw;
    /* высоту не фиксируем: 2 строки × 29 + 26 отступов = 84, 3 строки = 113 */
    padding: 13px 16px 13px 15px;
    padding: 0.903cqw 1.111cqw 0.903cqw 1.042cqw;
    border-radius: 8px;
    border-radius: 0.556cqw;
    font-size: 23px;
    font-size: 1.597cqw;
    line-height: 29px;
    line-height: 2.014cqw;
  }
  .tskp-research__icon { width: 30px; width: 2.083cqw; }
}

/* ── Sections ────────────────────────────────────────────── */
.tskp-section {
  --tskp-px: 16px;
  margin: 28px 0 0;
  padding: 24px var(--tskp-px);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
@media (min-width: 1101px) {
  .tskp-section {
    --tskp-px: 48px;
    margin: 32px 42px 0;
    padding: 40px var(--tskp-px);
    background: transparent;
    border: 1px solid #56718F;
    border-radius: 16px;
  }
  .tskp-section--gradient {
    background: linear-gradient(135deg, #00162B 0%, #3A4658 100%);
    border: 0;
  }
}
/* Заголовок секции — линия-разделитель от края до края карточки */
.tskp-section__head {
  margin: 0 calc(-1 * var(--tskp-px)) 28px;
  padding: 0 var(--tskp-px) 24px;
  border-bottom: 1px solid #56718F;
}
/* У «Функции ЦКП» линия остаётся прозрачной (сливается с градиентом) */
.tskp-section--gradient .tskp-section__head {
  border-bottom-color: var(--bg);
}
.tskp-section__title {
  font-family: 'Play', sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}
.tskp-section__subtitle {
  font-size: 16px; line-height: 1.5; color: var(--text-light);
  margin: 8px 0 0;
}

/* ── Функции ЦКП ─────────────────────────────────────────── */
.tskp-functions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
}
.tskp-function__icon {
  width: 26px; height: 26px;
  color: var(--accent);
  margin-bottom: 12px;
}
.tskp-function__title {
  font-size: 15px; font-weight: 700; margin: 0 0 8px; color: #fff;
}
.tskp-function__desc {
  font-size: 13px; line-height: 1.55; color: var(--text-light); margin: 0;
}

/* ── Каталог услуг (карточки как у новостей на главной — .news-card) ─ */
.tskp-services .news-card-img { aspect-ratio: 412 / 200; }

/* ── Документы ────────────────────────────────────────────── */
.tskp-docs__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 24px;
}
.tskp-doc {
  position: relative;
  background: #2C3B4C;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: background .3s, border-color .2s;
}
.tskp-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;
}
.tskp-doc:hover,
.tskp-doc.is-open {
  background: linear-gradient(90deg, #00162B 0%, #3F4B5B 100%);
  border-color: rgba(255, 131, 104, 0.4);
}
.tskp-doc:hover::after,
.tskp-doc.is-open::after { opacity: 1; }
.tskp-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;
}
.tskp-doc__icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}
.tskp-doc__title {
  font-size: 18px;
  line-height: 1.44;
  color: #fff;
  flex: 1;
}
.tskp-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;
}
.tskp-doc.is-open .tskp-doc__body {
  max-height: 120px;
  padding: 0 24px 24px 72px;
}
.tskp-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;
}
.tskp-doc__btn:hover { border-color: var(--accent); }
.tskp-docs__empty {
  text-align: center; color: var(--text-muted);
  font-size: 14px; padding: 24px 0;
}

/* ── Партнёры (как на главной — без карточки-обёртки) ──────── */
.tskp-section--plain {
  background: transparent;
  border: 0;
}
@media (min-width: 1101px) {
  .tskp-section--plain {
    background: transparent;
    border: 0;
    padding: 40px 0;
  }
}

/* Плитки логотипов используют классы главной (.partner-logo, .partners-page,
   .partners-cards, .partners-nav-btns и т.д.) из home/styles.css — переопределений здесь нет. */

/* ── Контакты (расстояние от Партнёров уменьшено вдвое) ──── */
.tskp-contact-section { margin-top: 14px; }
@media (min-width: 1101px) {
  .tskp-contact-section { margin-top: 16px; }
}
.tskp-contact {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, #00162B 0%, #3F4B5B 100%);
}
.tskp-contact__photo {
  flex: 0 0 99px;
  width: 99px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
}
.tskp-contact__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tskp-contact__person {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
}
.tskp-contact__name {
  font: 400 24px/32px Arial, sans-serif;
  color: #fff;
  margin-bottom: 8px;
}
.tskp-contact__role {
  font: 400 16px/24px Arial, sans-serif;
  color: #fff;
  margin-bottom: 24px;
}
.tskp-contact__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 238px;
  max-width: 100%;
  height: 48px;
  border-radius: 5px;
  border: 1px solid #FF8368;
  background: transparent;
  color: #fff;
  font: 700 16px/24px Arial, sans-serif;
  text-decoration: none;
  transition: border-color .2s;
}
.tskp-contact__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;
}
.tskp-contact__cta span { position: relative; z-index: 1; }
.tskp-contact__cta:hover::after { opacity: 1; }

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

@media (min-width: 769px) {
  .tskp-contact { min-height: 248px; }
  .tskp-contact__person { flex: 0 1 auto; width: 40%; max-width: 40%; min-width: 0; }
  .tskp-contact__info {
    position: absolute;
    left: 66%;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    margin: 0;
  }
}

/* ── Удаляем старый враппер-контейнер ──────────────────────── */
.tskp__container { max-width: none; margin: 0; padding: 0; }

/* ── Mobile-only элементы: на десктопе скрыты / прозрачны ──── */
.tskp-functions-pagination { display: none; }
.tskp-contact__cta--mobile { display: none; }
/* JS на мобайле группирует функции по 3 в .tskp-function-page.
   display:contents — обёртка не мешает десктопной grid-раскладке. */
.tskp-function-page { display: contents; }
/* Обёртка photo+person: на десктопе прозрачна для flex-раскладки */
.tskp-contact__head { display: contents; }

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

/* ─────────────────────────────────────────────────────────────
   МОБАЙЛ ≤768px — по макету Figma 302-4964 (360px)
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tskp { padding-bottom: 50px; }

  /* ── Хлебные крошки: 20px под хедером, 30px до hero ── */
  .tskp__breadcrumbs { padding: 20px 20px 30px; font-size: 12px; line-height: 18px; gap: 12px; }

  /* ── Hero: во всю ширину, r8, кнопка по центру ── */
  .tskp-hero {
    margin: 0;
    height: auto;
    min-height: 321px;
    border-radius: 8px;
    align-items: stretch;
  }
  .tskp-hero__inner {
    padding: 36px 20px 21px;
  }
  .tskp-hero__title {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
  }
  .tskp-hero__lead { font: 400 16px/24px Arial, sans-serif; }
  .tskp-hero__lead--desktop { display: none; }
  .tskp-hero__lead--mobile { display: block; }
  .tskp-hero__cta-row {
    margin-top: 24px;
    text-align: center;
  }
  .tskp-hero__cta {
    width: auto;
    padding: 11px 24px;
    font-size: 14px;
    line-height: 24px;
    border-radius: 8px;
  }

  /* ── Концепция: только текст, картинка и табы не выводятся ── */
  .tskp-concept {
    display: block;
    margin: 32px 20px 0;
    padding: 0;
  }
  .tskp-concept__media { display: none; }
  .tskp-tabs { display: none; }
  .tskp-concept__right { display: block; }
  .tskp-concept__body { gap: 24px; }
  .tskp-concept__lead { font: 400 18px/26px Arial, sans-serif; }
  /* заголовок и карточки направлений на мобайле не переопределяем —
     базовые 16/22 и 16/20 читаются на узком экране без правок */

  /* ── Секции: карточка с бордером, шапка 80px с разделителем ── */
  .tskp-section {
    --tskp-px: 20px;
    margin: 32px 0 0;
    padding: 0;
    border: 1px solid #56718F;
    border-radius: 8px;
  }
  .tskp-section__head {
    margin: 0;
    padding: 24px 20px;
    border-bottom: 1px solid #56718F;
  }
  .tskp-section__title { font: 400 24px/32px 'Play', Arial, sans-serif; }
  .tskp-section__subtitle { font: 400 14px/20px Arial, sans-serif; margin: 12px 0 0; }

  /* ── Функции ЦКП: градиентная карточка + свайп по 3 пункта ── */
  .tskp-section--gradient {
    background: linear-gradient(180deg, #0F2337 0%, #3E4A5C 100%);
    border: none;
  }
  .tskp-section--gradient .tskp-section__head { border-bottom-color: #56718F; }

  .tskp-functions {
    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;
  }
  .tskp-functions::-webkit-scrollbar { display: none; }
  .tskp-function-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    scroll-snap-align: start;
  }
  /* Пункт: иконка + заголовок в строку, описание под ними */
  .tskp-function {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #56718F;
  }
  .tskp-function:last-child { padding-bottom: 0; border-bottom: none; }
  .tskp-function__icon {
    grid-area: 1 / 1;
    align-self: center;
    width: 24px; height: 24px;
    margin: 0;
  }
  .tskp-function__title {
    grid-area: 1 / 2;
    font: 700 16px/24px Arial, sans-serif;
    margin: 0;
  }
  .tskp-function__desc {
    grid-column: 1 / -1;
    font: 400 14px/20px Arial, sans-serif;
    color: #D2D2DF;
    margin: 0;
  }
  .tskp-functions-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 32px 0;
  }

  /* ── Каталог услуг: карточки стопкой, картинка во всю ширину ── */
  .news-grid.tskp-services {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 24px;
    padding: 24px 0 28px;
    overflow: visible;
  }
  .tskp-services .news-card { flex: 0 0 auto; width: 100%; }
  .tskp-services .news-card-img {
    aspect-ratio: 360 / 217.5;
    margin-bottom: 9px;
    border-radius: 5px;
    /* Срезы углов — те же, что у карточек реестра */
    clip-path: polygon(
      0 0,
      calc(100% - 49px) 0,
      100% 64px,
      100% 100%,
      42px 100%,
      0 calc(100% - 45px)
    );
  }
  .tskp-services .news-card-body {
    padding: 23px 22px 28px 28px;
    gap: 8px;
    border-radius: 8px;
    background: linear-gradient(91deg, rgba(2,24,44,1) 1%, rgba(64,76,92,1) 100%);
  }
  .tskp-services .news-card-title { font: 400 18px/22px 'Play', Arial, sans-serif; }
  .tskp-services .news-card-excerpt {
    display: block;
    overflow: visible;
    font: 400 14px/15px Arial, sans-serif;
    color: #D2D2DF;
    flex: none;
  }

  /* ── Документы: кнопка «Скачать» всегда видна (не аккордеон) ── */
  .tskp-docs__list { gap: 20px; padding: 24px 20px 28px; }
  .tskp-doc { background: #2C3B4C; }
  .tskp-doc::after { display: none; }
  .tskp-doc:hover, .tskp-doc.is-open {
    background: #2C3B4C;
    border-color: transparent;
  }
  .tskp-doc__head {
    display: block;
    padding: 20px 16px 0;
    pointer-events: none;
  }
  .tskp-doc__icon { display: block; width: 24px; height: 24px; margin-bottom: 24px; }
  .tskp-doc__title { display: block; font: 400 16px/24px Arial, sans-serif; }
  .tskp-doc__body,
  .tskp-doc.is-open .tskp-doc__body {
    max-height: none;
    overflow: visible;
    padding: 16px 16px 20px;
  }
  .tskp-doc__btn {
    padding: 9px 16px;
    font: 700 14px/20px Arial, sans-serif;
    border-radius: 5px;
  }

  /* ── Пользователи и партнёры: 2 колонки, свайп по 8 логотипов ── */
  .tskp-section--plain {
    margin: 64px 0 0;
    padding: 0;
    border: none;
    border-radius: 0;
  }
  .tskp .partners-top { display: block; margin: 0; padding: 0 20px; }
  .tskp .partners-top .section-title { font: 400 25px/32px 'Play', Arial, sans-serif; margin: 0; }
  .tskp .partners-nav-btns { display: none; }
  .tskp .partners-mobile { margin-top: 32px; }
  .tskp .partner-page { padding: 0 20px; }
  .tskp .partner-logo {
    aspect-ratio: 154 / 78;
    border-radius: 8px;
    border: none;
  }
  .tskp .partners-pagination { padding: 32px 0 0; }

  /* ── Контакты ── */
  .tskp-contact-section { margin-top: 64px; }
  .tskp-contact {
    display: block;
    padding: 24px 20px 28px;
    background: none;
    border-radius: 0;
    gap: 0;
  }
  /* Панель 1: фото + ФИО */
  .tskp-contact__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, #00162B 0%, #3D4A5A 100%);
  }
  .tskp-contact__photo { flex: 0 0 80px; width: 80px; height: 80px; }
  .tskp-contact__person { flex: 1 1 auto; min-width: 0; }
  .tskp-contact__name { font: 400 16px/24px Arial, sans-serif; margin-bottom: 4px; }
  .tskp-contact__role { font: 400 12px/18px Arial, sans-serif; margin-bottom: 0; }
  .tskp-contact__cta--desktop { display: none; }

  /* Панель 2: почта/телефон слева, часы/адрес справа */
  .tskp-contact__info {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 0;
    margin-top: 16px;
    padding: 6px 15px;
    border-radius: 8px;
    background: linear-gradient(90deg, #00162B 0%, #3B4959 100%);
  }
  .tskp-contact__info li { gap: 6px; }
  .tskp-contact__info li:nth-child(1) { grid-area: 1 / 1; }  /* почта */
  .tskp-contact__info li:nth-child(2) { grid-area: 2 / 1; }  /* телефон */
  .tskp-contact__info li:nth-child(3) { grid-area: 2 / 2; align-items: flex-start; }  /* адрес */
  .tskp-contact__info li:nth-child(4) { grid-area: 1 / 2; }  /* часы */
  .tskp-contact__icon { width: 16px; height: 16px; }
  .tskp-contact__info li:nth-child(3) .tskp-contact__icon { margin-top: 8px; }
  .tskp-contact__info a,
  .tskp-contact__info span { font: 400 12px/32px Arial, sans-serif; white-space: nowrap; }
  .tskp-contact__info li:nth-child(3) span { line-height: 15px; white-space: normal; }

  /* Кнопка под обеими панелями, по центру */
  .tskp-contact__cta--mobile {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 24px auto 0;
    height: 48px;
    padding: 0 24px;
    border: 1px solid #56718F;
    border-radius: 5px;
    font: 700 14px/24px Arial, sans-serif;
  }
}

/* Узкие экраны: контакты не влезают в две колонки — ставим в одну */
@media (max-width: 350px) {
  .tskp-contact__info { grid-template-columns: minmax(0, 1fr); }
  .tskp-contact__info li:nth-child(1),
  .tskp-contact__info li:nth-child(2),
  .tskp-contact__info li:nth-child(3),
  .tskp-contact__info li:nth-child(4) { grid-area: auto; }
}

/* Акцент в тексте hero из админки: редактор выделяет фразу жирным,
   цвет подставляет CSS (в вёрстке для этого был отдельный класс) */
.tskp-hero__lead b,
.tskp-hero__lead strong {
  color: var(--accent);
  font-weight: inherit;
}
